/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ==================== 顶部标题栏 ==================== */
.top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 16px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* 退出按钮样式 */
.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: auto;
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.logout-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8f9fa;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 92px;
    box-sizing: border-box;
}

.page {
    display: none;
    padding: 20px;
    min-height: calc(100vh - 140px);
    padding-bottom: 130px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        opacity: 1;
    }
}

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.page-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-content p {
    color: #666;
    font-size: 16px;
    text-align: center;
}

/* ==================== 生产表单样式 ==================== */
.production-form {
    padding: 20px 15px;
    background: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 可编辑标签样式 */
.form-label[onclick] {
    cursor: pointer;
    position: relative;
    border-bottom: 1px dashed #667eea;
}

.form-label[onclick]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
}

.form-label[onclick]:hover {
    color: #667eea;
    border-bottom-color: #667eea;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: #1a1a1a;
    border: double 2px transparent;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    outline: none;
    background-image: linear-gradient(#1a1a1a, #1a1a1a),
        linear-gradient(90deg, #ff6b9d, #4facfe, #13ffb7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.form-input:focus {
    background-image: linear-gradient(#1a1a1a, #1a1a1a),
        linear-gradient(90deg, #13ffb7, #ff6b9d, #4facfe);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    background: #1a1a1a;
    border: double 2px transparent;
    border-radius: 14px;
    font-size: 15px;
    color: #fff;
    outline: none;
    cursor: pointer;
    background-image: linear-gradient(#1a1a1a, #1a1a1a),
        linear-gradient(90deg, #ff6b9d, #4facfe, #13ffb7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.form-select:focus {
    background-image: linear-gradient(#1a1a1a, #1a1a1a),
        linear-gradient(90deg, #13ffb7, #ff6b9d, #4facfe);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.product-select-group {
    max-width: 400px;
    margin: 0 auto 30px auto;
}

/* ==================== 工序输入框样式 ==================== */
.process-inputs {
    margin-bottom: 30px;
}

.process-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.process-input-group {
    flex: 1;
    margin-bottom: 0;
}

.process-label {
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    font-size: 16px;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.process-label:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.process-label::after {
    content: '✎';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-label:hover::after {
    opacity: 1;
}

.process-input {
    width: 100%;
}

.task-date-inputs {
    margin-bottom: 20px;
}

.task-date-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: stretch;
}

.task-date-row .process-input-group {
    flex: 1;
}

.task-date-input {
    width: 100%;
    min-height: 50px;
    color-scheme: light;
    color: #333333;
    background: #ffffff;
    border: 1px solid rgba(64, 158, 255, 0.24);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.08);
    -webkit-text-fill-color: #333333;
}

.task-date-input::-webkit-calendar-picker-indicator {
    filter: none;
    cursor: pointer;
    opacity: 0.82;
}

.task-date-input::-webkit-datetime-edit,
.task-date-input::-webkit-datetime-edit-text,
.task-date-input::-webkit-datetime-edit-month-field,
.task-date-input::-webkit-datetime-edit-day-field,
.task-date-input::-webkit-datetime-edit-year-field {
    color: #333333;
}

.task-date-input:focus {
    background: #ffffff;
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.14);
}

@media (max-width: 768px) {
    .task-date-row {
        flex-direction: column;
        gap: 12px;
    }
}


/* ==================== 图片上传样式 ==================== */
.image-upload-group {
    margin-top: 20px;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.upload-placeholder svg {
    margin-bottom: 15px;
    color: #667eea;
}

.upload-placeholder p {
    margin: 5px 0;
}

.image-preview {
    display: none;
    margin-top: 15px;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview.has-image {
    display: block;
}

/* ==================== 上传选项弹窗样式 ==================== */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.upload-modal.active {
    display: block;
}

.upload-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.upload-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.2s ease;
}


    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
        opacity: 1;
    }
}

.upload-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.upload-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.upload-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-option-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.upload-option-btn svg {
    width: 24px;
    height: 24px;
}

.upload-modal-close {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-modal-close:hover {
    background: #e5e5e5;
}

/* ==================== 按钮样式 ==================== */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

/* 移动端按钮优化 */
.btn {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
    -webkit-user-select: none;
    user-select: none;
}

/* ==================== 底部导航栏 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.nav-item.active {
    color: #667eea;
}

.nav-item:not(.active) {
    color: #999;
}

.nav-icon {
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 600px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }

    .bottom-nav {
        max-width: 100%;
    }
}

/* 导航栏新增“原料”后共 6 项：允许等比收缩，避免最后一项被挤出屏幕 */
.bottom-nav .nav-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
}

@media (max-width: 380px) {
    .nav-text {
        font-size: 11px;
    }
}

/* ==================== 任务表单样式 ==================== */
.task-form {
    padding: 20px 15px;
    background: #ffffff;
}

.product-name-group {
    max-width: 400px;
    margin: 0 auto 20px auto;
}

/* ==================== 任务列表样式 ==================== */
.task-lists {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.task-list-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
}

.task-list-section .form-label {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 任务统计显示 */
.task-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.task-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.task-stats .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.task-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
}

.task-stats .stat-value.pending {
    color: #ffd700;
}

.task-stats .stat-value.completed {
    color: #4caf50;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateX(2px);
}

.task-item.completed {
    opacity: 0.7;
    background: #f0f0f0;
}

.task-item.completed .task-name {
    text-decoration: line-through;
    color: #999;
}

.task-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.task-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.task-item.completed .task-status {
    background: #e8f5e9;
    color: #388e3c;
}

/* ==================== 滚动条样式 ==================== */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.main-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* ==================== 任务卡片样式 ==================== */
.task-list-container {
    margin-top: 30px;
}

.task-list-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-left: 5px;
}

.task-list-content {
    min-height: 100px;
}

.task-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: visible;
    z-index: 1;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.task-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transform: rotate(15deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-status-badge.pending {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.task-status-badge.completed {
    background: linear-gradient(135deg, #42e695 0%, #3bb2b8 100%);
    color: #ffffff;
}

.task-creator {
    font-size: 14px;
    color: #000000;
    margin-bottom: 8px;
    margin-top: 8px;
    padding-left: 30px; /* 为左上角的置顶标识预留空间 */
    font-weight: 500;
}

.task-pin-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    padding: 4px 10px;
    border-radius: 0 0 10px 0;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    z-index: 5;
}

.task-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.task-product {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    flex: 1;
}

.task-product:hover {
    color: #000000;
}

.task-product::after {
    content: '✎';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-product:hover::after {
    opacity: 1;
}

.task-overdue-badge {
    color: #d32f2f;
    font-size: 13px;
    font-weight: 600;
    margin-left: 6px;
    display: inline-block;
}

.task-processes {
    margin-bottom: 15px;
}

.process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}

.process-item:last-child {
    border-bottom: none;
}

.process-name {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    flex: 1;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.process-name:hover {
    color: #000000;
}

.process-name::after {
    content: '✎';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-name:hover::after {
    opacity: 1;
}

.process-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.process-total,
.process-completed,
.process-remaining {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    line-height: 1.2;
    position: relative;
    transition: all 0.3s ease;
}

.process-stat-label {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
}

.process-stat-number {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.process-total {
    background: transparent;
    color: #1976d2;
    cursor: pointer;
}

.process-total:hover {
    background: transparent;
    color: #0d47a1;
}

.process-total::after {
    content: '✎';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-total:hover::after {
    opacity: 1;
}

.process-completed {
    background: transparent;
    color: #2e7d32;
    cursor: pointer;
}

.process-completed:hover {
    background: transparent;
    color: #1b5e20;
}

.process-completed::after {
    content: '✎';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-completed:hover::after {
    opacity: 1;
}

.process-remaining {
    background: transparent;
    color: #d32f2f;
}

.task-image {
    margin: 15px auto 15px auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 5;
    width: 100px;
    height: 100px;
    display: block;
}

.task-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.total-progress-box {
    width: 100%;
    margin: 8px 0 0;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    font-size: 12px;
    color: #666;
}

.progress-bg {
    width: 100%;
    height: 10px;
    background: #e6f7ff;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #52c41a, #73d13d);
    border-radius: 99px;
    transition: all 0.3s;
    width: 0%;
}

.task-schedule-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    flex-shrink: 0;
}

.task-schedule-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 1 1 420px;
    flex-wrap: wrap;
    text-align: right;
}

.task-schedule-line,
.task-schedule-inline-item {
    font-size: 12px;
    color: #1976d2;
    line-height: 1.4;
    white-space: nowrap;
    font-weight: 600;
}

.task-schedule-editable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.task-schedule-editable:hover {
    opacity: 0.8;
}

.task-image-editable {
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.task-image-editable::after {
    content: '点击更换图片';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: #fff;
    font-size: 11px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.task-image-editable:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.28);
}

.task-image-editable:hover::after {
    opacity: 1;
}

.task-delete-container {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.task-delete-btn {
    width: 100px;
    height: 40px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 9999;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.task-delete-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.task-delete-btn:active {
    transform: scale(0.95);
}

.task-delete-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 600px) {
    .process-info {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .process-total,
    .process-completed,
    .process-remaining {
        min-width: 52px;
        font-size: 11px;
        padding: 3px 6px;
    }

    .process-stat-label {
        font-size: 10px;
    }

    .process-stat-number {
        font-size: 14px;
    }
}

/* ==================== 动态页面样式 ==================== */
.moments-container {
    width: 100%;
}

.moments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.moment-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.moment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.moment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.moment-worker {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.moment-time {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.moment-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.moment-product {
    font-size: 14px;
    color: #555;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-weight: 600;
    color: #333;
}

.moment-image {
    margin: 10px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

.moment-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.moment-processes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.moment-process-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid #764ba2;
    margin-bottom: 8px;
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.moment-process-item .process-name {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.moment-process-item .process-quantity {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

/* 机台信息样式 */
.machine-info {
    font-size: 11px;
    color: #ff6b35;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
    display: block;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.1);
}

.loading,
.no-data,
.error {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.error {
    color: #ff6b6b;
}

/* ==================== 撤回对话框样式 ==================== */
.revoke-record-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.revoke-record-item:hover {
    background: #f0f0f0;
    transform: translateX(2px);
}

/* ==================== 图片放大查看器样式 ==================== */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.image-lightbox-close svg {
    width: 30px;
    height: 30px;
    color: #333;
}

.image-lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.image-lightbox-image-container:active {
    cursor: grabbing;
}

.image-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

/* ==================== 可点击图片样式 ==================== */
.moment-image img,
.task-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.moment-image img:hover,
.task-image img:hover {
    transform: scale(1.02);
}

/* ==================== 个人板块样式 ==================== */
.personal-list-horizontal {
    min-height: 120px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.personal-list-horizontal .no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    flex: 1;
    white-space: normal;
}

.personal-list-item {
    flex-shrink: 0;
    width: 180px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.personal-list-group {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.personal-list-group:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.personal-list-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.personal-processes-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.personal-item-product {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-all;
}

.personal-item-process {
    font-size: 13px;
    font-weight: 500;
    color: #667eea;
    word-break: break-all;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: all 0.3s ease;
}

.personal-item-process:hover {
    color: #764ba2;
    text-decoration: underline;
    text-decoration-style: solid;
}

.personal-item-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    gap: 10px;
}

.personal-item-quantity {
    font-size: 15px;
    font-weight: 600;
    color: #008000;
}

.personal-item-quantity .wage-part {
    color: #ff6b9d;
    margin-left: 2px;
}

.personal-item-wage {
    color: #ff0000;
    font-weight: bold;
    margin-left: 5px;
}

.personal-item-time {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.personal-item-image {
    margin: 8px 0;
    border-radius: 6px;
    overflow: hidden;
}

.personal-item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.personal-item-image img:hover {
    transform: scale(1.05);
}

/* ==================== 个人板块垂直滚动条样式 ==================== */
.personal-list-horizontal::-webkit-scrollbar {
    width: 6px;
}

.personal-list-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.personal-list-horizontal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.personal-list-horizontal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== 自定义弹窗样式 ==================== */
.custom-prompt-modal,
.custom-confirm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.custom-prompt-modal.show,
.custom-confirm-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.custom-prompt-content,
.custom-confirm-content {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    padding: 24px !important;
    color: #333 !important;
    width: 90% !important;
    max-width: 450px !important;
    transform: scale(0.9) translateY(-15px) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform !important;
    animation: fadeIn 0.3s ease !important;
    position: relative;
    z-index: 10000001;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-prompt-modal.show .custom-prompt-content,
.custom-confirm-modal.show .custom-confirm-content {
    transform: scale(1) translateY(0) !important;
}

.custom-prompt-title,
.custom-confirm-title {
    margin: 0 0 16px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #222 !important;
    text-align: center !important;
}

.custom-prompt-body,
.custom-confirm-body {
    font-size: 15px !important;
    color: #444 !important;
    margin-bottom: 24px !important;
    line-height: 1.6 !important;
}

.custom-prompt-input {
    width: 100% !important;
    padding: 14px 18px !important;
    margin: 16px 0 !important;
    background: #1a1a1a !important;
    border: double 2px transparent !important;
    border-radius: 14px !important;
    color: #fff !important;
    outline: none !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    background-image: linear-gradient(#1a1a1a, #1a1a1a),
        linear-gradient(90deg, #ff6b9d, #4facfe, #13ffb7) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box;
}

.custom-prompt-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-prompt-input:focus {
    background-image: linear-gradient(#1a1a1a, #1a1a1a),
        linear-gradient(90deg, #13ffb7, #ff6b9d, #4facfe);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.custom-prompt-buttons,
.custom-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.custom-confirm-btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    z-index: 10000001;
}

.custom-confirm-btn.cancel {
    background: #f1f3f5;
    color: #555;
}

.custom-confirm-btn.confirm {
    background: #409eff;
    color: #fff;
}

.custom-confirm-btn.cancel:hover {
    background: #e9ecef;
}

.custom-confirm-btn.confirm:hover {
    background: #338eef;
}

/* 登录密码弹窗专属美化 */
.login-password-modal {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(79, 172, 254, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(59, 130, 246, 0.28), rgba(102, 126, 234, 0.5)) !important;
    backdrop-filter: blur(18px) saturate(165%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(165%) !important;
}

.login-password-modal .custom-prompt-content {
    width: min(92vw, 420px) !important;
    padding: 30px 24px 22px !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.36) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12)) !important;
    backdrop-filter: blur(22px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
    box-shadow:
        0 28px 90px rgba(15, 23, 42, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
    overflow: hidden;
}

.login-password-modal .custom-prompt-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 36%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%);
    pointer-events: none;
}

.login-password-modal .custom-prompt-content::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

.login-password-modal .custom-prompt-title {
    position: relative;
    margin-bottom: 12px !important;
    padding-top: 6px;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #f8fbff !important;
    text-align: center;
    letter-spacing: 0.6px;
    text-shadow: 0 6px 20px rgba(15, 23, 42, 0.24);
}

.login-password-modal .custom-prompt-title::before {
    content: '🔐';
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
    filter: drop-shadow(0 10px 18px rgba(79, 172, 254, 0.32));
}

.login-password-modal .custom-prompt-input {
    margin: 18px 0 0 !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    font-size: 16px !important;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-image:
        linear-gradient(rgba(7, 12, 24, 0.92), rgba(18, 27, 46, 0.9)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.45), rgba(79, 172, 254, 0.75), rgba(19, 255, 183, 0.45)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 34px rgba(15, 23, 42, 0.24);
}

.login-password-modal .custom-prompt-input::placeholder {
    color: rgba(226, 232, 240, 0.62);
    letter-spacing: 0;
}

.login-password-modal .custom-prompt-input:focus {
    background-image:
        linear-gradient(rgba(7, 12, 24, 0.95), rgba(18, 27, 46, 0.93)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.68), rgba(129, 140, 248, 0.95), rgba(96, 165, 250, 0.88)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 4px rgba(96, 165, 250, 0.16),
        0 18px 42px rgba(59, 130, 246, 0.24) !important;
}

.login-password-modal .custom-prompt-buttons {
    margin-top: 22px !important;
    gap: 14px;
}

.login-password-modal .custom-confirm-btn {
    min-width: 98px;
    padding: 11px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 28px rgba(15, 23, 42, 0.16);
}

.login-password-modal .custom-confirm-btn.cancel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(226, 232, 240, 0.12));
    color: #eef2ff;
}

.login-password-modal .custom-confirm-btn.confirm {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.98), rgba(79, 172, 254, 0.96));
    color: #fff;
}

.login-password-modal .custom-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 16px 34px rgba(37, 99, 235, 0.22);
}

.login-password-modal .custom-confirm-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ==================== 撤回对话框样式 ==================== */
.revoke-group-item {
    transition: all 0.3s ease;
}

.revoke-group-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.revoke-btn:hover {
    transform: scale(1.02);
}

.revoke-btn:active {
    transform: scale(0.98);
}

/* ==================== 霓虹边框输入框样式 ==================== */
/* 渐变霓虹边框输入框 - 纯样式，无多余容器 */
input,
textarea,
.material-input,
#material-search-input {
  width: 100%;
  padding: 14px 18px;
  background: #1a1a1a;
  border: double 2px transparent;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  background-image: linear-gradient(#1a1a1a, #1a1a1a),
    linear-gradient(90deg, #ff6b9d, #4facfe, #13ffb7);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* 聚焦效果 */

input:focus,

textarea:focus,

.material-input:focus,

#material-search-input:focus {

  background-image: linear-gradient(#1a1a1a, #1a1a1a),

    linear-gradient(90deg, #13ffb7, #ff6b9d, #4facfe);

  box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);

}



/* ==================== 全站报表风格美化覆盖 ==================== */

body {

  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  background-attachment: fixed;

}



.app-container {

  background: rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 16px 48px rgba(13, 71, 161, 0.18);

}



.top-bar {

  background: rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

}



.title {

  color: #0f172a;

  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);

}



.logout-btn,

#qr-code-btn {

  background: rgba(255, 255, 255, 0.24);

  border: 1px solid rgba(255, 255, 255, 0.34);

  color: #111827;

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);

}



.logout-btn:hover,

#qr-code-btn:hover {

  background: rgba(255, 255, 255, 0.36);

}



.main-content {

  background: transparent;

}



.page-content,

.production-form,

.task-form,

.task-list-section,

.personal-list-horizontal,

.personal-list-group,

.personal-list-item,

.moment-item,

.task-item {

  background: rgba(255, 255, 255, 0.2);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);

}



.page-content p,

.form-label,

.page-header h2,

.task-name,

.moment-time,

.personal-item-time {

  color: #1f2937;

}



.task-list-section .form-label,

.personal-item-product,

.moment-product,

.moment-worker {

  color: #0f172a;

}



.moment-product,

.moment-processes,

.personal-list-horizontal,

.personal-processes-list {

  background: rgba(255, 255, 255, 0.18);

  border-color: rgba(255, 255, 255, 0.24);

}



.moment-process-item {

  background: rgba(255, 255, 255, 0.4);

  border-left-color: #4f46e5;

}



.machine-info {

  background: linear-gradient(135deg, rgba(255, 107, 53, 0.18) 0%, rgba(255, 107, 53, 0.08) 100%);

  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.12);

}



.task-item:hover,

.moment-item:hover,

.personal-list-group:hover,

.personal-list-item:hover,

.page-content:hover,

.task-list-section:hover {

  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);

}



.bottom-nav {

  background: rgba(255, 255, 255, 0.22);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  border-top: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);

}



.nav-item {

  border-radius: 12px;

}



.nav-item:hover {

  background: rgba(255, 255, 255, 0.18);

}



.nav-item.active {

  color: #111827;

  background: rgba(255, 255, 255, 0.28);

}



.nav-item:not(.active) {

  color: rgba(17, 24, 39, 0.66);

}



.btn,

.upload-option-btn,

.upload-modal-close,

.custom-confirm-btn,

.revoke-btn,

.task-pin-btn,

.task-delete-btn {

  border-radius: 12px;

  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);

}



.btn-primary,

.custom-confirm-btn.confirm {

  background: linear-gradient(135deg, rgba(79, 172, 254, 0.95) 0%, rgba(0, 242, 254, 0.95) 100%);

  color: #062033;

}



.btn-secondary,

.custom-confirm-btn.cancel,

.upload-modal-close {

  background: rgba(255, 255, 255, 0.75);

  color: #334155;

  border: 1px solid rgba(255, 255, 255, 0.36);

}



.upload-modal-overlay,

.qr-modal,

.revoke-dialog,

.process-action-modal {

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

}



.upload-modal-content,

.qr-modal-content,

.revoke-dialog-content,

.process-action-modal > div {

  background: rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);

}



.custom-prompt-content,

.custom-confirm-content {

  background: rgba(255, 255, 255, 0.92) !important;

  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18) !important;

}



.toast {

  background: rgba(255, 255, 255, 0.92) !important;

  color: #0f172a !important;

  border: 1px solid rgba(255, 255, 255, 0.36) !important;

  backdrop-filter: blur(12px) !important;

  -webkit-backdrop-filter: blur(12px) !important;

  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18) !important;

}





/* ==================== 全站美化覆盖（复用报表页风格，仅改视觉不改布局） ==================== */

:root {

    --beauty-bg: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --beauty-glass: rgba(255, 255, 255, 0.18);

    --beauty-glass-strong: rgba(255, 255, 255, 0.26);

    --beauty-border: rgba(255, 255, 255, 0.35);

    --beauty-shadow: 0 10px 30px rgba(31, 38, 135, 0.16);

    --beauty-shadow-hover: 0 14px 34px rgba(31, 38, 135, 0.22);

    --beauty-text: #0f172a;

    --beauty-text-soft: rgba(15, 23, 42, 0.72);

}



body {

    background: var(--beauty-bg);

    background-attachment: fixed;

}



.app-container {

    background: rgba(255, 255, 255, 0.16);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);

}



.top-bar {

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.28);

    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.12);

}



.title,

#page-title {

    color: #0b132b;

    font-weight: 700;

}



.logout-btn,

#qr-code-btn {

    background: rgba(255, 255, 255, 0.22);

    border: 1px solid rgba(255, 255, 255, 0.34);

    color: #0f172a;

    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.12);

}



.logout-btn:hover,

#qr-code-btn:hover {

    background: rgba(255, 255, 255, 0.32);

    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.18);

}



