/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 应用容器 */
.app-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

/* 桌面端显示传统导航 */
.desktop-nav {
    display: block !important;
}

.nav-menu:not(.desktop-nav) {
    display: none !important;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.nav-item.active {
    background-color: #28a745 !important;
    color: white !important;
    border-right: 3px solid #20c997;
}

.nav-item.active i {
    color: white !important;
}

.nav-item.active span {
    color: white !important;
}

.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-group-header:hover {
    background-color: #f8f9fa;
}

.nav-group-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-group.open .nav-group-header i:last-child {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.nav-group.open .nav-submenu {
    max-height: 200px;
}

.nav-submenu .nav-item {
    padding-left: 3rem;
    font-size: 0.9rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 页面内容 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #0077b6);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 双单位统计卡片样式 */
.stat-card.dual-unit {
    min-height: 140px;
}

.dual-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    flex: 1;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .dual-stats {
        gap: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
}

/* 到岸记录多行输入样式 */
.arrival-settings {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.arrival-records-container {
    margin-bottom: 1rem;
}

.arrival-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arrival-records-header h3 {
    margin: 0;
    color: #2c3e50;
}

#arrival-input-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#arrival-input-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    border-left: none;
    border-right: 1px solid #e9ecef;
}

#arrival-input-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

#arrival-input-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#arrival-input-table tbody tr:hover {
    background: #e7f3ff;
}

#arrival-input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#arrival-input-table input {
    border: 2px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 80px;
    transition: all 0.3s ease;
    background: white;
}

#arrival-input-table input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #fff;
}

#arrival-input-table input:read-only {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
    color: #6c757d;
}

#arrival-input-table input:invalid {
    border-color: #dc3545;
}

#arrival-input-table input:valid:not(:read-only) {
    border-color: #28a745;
}

.arrival-row-actions {
    display: flex;
    gap: 0.25rem;
}

.arrival-row-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 添加按钮样式优化 */
.arrival-records-header .btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.arrival-records-header .btn:hover {
    background: #20c997;
    border-color: #20c997;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 转换比例设置美化 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: #6c757d;
    font-size: 0.875rem;
}

.conversion-setting input {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.conversion-setting input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.15);
}

/* 表格容器样式 */
.arrival-records-container .table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

/* 到岸记录表格特殊布局 */
#arrival-input-table {
    min-width: 1200px;
    table-layout: fixed;
}

#arrival-input-table th:nth-child(1) { width: 120px; } /* 到岸日期 */
#arrival-input-table th:nth-child(2) { width: 120px; } /* 车牌号 */
#arrival-input-table th:nth-child(3) { width: 140px; } /* 菜品种类 */
#arrival-input-table th:nth-child(4) { width: 100px; } /* 换算比例 */
#arrival-input-table th:nth-child(5) { width: 100px; } /* 皮重 */
#arrival-input-table th:nth-child(6) { width: 100px; } /* 毛重 */
#arrival-input-table th:nth-child(7) { width: 100px; } /* 净重 */
#arrival-input-table th:nth-child(8) { width: 80px; }  /* 筐数 */
#arrival-input-table th:nth-child(9) { width: 100px; } /* 颗数 */
#arrival-input-table th:nth-child(10) { width: 100px; } /* 运费 */
#arrival-input-table th:nth-child(11) { width: 80px; }  /* 操作 */

/* 菜品选择下拉框样式 */
#arrival-input-table .spec-type {
    width: 100%;
    min-width: 130px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* 换算比例容器样式 */
#arrival-input-table .conversion-ratio-container {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

#arrival-input-table .conversion-ratio {
    width: 50px;
    text-align: center;
    padding: 0.375rem 0.25rem;
    font-size: 0.875rem;
}

#arrival-input-table .ratio-unit {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 删除按钮样式 */
#arrival-input-table .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

#arrival-input-table .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .conversion-setting {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content.extra-large {
        width: 95vw;
        max-width: 95vw;
    }
    
    #arrival-input-table {
        min-width: 800px;
    }
}

/* 水平滚动条美化 */
.arrival-records-container .table-container::-webkit-scrollbar {
    height: 8px;
}

.arrival-records-container .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* 滚动提示 */
.arrival-records-container .table-container {
    position: relative;
}

.arrival-records-container .table-container::after {
    content: '← 左右滑动查看更多 →';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arrival-records-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    #arrival-input-table {
        font-size: 0.75rem;
    }
    
    #arrival-input-table input {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
        min-width: 60px;
    }
}

/* 图表区域 */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



/* 筛选区域 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

/* 表单样式 */
.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-control:readonly {
    background-color: #e9ecef;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 库存概况 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inventory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.inventory-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.inventory-value {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.inventory-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.inventory-status.warning {
    color: #856404;
    background: #fff3cd;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #ffeaa7;
    font-size: 0.875rem;
}

.inventory-status.danger {
    color: #721c24;
    background: #f8d7da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #f5c6cb;
    font-size: 0.875rem;
}

/* 表单区域 */
.form-section {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1;
    margin-right: 0;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 规格库存网格 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
}

.spec-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.spec-quantity {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 汇总信息 */
.summary-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.summary-item {
    text-align: center;
}

.summary-item label {
    display: block;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.summary-item span {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.report-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-panel h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* 设置页面 */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 应用容器 */
.app-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

/* 桌面端显示传统导航 */
.desktop-nav {
    display: block !important;
}

.nav-menu:not(.desktop-nav) {
    display: none !important;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.nav-item.active {
    background-color: #28a745 !important;
    color: white !important;
    border-right: 3px solid #20c997;
}

.nav-item.active i {
    color: white !important;
}

.nav-item.active span {
    color: white !important;
}

.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-group-header:hover {
    background-color: #f8f9fa;
}

.nav-group-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-group.open .nav-group-header i:last-child {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.nav-group.open .nav-submenu {
    max-height: 200px;
}

.nav-submenu .nav-item {
    padding-left: 3rem;
    font-size: 0.9rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 页面内容 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #0077b6);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 双单位统计卡片样式 */
.stat-card.dual-unit {
    min-height: 140px;
}

.dual-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    flex: 1;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .dual-stats {
        gap: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
}

/* 到岸记录多行输入样式 */
.arrival-settings {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.arrival-records-container {
    margin-bottom: 1rem;
}

.arrival-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arrival-records-header h3 {
    margin: 0;
    color: #2c3e50;
}

#arrival-input-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#arrival-input-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    border-left: none;
    border-right: 1px solid #e9ecef;
}

#arrival-input-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

#arrival-input-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#arrival-input-table tbody tr:hover {
    background: #e7f3ff;
}

#arrival-input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#arrival-input-table input {
    border: 2px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 80px;
    transition: all 0.3s ease;
    background: white;
}

#arrival-input-table input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #fff;
}

#arrival-input-table input:read-only {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
    color: #6c757d;
}

#arrival-input-table input:invalid {
    border-color: #dc3545;
}

#arrival-input-table input:valid:not(:read-only) {
    border-color: #28a745;
}

.arrival-row-actions {
    display: flex;
    gap: 0.25rem;
}

.arrival-row-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 添加按钮样式优化 */
.arrival-records-header .btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.arrival-records-header .btn:hover {
    background: #20c997;
    border-color: #20c997;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 转换比例设置美化 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: #6c757d;
    font-size: 0.875rem;
}

.conversion-setting input {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.conversion-setting input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.15);
}

/* 表格容器样式 */
.arrival-records-container .table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

/* 到岸记录表格特殊布局 */
#arrival-input-table {
    min-width: 1200px;
    table-layout: fixed;
}

#arrival-input-table th:nth-child(1) { width: 120px; } /* 到岸日期 */
#arrival-input-table th:nth-child(2) { width: 120px; } /* 车牌号 */
#arrival-input-table th:nth-child(3) { width: 140px; } /* 菜品种类 */
#arrival-input-table th:nth-child(4) { width: 100px; } /* 换算比例 */
#arrival-input-table th:nth-child(5) { width: 100px; } /* 皮重 */
#arrival-input-table th:nth-child(6) { width: 100px; } /* 毛重 */
#arrival-input-table th:nth-child(7) { width: 100px; } /* 净重 */
#arrival-input-table th:nth-child(8) { width: 80px; }  /* 筐数 */
#arrival-input-table th:nth-child(9) { width: 100px; } /* 颗数 */
#arrival-input-table th:nth-child(10) { width: 100px; } /* 运费 */
#arrival-input-table th:nth-child(11) { width: 80px; }  /* 操作 */