.main-content {

    background: transparent;

}



.page-content,

.production-form,

.task-form,

.task-list-section,

.personal-list-horizontal,

.personal-list-group,

.personal-list-item,

.moment-item,

.task-item,

.task-list-container,

.task-card {

    background: rgba(255, 255, 255, 0.18) !important;

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.30) !important;

    box-shadow: var(--beauty-shadow);

}



.page-content,

.task-list-section,

.personal-list-horizontal,

.personal-list-group,

.personal-list-item,

.moment-item,

.task-item,

.task-card {

    border-radius: 16px;

}



.page-header h2,

.page-content p,

.form-label,

.task-list-label,

.task-list-section .form-label,

.personal-item-product,

.moment-product,

.moment-worker,

.task-name {

    color: var(--beauty-text);

}



.moment-product,

.moment-processes,

.moment-process-item,

.personal-processes-list,

.task-stats,

.task-item.completed,

.revoke-group-item {

    background: rgba(255, 255, 255, 0.20) !important;

    border-color: rgba(255, 255, 255, 0.26) !important;

}



.task-item:hover,

.moment-item:hover,

.personal-list-group:hover,

.personal-list-item:hover,

.task-card:hover,

.revoke-group-item:hover {

    box-shadow: var(--beauty-shadow-hover) !important;

}



.bottom-nav {

    background: rgba(255, 255, 255, 0.16);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    border-top: 1px solid rgba(255, 255, 255, 0.30);

    box-shadow: 0 -8px 24px rgba(31, 38, 135, 0.12);

}



.nav-item {

    border-radius: 12px;

}



.nav-item:hover {

    background: rgba(255, 255, 255, 0.20);

}



.nav-item.active {

    background: rgba(255, 255, 255, 0.32);

    box-shadow: 0 6px 18px rgba(79, 172, 254, 0.16);

}



.nav-item,

.nav-item:not(.active),

.nav-text,

.nav-icon {

    color: var(--beauty-text-soft);

}



.nav-item.active,

.nav-item.active .nav-text,

.nav-item.active .nav-icon {

    color: #2563eb;

}



.btn,

.upload-modal-close,

.upload-option-btn,

.custom-confirm-btn,

.material-btn,

.task-pin-btn,

.task-delete-btn,

.revoke-btn {

    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(31, 38, 135, 0.12);

}



.btn-primary,

.custom-confirm-btn.confirm {

    background: linear-gradient(135deg, #4facfe 0%, #00c6ff 100%);

    color: #ffffff;

}



.btn-secondary,

.custom-confirm-btn.cancel,

.upload-modal-close {

    background: rgba(255, 255, 255, 0.70);

    color: var(--beauty-text);

    border: 1px solid rgba(255, 255, 255, 0.32);

}



.btn:hover,

.upload-option-btn:hover,

.upload-modal-close:hover,

.custom-confirm-btn:hover,

.material-btn:hover,

.task-pin-btn:hover,

.task-delete-btn:hover {

    box-shadow: 0 10px 24px rgba(31, 38, 135, 0.16);

}



.form-input,

.form-select,

input,

textarea,

.material-input,

#material-search-input,

.custom-prompt-input {

    box-shadow: 0 6px 18px rgba(31, 38, 135, 0.10);

}



.upload-modal-overlay,

.custom-prompt-modal,

.custom-confirm-modal,

.qr-modal,

.revoke-dialog,

.process-action-modal {

    backdrop-filter: blur(8px) !important;

    -webkit-backdrop-filter: blur(8px) !important;

}



.upload-modal-content,

.qr-modal-content,

.revoke-dialog-content,

.custom-prompt-content,

.custom-confirm-content,

.process-action-modal > div {

    background: rgba(255, 255, 255, 0.88) !important;

    backdrop-filter: blur(18px) !important;

    -webkit-backdrop-filter: blur(18px) !important;

    border: 1px solid rgba(255, 255, 255, 0.40) !important;

    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22) !important;

}



.toast {

    background: rgba(15, 23, 42, 0.82) !important;

    color: #ffffff !important;

    backdrop-filter: blur(12px) !important;

    -webkit-backdrop-filter: blur(12px) !important;

    border: 1px solid rgba(255, 255, 255, 0.20) !important;

    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28) !important;

    border-radius: 14px !important;

}

.bottom-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    z-index: 1000 !important;
}

@media (max-width: 600px) {
    .bottom-nav {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

.process-action-content,
.qr-modal-content {
    width: min(90vw, 420px);
    border-radius: 20px;
}

.process-action-title,
.qr-modal-title {
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
}

.process-action-current {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.process-action-label,
.qr-modal-description {
    color: rgba(15, 23, 42, 0.72);
    font-size: 14px;
}

.process-action-name {
    color: #0f172a;
    font-weight: 700;
}

.process-action-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    border: none !important;
}

.process-action-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #fff !important;
    border: none !important;
}

.qr-modal-close-btn {
    min-width: 120px;
}

.warehouse-qr-panel {
    position: relative;
    overflow: hidden;
}

.warehouse-qr-panel::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.18) 0%, rgba(79, 172, 254, 0) 72%);
    pointer-events: none;
}

.warehouse-qr-btn {
    position: relative;
    z-index: 1;
    border: none !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #4facfe 0%, #00c6ff 100%) !important;
    box-shadow: 0 10px 22px rgba(79, 172, 254, 0.22) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.warehouse-qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(79, 172, 254, 0.28) !important;
    filter: brightness(1.02);
}

.qr-modal-content canvas {
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

@media (max-width: 600px) {
    .warehouse-qr-panel {
        margin: 10px 10px 0;
        padding: 16px;
    }

    .warehouse-qr-btn {
        font-size: 14px;
    }
}

.login-page {

    background: var(--beauty-bg) !important;

}



.login-container {

    background: rgba(255, 255, 255, 0.82) !important;

    backdrop-filter: blur(18px) !important;

    -webkit-backdrop-filter: blur(18px) !important;

    border: 1px solid rgba(255, 255, 255, 0.45) !important;

    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.20) !important;

}



.login-title {

    color: var(--beauty-text) !important;

}



.login-button {

    background: linear-gradient(135deg, #4facfe 0%, #00c6ff 100%) !important;

    box-shadow: 0 10px 24px rgba(79, 172, 254, 0.24);

}



.login-button:hover {

    filter: brightness(1.03);

}

/* ==================== 最终覆盖：波纹效果与透明霓虹输入框 ==================== */
button,
.btn,
.login-button,
.logout-btn,
.nav-item,
.upload-option-btn,
.upload-modal-close,
.custom-confirm-btn,
.material-btn,
.task-pin-btn,
.task-delete-btn,
.revoke-btn,
.qr-modal-close-btn,
.process-action-btn,
.audit-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

button::after,
.btn::after,
.login-button::after,
.logout-btn::after,
.nav-item::after,
.upload-option-btn::after,
.upload-modal-close::after,
.custom-confirm-btn::after,
.material-btn::after,
.task-pin-btn::after,
.task-delete-btn::after,
.revoke-btn::after,
.qr-modal-close-btn::after,
.process-action-btn::after,
.audit-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.22) 38%, rgba(255, 255, 255, 0) 72%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.55s ease, opacity 0.55s ease;
    z-index: 0;
}

button:active::after,
.btn:active::after,
.login-button:active::after,
.logout-btn:active::after,
.nav-item:active::after,
.upload-option-btn:active::after,
.upload-modal-close:active::after,
.custom-confirm-btn:active::after,
.material-btn:active::after,
.task-pin-btn:active::after,
.task-delete-btn:active::after,
.revoke-btn:active::after,
.qr-modal-close-btn:active::after,
.process-action-btn:active::after,
.audit-btn:active::after {
    transform: translate(-50%, -50%) scale(18);
    opacity: 1;
    transition: transform 0s, opacity 0.18s ease;
}

button > *,
.btn > *,
.login-button > *,
.logout-btn > *,
.nav-item > *,
.upload-option-btn > *,
.upload-modal-close > *,
.custom-confirm-btn > *,
.material-btn > *,
.task-pin-btn > *,
.task-delete-btn > *,
.revoke-btn > *,
.qr-modal-close-btn > *,
.process-action-btn > *,
.audit-btn > * {
    position: relative;
    z-index: 1;
}

.form-input,
.form-select,
input,
textarea,
.material-input,
#material-search-input,
.custom-prompt-input,
select,
.login-input {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    outline: none !important;
    font-size: 16px !important;
    color: #1976D2 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.25)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.15) !important;
    transition: all 0.3s ease !important;
    background-image: none !important;
    background-origin: initial !important;
    background-clip: border-box !important;
    caret-color: #1976D2 !important;
}

.form-input,
.form-select,
input,
.material-input,
#material-search-input,
.custom-prompt-input,
select,
.login-input {
    min-height: 56px;
}

textarea {
    min-height: 160px;
    resize: none;
}

.form-input:hover,
.form-select:hover,
input:hover,
textarea:hover,
.material-input:hover,
#material-search-input:hover,
.custom-prompt-input:hover,
select:hover,
.login-input:hover {
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2) !important;
}

.form-input:focus,
.form-select:focus,
input:focus,
textarea:focus,
.material-input:focus,
#material-search-input:focus,
.custom-prompt-input:focus,
select:focus,
.login-input:focus {
    border-color: rgba(255, 255, 255, 0.7) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35)) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12), 0 8px 24px rgba(33, 150, 243, 0.25) !important;
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder,
.material-input::placeholder,
#material-search-input::placeholder,
.custom-prompt-input::placeholder,
.login-input::placeholder {
    color: rgba(25, 118, 210, 0.55) !important;
}

.form-select option,
select option {
    background: #ffffff;
    color: #333333;
}

/* ==================== 全站选择框最终覆盖美化 ==================== */
.form-select,
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 44px 0 18px !important;
    background: #ffffff !important;
    background-image: linear-gradient(45deg, transparent 50%, #999999 50%), linear-gradient(135deg, #999999 50%, transparent 50%) !important;
    background-position: calc(100% - 22px) calc(50% - 1px), calc(100% - 16px) calc(50% - 1px) !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
    border-radius: 10px !important;
    border: 1px solid #e5e9f2 !important;
    color: #333333 !important;
    cursor: pointer;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.form-select:hover,
select:hover {
    border-color: #409eff !important;
    box-shadow: none !important;
}

.form-select:focus,
select:focus {
    border-color: #409eff !important;
    background: #ffffff !important;
    background-image: linear-gradient(45deg, transparent 50%, #409eff 50%), linear-gradient(135deg, #409eff 50%, transparent 50%) !important;
    background-position: calc(100% - 22px) calc(50% - 1px), calc(100% - 16px) calc(50% - 1px) !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.15) !important;
}

.form-select option,
select option {
    background: #ffffff;
    color: #333333;
}

/* ==================== 全站滚动渐隐渐入动画 ==================== */
.fade-scroll-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.2, 0, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-scroll-item.fade-scroll-show {
    opacity: 1;
    transform: translateY(0);
}

.fade-scroll-item.fade-scroll-hide-up {
    opacity: 0;
    transform: translateY(-60px);
}

.page-content.fade-scroll-item,
.task-list-section.fade-scroll-item,
.task-card.fade-scroll-item,
.moment-item.fade-scroll-item,
.personal-list-group.fade-scroll-item,
.revoke-group-item.fade-scroll-item,
.audit-item.fade-scroll-item,
.no-data.fade-scroll-item {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

@media (prefers-reduced-motion: reduce) {
    .fade-scroll-item,
    .fade-scroll-item.fade-scroll-show,
    .fade-scroll-item.fade-scroll-hide-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==================== 仓库页面列表背景统一美化 ==================== */
#whitelist-list,
#audit-list,
#material-list,
#rivet-list {
    width: 100%;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(15, 23, 42, 0.10);
}

#whitelist-list > *,
#audit-list > *,
#material-list > *,
#rivet-list > * {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    border-radius: 16px !important;
    box-shadow: var(--beauty-shadow);
    margin-bottom: 12px;
}

/* ==================== 最终修复：统一背景色与缩小输入框 ==================== */
html,
body {
    background: var(--beauty-bg) !important;
    background-attachment: fixed !important;
}

body,
.app-container,
.main-content,
.page,
.page-content {
    background-color: transparent !important;
}

.app-container,
.main-content,
.page {
    background-image: none !important;
}

.form-input,
input:not(select):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
.material-input,
#material-search-input,
.custom-prompt-input,
.login-input {
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
}

textarea {
    min-height: 120px !important;
}

.form-select,
select {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 42px 0 14px !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' fill='none' stroke='%23409eff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    background-repeat: no-repeat !important;
    -webkit-text-fill-color: #333333 !important;
}

.form-select:focus,
select:focus {
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' fill='none' stroke='%23409eff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .form-input,
    input,
    textarea,
    .material-input,
    #material-search-input,
    .custom-prompt-input,
    .login-input {
        background: rgba(236, 245, 255, 0.92) !important;
        border: 1px solid rgba(64, 158, 255, 0.22) !important;
        box-shadow: 0 8px 22px rgba(64, 158, 255, 0.12) !important;
    }

    #whitelist-list,
    #audit-list,
    #material-list,
    #rivet-list,
    .task-list-section,
    .task-card,
    .personal-list-group {
        background: rgba(255, 255, 255, 0.78) !important;
        border: 1px solid rgba(64, 158, 255, 0.16) !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10), 0 2px 10px rgba(64, 158, 255, 0.08) !important;
    }
}

.task-list-section,
.task-card {
    border-radius: 20px !important;
}

#whitelist-list,
#audit-list,
#material-list,
#rivet-list {
    padding: 10px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10)) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

#whitelist-list > *,
#audit-list > *,
#material-list > *,
#rivet-list > * {
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.14)) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10) !important;
}

#whitelist-list > * + *,
#audit-list > * + *,
#material-list > * + *,
#rivet-list > * + * {
    margin-top: 10px;
}

#whitelist-list .no-data,
#audit-list .no-data,
#material-list .no-data,
#rivet-list .no-data {
    color: var(--beauty-text) !important;
    text-align: center;
}

@media (max-width: 768px) {
    .form-select,
    select {
        font-size: 16px !important;
        line-height: 1.2 !important;
        padding-right: 40px !important;
        background-position: right 12px center !important;
        background-size: 13px 13px !important;
    }

    .form-input,
    input:not(select):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    textarea,
    .material-input,
    #material-search-input,
    .custom-prompt-input,
    .login-input {
        min-height: 42px !important;
        font-size: 14px !important;
        padding: 9px 12px !important;
    }
}

/* ==================== 最终修复：黑线、波纹、标签字号、生产页圆角 ==================== */
.top-bar,
.bottom-nav,
.app-container,
.main-content,
.page,
.page-content {
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
}

.top-bar,
.bottom-nav {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.page-content,
.production-form,
.task-form {
    border-radius: 22px !important;
}

.process-input-group,
.product-name-group,
.image-upload-group,
.task-list-section,
.task-card {
    border-radius: 20px !important;
}

#tasks-page .form-label,
#tasks-page .process-label,
#personal-page .form-label {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
}

button,
.btn,
.login-button,
.logout-btn,
.nav-item,
.upload-option-btn,
.upload-modal-close,
.custom-confirm-btn,
.material-btn,
.task-pin-btn,
.task-delete-btn,
.revoke-btn,
.qr-modal-close-btn,
.process-action-btn,
.audit-btn,
.report-nav-item,
.piecework-nav-item {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    -webkit-tap-highlight-color: transparent;
}

.ripple-circle {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    transform: scale(0);
    opacity: 0.55;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.26) 45%, rgba(255, 255, 255, 0) 72%);
    animation: globalRippleEffect 0.6s ease-out forwards;
    z-index: 0;
}

@keyframes globalRippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.55;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

button > *,
.btn > *,
.login-button > *,
.logout-btn > *,
.nav-item > *,
.upload-option-btn > *,
.upload-modal-close > *,
.custom-confirm-btn > *,
.material-btn > *,
.task-pin-btn > *,
.revoke-btn > *,
.qr-modal-close-btn > *,
.process-action-btn > *,
.audit-btn > *,
.report-nav-item > *,
.piecework-nav-item > * {
    position: relative;
    z-index: 1;
}

#tasks-page .process-label {
    font-size: 12px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
}

#tasks-page .process-label::after {
    font-size: 10px !important;
    right: -2px !important;
    top: -1px !important;
}

#tasks-page .form-label,
#personal-page .form-label {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

html,
body {
    background: #eef5ff !important;
    background-image: none !important;
    background-attachment: fixed !important;
}

body,
.app-container,
.main-content,
.page,
.page-content {
    background-color: #eef5ff !important;
    background-image: none !important;
}

.main-content,
.page,
.page-content {
    box-shadow: none !important;
}