/* 菜品选择下拉框样式 */
#arrival-input-table .spec-type {
    width: 100%;
    min-width: 130px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* 换算比例容器样式 */
#arrival-input-table .conversion-ratio-container {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

#arrival-input-table .conversion-ratio {
    width: 50px;
    text-align: center;
    padding: 0.375rem 0.25rem;
    font-size: 0.875rem;
}

#arrival-input-table .ratio-unit {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 删除按钮样式 */
#arrival-input-table .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

#arrival-input-table .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .conversion-setting {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content.extra-large {
        width: 95vw;
        max-width: 95vw;
    }
    
    #arrival-input-table {
        min-width: 800px;
    }
}

/* 水平滚动条美化 */
.arrival-records-container .table-container::-webkit-scrollbar {
    height: 8px;
}

.arrival-records-container .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* 滚动提示 */
.arrival-records-container .table-container {
    position: relative;
}

.arrival-records-container .table-container::after {
    content: '← 左右滑动查看更多 →';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arrival-records-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    #arrival-input-table {
        font-size: 0.75rem;
    }
    
    #arrival-input-table input {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
        min-width: 60px;
    }
}

/* 图表区域 */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



/* 筛选区域 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

/* 表单样式 */
.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-control:readonly {
    background-color: #e9ecef;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 库存概况 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inventory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.inventory-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.inventory-value {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.inventory-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.inventory-status.warning {
    color: #856404;
    background: #fff3cd;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #ffeaa7;
    font-size: 0.875rem;
}

.inventory-status.danger {
    color: #721c24;
    background: #f8d7da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #f5c6cb;
    font-size: 0.875rem;
}

/* 表单区域 */
.form-section {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1;
    margin-right: 0;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 规格库存网格 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
}

.spec-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.spec-quantity {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 汇总信息 */
.summary-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.summary-item {
    text-align: center;
}

.summary-item label {
    display: block;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.summary-item span {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.report-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-panel h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* 设置页面 */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 应用容器 */
.app-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

/* 桌面端显示传统导航 */
.desktop-nav {
    display: block !important;
}

.nav-menu:not(.desktop-nav) {
    display: none !important;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.nav-item.active {
    background-color: #28a745 !important;
    color: white !important;
    border-right: 3px solid #20c997;
}

.nav-item.active i {
    color: white !important;
}

.nav-item.active span {
    color: white !important;
}

.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-group-header:hover {
    background-color: #f8f9fa;
}

.nav-group-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-group.open .nav-group-header i:last-child {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.nav-group.open .nav-submenu {
    max-height: 200px;
}

.nav-submenu .nav-item {
    padding-left: 3rem;
    font-size: 0.9rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 页面内容 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #0077b6);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 双单位统计卡片样式 */
.stat-card.dual-unit {
    min-height: 140px;
}

.dual-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    flex: 1;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .dual-stats {
        gap: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
}

/* 到岸记录多行输入样式 */
.arrival-settings {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.arrival-records-container {
    margin-bottom: 1rem;
}

.arrival-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arrival-records-header h3 {
    margin: 0;
    color: #2c3e50;
}

#arrival-input-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#arrival-input-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    border-left: none;
    border-right: 1px solid #e9ecef;
}

#arrival-input-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

#arrival-input-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#arrival-input-table tbody tr:hover {
    background: #e7f3ff;
}

#arrival-input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#arrival-input-table input {
    border: 2px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 80px;
    transition: all 0.3s ease;
    background: white;
}

#arrival-input-table input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #fff;
}

#arrival-input-table input:read-only {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
    color: #6c757d;
}

#arrival-input-table input:invalid {
    border-color: #dc3545;
}

#arrival-input-table input:valid:not(:read-only) {
    border-color: #28a745;
}

.arrival-row-actions {
    display: flex;
    gap: 0.25rem;
}

.arrival-row-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 添加按钮样式优化 */
.arrival-records-header .btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.arrival-records-header .btn:hover {
    background: #20c997;
    border-color: #20c997;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 转换比例设置美化 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: #6c757d;
    font-size: 0.875rem;
}

.conversion-setting input {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.conversion-setting input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.15);
}

/* 表格容器样式 */
.arrival-records-container .table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

/* 到岸记录表格特殊布局 */
#arrival-input-table {
    min-width: 1200px;
    table-layout: fixed;
}

#arrival-input-table th:nth-child(1) { width: 120px; } /* 到岸日期 */
#arrival-input-table th:nth-child(2) { width: 120px; } /* 车牌号 */
#arrival-input-table th:nth-child(3) { width: 140px; } /* 菜品种类 */
#arrival-input-table th:nth-child(4) { width: 100px; } /* 换算比例 */
#arrival-input-table th:nth-child(5) { width: 100px; } /* 皮重 */
#arrival-input-table th:nth-child(6) { width: 100px; } /* 毛重 */
#arrival-input-table th:nth-child(7) { width: 100px; } /* 净重 */
#arrival-input-table th:nth-child(8) { width: 80px; }  /* 筐数 */
#arrival-input-table th:nth-child(9) { width: 100px; } /* 颗数 */
#arrival-input-table th:nth-child(10) { width: 100px; } /* 运费 */
#arrival-input-table th:nth-child(11) { width: 80px; }  /* 操作 */

/* 菜品选择下拉框样式 */
#arrival-input-table .spec-type {
    width: 100%;
    min-width: 130px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* 换算比例容器样式 */
#arrival-input-table .conversion-ratio-container {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

#arrival-input-table .conversion-ratio {
    width: 50px;
    text-align: center;
    padding: 0.375rem 0.25rem;
    font-size: 0.875rem;
}

#arrival-input-table .ratio-unit {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 删除按钮样式 */
#arrival-input-table .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

#arrival-input-table .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .conversion-setting {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content.extra-large {
        width: 95vw;
        max-width: 95vw;
    }
    
    #arrival-input-table {
        min-width: 800px;
    }
}

/* 水平滚动条美化 */
.arrival-records-container .table-container::-webkit-scrollbar {
    height: 8px;
}

.arrival-records-container .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* 滚动提示 */
.arrival-records-container .table-container {
    position: relative;
}

.arrival-records-container .table-container::after {
    content: '← 左右滑动查看更多 →';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arrival-records-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    #arrival-input-table {
        font-size: 0.75rem;
    }
    
    #arrival-input-table input {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
        min-width: 60px;
    }
}

/* 图表区域 */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



/* 筛选区域 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

/* 表单样式 */
.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-control:readonly {
    background-color: #e9ecef;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 应用容器 */
.app-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

/* 桌面端显示传统导航 */
.desktop-nav {
    display: block !important;
}

.nav-menu:not(.desktop-nav) {
    display: none !important;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.nav-item.active {
    background-color: #28a745 !important;
    color: white !important;
    border-right: 3px solid #20c997;
}

.nav-item.active i {
    color: white !important;
}

.nav-item.active span {
    color: white !important;
}

.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-group-header:hover {
    background-color: #f8f9fa;
}

.nav-group-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-group.open .nav-group-header i:last-child {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.nav-group.open .nav-submenu {
    max-height: 200px;
}

.nav-submenu .nav-item {
    padding-left: 3rem;
    font-size: 0.9rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 页面内容 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #0077b6);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 双单位统计卡片样式 */
.stat-card.dual-unit {
    min-height: 140px;
}

.dual-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    flex: 1;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .dual-stats {
        gap: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
}

/* 到岸记录多行输入样式 */
.arrival-settings {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.arrival-records-container {
    margin-bottom: 1rem;
}

.arrival-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arrival-records-header h3 {
    margin: 0;
    color: #2c3e50;
}

#arrival-input-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#arrival-input-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    border-left: none;
    border-right: 1px solid #e9ecef;
}

#arrival-input-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

#arrival-input-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#arrival-input-table tbody tr:hover {
    background: #e7f3ff;
}

#arrival-input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#arrival-input-table input {
    border: 2px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 80px;
    transition: all 0.3s ease;
    background: white;
}

#arrival-input-table input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #fff;
}

#arrival-input-table input:read-only {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
    color: #6c757d;
}

#arrival-input-table input:invalid {
    border-color: #dc3545;
}

#arrival-input-table input:valid:not(:read-only) {
    border-color: #28a745;
}

.arrival-row-actions {
    display: flex;
    gap: 0.25rem;
}

.arrival-row-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 添加按钮样式优化 */
.arrival-records-header .btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.arrival-records-header .btn:hover {
    background: #20c997;
    border-color: #20c997;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 转换比例设置美化 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: #6c757d;
    font-size: 0.875rem;
}

.conversion-setting input {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.conversion-setting input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.15);
}

/* 表格容器样式 */
.arrival-records-container .table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

/* 到岸记录表格特殊布局 */
#arrival-input-table {
    min-width: 1200px;
    table-layout: fixed;
}

#arrival-input-table th:nth-child(1) { width: 120px; } /* 到岸日期 */
#arrival-input-table th:nth-child(2) { width: 120px; } /* 车牌号 */
#arrival-input-table th:nth-child(3) { width: 140px; } /* 菜品种类 */
#arrival-input-table th:nth-child(4) { width: 100px; } /* 换算比例 */
#arrival-input-table th:nth-child(5) { width: 100px; } /* 皮重 */
#arrival-input-table th:nth-child(6) { width: 100px; } /* 毛重 */
#arrival-input-table th:nth-child(7) { width: 100px; } /* 净重 */
#arrival-input-table th:nth-child(8) { width: 80px; }  /* 筐数 */
#arrival-input-table th:nth-child(9) { width: 100px; } /* 颗数 */
#arrival-input-table th:nth-child(10) { width: 100px; } /* 运费 */
#arrival-input-table th:nth-child(11) { width: 80px; }  /* 操作 */

/* 菜品选择下拉框样式 */
#arrival-input-table .spec-type {
    width: 100%;
    min-width: 130px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* 换算比例容器样式 */
#arrival-input-table .conversion-ratio-container {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

#arrival-input-table .conversion-ratio {
    width: 50px;
    text-align: center;
    padding: 0.375rem 0.25rem;
    font-size: 0.875rem;
}

#arrival-input-table .ratio-unit {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 删除按钮样式 */
#arrival-input-table .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

#arrival-input-table .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .conversion-setting {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content.extra-large {
        width: 95vw;
        max-width: 95vw;
    }
    
    #arrival-input-table {
        min-width: 800px;
    }
}

/* 水平滚动条美化 */
.arrival-records-container .table-container::-webkit-scrollbar {
    height: 8px;
}

.arrival-records-container .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* 滚动提示 */
.arrival-records-container .table-container {
    position: relative;
}

.arrival-records-container .table-container::after {
    content: '← 左右滑动查看更多 →';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arrival-records-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    #arrival-input-table {
        font-size: 0.75rem;
    }
    
    #arrival-input-table input {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
        min-width: 60px;
    }
}

/* 图表区域 */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



/* 筛选区域 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

/* 表单样式 */
.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-control:readonly {
    background-color: #e9ecef;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 库存概况 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inventory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.inventory-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.inventory-value {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.inventory-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.inventory-status.warning {
    color: #856404;
    background: #fff3cd;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #ffeaa7;
    font-size: 0.875rem;
}

.inventory-status.danger {
    color: #721c24;
    background: #f8d7da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #f5c6cb;
    font-size: 0.875rem;
}

/* 表单区域 */
.form-section {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1;
    margin-right: 0;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 规格库存网格 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
}

.spec-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.spec-quantity {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 汇总信息 */
.summary-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.summary-item {
    text-align: center;
}

.summary-item label {
    display: block;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.summary-item span {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.report-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-panel h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* 设置页面 */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 应用容器 */
.app-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

/* 桌面端显示传统导航 */
.desktop-nav {
    display: block !important;
}

.nav-menu:not(.desktop-nav) {
    display: none !important;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.nav-item.active {
    background-color: #28a745 !important;
    color: white !important;
    border-right: 3px solid #20c997;
}

.nav-item.active i {
    color: white !important;
}

.nav-item.active span {
    color: white !important;
}

.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-group-header:hover {
    background-color: #f8f9fa;
}

.nav-group-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-group.open .nav-group-header i:last-child {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.nav-group.open .nav-submenu {
    max-height: 200px;
}

.nav-submenu .nav-item {
    padding-left: 3rem;
    font-size: 0.9rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 页面内容 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #0077b6);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 双单位统计卡片样式 */
.stat-card.dual-unit {
    min-height: 140px;
}

.dual-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    flex: 1;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .dual-stats {
        gap: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
}

/* 到岸记录多行输入样式 */
.arrival-settings {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.arrival-records-container {
    margin-bottom: 1rem;
}

.arrival-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arrival-records-header h3 {
    margin: 0;
    color: #2c3e50;
}

#arrival-input-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#arrival-input-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    border-left: none;
    border-right: 1px solid #e9ecef;
}

#arrival-input-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

#arrival-input-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#arrival-input-table tbody tr:hover {
    background: #e7f3ff;
}

#arrival-input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#arrival-input-table input {
    border: 2px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 80px;
    transition: all 0.3s ease;
    background: white;
}

#arrival-input-table input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #fff;
}

#arrival-input-table input:read-only {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
    color: #6c757d;
}

#arrival-input-table input:invalid {
    border-color: #dc3545;
}

#arrival-input-table input:valid:not(:read-only) {
    border-color: #28a745;
}

.arrival-row-actions {
    display: flex;
    gap: 0.25rem;
}

.arrival-row-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 添加按钮样式优化 */
.arrival-records-header .btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.arrival-records-header .btn:hover {
    background: #20c997;
    border-color: #20c997;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 转换比例设置美化 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: #6c757d;
    font-size: 0.875rem;
}

.conversion-setting input {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.conversion-setting input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.15);
}

/* 表格容器样式 */
.arrival-records-container .table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

/* 到岸记录表格特殊布局 */
#arrival-input-table {
    min-width: 1200px;
    table-layout: fixed;
}

#arrival-input-table th:nth-child(1) { width: 120px; } /* 到岸日期 */
#arrival-input-table th:nth-child(2) { width: 120px; } /* 车牌号 */
#arrival-input-table th:nth-child(3) { width: 140px; } /* 菜品种类 */
#arrival-input-table th:nth-child(4) { width: 100px; } /* 换算比例 */
#arrival-input-table th:nth-child(5) { width: 100px; } /* 皮重 */
#arrival-input-table th:nth-child(6) { width: 100px; } /* 毛重 */
#arrival-input-table th:nth-child(7) { width: 100px; } /* 净重 */
#arrival-input-table th:nth-child(8) { width: 80px; }  /* 筐数 */
#arrival-input-table th:nth-child(9) { width: 100px; } /* 颗数 */
#arrival-input-table th:nth-child(10) { width: 100px; } /* 运费 */
#arrival-input-table th:nth-child(11) { width: 80px; }  /* 操作 */

/* 菜品选择下拉框样式 */
#arrival-input-table .spec-type {
    width: 100%;
    min-width: 130px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* 换算比例容器样式 */
#arrival-input-table .conversion-ratio-container {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

#arrival-input-table .conversion-ratio {
    width: 50px;
    text-align: center;
    padding: 0.375rem 0.25rem;
    font-size: 0.875rem;
}

#arrival-input-table .ratio-unit {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 删除按钮样式 */
#arrival-input-table .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

#arrival-input-table .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .conversion-setting {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content.extra-large {
        width: 95vw;
        max-width: 95vw;
    }
    
    #arrival-input-table {
        min-width: 800px;
    }
}

/* 水平滚动条美化 */
.arrival-records-container .table-container::-webkit-scrollbar {
    height: 8px;
}

.arrival-records-container .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* 滚动提示 */
.arrival-records-container .table-container {
    position: relative;
}

.arrival-records-container .table-container::after {
    content: '← 左右滑动查看更多 →';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arrival-records-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    #arrival-input-table {
        font-size: 0.75rem;
    }
    
    #arrival-input-table input {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
        min-width: 60px;
    }
}

/* 图表区域 */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



/* 筛选区域 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

/* 表单样式 */
.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-control:readonly {
    background-color: #e9ecef;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 库存概况 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inventory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.inventory-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.inventory-value {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.inventory-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.inventory-status.warning {
    color: #856404;
    background: #fff3cd;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #ffeaa7;
    font-size: 0.875rem;
}

.inventory-status.danger {
    color: #721c24;
    background: #f8d7da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #f5c6cb;
    font-size: 0.875rem;
}

/* 表单区域 */
.form-section {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1;
    margin-right: 0;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 规格库存网格 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
}