.top-bar,
.bottom-nav,
.app-container,
.main-content,
.page,
.page-content,
.page::before,
.page::after,
.page-content::before,
.page-content::after,
.main-content::before,
.main-content::after {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.process-input-group > label.form-label,
.product-name-group > label.form-label,
.image-upload-group > label.form-label {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
}

.process-input-group > label.form-label.process-label {
    font-size: 11px !important;
    padding: 2px 6px !important;
}

button::after,
.btn::after,
.login-button::after,
.logout-btn::after,
.nav-item::after,
.upload-option-btn::after,
.upload-modal-close::after,
.custom-confirm-btn::after,
.material-btn::after,
.task-pin-btn::after,
.task-delete-btn::after,
.revoke-btn::after,
.qr-modal-close-btn::after,
.process-action-btn::after,
.audit-btn::after,
.report-nav-item::after,
.piecework-nav-item::after {
    content: none !important;
    display: none !important;
}

.form-select,
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 42px 0 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(64, 158, 255, 0.22) !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' fill='none' stroke='%23409eff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.form-select:hover,
select:hover,
.form-select:focus,
select:focus {
    border-color: #409eff !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' fill='none' stroke='%23409eff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    background-repeat: no-repeat !important;
}

.form-select option,
select option {
    background: #ffffff !important;
    color: #333333 !important;
}

.bottom-nav .nav-item,
.bottom-nav .nav-icon,
.bottom-nav .nav-text {
    transform: none !important;
    transition-property: color, background-color, border-color, opacity !important;
    transition-duration: 0.16s !important;
    transition-timing-function: ease !important;
}

.bottom-nav .nav-text,
.bottom-nav .nav-item.active .nav-text,
.bottom-nav .nav-item:active .nav-text {
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    transform: none !important;
    scale: none !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-rendering: geometricPrecision;
    font-synthesis-weight: none;
}

.bottom-nav .nav-icon,
.bottom-nav .nav-item.active .nav-icon,
.bottom-nav .nav-item:active .nav-icon {
    transform: none !important;
    margin-bottom: 4px !important;
}

.bottom-nav {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.18), rgba(0, 198, 255, 0.12)) !important;
}

.site-footer-info {
    width: min(100%, 560px);
    margin: 24px auto 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.site-footer-record-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.site-footer-record-link:hover {
    color: #1d4ed8;
}

.site-footer-record-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.site-footer-contact {
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.site-footer-contact:hover {
    background: rgba(79, 172, 254, 0.10);
    color: #2563eb;
}

.site-footer-copyright {
    color: #111111;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.contact-admin-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
}

.contact-admin-modal-card {
    width: min(90vw, 380px);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,249,255,0.97) 100%);
    border-radius: 22px;
    padding: 24px 20px 20px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-admin-modal-title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
}

.contact-admin-modal-desc {
    margin: 10px 0 0;
    color: rgba(15, 23, 42, 0.72);
    font-size: 14px;
    line-height: 1.6;
}

.contact-admin-modal-image-wrap {
    margin: 18px auto 0;
    width: 240px;
    max-width: 100%;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9), 0 16px 32px rgba(79, 172, 254, 0.10);
}

.contact-admin-modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.contact-admin-modal-close {
    margin-top: 18px;
    min-width: 120px;
}
    background-image: linear-gradient(135deg, rgba(79, 172, 254, 0.18), rgba(0, 198, 255, 0.12)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    filter: none !important;
    box-shadow: 0 -6px 18px rgba(31, 38, 135, 0.10) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.bottom-nav,
.bottom-nav .nav-item,
.bottom-nav .nav-item > * {
    -webkit-tap-highlight-color: transparent !important;
}

.bottom-nav::before,
.bottom-nav::after,
.bottom-nav .nav-item::before,
.bottom-nav .nav-item::after {
    content: none !important;
    display: none !important;
}

.bottom-nav .nav-item {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    overflow: visible !important;
    isolation: isolate !important;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item:active,
.bottom-nav .nav-item.active {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item:active {
    background: rgba(255, 255, 255, 0.10) !important;
    box-shadow: none !important;
}

.bottom-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)) !important;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.bottom-nav .nav-item.active .nav-text,
.bottom-nav .nav-item.active .nav-icon {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.bottom-nav .ripple-circle {
    display: none !important;
}

#tasks-page .task-stats,
#tasks-page .task-stats .stat-item,
#tasks-page .task-stats .stat-label,
#tasks-page .task-stats .stat-value {
    color: #222222 !important;
}

#tasks-page .task-stats .stat-label {
    color: #222222 !important;
}

#tasks-page .task-stats .stat-value {
    color: #222222 !important;
}

#tasks-page .task-stats .stat-value.pending {
    color: #ffd700 !important;
}

#tasks-page .task-stats .stat-value.completed {
    color: #4caf50 !important;
}

#production-page .form-group {
    margin-bottom: 6px !important;
}

#production-page .product-select-group {
    margin: 0 auto 8px auto !important;
}

#production-page .form-label,
#production-page .process-input-group > label.form-label,
#production-page .process-input-group > label.form-label.process-label {
    margin-bottom: 2px !important;
}

#production-page .process-row {
    gap: 15px !important;
    margin: 8px 0 !important;
}

#production-page .process-inputs {
    margin: 8px 0 !important;
}

#production-page .process-input-group {
    margin-bottom: 0 !important;
}

#production-page .process-input-group > label.form-label.process-label {
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

#production-page .form-input,
#production-page .process-input,
#production-page .form-select {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: 36px !important;
    height: 36px !important;
    line-height: 1.2 !important;
}

.revoke-dialog-content {
    width: min(92vw, 560px) !important;
    max-width: min(92vw, 560px) !important;
    max-height: 82vh !important;
    padding: 28px 24px !important;
    border-radius: 18px !important;
}

.revoke-dialog .revoke-records {
    max-height: 56vh !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
}

.revoke-dialog .revoke-group-item {
    padding: 16px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}

.revoke-dialog .revoke-btn {
    min-height: 42px !important;
    font-size: 14px !important;
}

@media (min-width: 1024px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(102, 126, 234, 0.14), transparent 28%),
            radial-gradient(circle at top right, rgba(79, 172, 254, 0.12), transparent 26%),
            linear-gradient(180deg, #eef3ff 0%, #f7f9fc 45%, #edf2f7 100%);
    }

    .app-container {
        max-width: min(1440px, calc(100vw - 48px));
        height: calc(100vh - 24px);
        margin: 12px auto;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
    }

    .top-bar {
        padding: 18px 28px;
        font-size: 22px;
        gap: 16px;
    }

    .main-content {
        padding-bottom: 104px;
    }

    .page {
        padding: 28px;
        min-height: calc(100vh - 180px);
        padding-bottom: 144px;
    }

    .production-form,
    .task-form,
    .page-content {
        border-radius: 20px;
        padding: 28px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    }

    .production-form,
    #moments-page .page-content,
    #tech-page .page-content,
    #material-page .page-content,
    #personal-page .page-content {
        max-width: 1180px;
        margin: 0 auto;
    }

    #production-page .form-group,
    #tasks-page .form-group {
        margin-bottom: 24px;
    }

    .process-inputs {
        margin-bottom: 32px;
    }

    .process-row {
        gap: 24px;
        margin-bottom: 18px;
    }

    .button-group {
        max-width: 720px;
        margin: 0 auto;
    }

    .btn {
        min-height: 52px;
        font-size: 16px;
    }

    .moments-container,
    .task-list-container,
    .task-lists {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

    #tasks-page .task-form {
        max-width: 1280px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    #tasks-page .product-name-group,
    #tasks-page .task-date-inputs,
    #tasks-page .process-inputs,
    #tasks-page .image-upload-group,
    #tasks-page .button-group,
    #tasks-page .form-group:not(.image-upload-group):not(.product-name-group):not(.process-input-group) {
        grid-column: 1;
    }

    #tasks-page .task-lists {
        grid-column: 2;
        grid-row: 1 / span 20;
        margin-top: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        align-self: stretch;
    }

    #tasks-page .task-list-section {
        padding: 20px;
        border-radius: 18px;
        min-height: 100%;
    }

    .task-stats {
        padding: 14px 18px;
    }

    .task-card {
        padding: 22px 22px 18px;
        border-radius: 18px;
    }

    .task-header-row {
        align-items: flex-start;
        gap: 20px;
    }

    .task-product {
        font-size: 20px;
    }

    .task-processes {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .process-item {
        align-items: flex-start;
        gap: 18px;
        padding: 12px 0;
    }

    .process-name {
        min-width: 160px;
        max-width: 240px;
        font-size: 15px;
    }

    .process-info {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 14px;
        margin-left: auto;
    }

    .process-total,
    .process-completed,
    .process-remaining {
        min-width: 76px;
        padding: 6px 10px;
    }

    #personal-page .page-content {
        display: grid;
        grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    #personal-page #personal-product-section,
    #personal-page #personal-input-section,
    #personal-page #personal-actions-section {
        grid-column: 1;
    }

    .personal-list-horizontal {
        min-height: 320px;
        max-height: calc(100vh - 280px);
        padding: 18px;
        border-radius: 16px;
    }

    .personal-list-group {
        padding: 18px;
        border-radius: 12px;
    }

    .bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(1440px, calc(100vw - 48px)) !important;
        max-width: min(1440px, calc(100vw - 48px)) !important;
        margin: 0;
        border-radius: 18px 18px 0 0;
        padding: 10px 12px;
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.10);
        backdrop-filter: blur(14px);
    }

    .nav-item {
        border-radius: 14px;
        margin: 0 4px;
    }

    .nav-text {
        font-size: 13px;
    }

    .site-footer-info {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== 原料页：整屏列表 ==================== */
/* 顶部标题栏在原料页由 app.js 隐藏；页面用视口高度定高（.app-container 被 JS 设成 block，高度链不可靠） */
#material-page {
    height: calc(100vh - 92px);
    height: calc(100dvh - 92px);
    min-height: 0;
    padding: 12px 12px 0;
    box-sizing: border-box;
}

#material-page.active {
    display: flex;
    flex-direction: column;
}

#material-page .page-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

#material-page .material-panel-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

#material-page #material-section {
    flex: 1 1 auto;
    min-height: 0;
    /* JS 会给该元素写内联 display:block，这里用 !important 让整屏布局生效 */
    display: flex !important;
    flex-direction: column;
}

#material-page #material-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

/* 桌面端：.app-container 上下各留 12px、main-content 底部留 104px */
@media (min-width: 1024px) {
    #material-page {
        height: calc(100vh - 128px);
        height: calc(100dvh - 128px);
    }
}

/* 原料页：去掉滚动列表自身的外框（只保留每张皮料卡片的样式） */
#material-page #material-list {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 个人页：底部留白收紧（原来 130px，底部导航实际约 81px） */
#personal-page {
    padding-bottom: 92px;
}


/* ==================== 与个人页列表风格统一（区块无框，列表本身做灰面板） ==================== */
/* 三个区块：去掉外层白卡片，让标题和按钮直接落在页面上 */
#whitelist-section,
#whitelist-section-pack,
#audit-section,
#wage-rate-section {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 列表容器：和个人页 .personal-list-horizontal 完全一致的样式 */
#whitelist-list,
#audit-list {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.task-list {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    padding: 10px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 任务页列表区去掉灰色底，只保留里面的列表容器 */
.task-list-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 任务卡片：白色小卡片 + 细边框（和个人页条目一致） */
.task-card {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
}


/* 列表容器及其子项：去掉玻璃特效的阴影/白边（那层白框就是它造成的） */
#whitelist-list,
#audit-list,
.task-list {
    box-shadow: none !important;
}

#whitelist-list > *,
#audit-list > *,
.task-list > * {
    box-shadow: none !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
}

/* 空态文字不要框 */
#whitelist-list .no-data,
#audit-list .no-data,
.task-list .no-data {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* ==================== 原料页面（参考原料二维码页） ==================== */
#material-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.mp-hero {
    position: relative;
    margin: 0 0 12px;
    padding: 20px 18px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #5b7cfa 0%, #7c5cf0 55%, #9d5cf0 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(91, 124, 250, .26);
    overflow: hidden;
}

.mp-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    pointer-events: none;
}

.mp-hero-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mp-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}

.mp-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
}

.mp-count {
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .24);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.mp-hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 14px;
}

.mp-hero-stat {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 13px;
    padding: 8px 6px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.mp-hero-stat .n {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.mp-hero-stat .t {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, .85);
}

.mp-search-wrap {
    margin-bottom: 12px;
}

.mp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06);
}

.mp-search .mp-ico { font-size: 15px; opacity: .55; }

.mp-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #1f2937;
}

.mp-search input::placeholder { color: #a9b1c1; }

.mp-add {
    flex: 0 0 auto;
    border: none;
    border-radius: 11px;
    padding: 9px 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(34, 197, 94, .28);
}

.mp-add:active { transform: scale(.97); }

/* 卡片 */
#material-list .material-item {
    background: #fff !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06) !important;
    padding: 14px 15px 12px !important;
    margin-bottom: 10px !important;
}

.mi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mi-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 800;
    color: #26324a;
    letter-spacing: .3px;
    overflow-wrap: break-word;
    word-break: break-all;
}