.spec-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.spec-quantity {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 汇总信息 */
.summary-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.summary-item {
    text-align: center;
}

.summary-item label {
    display: block;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.summary-item span {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.report-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-panel h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* 设置页面 */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 应用容器 */
.app-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

/* 桌面端显示传统导航 */
.desktop-nav {
    display: block !important;
}

.nav-menu:not(.desktop-nav) {
    display: none !important;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.nav-item.active {
    background-color: #28a745 !important;
    color: white !important;
    border-right: 3px solid #20c997;
}

.nav-item.active i {
    color: white !important;
}

.nav-item.active span {
    color: white !important;
}

.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-group-header:hover {
    background-color: #f8f9fa;
}

.nav-group-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-group.open .nav-group-header i:last-child {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.nav-group.open .nav-submenu {
    max-height: 200px;
}

.nav-submenu .nav-item {
    padding-left: 3rem;
    font-size: 0.9rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 页面内容 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #0077b6);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 双单位统计卡片样式 */
.stat-card.dual-unit {
    min-height: 140px;
}

.dual-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    flex: 1;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .dual-stats {
        gap: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
}

/* 到岸记录多行输入样式 */
.arrival-settings {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.arrival-records-container {
    margin-bottom: 1rem;
}

.arrival-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arrival-records-header h3 {
    margin: 0;
    color: #2c3e50;
}

#arrival-input-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#arrival-input-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    border-left: none;
    border-right: 1px solid #e9ecef;
}

#arrival-input-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

#arrival-input-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#arrival-input-table tbody tr:hover {
    background: #e7f3ff;
}

#arrival-input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#arrival-input-table input {
    border: 2px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 80px;
    transition: all 0.3s ease;
    background: white;
}

#arrival-input-table input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #fff;
}

#arrival-input-table input:read-only {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
    color: #6c757d;
}

#arrival-input-table input:invalid {
    border-color: #dc3545;
}

#arrival-input-table input:valid:not(:read-only) {
    border-color: #28a745;
}

.arrival-row-actions {
    display: flex;
    gap: 0.25rem;
}

.arrival-row-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 添加按钮样式优化 */
.arrival-records-header .btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.arrival-records-header .btn:hover {
    background: #20c997;
    border-color: #20c997;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 转换比例设置美化 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: #6c757d;
    font-size: 0.875rem;
}

.conversion-setting input {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.conversion-setting input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.15);
}

/* 表格容器样式 */
.arrival-records-container .table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

/* 到岸记录表格特殊布局 */
#arrival-input-table {
    min-width: 1200px;
    table-layout: fixed;
}

#arrival-input-table th:nth-child(1) { width: 120px; } /* 到岸日期 */
#arrival-input-table th:nth-child(2) { width: 120px; } /* 车牌号 */
#arrival-input-table th:nth-child(3) { width: 140px; } /* 菜品种类 */
#arrival-input-table th:nth-child(4) { width: 100px; } /* 换算比例 */
#arrival-input-table th:nth-child(5) { width: 100px; } /* 皮重 */
#arrival-input-table th:nth-child(6) { width: 100px; } /* 毛重 */
#arrival-input-table th:nth-child(7) { width: 100px; } /* 净重 */
#arrival-input-table th:nth-child(8) { width: 80px; }  /* 筐数 */
#arrival-input-table th:nth-child(9) { width: 100px; } /* 颗数 */
#arrival-input-table th:nth-child(10) { width: 100px; } /* 运费 */
#arrival-input-table th:nth-child(11) { width: 80px; }  /* 操作 */

/* 菜品选择下拉框样式 */
#arrival-input-table .spec-type {
    width: 100%;
    min-width: 130px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* 换算比例容器样式 */
#arrival-input-table .conversion-ratio-container {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

#arrival-input-table .conversion-ratio {
    width: 50px;
    text-align: center;
    padding: 0.375rem 0.25rem;
    font-size: 0.875rem;
}

#arrival-input-table .ratio-unit {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 删除按钮样式 */
#arrival-input-table .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

#arrival-input-table .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .conversion-setting {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content.extra-large {
        width: 95vw;
        max-width: 95vw;
    }
    
    #arrival-input-table {
        min-width: 800px;
    }
}

/* 水平滚动条美化 */
.arrival-records-container .table-container::-webkit-scrollbar {
    height: 8px;
}

.arrival-records-container .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.arrival-records-container .table-container::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* 滚动提示 */
.arrival-records-container .table-container {
    position: relative;
}

.arrival-records-container .table-container::after {
    content: '← 左右滑动查看更多 →';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arrival-records-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    #arrival-input-table {
        font-size: 0.75rem;
    }
    
    #arrival-input-table input {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
        min-width: 60px;
    }
}

/* 图表区域 */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



/* 筛选区域 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

/* 表单样式 */
.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-control:readonly {
    background-color: #e9ecef;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 库存概况 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inventory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.inventory-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.inventory-value {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.inventory-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.inventory-status.warning {
    color: #856404;
    background: #fff3cd;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #ffeaa7;
    font-size: 0.875rem;
}

.inventory-status.danger {
    color: #721c24;
    background: #f8d7da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #f5c6cb;
    font-size: 0.875rem;
}

/* 表单区域 */
.form-section {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1;
    margin-right: 0;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 规格库存网格 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
}