.mi-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #5b7cfa, #9d5cf0);
    box-shadow: 0 1px 4px rgba(91, 124, 250, .5);
}

.mi-head-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.mi-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.mi-badge.ok    { background: #e8f7ee; color: #14875b; }
.mi-badge.low   { background: #fff4e5; color: #b26a00; }
.mi-badge.out   { background: #fdecef; color: #c0243c; }
.mi-badge.empty { background: #eef1f6; color: #6b7280; }

.mi-del {
    border: none;
    border-radius: 8px;
    padding: 4px 9px;
    background: #ff6b6b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.mi-bar {
    margin: 11px 0 10px;
    height: 7px;
    border-radius: 999px;
    background: #eef1f6;
    overflow: hidden;
}

.mi-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .35s ease;
}

.mi-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 11px;
}

.mi-stat {
    text-align: center;
    padding: 7px 4px;
    background: #f7f9fc;
    border-radius: 11px;
}

.mi-stat .k {
    display: block;
    font-size: 11px;
    color: #8b94a6;
    margin-bottom: 3px;
}

.mi-stat .v {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #26324a;
    overflow-wrap: break-word;
    word-break: break-all;
}

.mi-stat .u {
    font-size: 10px;
    font-weight: 500;
    color: #98a2b3;
    margin-left: 1px;
}

.mi-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mi-input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 11px !important;
    background: #f8fafd !important;
    font-size: 13px !important;
    color: #1f2937 !important;
}

.mi-btn-in,
.mi-btn-use {
    flex: 0 0 auto;
    padding: 9px 14px !important;
    border: none !important;
    border-radius: 11px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    white-space: nowrap;
}

.mi-btn-in { background: linear-gradient(135deg, #5b7cfa, #7c5cf0) !important; box-shadow: 0 3px 10px rgba(91,124,250,.26); }
.mi-btn-use { background: linear-gradient(135deg, #ff6b6b, #f43f5e) !important; box-shadow: 0 3px 10px rgba(244,63,94,.24); }

/* 原料页：hero 不被压缩，列表占剩余空间；列表容器去掉玻璃底板 */
#material-page .mp-hero { flex: 0 0 auto; }
#material-page .mp-search-wrap { flex: 0 0 auto; }
#material-page #material-list { flex: 1 1 auto; min-height: 0; }

#material-list {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#material-list > * {
    background: #fff !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06) !important;
}


/* ==================== 个人页面（与原料页风格统一） ==================== */
.ps-hero {
    position: relative;
    margin: 0 0 14px;
    padding: 20px 18px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #5b7cfa 0%, #7c5cf0 55%, #9d5cf0 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(91, 124, 250, .26);
    overflow: hidden;
}

.ps-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    pointer-events: none;
}

.ps-hero-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ps-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}

.ps-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
}

.ps-export {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    border: none;
    border-radius: 11px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.ps-export:active { transform: scale(.96); }

.ps-hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 14px;
}

.ps-hero-stat {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 13px;
    padding: 9px 6px 8px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.ps-hero-stat.highlight {
    background: rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .45);
}

.ps-hero-stat .n {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.ps-hero-stat .t {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, .85);
}

.ps-hero-stat .s {
    display: block;
    margin-top: 1px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, .7);
}

/* 产品选择：白色卡片 */
#personal-product-section {
    background: #fff !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06) !important;
    padding: 14px 15px !important;
    margin-bottom: 12px !important;
}

/* 输入区：白色卡片 */
#personal-input-section {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06);
    padding: 14px 15px;
    margin: 0 0 12px !important;
}

#personal-actions-section {
    background: transparent;
    margin-bottom: 14px !important;
}

/* 记录列表：和原料页一致的白卡片 */
#pressure-list {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#pressure-list > .personal-list-group {
    background: #fff !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06) !important;
}


/* ==================== 各页面统一顶部 hero ==================== */
.page-hero {
    position: relative;
    margin: 0 0 12px;
    padding: 20px 18px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #5b7cfa 0%, #7c5cf0 55%, #9d5cf0 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(91, 124, 250, .26);
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    pointer-events: none;
}

.page-hero-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.page-hero h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}

.page-hero .sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
}

.hero-badge {
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .24);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.hero-toggle {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px dashed rgba(91, 124, 250, .45);
    border-radius: 14px;
    background: rgba(91, 124, 250, .07);
    color: #4f6ef7;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hero-toggle:active { transform: scale(.99); }

/* 生产页：数据看板改成渐变卡片 */
#dashboard-panel {
    background: linear-gradient(135deg, #5b7cfa 0%, #7c5cf0 60%, #9d5cf0 100%) !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(91, 124, 250, .26) !important;
}

#dashboard-panel > div:first-child span {
    color: #fff !important;
}

#dashboard-panel #dashboard-date { color: rgba(255, 255, 255, .8) !important; }

#dashboard-workers > div:first-child { color: rgba(255, 255, 255, .8) !important; }

#dashboard-workers > div:not(:first-child) { color: #fff !important; }

#dashboard-workers span { color: #fff !important; }

#dashboard-alerts > div {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .28);
}

/* 仓库二维码面板 / 各卡片统一圆角与阴影 */
.warehouse-qr-panel {
    border-radius: 18px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06) !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
}

/* 任务页表单卡片 */
#task-form-box {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06);
    padding: 16px;
    margin-bottom: 14px;
}

/* 任务页：默认只显示列表，表单字段收起（点「新建任务」展开） */
#task-form-box:not(.open) > *:not(.task-lists) {
    display: none !important;
}

#task-form-box.open {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06);
    padding: 16px;
    margin-bottom: 14px;
}


/* ==================== 生产页：录入表单默认收起 ==================== */
#production-form-box:not(.open) {
    display: none !important;
}

#production-form-box.open {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06);
    padding: 16px;
    margin-bottom: 14px;
}

/* ==================== 白名单卡片 ==================== */
#whitelist-list .wl-item {
    background: #fff !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06) !important;
    padding: 13px 14px 11px !important;
    margin-bottom: 10px !important;
}

.wl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.wl-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #26324a;
}

.wl-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: linear-gradient(135deg, #5b7cfa, #9d5cf0);
    box-shadow: 0 1px 4px rgba(91, 124, 250, .45);
}