.spec-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.spec-quantity {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 汇总信息 */
.summary-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.summary-item {
    text-align: center;
}

.summary-item label {
    display: block;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.summary-item span {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.report-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-panel h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* 设置页面 */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversion-setting input {
    width: 80px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 95vw;
    width: 1200px;
}

/* 到岸记录专用大模态框 */
.modal-content.extra-large {
    max-width: 98vw;
    width: 1400px;
    max-height: 95vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.25rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #e9ecef;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
::-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;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table-actions .btn i {
    font-size: 10px;
    margin-right: 2px;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 表单验证 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* 成功消息 */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 打印样式 */
@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .filter-section,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .page-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}

/* 工资统计卡片样式 */
.salary-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.salary-card.total-workers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-card.total-quantity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-card.total-salary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-card.avg-salary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.salary-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.salary-card-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-card-content p {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.salary-card-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 300;
}

/* 工人详细记录样式 */
.worker-detail-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.detail-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

/* 库存管理页面美化样式 */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.inventory-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.inventory-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.inventory-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.inventory-status {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
}

/* 规格库存卡片美化 */
.spec-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.spec-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.spec-quantity {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.spec-unit {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式设计已移除 */

/* 人工计件统计卡片样式已移除，现在使用通用的inventory-summary样式 */

/* 统计报表页面样式 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-center {
    text-align: center;
}

/* 报表表格样式优化 */
.report-content .table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.report-content .table-container h4 {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-content .data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.report-content .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.report-content .data-table tr:hover {
    background-color: #f8f9fa;
}

.report-content .data-table tr:last-child td {
    border-bottom: none;
}
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filters label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 报表总览卡片 */
.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.overview-card.inventory-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.overview-card.inventory-overview:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.overview-card.processing-overview {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.overview-card.processing-overview:hover {
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.overview-card.salary-overview {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.3);
}

.overview-card.salary-overview:hover {
    box-shadow: 0 12px 40px rgba(67, 233, 123, 0.4);
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.overview-content {
    position: relative;
    z-index: 1;
}

.overview-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.overview-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.overview-trend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.trend-value {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 报表标签页 */
.report-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 报表内容区域 */
.report-content {
    position: relative;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* 报表网格布局 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 库存预警 */
.inventory-alerts {
    margin-top: 24px;
}

.inventory-alerts h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-item.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-item.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 效率指标 */
.efficiency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.metric-card h5 {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 工资排行榜 */
.salary-ranking {
    margin-top: 24px;
}

.salary-ranking h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
}

.ranking-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.ranking-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-position.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
}

.ranking-position.other {
    background: #6c757d;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ranking-details {
    font-size: 14px;
    color: #666;
}

.ranking-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .report-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tab-button i {
        display: none;
    }
    
    /* 移动端报表卡片优化 */
    .overview-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .overview-content p {
        font-size: 0.9rem;
    }
}

/* 针对480px以下设备的额外报表优化 */
@media (max-width: 480px) {
    /* 报表筛选器进一步优化 */
    .report-filters {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .report-filters .filter-group {
        margin-bottom: 8px;
    }
    
    .report-filters .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .report-filters .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* 报表总览卡片竖屏优化 */
    .report-overview {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .overview-card {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px auto;
    }
    
    .overview-content h3 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .overview-content p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .overview-subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .overview-trend {
        margin-top: 8px;
    }
    
    .trend-value {
        font-size: 0.8rem;
    }
    
    /* 报表网格布局优化 */
    .report-grid {
        gap: 10px;
    }
    
    .chart-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .chart-card h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    /* 报表部分头部优化 */
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    /* 库存预警列表优化 */
    .inventory-alerts {
        margin-top: 15px;
    }
    
    .inventory-alerts h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* 工资排行榜竖屏优化 */
    .salary-ranking {
        margin-top: 15px;
    }
    
    .salary-ranking h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.settings-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.settings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.setting-card.full-height {
    height: 100%;
}

.settings-right .setting-card {
    flex: 1;
    min-height: 0;
}

.setting-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.setting-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.setting-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.setting-icon i {
    font-size: 20px;
    color: white;
}

.setting-title {
    flex: 1;
    position: relative;
    z-index: 1;
}

.setting-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-title p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.setting-actions {
    position: relative;
    z-index: 1;
}

.setting-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 系统配置特殊样式 */
.setting-card.system-config .setting-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.setting-card.spec-management .setting-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setting-card.worker-management .setting-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 换算设置样式 */
.conversion-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.conversion-setting span {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.conversion-setting .form-control {
    width: 80px;
    text-align: center;
}

.conversion-setting .btn {
    white-space: nowrap;
}

/* 表格容器优化 */
.setting-content .table-container {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.setting-content .data-table {
    margin: 0;
    border-radius: 0;
}

.setting-content .data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.setting-content .data-table td {
    vertical-align: middle;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 4px;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* 表单增强样式 */
.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.required {
    color: #dc3545;
    margin-left: 2px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .settings-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .settings-left {
        flex: none;
        order: 2;
    }
    
    .settings-right {
        flex: none;
        order: 1;
    }
    
    .setting-card.full-height {
        height: auto;
    }
}

@media (max-width: 767px) {
    .settings-container {
        gap: 16px;
    }
    
    .setting-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .setting-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .setting-content {
        padding: 16px;
    }
    
    .conversion-setting {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .conversion-setting .form-control {
        width: 120px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .data-actions {
        justify-content: center;
    }
    
    .config-control {
        margin-left: 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .settings-right .data-table thead {
        width: 100%;
    }
}

/* 配置区域样式 */
.config-section {
    margin-bottom: 32px;
}

.config-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.config-item:hover {
    background: #f1f3f4;
    border-color: #dee2e6;
}

.config-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #495057;
}

.config-label i {
    margin-right: 8px;
    color: #6c757d;
    width: 16px;
}

.config-control {
    margin-left: 24px;
}

.data-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 系统信息样式 */
.system-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.system-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.system-info h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.system-info h4 i {
    margin-right: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
}

.status-online {
    color: #28a745;
}

.status-online i {
    font-size: 8px;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 表格容器增强 */
.settings-right .table-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.settings-right .data-table {
    flex: 1;
    min-height: 0;
}

.settings-right .data-table tbody {
    display: block;
    overflow-y: auto;
    flex: 1;
}

.settings-right .data-table thead,
.settings-right .data-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.settings-right .data-table thead {
    width: calc(100% - 17px); /* 滚动条宽度 */
} 

/* 新的系统设置页面样式 */
.page-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.setting-card-new {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.setting-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.setting-card-new.primary {
    border-top: 4px solid #007bff;
}

.setting-card-new.success {
    border-top: 4px solid #28a745;
}

.setting-card-new.info {
    border-top: 4px solid #17a2b8;
}

.setting-card-new.warning {
    border-top: 4px solid #ffc107;
}

.setting-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.setting-card-new.success .setting-card-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.setting-card-new.info .setting-card-icon {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.setting-card-new.warning .setting-card-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.setting-card-title h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.setting-card-title p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 4px;
}

.setting-card-body {
    padding: 25px;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.setting-item-label i {
    color: #007bff;
    font-size: 1.1rem;
}

.setting-item-label span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.setting-item-label small {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: auto;
}

.setting-item-control {
    width: 100%;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group .form-control {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.input-group .btn {
    border: none;
    border-radius: 0;
    padding: 10px 15px;
}

.data-management-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.data-management-actions .btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.data-management-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.data-management-actions .btn i {
    font-size: 1.2rem;
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-content small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.system-info-grid .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.system-info-grid .info-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.system-info-grid .info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.system-info-grid .info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.system-info-grid .info-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.system-info-grid .info-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.system-info-grid .status-online {
    color: #28a745 !important;
}

.system-info-grid .status-indicator.online {
    color: #28a745;
    animation: pulse 2s infinite;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: #fff;
    border-color: #ffc107;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.quick-action-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.quick-action-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 新系统设置页面响应式设计 */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .setting-card-header {
        padding: 15px;
    }
    
    .setting-card-body {
        padding: 20px;
    }
    
    .data-management-actions {
        grid-template-columns: 1fr;
    }
    
    .system-info-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .setting-card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* 用户管理页面样式 */
.user-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.user-stats-cards .stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-stats-cards .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.admin-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.user-icon {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.active-icon {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
}

.total-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
}

/* 权限管理样式 */
.permission-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.permission-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.permission-info {
    margin-top: 15px;
}

.role-description {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.role-admin {
    border-left: 4px solid #e74c3c;
}

.role-user {
    border-left: 4px solid #3498db;
}

.permission-list {
    margin-top: 10px;
    padding-left: 0;
    list-style: none;
}

.permission-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.permission-list li i {
    width: 16px;
    color: #28a745;
}

.permission-list li.denied i {
    color: #dc3545;
}

/* 导航栏用户信息样式 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.user-welcome {
    opacity: 0.8;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: normal;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.user-actions .btn {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-actions .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 权限控制样式 */
.admin-only {
    position: relative;
}

.hidden-for-user {
    display: none !important;
}

.nav-item.admin-only.hidden-for-user {
    display: none !important;
}

/* 角色标签样式 */
.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: #ffe6e6;
    color: #e74c3c;
    border: 1px solid #f8d7da;
}

.role-badge.user {
    background: #e6f3ff;
    color: #3498db;
    border: 1px solid #b3d9ff;
}

/* 用户状态样式 */
.user-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

.status-dot.inactive {
    background: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .navbar-user {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    
    .user-info {
        font-size: 0.8rem;
    }
    
    .user-actions {
        gap: 5px;
    }
    
    .user-actions .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

    /* 超小屏幕设备优化 (手机竖屏) */
@media (max-width: 480px) {
    /* 统计卡片 - 单列布局 */
    .stats-cards,
    .user-stats-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    /* 表格进一步优化 */
    .table-container {
        font-size: 0.7rem;
        border-radius: 6px;
        margin: 8px 0;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 0.7rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 120px;
    }
    
    .data-table th {
        font-size: 0.65rem;
        font-weight: 600;
        background: #f8f9fa;
    }
    
    /* 操作按钮优化 - 垂直布局更适合竖屏 */
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        min-width: 80px;
    }
    
    .action-buttons .btn {
        width: 100%;
        min-width: 0;
        font-size: 0.65rem;
        padding: 6px 8px;
        white-space: nowrap;
        border-radius: 4px;
    }
    
    /* 列表项优化 */
    .ranking-list,
    .alert-list {
        gap: 8px;
    }
    
    .ranking-item,
    .alert-item {
        padding: 10px;
        border-radius: 8px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .ranking-position {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin: 0 auto 8px auto;
    }
    
    .ranking-info {
        text-align: center;
    }
    
    .ranking-name {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .ranking-details {
        font-size: 0.75rem;
    }
    
    .ranking-amount {
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* 数据摘要网格优化 */
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .summary-item {
        padding: 10px;
        border-radius: 6px;
    }
    
    .summary-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    
    .summary-value {
        font-size: 1.2rem;
    }
    
    /* 效率指标卡片优化 */
    .efficiency-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .metric-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .metric-card h5 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    /* 筛选区域紧凑布局 */
    .filter-section {
        padding: 10px;
    }
    
    .filter-group {
        margin-bottom: 8px;
    }
    
    /* 页面头部优化 */
    .page-header h1 {
        font-size: 1.1rem;
    }
    
    .page-actions {
        gap: 5px;
    }
    
    .page-actions .btn {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
        /* 导航项文字进一步简化 */
    .nav-item span {
        font-size: 0.55rem;
        font-weight: 500;
        line-height: 1.2;
        margin-top: 2px;
    }

    /* 移动端导航选中状态加强 */
    .nav-item.active {
        background-color: #28a745 !important;
        color: white !important;
        border-radius: 8px !important;
        border-right: none !important;
    }

    .nav-item.active i {
        color: white !important;
    }

    .nav-item.active span {
        color: white !important;
    }
    
    /* 导航指示器优化 */
    .nav-indicator {
        height: 20px;
        padding: 2px 0;
        justify-content: center;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .nav-dot.active {
        background: #28a745 !important;
    }
    
    /* 导航页面布局优化 */
    .nav-pages {
        height: 40px;
    }
    
    .nav-page {
        height: 40px;
        padding: 2px 2px 0 2px;
    }
    
    /* 表单元素优化 */
    .form-control {
        padding: 8px;
        font-size: 16px;
    }
    
    /* 模态框优化 */
    .modal-content {
        width: 98%;
        margin: 5px;
        padding: 0;
    }
    
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 10px 15px;
        gap: 8px;
    }
    
    /* 权限管理优化 */
    .permission-section {
        padding: 12px;
    }
    
    .permission-list li {
        font-size: 0.8rem;
        padding: 3px 0;
    }
    
    /* 图表卡片优化 */
    .chart-card {
        padding: 12px;
    }
    
    .chart-card h3 {
        font-size: 1rem;
    }
    
    /* 底部导航进一步优化 */
    .sidebar {
        height: 60px;
    }
    
    .main-content {
        margin-bottom: 60px;
        padding: 8px;
    }
    
    .nav-item {
        min-width: 50px;
        padding: 4px 1px;
    }
    
    .nav-item i {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    /* 分页控件优化 */
    .pagination button {
        min-width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    /* 顶部导航栏压缩 */
    .navbar {
        padding: 5px 10px;
        min-height: 45px;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .user-actions .btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    /* 用户信息压缩 */
    .user-info {
        font-size: 0.7rem;
    }
    
    .user-welcome {
        display: none;
    }
    
    /* 通用列表优化 */
    ul, ol {
        padding-left: 15px;
    }
    
    li {
        margin-bottom: 3px;
        line-height: 1.3;
    }
    
    /* 卡片列表布局优化 */
    .card-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .card-list .card-item {
        padding: 10px;
        background: white;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    /* 设置项列表优化 */
    .setting-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .setting-list li {
        padding: 8px 12px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
    }
    
    .setting-list li:last-child {
        border-bottom: none;
    }
    
    /* 菜单列表优化 */
    .menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .menu-list .menu-item {
        padding: 10px 12px;
        border-radius: 6px;
        margin-bottom: 4px;
        background: #f8f9fa;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .menu-list .menu-item:hover {
        background: #e9ecef;
    }
    
    .menu-list .menu-item.active {
        background: #667eea;
        color: white;
    }
    
    /* 简化版数据表格 */
    .simple-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.75rem;
    }
    
    .simple-table th,
    .simple-table td {
        padding: 6px 8px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }
    
    .simple-table th {
        background: #f8f9fa;
        font-weight: 600;
        font-size: 0.7rem;
    }
    
    /* 响应式图片和媒体 */
    img, video {
        max-width: 100%;
        height: auto;
    }
    
    /* 文本截断优化 */
    .text-truncate {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .text-truncate-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
        max-height: 2.6em;
    }
}

/* ==================== 登录页面样式 ==================== */

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    box-sizing: border-box;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="80" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.login-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.login-form-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-height: 750px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.login-logo i {
    font-size: 2.5rem;
    color: white;
}

.login-header h1 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.login-form {
    margin-bottom: 20px;
    margin-top: 100px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    z-index: 1;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #4CAF50;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-container:hover .checkmark {
    border-color: #4CAF50;
}

.checkbox-container input:checked ~ .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.demo-accounts h4 {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.demo-account:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.demo-account i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.demo-account i.fa-user-shield {
    color: #e74c3c;
}

.demo-account i.fa-user {
    color: #3498db;
}

.demo-account div {
    flex: 1;
}

.demo-account strong {
    display: block;
    color: #333;
    font-size: 0.9rem;
}

.demo-account small {
    color: #666;
    font-size: 0.8rem;
}

.login-footer-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.login-footer-info p {
    margin: 0;
}

/* 主应用容器控制 */
.main-app-container {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-app-container.show {
    opacity: 1;
}

/* 登录消息样式 */
.login-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.login-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.login-message i {
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 登录动画 */
@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: loginSlideIn 0.6s ease-out;
}

/* 登录页面移动端优化 */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .login-form-container {
        padding: 25px 20px;
        margin: 10px;
        max-width: 380px;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
    
    .login-logo i {
        font-size: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .login-header p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .login-form .form-group {
        margin-bottom: 16px;
    }
    
    .login-form .form-control {
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 8px;
        border: 1px solid #ddd;
        transition: all 0.3s ease;
    }
    
    .login-form .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    }
    
    .password-toggle {
        right: 15px;
        font-size: 1.1rem;
        color: #6c757d;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 1rem;
        border-radius: 8px;
        margin-top: 10px;
        width: 100%;
        font-weight: 600;
    }
    
    .remember-me {
        margin: 15px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .checkbox-container {
        font-size: 0.9rem;
    }
    
    .demo-account-list {
        gap: 8px;
        margin-top: 15px;
    }
    
    .demo-account {
        padding: 12px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
    }
    
    .demo-account:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .demo-account i {
        font-size: 1.2rem;
        width: 20px;
        text-align: center;
    }
    
    .demo-account div {
        flex: 1;
        text-align: left;
    }
    
    .demo-account strong {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 2px;
    }
    
    .demo-account small {
        font-size: 0.75rem;
        color: #666;
    }
    
    .login-footer-info {
        position: static;
        transform: none;
        margin-top: 20px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 20px 15px;
        margin: 5px;
        max-width: 95%;
        border-radius: 10px;
    }
    
    .login-header h1 {
        font-size: 1.3rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .login-form .form-control {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .btn-login {
        font-size: 1rem;
        padding: 14px;
        font-weight: 600;
    }
    
    .demo-account {
        padding: 10px;
    }
    
    .demo-account i {
        font-size: 1.1rem;
        width: 18px;
    }
    
    .demo-account strong {
        font-size: 0.85rem;
    }
    
    .demo-account small {
        font-size: 0.7rem;
    }
    
    .login-footer-info {
        font-size: 0.75rem;
        margin-top: 15px;
    }
    
    .demo-accounts h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
}

/* 更小的按钮样式 */
.btn-xs {
    padding: 4px 8px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    border-radius: 3px !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.data-table .btn-xs + .btn-xs {
    margin-left: 4px;
}

/* 加工记录相关样式 - 完全复制到岸记录样式 */
.processing-settings {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.processing-records-container {
    margin-top: 1rem;
}

.processing-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.processing-records-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

#processing-input-table {
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
}

/* 完全复制到岸记录的表头样式 */
#processing-input-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    border-left: none;
    border-right: 1px solid #e9ecef;
}

#processing-input-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

#processing-input-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#processing-input-table tbody tr:hover {
    background: #e7f3ff;
}

#processing-input-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

#processing-input-table input,
#processing-input-table select {
    border: 2px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 80px;
    transition: all 0.3s ease;
    background: white;
}

#processing-input-table input:focus,
#processing-input-table select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #fff;
}

#processing-input-table input:read-only {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
    color: #6c757d;
}

#processing-input-table input:invalid {
    border-color: #dc3545;
}

#processing-input-table input:valid:not(:read-only) {
    border-color: #28a745;
}

.processing-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.processing-summary .summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.processing-summary .summary-item label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.processing-summary .summary-item span {
    font-weight: 700;
    color: #28a745;
    font-size: 1.125rem;
}

/* 表格容器样式 - 复制到岸记录 */
.processing-records-container .table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

/* 加工记录表格特殊布局 */
#processing-input-table {
    min-width: 1200px;
    table-layout: fixed;
}

/* 列宽设置 */
#processing-input-table th:nth-child(1) { width: 120px; } /* 加工日期 */
#processing-input-table th:nth-child(2) { width: 120px; } /* 工人姓名 */
#processing-input-table th:nth-child(3) { width: 120px; } /* 菜品选择 */
#processing-input-table th:nth-child(4) { width: 80px; }  /* 筐数 */
#processing-input-table th:nth-child(5) { width: 80px; }  /* 颗数 */
#processing-input-table th:nth-child(6) { width: 100px; } /* 总计 */
#processing-input-table th:nth-child(7) { width: 100px; } /* 计件单价 */
#processing-input-table th:nth-child(8) { width: 100px; } /* 工资 */
#processing-input-table th:nth-child(9) { width: 80px; }  /* 操作 */

/* 水平滚动条美化 - 复制到岸记录 */
.processing-records-container .table-container::-webkit-scrollbar {
    height: 8px;
}

.processing-records-container .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.processing-records-container .table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.processing-records-container .table-container::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* 滚动提示 */
.processing-records-container .table-container {
    position: relative;
}

.processing-records-container .table-container::after {
    content: "→ 可横向滚动查看更多内容";
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #28a745;
    pointer-events: none;
}

/* 复制到岸记录的按钮样式 */
.processing-row-actions {
    display: flex;
    gap: 0.25rem;
}

.processing-row-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 添加按钮样式优化 - 复制到岸记录 */
.processing-records-header .btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.processing-records-header .btn:hover {
    background: #20c997;
    border-color: #20c997;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* 删除按钮样式 - 复制到岸记录 */
#processing-input-table .btn-danger {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

#processing-input-table .btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: none;
}

/* 响应式设计 - 复制到岸记录 */
@media (max-width: 768px) {
    .processing-settings {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content.extra-large {
        width: 95vw;
        max-width: 95vw;
    }
    
    .processing-records-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #processing-input-table {
        min-width: 800px;
    }
    
    #processing-input-table input,
    #processing-input-table select {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* 装车出库页面样式 */
.loading-records-container {
    margin-bottom: 2rem;
}

.loading-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.loading-records-header h3 {
    margin: 0;
    color: #2c3e50;
}

#loading-input-table {
    width: 100%;
    border-collapse: collapse;
}

#loading-input-table th,
#loading-input-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

#loading-input-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

#loading-input-table input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

#loading-input-table input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#loading-input-table .total-pieces {
    background-color: #f8f9fa;
    font-weight: 600;
}



/* 装车出库页面表格样式 - 自适应宽度 */
#truck-loading .data-table {
    table-layout: auto;
    width: 100%;
}

#truck-loading .data-table th,
#truck-loading .data-table td {
    padding: 10px 8px;
    vertical-align: middle;
    text-align: center;
}

#truck-loading .data-table th:first-child,
#truck-loading .data-table td:first-child {
    text-align: left;
}

#truck-loading .quantity-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#truck-loading .quantity-number {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    line-height: 1.2;
}

#truck-loading .quantity-unit {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

#truck-loading .table-actions {
    text-align: center;
    white-space: nowrap;
}

#truck-loading .table-actions .btn {
    margin: 0 2px;
    font-size: 12px;
    padding: 4px 8px;
}

/* 净菜库存管理页面样式 */
.inventory-summary-section {
    margin-top: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.inventory-summary-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.inventory-summary-section .section-header h3 {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inventory-summary-section .section-header h3 i {
    color: #28a745;
    font-size: 1.1rem;
}

.summary-info .summary-note {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.summary-info .summary-note i {
    color: #17a2b8;
}

/* 净菜库存管理表格样式 - 简洁版 */
#processed-inventory .data-table {
    table-layout: auto;
    width: 100%;
}

#processed-inventory .data-table th,
#processed-inventory .data-table td {
    padding: 10px 8px;
    vertical-align: middle;
    text-align: center;
}

#processed-inventory .data-table th:first-child,
#processed-inventory .data-table td:first-child {
    text-align: left;
}

/* 无数据提示样式 */
.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
}

.no-data i {
    margin-right: 0.5rem;
    color: #17a2b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .inventory-summary-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .inventory-summary-section .section-header h3 {
        font-size: 1.1rem;
    }
    
    .summary-info .summary-note {
        font-size: 0.8rem;
    }
    
    .inventory-summary-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .inventory-cell,
    .total-cell {
        padding: 0.75rem 0.5rem;
    }
}

/* 紧凑统计信息样式 */
.compact-summary {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.compact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.compact-item:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
}

.compact-item i {
    color: #28a745;
    font-size: 0.9rem;
}

.compact-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.compact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    min-width: 60px;
    text-align: right;
}

/* 工人信息区域header调整 */
.worker-info-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.worker-info-section .section-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.worker-info-section .section-header h3 i {
    color: #007bff;
    font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .compact-summary {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .compact-item {
        justify-content: space-between;
        padding: 0.4rem 0.8rem;
    }
    
    .compact-label {
        font-size: 0.8rem;
    }
    
    .compact-value {
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    .worker-info-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* 装车记录表格专用样式 */



/* 信息区域容器统一样式 */
.info-section-container {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-section-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.info-section-container .section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.info-section-container .section-header h3 i {
    margin-right: 8px;
    color: #3498db;
}

/* 车辆信息表单网格布局 */
.vehicle-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: end;
}

@media (min-width: 1400px) {
    .vehicle-form-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vehicle-form-grid .form-group {
    margin-bottom: 0;
}

.vehicle-form-grid .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.vehicle-form-grid .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.vehicle-form-grid .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* 换算比例控件样式 */
.conversion-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.conversion-control label {
    margin: 0;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.ratio-input {
    width: 60px !important;
    padding: 6px 8px !important;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.ratio-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .vehicle-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vehicle-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-section-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .info-section-container .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .conversion-control {
        order: -1;
        align-self: stretch;
    }
}

/* 标题组合样式 */
.section-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title-group h3 {
    margin: 0;
}

.section-title-group .conversion-control {
    margin: 0;
}

/* 净菜加工入库管理页面增强样式 */

/* 统计信息卡片样式 */
.processing-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.processing-stats-cards .stat-card {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 20px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.processing-stats-cards .stat-card:hover {
    transform: translateY(-2px);
}

.processing-stats-cards .stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
    z-index: 1;
}

.processing-stats-cards .stat-content {
    z-index: 1;
}

.processing-stats-cards .stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.processing-stats-cards .stat-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}



.worker-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.worker-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.quantity-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quantity-number {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    line-height: 1.2;
}

.quantity-unit {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.salary-display {
    text-align: center;
}

.salary-amount {
    font-size: 14px;
    font-weight: 600;
    color: #dc3545;
}





.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.table-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.empty-state-content {
    padding: 2rem;
    text-align: center;
}

.empty-state-content h3 {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.empty-state-content p {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1200px) {
    .processing-stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
    .processing-stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }
    
    .processing-stats-cards .stat-card {
        padding: 15px;
        gap: 10px;
    }
    
    .processing-stats-cards .stat-icon {
        font-size: 2rem;
    }
    
    .processing-stats-cards .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .processing-stats-cards .stat-content p {
        font-size: 0.8rem;
    }
    
    #processing .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #processing .data-table {
        min-width: 600px;
    }
    
    #processing .data-table th,
    #processing .data-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .quantity-number {
        font-size: 14px;
    }
    
    .table-actions .btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* 净菜加工页面表格样式 - 自适应宽度 */
#processing .data-table {
    table-layout: auto;
    width: 100%;
}

#processing .data-table th,
#processing .data-table td {
    padding: 10px 8px;
    vertical-align: middle;
    text-align: center;
}

#processing .data-table th:first-child,
#processing .data-table td:first-child {
    text-align: left;
}

#processing .data-table th:last-child,
#processing .data-table td:last-child {
    text-align: center;
}

/* 装车详情模态框美化样式 */
#loading-detail-modal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

#loading-detail-modal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
}

#loading-detail-modal .modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #20c997, #17a2b8, #20c997);
}

#loading-detail-modal .modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#loading-detail-modal .modal-header h2::before {
    content: '\f0d1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

#loading-detail-modal .close {
    color: white;
    opacity: 0.9;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#loading-detail-modal .close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 基本信息区域美化 */
.detail-info-section {
    padding: 0;
    margin-bottom: 1.5rem;
}

.detail-info-section .detail-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 2rem;
    border-bottom: 1px solid #dee2e6;
    margin: 0 -2rem 1.5rem -2rem;
}

.detail-info-section .detail-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-info-section .detail-header h3::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #28a745;
    font-size: 1rem;
}

/* 信息网格布局优化 */
.detail-info-section .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
}

.detail-info-section .info-item {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #e3e6f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-info-section .info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.detail-info-section .info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #28a745;
}

.detail-info-section .info-item label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-info-section .info-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* 菜品明细区域美化 */
.detail-products-section {
    padding: 0;
}

.detail-products-section .detail-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 2rem;
    border-bottom: 1px solid #dee2e6;
    margin: 0 -2rem 1.5rem -2rem;
}

.detail-products-section .detail-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-products-section .detail-header h3::before {
    content: '\f0ca';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #17a2b8;
    font-size: 1rem;
}

/* 明细表格美化 */
.detail-products-section .table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e3e6f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.detail-products-section .data-table {
    margin: 0;
    border: none;
}

.detail-products-section .data-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-products-section .data-table tbody td {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #f1f3f4;
    vertical-align: middle;
    font-size: 0.95rem;
}

.detail-products-section .data-table tbody tr {
    transition: all 0.3s ease;
}

.detail-products-section .data-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transform: scale(1.01);
}

.detail-products-section .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* 模态框底部美化 */
#loading-detail-modal .modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: center;
}

#loading-detail-modal .modal-footer .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#loading-detail-modal .modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式优化 */
@media (max-width: 768px) {
    #loading-detail-modal .modal-content {
        margin: 1rem;
        border-radius: 12px;
    }
    
    #loading-detail-modal .modal-header,
    #loading-detail-modal .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .detail-info-section .detail-header,
    .detail-products-section .detail-header {
        margin: 0 -1.5rem 1rem -1.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .detail-info-section .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .detail-info-section .info-item {
        padding: 1rem;
    }
    
    .detail-products-section .data-table thead th,
    .detail-products-section .data-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #loading-detail-modal .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .detail-info-section .info-item span {
        font-size: 1rem;
    }
    
    .detail-products-section .data-table {
        font-size: 0.8rem;
    }
}

/* 新净菜库存管理页面样式 */

/* 库存概览统计 */
.inventory-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inventory-overview .overview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inventory-overview .overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.inventory-overview .overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.inventory-overview .overview-card:nth-child(2)::before {
    background: linear-gradient(90deg, #17a2b8, #20c997);
}

.inventory-overview .overview-card:nth-child(3)::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.inventory-overview .overview-card:nth-child(4)::before {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.inventory-overview .overview-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
}

.inventory-overview .overview-card:nth-child(2) .overview-icon {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.inventory-overview .overview-card:nth-child(3) .overview-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.inventory-overview .overview-card:nth-child(4) .overview-icon {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.inventory-overview .overview-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.inventory-overview .overview-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

/* 库存产品区域 */
.inventory-products-section {
    margin-bottom: 2rem;
}

.inventory-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.inventory-products-section .section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inventory-products-section .section-header h3 i {
    color: #28a745;
}

.view-switch {
    display: flex;
    gap: 0.5rem;
}

.view-switch .btn.active {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* 库存卡片网格 */
.inventory-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.inventory-product-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inventory-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.inventory-product-card.low-stock::before {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.inventory-product-card.medium-stock::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.inventory-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.inventory-product-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.inventory-product-card .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.inventory-product-card .stock-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.stock-status.normal {
    background: #d4edda;
    color: #155724;
}

.stock-status.low {
    background: #f8d7da;
    color: #721c24;
}

.stock-status.medium {
    background: #fff3cd;
    color: #856404;
}

.inventory-product-card .stock-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inventory-product-card .stock-item {
    text-align: center;
}

.inventory-product-card .stock-item .label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventory-product-card .stock-item .value {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.inventory-product-card .current-stock {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.inventory-product-card .current-stock .label {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.inventory-product-card .current-stock .value {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
}

.inventory-product-card .current-stock.low .value {
    color: #dc3545;
}

.inventory-product-card .current-stock.medium .value {
    color: #ffc107;
}

.inventory-product-card .card-footer {
    display: none;
}



/* 毛菜库存管理样式 - 复用净菜库存的样式 */
#raw-inventory .inventory-overview,
#raw-inventory .inventory-products-section,
#raw-inventory .inventory-cards-grid,
#raw-inventory .inventory-product-card,
#raw-inventory .section-header,
#raw-inventory .view-switch,
#raw-inventory .overview-card {
    /* 复用净菜库存管理的所有样式 */
}

/* 毛菜库存卡片特殊样式 */
#raw-inventory .inventory-product-card .stock-item.consumed .stock-quantity {
    color: #dc3545;
    font-weight: 600;
}

#raw-inventory .inventory-product-card .stock-item.primary {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

#raw-inventory .inventory-product-card .stock-item.primary .stock-quantity {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

#raw-inventory .batch-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .inventory-overview {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .inventory-products-section .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .view-switch {
        justify-content: center;
    }
    
    .inventory-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .inventory-product-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .inventory-overview {
        grid-template-columns: 1fr;
    }
    
    .inventory-overview .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .inventory-product-card .current-stock .value {
        font-size: 1.5rem;
    }
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.badge-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.badge-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.badge-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

.badge-primary {
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
}

/* 装车详情模态框现代化样式 */
.loading-detail-modern {
    max-width: 900px !important;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.loading-detail-header {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.loading-detail-header .header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loading-detail-header .header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.loading-detail-header .header-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.loading-detail-header .detail-date {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    display: block;
}

.loading-detail-header .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.loading-detail-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.loading-detail-body {
    padding: 2rem;
    background: #f8fafc;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-card.vehicle-info .card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.info-card.destination-info .card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.info-card.total-baskets .card-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.info-card.total-pieces .card-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.info-card .card-content {
    flex: 1;
}

.info-card .card-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-card .card-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.products-detail-section {
    margin-top: 1.5rem;
}

.products-detail-section h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.products-detail-section h3 i {
    color: #4f46e5;
}

.products-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.product-detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-detail-card .product-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.product-detail-card .product-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.product-detail-card .product-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.product-detail-card .product-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product-detail-card .stat-item {
    text-align: center;
}

.product-detail-card .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.product-detail-card .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.loading-detail-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.loading-detail-footer .btn-close {
    background: #64748b;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-detail-footer .btn-close:hover {
    background: #475569;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .loading-detail-modern {
        max-width: 95vw !important;
        margin: 1rem auto;
    }

    .loading-detail-header {
        padding: 1rem 1.5rem;
    }

    .loading-detail-header .header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .loading-detail-header .header-info h2 {
        font-size: 1.25rem;
    }

    .loading-detail-body {
        padding: 1.25rem;
    }

    .info-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card .card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .products-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .products-detail-section h3 {
        font-size: 1.125rem;
    }

    .loading-detail-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .info-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-card .card-value {
        font-size: 1rem;
    }

    .product-detail-card .product-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* 净菜加工详情页面样式 */
.readonly-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #475569;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.readonly-field span {
    color: #1e293b;
    font-weight: 500;
}

.product-name {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-name::before {
    content: "🥬";
    font-size: 1.2em;
}

.quantity-highlight {
    font-weight: 700;
    color: #059669 !important;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.salary-highlight {
    font-weight: 700;
    color: #dc2626 !important;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

/* 详情表格文本对齐 */
.processing-detail-table .text-center {
    text-align: center;
}

.processing-detail-table .text-right {
    text-align: right;
}

.text-muted {
    color: #64748b !important;
    font-style: italic;
}

/* 详情模态框美化 */
#processing-detail-modal .modal-content {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: none;
}

#processing-detail-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
}

#processing-detail-modal .modal-header h2 {
    margin: 0;
    font-weight: 600;
}

#processing-detail-modal .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

#processing-detail-modal .close:hover {
    opacity: 1;
    color: white;
}

/* 工人信息区域样式 */
.worker-info-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.products-info-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .readonly-field {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-height: 32px;
    }
    
    .worker-info-section,
    .products-info-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .compact-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .compact-item {
        min-width: auto;
        padding: 0.5rem;
    }
}

/* 装车详情模态框只读表单样式 */
#loading-detail-modal .form-control[readonly] {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: default;
    color: #495057;
}

#loading-detail-modal .form-control[readonly]:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

#loading-detail-modal .loading-detail-product[readonly],
#loading-detail-modal .loading-detail-baskets[readonly],
#loading-detail-modal .loading-detail-pieces[readonly] {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: default;
    text-align: center;
}

#loading-detail-modal .loading-detail-product[readonly] {
    text-align: left;
    font-weight: 500;
}

/* 确保表格样式正确 */
#loading-detail-modal .data-table {
    margin-top: 1rem;
}

#loading-detail-modal .data-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-align: center;
}

#loading-detail-modal .data-table td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

/* 超级管理员角色样式 */
.role-badge.super-admin {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-weight: 700;
}

.role-super-admin {
    border-left: 4px solid #FFD700;
}

.role-super-admin h5 {
    color: #FF8C00;
}