.wl-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.wl-btn-unbind,
.wl-btn-del {
    border: none;
    border-radius: 9px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.wl-btn-unbind { background: linear-gradient(135deg, #ffb020, #f59e0b); }
.wl-btn-unbind[disabled] { background: #d8dce4; cursor: not-allowed; }
.wl-btn-del { background: linear-gradient(135deg, #ff6b6b, #f43f5e); }

.wl-badge-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.wl-online {
    font-size: 11.5px;
    font-weight: 600;
    color: #14875b;
    background: #e8f7ee;
    border-radius: 999px;
    padding: 3px 9px;
}

.wl-wage {
    font-size: 11.5px;
    font-weight: 700;
    color: #c0243c;
    background: #fdecef;
    border-radius: 999px;
    padding: 3px 9px;
}

.wl-rows {
    display: grid;
    gap: 3px;
}

.wl-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    line-height: 1.7;
}

.wl-row .k { color: #98a2b3; flex: 0 0 auto; }
.wl-row .v { color: #3f4a60; text-align: right; word-break: break-all; }

/* ==================== 审核卡片 ==================== */
#audit-list .audit-item {
    background: #fff !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .06) !important;
    padding: 14px !important;
    margin-bottom: 10px !important;
    animation: none !important;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    flex-wrap: wrap;
}

.audit-worker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3f4a60 !important;
    -webkit-text-fill-color: #3f4a60 !important;
    font-size: 13.5px;
    font-weight: 700;
}

.audit-product {
    padding: 4px 11px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #55607a !important;
    font-size: 12px;
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: break-word;
}

.audit-image {
    display: block;
    max-width: 100%;
    max-height: 180px;
    margin: 0 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .2);
}

.audit-processes {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 8px !important;
    margin-bottom: 10px !important;
}

.audit-process {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px !important;
    border-radius: 8px;
    font-size: 12.5px;
    background: transparent !important;
    margin-bottom: 2px !important;
}

.audit-process .pn { color: #55607a; }
.audit-process .pq { color: #4f6ef7; font-weight: 700; }

.audit-actions { display: flex; gap: 8px; }

.audit-btn {
    flex: 1;
    padding: 10px !important;
    border: none !important;
    border-radius: 11px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer;
}

.audit-btn.approve { background: linear-gradient(135deg, #34d399, #10b981) !important; box-shadow: 0 3px 10px rgba(16, 185, 129, .22) !important; }
.audit-btn.reject { background: linear-gradient(135deg, #ff6b6b, #f43f5e) !important; box-shadow: 0 3px 10px rgba(244, 63, 94, .22) !important; }

/* 生产页：按钮 → 录入表单 → 数据看板（用 flex 顺序调整，不搬动 DOM） */
#production-page.active {
    display: flex !important;
    flex-direction: column;
}

#production-page #prod-form-toggle { order: 1; }
#production-page #production-form-box { order: 2; }
#production-page #dashboard-panel { order: 3; }

/* 去掉页面底部的大块空白（原来 padding-bottom:130px + main-content 92px 叠加） */
.page {
    padding-bottom: 16px !important;
}

#personal-page {
    padding-bottom: 16px !important;
}

.main-content {
    padding-bottom: 0 !important;
}

/* 页脚自己留出底部导航的空间 */
.site-footer-info {
    padding-bottom: 96px !important;
}

/* 白名单卡片里的「页面」按钮 */
.wl-btn-pages {
    border: none;
    border-radius: 9px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #5b7cfa, #7c5cf0);
}

/* 白名单卡片：底薪按钮 + 底薪标签 */
.wl-btn-salary {
    border: none;
    border-radius: 9px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #f59e0b, #ef8c2a);
}

.wl-salary {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    background: #fef3e2;
    border: 1px solid #fde3c0;
}

/* 仓库页：可折叠区块（二维码 / 单价配置） */
.wh-section.collapsed {
    padding: 10px 12px !important;
}

.wh-section.collapsed > *:not(.wh-toggle) {
    display: none !important;
}

.wh-toggle {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px dashed rgba(79, 110, 247, .35);
    border-radius: 12px;
    background: rgba(79, 110, 247, .06);
    color: #4f6ef7;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.wh-toggle:active {
    background: rgba(79, 110, 247, .14);
}

.wh-section:not(.collapsed) > .wh-toggle {
    margin-bottom: 14px;
    border-style: solid;
    border-color: rgba(148, 163, 184, .28);
    background: #f7f9fd;
    color: #6b7280;
}

/* ==================== 生产/动态/任务 合并页顶部切换栏 ==================== */
.merged-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 16px 8px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    position: sticky;
    top: 0;
    z-index: 50;
}

.merged-tab {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: #f6f8fd;
    color: #6b7a94;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.merged-tab.active {
    background: linear-gradient(135deg, #5b7cfa, #7c5cf0);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 124, 250, .28);
}

.merged-tab:active {
    transform: scale(.98);
}

/* 合并页：切换栏下方的操作行（退出按钮） */
.merged-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 16px 0;
}

.merged-actions .logout-btn {
    margin-right: 0 !important;
    margin-left: auto;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: #fff;
    color: #4b5563;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}

/* ==================== 管理后台：两个分页 ==================== */
.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 10px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-tab {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: #f6f8fd;
    color: #6b7a94;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.admin-tab.active {
    background: linear-gradient(135deg, #5b7cfa, #7c5cf0);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 124, 250, .28);
}

.admin-pane {
    display: none;
}

.admin-pane.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 12px 10px 4px;
}

/* 白名单卡片精简版：只有姓名和功能按钮 */
.wl-item-slim {
    padding: 12px 14px !important;
}

.wl-item-slim .wl-head {
    margin-bottom: 0 !important;
    align-items: center;
}

.wl-item-slim .wl-name {
    font-size: 15px;
}

/* ==================== 顶部导航统一风格（分段控件） ====================
   以后新增顶部导航：容器加 class="seg-tabs"，按钮加 class="seg-tab"，
   选中按钮再加 active 即可。 */
.seg-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    margin: 10px 12px 4px;
    border-radius: 16px;
    background: rgba(236, 241, 250, .95) !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    box-shadow: inset 0 1px 3px rgba(148, 163, 184, .16) !important;
    position: sticky;
    top: 8px;
    z-index: 50;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.seg-tab {
    flex: 1;
    padding: 10px 8px !important;
    border: none !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #66738c !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: none !important;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.seg-tab.active {
    background: #ffffff !important;
    color: #4f6ef7 !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .12), 0 1px 2px rgba(31, 41, 55, .06) !important;
}

.seg-tab:active {
    transform: scale(.985);
}

/* 旧样式里的贴边白底/下边框去掉，避免和分段控件打架 */
.merged-tabs,
.admin-tabs {
    border-bottom: none !important;
    background: rgba(236, 241, 250, .95) !important;
}

@media (max-width: 360px) {
    .seg-tab { font-size: 13.5px !important; padding: 9px 6px !important; }
}

/* ==================== 白名单：横向滑动卡片 ==================== */
.wl-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 14px 4px 18px;
    scrollbar-width: none;
}

.wl-carousel::-webkit-scrollbar {
    display: none;
}

.wl-carousel .wl-item {
    flex: 0 0 84%;
    min-width: 84%;
    min-height: 168px;
    scroll-snap-align: center;
    border-radius: 20px;
    padding: 20px 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 6px 22px rgba(31, 41, 55, .08);
    transition: transform .32s cubic-bezier(.2, .8, .3, 1), opacity .32s ease, box-shadow .32s ease;
    transform: scale(.9);
    opacity: .55;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wl-carousel .wl-item.is-center {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 12px 34px rgba(91, 124, 250, .22);
}

.wl-carousel .wl-item .wl-name {
    font-size: 19px;
    font-weight: 800;
    color: #1f2937;
}

.wl-carousel .wl-item .wl-head {
    margin-bottom: 0;
    gap: 10px;
}

.wl-carousel .wl-item .wl-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wl-carousel .wl-item .wl-btn-pages,
.wl-carousel .wl-item .wl-btn-salary,
.wl-carousel .wl-item .wl-btn-del {
    padding: 7px 14px;
    font-size: 12.5px;
    border-radius: 10px;
}

/* 卡片中间区域（以后放更多内容） */
.wl-card-body {
    flex: 1;
    font-size: 13px;
    color: #98a2b3;
    line-height: 1.7;
}

/* 白名单卡片三排布局：按钮 / 姓名 / 底薪 */
.wl-carousel .wl-item .wl-actions {
    justify-content: flex-end;
    gap: 8px;
    order: 1;
}

.wl-name-row {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.wl-name-row .wl-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: linear-gradient(135deg, #5b7cfa, #9d5cf0);
    flex: 0 0 auto;
}

.wl-name-row .wl-name {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: .3px;
}

.wl-salary-row {
    order: 3;
    margin-top: 2px;
    padding-left: 17px;
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
}

.wl-carousel .wl-item.wl-item-slim {
    justify-content: flex-start;
    gap: 6px;
    padding: 16px 18px;
}

/* ==================== 白名单卡片：美化版 ==================== */
.wl-carousel {
    padding: 18px 6px 22px;
    gap: 16px;
}

.wl-carousel .wl-item,
.wl-carousel .wl-item.wl-item-slim {
    flex: 0 0 84%;
    min-width: 84%;
    min-height: 208px;
    padding: 20px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 6px 18px rgba(31, 41, 55, .07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transform: scale(.93);
    opacity: .7;
    transition: transform .38s cubic-bezier(.22, .8, .3, 1),
                opacity .38s ease,
                box-shadow .38s ease,
                border-color .38s ease;
}

.wl-carousel .wl-item.is-center {
    transform: scale(1);
    opacity: 1;
    border-color: rgba(91, 124, 250, .28);
    box-shadow: 0 14px 36px rgba(91, 124, 250, .20);
}

/* 按钮行：居中 */
.wl-carousel .wl-item .wl-actions {
    order: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.wl-carousel .wl-item .wl-btn-pages,
.wl-carousel .wl-item .wl-btn-salary,
.wl-carousel .wl-item .wl-btn-del {
    padding: 7px 15px;
    font-size: 12.5px;
    border-radius: 11px;
    box-shadow: 0 2px 6px rgba(31, 41, 55, .10);
}

/* 姓名行：居中 */
.wl-name-row {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 0;
}

.wl-name-row .wl-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, #5b7cfa, #9d5cf0);
}

.wl-name-row .wl-name {
    font-size: 21px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: .5px;
}

/* 底薪：药丸标签，居中 */
.wl-salary-row {
    order: 3;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #b45309;
    background: #fef3e2;
    border: 1px solid #fde3c0;
    text-align: center;
}

/* ==================== 功能权限：未授权则隐藏 ==================== */
/* 关闭「新建任务」：只隐藏按钮和表单输入，任务列表必须保留 */
body.perm-no-task #task-form-toggle {
    display: none !important;
}

body.perm-no-task #task-form-box > *:not(.task-lists) {
    display: none !important;
}

body.perm-no-mat-add #add-material-btn {
    display: none !important;
}

body.perm-no-mat-del .mi-del {
    display: none !important;
}

body.perm-no-mat-in .mi-btn-in {
    display: none !important;
}

body.perm-no-mat-use .mi-btn-use {
    display: none !important;
}

body.perm-no-produce #prod-form-toggle,
body.perm-no-produce #production-page,
body.perm-no-produce #prod-form-moved-label {
    display: none !important;
}

/* ==================== 白名单卡片：连续缩放（左右变小、中间放大） ==================== */
.wl-carousel {
    align-items: center !important;
    padding: 18px 6px 22px !important;
    gap: 16px !important;
}

.wl-carousel .wl-item,
.wl-carousel .wl-item.wl-item-slim {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    box-sizing: border-box;
    transform-origin: center top !important;
    will-change: transform, opacity;
    transition: transform .18s ease-out, opacity .18s ease-out, box-shadow .18s ease-out;
    /* 初始不给缩放，由 JS 按距离实时计算 */
    transform: scale(0.9);
    opacity: .75;
}

/* 卡片略窄，滑到中间时能看到左右两边下一张 */
.wl-carousel .wl-item,
.wl-carousel .wl-item.wl-item-slim {
    flex: 0 0 78% !important;
    min-width: 78% !important;
}

/* 卡片统一顶部对齐 */
.wl-carousel {
    align-items: flex-start !important;
}
.wl-carousel .wl-item,
.wl-carousel .wl-item.wl-item-slim {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform-origin: center top !important;
}

/* ==================== 白名单卡片：大卡 + 顺滑滑动 + 居中吸附 ==================== */
.wl-carousel {
    align-items: center !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 6px;
    padding: 18px 6px 24px !important;
    gap: 14px !important;
}

.wl-carousel .wl-item,
.wl-carousel .wl-item.wl-item-slim {
    flex: 0 0 88% !important;
    min-width: 88% !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always;
    margin: 0 !important;
    padding: 22px 20px !important;
    border-radius: 24px !important;
    /* 只对透明度和阴影做过渡，缩放交给 JS 每帧更新，避免抖动 */
    transition: opacity .18s ease-out, box-shadow .18s ease-out !important;
    transform-origin: center top !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.wl-carousel .wl-item .wl-name-row .wl-name {
    font-size: 23px !important;
}

.wl-carousel .wl-item .wl-btn-pages,
.wl-carousel .wl-item .wl-btn-salary,
.wl-carousel .wl-item .wl-btn-del {
    padding: 9px 18px !important;
    font-size: 13.5px !important;
    border-radius: 12px !important;
}

.wl-carousel .wl-item .wl-salary-row {
    font-size: 13.5px !important;
    padding: 6px 16px !important;
}

/* ==================== 卡片加宽 + 真正居中 ==================== */
#whitelist-list.wl-carousel,
#whitelist-list-pack.wl-carousel {
    /* 左右留出 (100% - 卡片宽)/2 的空白，第一张卡片天然居中 */
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    padding: 18px 10vw 24px !important;  /* (100vw - 80vw)/2 */
    scroll-padding-left: 0 !important;
    scroll-padding-right: 0 !important;
    scroll-snap-type: x mandatory !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

#whitelist-list .wl-item,
#whitelist-list-pack .wl-item {
    /* 82vw：比可视区(88vw)窄，两侧各露出约 3vw 的下一张卡片 */
    flex: 0 0 80vw !important;
    min-width: 80vw !important;
    max-width: 80vw !important;
    scroll-snap-align: center !important;
    transform-origin: center top !important;
}

#whitelist-list.wl-carousel,
#whitelist-list-pack.wl-carousel {
    gap: 10px !important;
}

/* ==================== 卡片叠加式（后一张压在前一张下面） ==================== */
#whitelist-list.wl-carousel,
#whitelist-list-pack.wl-carousel {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    padding: 20px 8vw 26px !important;
    box-sizing: border-box !important;
    gap: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory !important;
}

#whitelist-list .wl-item,
#whitelist-list-pack .wl-item {
    flex: 0 0 84vw !important;
    min-width: 84vw !important;
    max-width: 84vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    scroll-snap-align: center !important;
    transform-origin: center top !important;
    position: relative;
}

/* 相邻卡片向左压过来，形成叠加 */
#whitelist-list .wl-item + .wl-item,
#whitelist-list-pack .wl-item + .wl-item {
    margin-left: -18vw !important;
}

/* 保险：关闭「新建任务」时，任务列表必须始终可见 */
body.perm-no-task #task-form-box .task-lists,
body.perm-no-task #task-form-box .task-lists * {
    visibility: visible !important;
}

body.perm-no-task #task-form-box .task-lists {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
}

/* ==================== 员工卡片：美化版（头像 + 底部按钮 + 指示点） ==================== */
#whitelist-list .wl-item,
#whitelist-list-pack .wl-item {
    height: 268px !important;
    min-height: 268px !important;
    max-height: 268px !important;
    padding: 20px 18px 18px !important;
    border-radius: 26px !important;
    background: linear-gradient(165deg, #ffffff 0%, #f6f8ff 55%, #eef2ff 100%) !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    box-shadow: 0 10px 26px rgba(31, 41, 55, .10) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
}

/* 头像 */
.wl-avatar {
    order: 1;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #5b7cfa, #9d5cf0);
    box-shadow: 0 8px 18px rgba(91, 124, 250, .30);
    margin-top: 4px;
}

/* 姓名 */
.wl-name-row {
    order: 2;
    margin-top: 12px !important;
    justify-content: center;
    gap: 0;
}

.wl-name-row .wl-name {
    font-size: 22px !important;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: .5px;
}

/* 底薪 */
.wl-salary-row {
    order: 3;
    margin-top: 10px !important;
    padding: 6px 16px !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
    background: #fff7e8;
    border: 1px solid #fde3c0;
}

.wl-salary-row.is-empty {
    color: #98a2b3;
    background: #f4f6fa;
    border-color: #e6eaf2;
    font-weight: 600;
}

/* 按钮固定在底部 */
.wl-actions {
    order: 4;
    margin-top: auto !important;
    padding-top: 14px;
    display: flex;
    justify-content: center;
    gap: 9px;
    width: 100%;
}

.wl-actions .wl-btn-pages,
.wl-actions .wl-btn-salary,
.wl-actions .wl-btn-del {
    flex: 0 0 auto;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 8px rgba(31, 41, 55, .12);
}

/* 指示点 */
.wl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: -6px 0 4px;
    height: 14px;
}

.wl-dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .45);
    transition: width .25s ease, background .25s ease;
}

.wl-dots i.on {
    width: 18px;
    background: linear-gradient(135deg, #5b7cfa, #7c5cf0);
}

/* 卡片内部顺序：头像 → 姓名 → 底薪 → 按钮 */
#whitelist-list .wl-item .wl-avatar,
#whitelist-list-pack .wl-item .wl-avatar { order: 1 !important; }

#whitelist-list .wl-item .wl-name-row,
#whitelist-list-pack .wl-item .wl-name-row { order: 2 !important; margin-top: 12px !important; }

#whitelist-list .wl-item .wl-salary-row,
#whitelist-list-pack .wl-item .wl-salary-row { order: 3 !important; margin-top: 10px !important; }

#whitelist-list .wl-item .wl-actions,
#whitelist-list-pack .wl-item .wl-actions {
    order: 4 !important;
    margin-top: auto !important;
    padding-top: 14px !important;
    justify-content: center !important;
}

/* ==================== 个人页右上角退出按钮 / 包装部占位 ==================== */
.personal-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 2px 10px;
}

.personal-topbar .logout-btn {
    margin-right: 0 !important;
    margin-left: auto;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: #fff;
    color: #4b5563;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}

.pack-placeholder {
    margin-top: 16px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 4px 16px rgba(31, 41, 55, .07);
    padding: 48px 20px;
    text-align: center;
}

.pack-placeholder-icon {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 14px;
}

.pack-placeholder-text {
    font-size: 14px;
    color: #98a2b3;
}

/* ==================== 卡片垂直居中（两侧卡片与主卡中心对齐） ==================== */
#whitelist-list.wl-carousel,
#whitelist-list-pack.wl-carousel {
    align-items: center !important;
}

#whitelist-list .wl-item,
#whitelist-list-pack .wl-item {
    transform-origin: center center !important;
    align-self: center !important;
}

/* ==================== 上下班打卡 ==================== */
.ci-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 30px;
}

.ci-title {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: .5px;
}

.ci-date {
    margin-top: 4px;
    font-size: 13px;
    color: #98a2b3;
}

.ci-circle {
    margin: 26px 0 8px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .3s ease;
    box-shadow: 0 16px 40px rgba(16, 185, 129, .30);
    background: linear-gradient(150deg, #34d399 0%, #10b981 100%);
}

.ci-circle:active {
    transform: scale(.97);
}

.ci-circle.state-none {
    background: linear-gradient(150deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 16px 40px rgba(16, 185, 129, .32);
}

.ci-circle.state-in,
.ci-circle.state-ok {
    background: linear-gradient(150deg, #5b9dfa 0%, #2563eb 100%);
    box-shadow: 0 16px 40px rgba(37, 99, 235, .32);
}

.ci-circle.state-late,
.ci-circle.state-early,
.ci-circle.state-late_early {
    background: linear-gradient(150deg, #fb7185 0%, #dc2626 100%);
    box-shadow: 0 16px 40px rgba(220, 38, 38, .34);
}

.ci-circle-label {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.ci-circle-time {
    font-size: 30px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.ci-circle-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.ci-detail {
    margin-top: 22px;
    width: 100%;
    max-width: 330px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(31, 41, 55, .07);
    padding: 6px 16px;
}

.ci-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 2px;
    font-size: 15px;
    color: #4b5563;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.ci-row:last-child {
    border-bottom: none;
}

.ci-row b {
    font-size: 17px;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.ci-row.rule b {
    color: #6b7a94;
    font-size: 15px;
}

/* ==================== 打卡记录页（参考打卡表样式） ==================== */
.ci-pane { display: none; }
.ci-pane.active { display: block; }

.rec-hero {
    margin: 6px 10px 12px;
    border-radius: 20px;
    padding: 18px 16px 14px;
    background: linear-gradient(135deg, #2f9bff 0%, #1f7cf5 55%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .28);
}

.rec-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rec-year { font-size: 22px; font-weight: 800; letter-spacing: .5px; }

.rec-month {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.rec-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.rec-nav:active { background: rgba(255, 255, 255, .38); }

.rec-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.rec-stat {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    padding: 10px 8px;
    text-align: center;
}

.rec-stat-label { display: block; font-size: 11px; color: rgba(255, 255, 255, .8); }

.rec-stat b { font-size: 20px; font-weight: 800; margin-right: 2px; }

.rec-stat-unit { font-size: 11px; color: rgba(255, 255, 255, .8); }

.rec-stat.wage b { color: #ffe07a; }

/* 日历 */
.rec-calendar {
    margin: 0 10px 12px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 4px 16px rgba(31, 41, 55, .07);
    padding: 14px 8px 10px;
}

.rec-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 6px;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px 0;
}

.rec-cell {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 2px 6px;
    border-radius: 10px;
    cursor: pointer;
}

.rec-cell.empty { cursor: default; }

.rec-cell.sel {
    background: rgba(91, 124, 250, .12);
}

.rec-cell .d {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.rec-cell.off .d { color: #c8cfda; }

.rec-cell .h {
    font-size: 10px;
    color: #2f9bff;
    font-weight: 700;
    margin-top: 2px;
    line-height: 1.2;
}

.rec-cell .w {
    font-size: 9.5px;
    color: #f59e0b;
    font-weight: 700;
    line-height: 1.2;
}

.rec-cell .tag {
    font-size: 9.5px;
    color: #ef4444;
    font-weight: 700;
    line-height: 1.2;
}

/* 当日详情 */
.rec-detail {
    margin: 0 10px 16px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 4px 16px rgba(31, 41, 55, .07);
    padding: 6px 16px 8px;
}

.rec-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.rec-detail-date { font-size: 18px; font-weight: 800; color: #1f2937; }

.rec-detail-wage { font-size: 20px; font-weight: 800; color: #f59e0b; }

.rec-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2px;
    font-size: 15px;
    color: #4b5563;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.rec-detail-row:last-child { border-bottom: none; }

.rec-detail-row b { font-size: 16px; color: #1f2937; font-variant-numeric: tabular-nums; }

/* 打卡按钮三态：蓝（可打）/ 红（迟到早退）/ 灰（等待或已完成） */
.ci-circle.state-blue {
    background: linear-gradient(150deg, #5b9dfa 0%, #2563eb 100%) !important;
    box-shadow: 0 16px 40px rgba(37, 99, 235, .32) !important;
}

.ci-circle.state-red {
    background: linear-gradient(150deg, #fb7185 0%, #dc2626 100%) !important;
    box-shadow: 0 16px 40px rgba(220, 38, 38, .34) !important;
}

.ci-circle.state-gray {
    background: linear-gradient(150deg, #cbd5e1 0%, #94a3b8 100%) !important;
    box-shadow: 0 12px 28px rgba(100, 116, 139, .25) !important;
    color: rgba(255, 255, 255, .95);
}

.ci-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}

.ci-tag.red { color: #dc2626; background: #fee2e2; }
.ci-tag.blue { color: #2563eb; background: #dbeafe; }
.ci-tag.gray { color: #64748b; background: #f1f5f9; }

/* 打卡记录：当日合计 + 月度工资汇总 */
.rec-detail-row.total b { color: #e11d48; font-weight: 800; }

.rec-summary {
    margin: 0 10px 16px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 4px 16px rgba(31, 41, 55, .07);
    padding: 14px 16px;
}

.rec-summary-title {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.rec-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 13.5px;
    color: #6b7280;
    border-bottom: 1px dashed rgba(148, 163, 184, .18);
}

.rec-summary-row b { color: #1f2937; font-variant-numeric: tabular-nums; }

.rec-summary-tip {
    font-size: 11.5px;
    color: #98a2b3;
    padding: 8px 0 2px;
    line-height: 1.6;
}

.rec-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, .18);
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
}

.rec-summary-total b { font-size: 22px; color: #e11d48; }

/* 历史月工资 */
.rec-history {
    margin: 0 10px 18px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 4px 16px rgba(31, 41, 55, .07);
    padding: 14px 16px 6px;
}

.rec-history-title {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
}

.rec-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    cursor: pointer;
}

.rec-history-row:last-child { border-bottom: none; }

.rec-history-row .m {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    min-width: 74px;
}

.rec-history-row .d {
    flex: 1;
    font-size: 11.5px;
    color: #98a2b3;
    line-height: 1.5;
}

.rec-history-row .t {
    font-size: 16px;
    font-weight: 800;
    color: #e11d48;
    font-variant-numeric: tabular-nums;
}

.rec-history-row.cur {
    background: rgba(91, 124, 250, .06);
    border-radius: 10px;
    padding-left: 8px;
    padding-right: 8px;
}

.rec-history-empty {
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
    padding: 12px 0;
}

/* 打卡定位提示 */
.ci-loc {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ci-loc-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ci-loc-tag.gray { color: #64748b; background: #f1f5f9; }
.ci-loc-tag.green { color: #047857; background: #d1fae5; }
.ci-loc-tag.red { color: #b91c1c; background: #fee2e2; }
.ci-loc-tag.blue { color: #1d4ed8; background: #dbeafe; }

.ci-loc-set {
    border: 1px dashed rgba(79, 110, 247, .4);
    background: rgba(79, 110, 247, .06);
    color: #4f6ef7;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

/* ==================== 员工卡片：本月打卡（日期纵向 + 横排6格） ==================== */
.wl-punch {
    order: 5;
    width: 100%;
    margin-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, .28);
    padding-top: 8px;
}

.wl-punch-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #66738c;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: .3px;
}

.wl-punch-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 168px;
    overflow-y: auto;
    padding-right: 2px;
}

.wl-punch-grid::-webkit-scrollbar { width: 3px; }
.wl-punch-grid::-webkit-scrollbar-thumb { background: rgba(148,163,184,.4); border-radius: 3px; }

/* 一行 = 一天 */
.wl-prow {
    display: grid;
    grid-template-columns: 26px repeat(5, 1fr);
    gap: 3px;
    align-items: stretch;
}

/* 日期（纵向排列的一列） */
.wl-pdate {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    background: #eef2f8;
    border-radius: 6px;
}

/* 单格打卡 */
.wl-pslot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 8.5px;
    color: #cbd5e1;
    line-height: 1.15;
    padding: 2px 0;
}

.wl-pslot.has {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.wl-pslot.has .a {
    font-size: 8px;
    font-weight: 800;
    opacity: .75;
}

.wl-pslot.has .tm {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.wl-pslot.late {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.wl-pslot.early {
    background: #fff7ed;
    color: #d97706;
    border-color: #fed7aa;
}

/* 整行状态 */
.wl-prow.empty .wl-pdate { background: #f8fafc; color: #cbd5e1; }
.wl-prow.late .wl-pdate { background: #fee2e2; color: #b91c1c; }
.wl-prow.early .wl-pdate { background: #ffedd5; color: #b45309; }

.wl-punch-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 11px;
    color: #98a2b3;
    padding: 8px 0;
}

/* 卡片变高以容纳打卡表 */
#whitelist-list .wl-item,
#whitelist-list-pack .wl-item {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    justify-content: flex-start !important;
}


/* ==================== 打卡时间格：加大加粗 ==================== */
#whitelist-list .wl-item,
#whitelist-list-pack .wl-item {
    height: 440px !important;
    min-height: 440px !important;
    max-height: 440px !important;
    justify-content: flex-start !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.wl-punch {
    margin-left: -8px;
    margin-right: -8px;
}

.wl-punch-grid {
    gap: 4px;
    max-height: 186px;
}

.wl-prow {
    grid-template-columns: 20px repeat(5, 1fr);
    gap: 3px;
}

.wl-pdate {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    background: #e2e8f0;
    border-radius: 5px;
}

/* 单格：加到 34px 高、字更大 */
.wl-pslot {
    min-height: 34px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -.2px;
    padding: 2px 0;
}

.wl-pslot .tm {
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.wl-pslot .a {
    font-size: 9px;
    line-height: 1;
}

/* 已打卡（正常）——绿色更浓 */
.wl-pslot.has {
    background: #bbf7d0;
    color: #065f46;
    border: 1.5px solid #34d399;
}

/* 迟到——红色更浓 */
.wl-pslot.has.late {
    background: #fecaca;
    color: #991b1b;
    border: 1.5px solid #f87171;
}

/* 早退——橙色更浓 */
.wl-pslot.has.early {
    background: #fed7aa;
    color: #9a3412;
    border: 1.5px solid #fb923c;
}

/* 不适用（生产部中途）——淡灰虚线 */
.wl-pslot.na {
    background: #f8fafc;
    color: #cbd5e1;
    border: 1px dashed #e2e8f0;
}

/* 漏卡——淡红虚线 */
.wl-pslot.miss {
    background: #fff1f2;
    color: #fda4af;
    border: 1px dashed #fecdd3;
}

/* 空白格 */
.wl-pslot.blank {
    background: transparent;
    border: none;
}

/* 日期块按状态着色 */
.wl-prow.empty .wl-pdate { background: #f1f5f9; color: #cbd5e1; }
.wl-prow.late .wl-pdate { background: #fca5a5; color: #7f1d1d; }
.wl-prow.early .wl-pdate { background: #fdba74; color: #7c2d12; }

/* ==================== 电脑端布局（>=1100px） ==================== */
@media (min-width: 1100px) {

    html, body { height: 100%; overflow: hidden; }

    /* ---------- 外壳 ---------- */
    .app-container {
        max-width: none !important;
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: row !important;
        background: #f1f5fb !important;
    }

    /* ---------- 左侧导航 ---------- */
    .bottom-nav {
        position: fixed !important;
        left: 0 !important; top: 0 !important; bottom: 0 !important; right: auto !important;
        transform: none !important;
        width: 210px !important; max-width: 210px !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 26px 0 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        background: #ffffff !important;
        border: none !important;
        border-right: 1px solid #e6ecf5 !important;
        box-shadow: 4px 0 18px rgba(15, 23, 42, .05) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 1000 !important;
    }

    .bottom-nav .nav-item {
        position: relative !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 14px !important;
        padding: 13px 14px !important;
        border-radius: 11px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        color: #64748b !important;
        background: transparent !important;
        transition: background .16s ease, color .16s ease !important;
    }

    .bottom-nav .nav-item:hover {
        background: #f2f6fd !important;
        color: #334155 !important;
    }

    .bottom-nav .nav-item.active {
        background: #eaf0ff !important;
        color: #3b5bdb !important;
        font-weight: 800 !important;
    }

    .bottom-nav .nav-item.active .nav-icon svg { stroke: #3b5bdb !important; }

    .bottom-nav .nav-icon { flex: 0 0 22px !important; width: 22px !important; height: 22px !important; }
    .bottom-nav .nav-icon svg { width: 21px !important; height: 21px !important; }
    .bottom-nav .nav-text { font-size: 15px !important; margin: 0 !important; white-space: nowrap !important; }

    /* ---------- 主内容区 ---------- */
    .main-content {
        margin-left: 210px !important;
        width: calc(100% - 210px) !important;
        max-width: none !important;
        padding: 24px 32px 48px !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #f1f5fb !important;
        box-sizing: border-box !important;
    }

    /* ---------- 所有页面统一：限宽居中、禁止多栏瀑布流 ---------- */
    .page,
    #personal-page,
    #tech-page,
    #clockin-page,
    #material-page {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding-bottom: 20px !important;
    }

    .page-content {
        display: block !important;
        column-count: auto !important;
        column-width: auto !important;
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    #page-title {
        max-width: 1200px !important;
        margin: 0 auto 16px !important;
        font-size: 21px !important;
        font-weight: 900 !important;
        text-align: left !important;
        padding-left: 2px !important;
        color: #1f2937 !important;
    }

    /* ---------- 个人页：左表单 / 右记录 ---------- */
    #personal-page .page-content {
        display: grid !important;
        grid-template-columns: 400px minmax(0, 1fr) !important;
        grid-template-areas:
            "topbar topbar"
            "hero   hero"
            "form   list" !important;
        gap: 18px 26px !important;
        align-items: start !important;
    }

    #personal-page .personal-topbar { grid-area: topbar !important; }
    #personal-page .ps-hero { grid-area: hero !important; width: 100% !important; }
    #personal-page #prod-form-moved-label,
    #personal-page #production-page,
    #personal-page #personal-product-section,
    #personal-page #personal-input-section { grid-area: form !important; width: 100% !important; }
    #personal-page .page-content > div:last-child { grid-area: list !important; width: 100% !important; }

    /* 记录卡片在电脑端改两列网格 */
    #personal-page .personal-list-horizontal {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 14px !important;
        max-height: 620px !important;
        overflow-y: auto !important;
        padding: 4px !important;
    }

    /* ---------- 打卡页：左圆右信息 ---------- */
    #ci-pane-clock .ci-wrap {
        display: grid !important;
        grid-template-columns: 340px minmax(320px, 1fr) !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 16px 36px !important;
        align-items: center !important;
        max-width: 940px !important;
        margin: 20px auto 0 !important;
    }
    #ci-pane-clock .ci-title { grid-column: 1 / -1 !important; grid-row: 1 !important; text-align: center !important; margin: 0 !important; }
    #ci-pane-clock .ci-date { grid-column: 1 / -1 !important; grid-row: 2 !important; text-align: center !important; margin-bottom: 10px !important; }
    #ci-pane-clock .ci-circle { grid-column: 1 !important; grid-row: 3 / span 2 !important; width: 300px !important; height: 300px !important; margin: 0 auto !important; }
    #ci-pane-clock .ci-loc { grid-column: 2 !important; grid-row: 3 !important; margin-top: 0 !important; align-items: flex-start !important; }
    #ci-pane-clock .ci-detail { grid-column: 2 !important; grid-row: 4 !important; margin-top: 0 !important; align-self: start !important; }

    /* ---------- 打卡记录页：左日历右明细 ---------- */
    #ci-pane-records:not(.active) {
        display: none !important;
    }

    #ci-pane-clock:not(.active) {
        display: none !important;
    }

    #ci-pane-records.active {
        display: grid !important;
        grid-template-columns: minmax(340px, 1.05fr) minmax(320px, 1fr) !important;
        gap: 20px 24px !important;
        align-items: start !important;
        max-width: 1020px !important;
        margin: 12px auto 0 !important;
    }
    #ci-pane-records .rec-hero { grid-column: 1 / -1 !important; }
    #ci-pane-records .rec-calendar { grid-column: 1 !important; }
    #ci-pane-records .rec-detail { grid-column: 2 !important; margin-top: 0 !important; }
    #ci-pane-records .rec-summary { grid-column: 2 !important; margin: 0 !important; }
    #ci-pane-records .rec-history { grid-column: 1 / -1 !important; margin: 4px 0 0 !important; }

    /* ---------- 员工卡片：网格平铺 ---------- */
    #whitelist-list,
    #whitelist-list-pack {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important;
        gap: 18px !important;
        padding: 16px 0 0 !important;
        align-items: start !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    #whitelist-list .wl-item,
    #whitelist-list-pack .wl-item {
        width: auto !important; max-width: none !important;
        height: auto !important; min-height: 440px !important; max-height: none !important;
        margin: 0 !important; transform: none !important; opacity: 1 !important;
        filter: none !important; z-index: auto !important; cursor: default !important;
    }
    #whitelist-list .wl-item + .wl-item,
    #whitelist-list-pack .wl-item + .wl-item { margin-left: 0 !important; }
    .wl-dots { display: none !important; }

    /* ---------- 表单两列 ---------- */
    .task-form,
    .production-form {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
        gap: 14px 20px !important;
        align-items: end !important;
        padding: 18px !important;
        border-radius: 16px !important;
    }
    .task-form > h3,
    .production-form > h3,
    .task-form .task-lists,
    .production-form .task-lists { grid-column: 1 / -1 !important; }

    /* ---------- 通用卡片宽度放开 ---------- */
    .warehouse-qr-actions { max-width: none !important; }
    .site-footer-info { max-width: 1200px !important; margin: 26px auto 0 !important; }
}

@media (min-width: 1600px) {
    .page, #personal-page, #tech-page, #clockin-page, #material-page { max-width: 1360px !important; }
    #page-title { max-width: 1360px !important; }
}

/* 侧栏标题（仅电脑端显示） */
.nav-brand { display: none; }

@media (min-width: 1100px) {
    .bottom-nav .nav-brand {
        display: block !important;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 1px;
        color: #1f2937;
        padding: 0 22px 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid #eef2f8;
    }

    /* 选中项更醒目 */
    .bottom-nav .nav-item.active {
        background: linear-gradient(135deg, #5b7cfa, #7c5cf0) !important;
        color: #ffffff !important;
        box-shadow: 0 6px 16px rgba(91, 124, 250, .32) !important;
    }

    .bottom-nav .nav-item.active .nav-icon svg { stroke: #ffffff !important; }
    .bottom-nav .nav-item.active .nav-text { color: #ffffff !important; }
}

/* ==================== 电脑端：员工卡片内部重排 ==================== */
@media (min-width: 1100px) {

    #whitelist-list,
    #whitelist-list-pack {
        grid-template-columns: repeat(auto-fill, minmax(320px, 380px)) !important;
        justify-content: start !important;
    }

    #whitelist-list .wl-item,
    #whitelist-list-pack .wl-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 18px 14px 14px !important;
        gap: 8px !important;
        position: relative !important;
    }

    #whitelist-list .wl-item .wl-avatar,
    #whitelist-list-pack .wl-item .wl-avatar,
    #whitelist-list .wl-item .wl-name-row,
    #whitelist-list-pack .wl-item .wl-name-row,
    #whitelist-list .wl-item .wl-salary-row,
    #whitelist-list-pack .wl-item .wl-salary-row,
    #whitelist-list .wl-item .wl-punch,
    #whitelist-list-pack .wl-item .wl-punch,
    #whitelist-list .wl-item .wl-actions,
    #whitelist-list-pack .wl-item .wl-actions {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    #whitelist-list .wl-item .wl-avatar,
    #whitelist-list-pack .wl-item .wl-avatar {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        border-radius: 50% !important;
        font-size: 22px !important;
        flex: 0 0 56px !important;
    }

    #whitelist-list .wl-item .wl-salary-row,
    #whitelist-list-pack .wl-item .wl-salary-row {
        width: auto !important;
        padding: 4px 12px !important;
    }

    #whitelist-list .wl-item .wl-actions,
    #whitelist-list-pack .wl-item .wl-actions {
        flex-direction: row !important;
        gap: 8px !important;
        margin-top: 6px !important;
    }

    /* 打卡表在卡片里的尺寸 */
    .wl-item .wl-punch { margin-top: 8px !important; border-top: 1px dashed #e6ecf5 !important; padding-top: 8px !important; }
    .wl-item .wl-punch-grid { max-height: 190px !important; gap: 3px !important; }
    .wl-item .wl-prow { grid-template-columns: 20px repeat(5, 1fr) !important; gap: 3px !important; }
    .wl-item .wl-pdate { font-size: 10.5px !important; }
    .wl-item .wl-pslot { min-height: 26px !important; }
    .wl-item .wl-pslot .tm { font-size: 9px !important; }
    .wl-item .wl-pslot .a { font-size: 8px !important; }

    /* 顶部三级标签限宽居中 */
    .seg-tabs {
        max-width: 720px !important;
        margin: 0 auto 16px !important;
    }
}

/* ==================== 员工卡片打卡表：颜色 + 休息标注 ==================== */

/* 正常打卡 → 绿色 */
.wl-pslot.has,
.wl-item .wl-pslot.has {
    background: #bbf7d0 !important;
    color: #065f46 !important;
    border: 1.5px solid #34d399 !important;
}

/* 迟到 → 橙色 */
.wl-pslot.has.late,
.wl-item .wl-pslot.has.late {
    background: #fed7aa !important;
    color: #9a3412 !important;
    border: 1.5px solid #fb923c !important;
}

/* 早退 → 红色 */
.wl-pslot.has.early,
.wl-item .wl-pslot.has.early {
    background: #fecaca !important;
    color: #991b1b !important;
    border: 1.5px solid #f87171 !important;
}

/* 未来的日子：淡空行 */
.wl-pblank {
    grid-column: 2 / -1;
    min-height: 26px;
    border-radius: 6px;
    background: #fafcff;
    border: 1px dashed #eef2f8;
}

.wl-prow.future .wl-pdate {
    background: #f8fafc;
    color: #cbd5e1;
}

/* 迟到当天日期块 → 橙，早退 → 红 */
.wl-prow.late .wl-pdate { background: #fdba74 !important; color: #7c2d12 !important; }
.wl-prow.early .wl-pdate { background: #fca5a5 !important; color: #7f1d1d !important; }

/* 电脑端卡片：去掉内部滚动，所有日期全部显示 */
@media (min-width: 1100px) {
    .wl-item .wl-punch-grid,
    #whitelist-list .wl-punch-grid,
    #whitelist-list-pack .wl-punch-grid {
        max-height: none !important;
        overflow: visible !important;
    }
    #whitelist-list .wl-item,
    #whitelist-list-pack .wl-item {
        min-height: 0 !important;
        height: auto !important;
    }
}


/* ==================== 休息条（深色 + 浅字，与时间格对齐） ==================== */
.wl-prest {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 6px;
    background: #475569;
    color: #f8fafc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.wl-prow.rest .wl-pdate {
    background: #334155 !important;
    color: #f8fafc !important;
    font-weight: 900;
}

/* 不需要打卡的时段：显示计划时间 */
.wl-pslot.na,
.wl-item .wl-pslot.na {
    background: #f6f9fd !important;
    border: 1px dashed #dfe7f2 !important;
    color: #8f9cb3 !important;
}

.wl-pslot.na .tm,
.wl-item .wl-pslot.na .tm {
    font-size: 9.5px !important;
    font-weight: 700 !important;
}

.wl-pslot.na .a,
.wl-item .wl-pslot.na .a {
    font-size: 8px !important;
    opacity: .6;
}

.wl-pslot.future-cell {
    background: #fcfdff !important;
    border: 1px dashed #e8eef8 !important;
    color: #b3bdcd !important;
    min-height: 26px !important;
}

.wl-pslot.future-cell .tm {
    font-size: 9px !important;
    font-weight: 700 !important;
}

.wl-pslot.future-cell .a {
    font-size: 8px !important;
    opacity: .5;
}

.wl-prow.future .wl-pdate {
    background: #f4f7fb !important;
    color: #b3bdcd !important;
}

/* ==================== 打卡表：撑满卡片两边、格子等比放大 ==================== */
.wl-item .wl-punch {
    margin-left: -14px !important;
    margin-right: -14px !important;
    width: calc(100% + 28px) !important;
    max-width: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    box-sizing: border-box !important;
}

.wl-item .wl-punch-grid {
    width: 100% !important;
    padding: 0 !important;
}

.wl-item .wl-prow {
    grid-template-columns: 20px repeat(5, minmax(0, 1fr)) !important;
    gap: 3px !important;
    width: 100% !important;
}

.wl-item .wl-pslot {
    min-height: 28px !important;
    font-size: 10px !important;
}

.wl-item .wl-pslot .tm,
.wl-item .wl-pslot.na .tm {
    font-size: 10px !important;
    font-weight: 800 !important;
}

.wl-item .wl-pslot .a {
    font-size: 8.5px !important;
}

.wl-item .wl-prest {
    min-height: 28px !important;
    font-size: 10.5px !important;
}

/* ==================== 员工卡片：休息统计 ==================== */
.wl-rest-stats {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2px;
}

.wl-rest-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5fb;
    border: 1px solid #e3eaf5;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.wl-rest-stats b {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.wl-rest-stats span.bonus {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
}

.wl-rest-stats span.bonus b {
    color: #c2410c;
}

/* 底薪胶囊：只显示数值 */
.wl-salary-row,
.wl-item .wl-salary-row {
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: .3px;
}

/* 卡片内元素顺序：头像 → 名字 → 底薪 → 休息统计 → 打卡表 → 按钮 */
#whitelist-list .wl-item .wl-avatar,
#whitelist-list-pack .wl-item .wl-avatar { order: 1 !important; }

#whitelist-list .wl-item .wl-name-row,
#whitelist-list-pack .wl-item .wl-name-row { order: 2 !important; }

#whitelist-list .wl-item .wl-salary-row,
#whitelist-list-pack .wl-item .wl-salary-row { order: 3 !important; }

#whitelist-list .wl-item .wl-rest-stats,
#whitelist-list-pack .wl-item .wl-rest-stats { order: 4 !important; margin-top: 4px !important; }

#whitelist-list .wl-item .wl-actions,
#whitelist-list-pack .wl-item .wl-actions { order: 5 !important; margin-top: 8px !important; }

#whitelist-list .wl-item .wl-punch,
#whitelist-list-pack .wl-item .wl-punch { order: 6 !important; }
