/* 天润医养服务系统 - 专用样式 */

/* ==================== 登录页面 ==================== */
.system-login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.05) 0%, 
        rgba(var(--btn-rgb), 0.05) 100%);
    padding: 40px 20px;
    position: relative;
    z-index: 999;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.login-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    border-radius: 20px;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--btn-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.3);
}

.login-mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(var(--primary-rgb), 0.05);
    padding: 5px;
    border-radius: 10px;
}

.login-mode-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.login-mode-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== 管理后台布局 ==================== */
.admin-container {
    display: flex;
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 100;
    background: rgba(29, 183, 192, 0.03);
}

/* 隐藏类 */
.hidden {
    display: none !important;
    visibility: hidden !important;
}

.admin-sidebar {
    width: 200px;
    background: linear-gradient(180deg, #1DB7C0 0%, #1798D0 100%);
    padding: 0;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    overflow-x: visible;
}

.admin-sidebar.collapsed {
    width: 0;
    overflow-y: hidden;
    overflow-x: visible;
}

.admin-sidebar.collapsed .sidebar-header h3,
.admin-sidebar.collapsed #current-user,
.admin-sidebar.collapsed .sidebar-item span,
.admin-sidebar.collapsed .submenu-item {
    display: none;
}

.admin-sidebar.collapsed .submenu {
    display: none !important;
}

.admin-sidebar.collapsed + .admin-main {
    margin-left: 0;
}

.sidebar-toggle-handle {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #1DB7C0 0%, #1798D0 100%);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 25px;
    height: 60px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 101;
}

.sidebar-toggle-handle:hover {
    background: linear-gradient(180deg, #1798D0 0%, #1DB7C0 100%);
    transform: translateY(-50%) scale(1.05);
}



.sidebar-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.logout-btn-small {
    font-size: 0.65rem;
    color: #ffffff;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logout-btn-small:hover {
    background: linear-gradient(180deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logout-btn-small:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#current-user {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sidebar-nav {
    padding: 4px 0;
}

.sidebar-item {
    padding: 3px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 1px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 500;
}

.sidebar-item.has-submenu .submenu-arrow {
    font-size: 0.35rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-item.has-submenu.expanded .submenu-arrow {
    transform: rotate(90deg);
}

/* 手风琴展开时的父菜单高亮 */
.sidebar-item.has-submenu.expanded {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
}

/* 子菜单项展开动画 */
.submenu-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.submenu.expanded .submenu-item {
    opacity: 1;
    transform: translateX(0);
}

/* 子菜单项依次出现动画 */
.submenu.expanded .submenu-item:nth-child(1) { transition-delay: 0.05s; }
.submenu.expanded .submenu-item:nth-child(2) { transition-delay: 0.1s; }
.submenu.expanded .submenu-item:nth-child(3) { transition-delay: 0.15s; }
.submenu.expanded .submenu-item:nth-child(4) { transition-delay: 0.2s; }
.submenu.expanded .submenu-item:nth-child(5) { transition-delay: 0.25s; }
.submenu.expanded .submenu-item:nth-child(6) { transition-delay: 0.3s; }

.submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
    padding: 0;
    margin: 0 12px;
    border-radius: 8px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.submenu.expanded {
    max-height: 500px;
    padding: 4px 0;
}

.submenu-item {
    padding: 5px 5px 5px 15px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    text-decoration: none;
    margin: 1px 8px;
    border-radius: 6px;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.submenu-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* 三级菜单样式 */
.submenu-item.has-submenu-level2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submenu-item.has-submenu-level2 .submenu-arrow-level2 {
    font-size: 0.35rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.submenu-item.has-submenu-level2.expanded .submenu-arrow-level2 {
    transform: rotate(90deg);
}

.submenu-level2 {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    padding: 0;
    margin: 0 8px 0 20px;
    border-radius: 6px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.submenu-level2.expanded {
    max-height: 300px;
    padding: 4px 0;
}

.submenu-level2-item {
    padding: 4px 5px 4px 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    text-decoration: none;
    margin: 1px 6px;
    border-radius: 4px;
}

.submenu-level2-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.submenu-level2-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.admin-main {
    flex: 1;
    margin-left: 200px;
    padding: 24px;
    background: rgba(29, 183, 192, 0.03) !important;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s ease;
    min-width: 0;
    overflow-x: hidden;
}

.admin-sidebar.collapsed + .admin-main {
    margin-left: 25px;
}

.module-content {
    display: none;
}

.module-content.active {
    display: block;
}

.module-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    background: transparent;
}

/* 必填项红色星号 */
.form-group label.required,
label.required {
    position: relative;
}

.form-group label.required::after,
label.required::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
}

.module-divider {
    height: 2px;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.02));
    margin-bottom: 20px;
    border-radius: 2px;
}

.module-placeholder {
    background: var(--white);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    color: var(--text-light);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ==================== 数据概览卡片 ==================== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(29, 183, 192, 0.03);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-info h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 6px 0;
    font-weight: 500;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* ==================== 管理员报表样式 ==================== */
.admin-report-section {
    background: rgba(29, 183, 192, 0.03);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    margin-top: 6px;
}

.report-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

.report-table-container {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.report-table th,
.report-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.report-table th {
    background: #f8fbfc;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.report-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}

.report-table .dept-name {
    font-weight: 500;
    color: var(--text-dark);
}

.report-table .sub-dept {
    padding-left: 24px;
    color: var(--text-light);
    position: relative;
}

.report-table .sub-dept::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(var(--primary-rgb), 0.3);
}

.report-table .total-row {
    background: #f8fbfc;
    font-weight: 600;
}

/* ==================== 设置页面样式 ==================== */
.settings-section {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.settings-section h3 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* 基础数据维护 - 4列布局 */
.basic-data-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.basic-data-horizontal.four-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.basic-data-horizontal.six-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

@media (max-width: 1600px) {
    .basic-data-horizontal.six-columns {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .basic-data-horizontal.four-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    .basic-data-horizontal.six-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .basic-data-horizontal.four-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .basic-data-horizontal.six-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .basic-data-horizontal.four-columns {
        grid-template-columns: 1fr;
    }
    .basic-data-horizontal.six-columns {
        grid-template-columns: 1fr;
    }
}

.basic-data-column {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.basic-data-column .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.basic-data-column .section-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.basic-data-column .section-header .action-btn {
    padding: 2px 12px;
    font-size: 0.65rem;
    height: 20px;
    white-space: nowrap;
    min-width: 50px;
}

.basic-data-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.basic-data-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 自定义卡片的header-actions样式 */
.basic-data-column .section-header .header-actions {
    display: flex;
    gap: 6px;
}

.basic-data-column .section-header .header-actions .action-btn {
    padding: 2px 10px;
    font-size: 0.65rem;
    height: 20px;
}

.basic-data-column .section-header .header-actions .delete-custom-section-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 5px 8px;
}

.basic-data-column .section-header .header-actions .delete-custom-section-btn:hover {
    background: #e74c3c;
    color: var(--white);
}

/* 紧凑列表布局 - 适用于内容较多的标签 */
.basic-data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    background: transparent;
    border-radius: 3px;
    border-bottom: 0.5px solid rgba(var(--primary-rgb), 0.03);
    transition: var(--transition);
    gap: 2px;
    line-height: 1.0;
}

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

.basic-data-item:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

.basic-data-item .basic-data-name {
    font-size: 0.65rem;
    color: var(--text-dark);
    line-height: 1.2;
    flex: 1;
    word-break: break-all;
}

.basic-data-item .basic-data-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.basic-data-item:hover .basic-data-actions {
    opacity: 1;
}

.basic-data-item .basic-data-actions button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basic-data-item .basic-data-actions button:hover {
    background: #f0f9ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.basic-data-item .basic-data-actions .btn-delete:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* 项目类型项特殊样式 */
.basic-data-item.project-type-item {
    cursor: pointer;
}

.basic-data-item.project-type-item.active {
    background: rgba(var(--primary-rgb), 0.08);
}

/* 服务类别项特殊样式 */
.basic-data-item.service-category-item {
    cursor: default;
}

/* 添加新信息项按钮 */
.basic-data-add-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: #f8fbfc;
    border-radius: 16px;
    border: 2px dashed rgba(var(--primary-rgb), 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.basic-data-add-box:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.basic-data-add-box .add-icon {
    font-size: 2rem;
    color: rgba(var(--primary-rgb), 0.3);
    font-weight: 300;
}

.basic-data-add-box:hover .add-icon {
    color: var(--primary-color);
}

/* 部门树样式 */
.dept-tree,
.safety-event-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dept-tree-item,
.safety-event-tree-item {
    display: flex;
    flex-direction: column;
}

.dept-tree-node,
.safety-event-tree-node {
    display: flex;
    align-items: center;
    padding: 0 3px;
    background: transparent;
    border-radius: 3px;
    border-bottom: 0.5px solid rgba(var(--primary-rgb), 0.03);
    cursor: pointer;
    transition: var(--transition);
    gap: 2px;
    line-height: 1.2;
}

.dept-tree-node:hover,
.safety-event-tree-node:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

.dept-tree-node.active,
.safety-event-tree-node.active {
    background: rgba(var(--primary-rgb), 0.08);
}

.dept-tree-node .expand-icon,
.safety-event-tree-node .expand-icon {
    font-size: 0.6rem;
    color: var(--text-light);
    cursor: pointer;
    width: 12px;
    text-align: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.dept-tree-node .expand-icon.expanded,
.safety-event-tree-node .expand-icon.expanded {
    transform: rotate(90deg);
}

.dept-tree-node .expand-icon.hidden {
    visibility: hidden;
}

.dept-tree-node .dept-name,
.safety-event-tree-node .event-name {
    flex: 1;
    font-size: 0.65rem;
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.dept-tree-node .dept-actions,
.safety-event-tree-node .event-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dept-tree-node:hover .dept-actions,
.safety-event-tree-node:hover .event-actions {
    opacity: 1;
}

.dept-tree-node .dept-actions button,
.safety-event-tree-node .event-actions button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-tree-node .dept-actions button:hover,
.safety-event-tree-node .event-actions button:hover {
    background: #f0f9ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.dept-tree-node .dept-actions .btn-delete:hover,
.safety-event-tree-node .event-actions .btn-delete:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.dept-tree-children,
.safety-event-tree-children {
    margin-left: 8px;
    margin-top: 1px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 1px solid rgba(var(--primary-rgb), 0.08);
    padding-left: 4px;
}

/* 服务基础信息特殊布局 */
.service-basic-outer-wrapper {
    position: relative;
    display: block;
}

.service-basic-outer-wrapper .basic-data-horizontal.four-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-basic-outer-wrapper .basic-data-horizontal.six-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.service-link-icon-outer {
    position: absolute;
    left: calc(25% + 10px);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1600px) {
    .service-basic-outer-wrapper .basic-data-horizontal.six-columns {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .service-basic-outer-wrapper .basic-data-horizontal.four-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    .service-basic-outer-wrapper .basic-data-horizontal.six-columns {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .service-link-icon-outer {
        left: calc(33.33% + 10px);
    }
}

@media (max-width: 1100px) {
    .service-basic-outer-wrapper .basic-data-horizontal.four-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-basic-outer-wrapper .basic-data-horizontal.six-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-link-icon-outer {
        left: calc(50% + 10px);
    }
}

@media (max-width: 768px) {
    .service-basic-outer-wrapper .basic-data-horizontal.four-columns {
        grid-template-columns: 1fr;
    }
    .service-basic-outer-wrapper .basic-data-horizontal.six-columns {
        grid-template-columns: 1fr;
    }
    
    .service-link-icon-outer {
        display: none;
    }
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.common-info {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(var(--primary-rgb), 0.03);
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.common-info-title {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.common-info .form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.common-info .form-row.compact-row {
    gap: 10px;
}

.common-info .form-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0;
}

.common-info .form-group label {
    white-space: nowrap;
    margin-bottom: 0;
    font-size: 0.8rem;
    flex-shrink: 0;
    min-width: 50px;
}

/* 性别标签宽度调整 */
.common-info .form-group.field-xs label {
    min-width: 30px;
}

/* 字段宽度设置 */
.common-info .form-group.field-xs {
    flex: 0 0 auto;
    width: 80px;
}

.common-info .form-group.field-small {
    flex: 0 0 auto;
    width: 130px;
}

.common-info .form-group.field-medium {
    flex: 0 0 auto;
    width: 170px;
}

.common-info .form-group.field-large {
    flex: 1 1 auto;
    min-width: 190px;
}

/* 通用信息区域表单控件 */
.common-info .form-group input,
.common-info .form-group select {
    width: 100%;
    min-width: 0;
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* 标签页内容样式 */
.tab-content .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.tab-content .form-group {
    flex: 1 1 0;
    min-width: 0;
}

/* 标签页内容表单控件 */
.tab-content .form-group input,
.tab-content .form-group select,
.tab-content .form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 4px 8px;
    font-size: 0.85rem;
}

.tab-content .form-group textarea {
    height: auto;
    min-height: 60px;
}

/* 满意度评分区域 */
.satisfaction-rating {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.satisfaction-rating label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.form-group textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}

/* ==================== 统一右侧界面样式规范 ==================== */

/* 统一行间距规范 */
.module-content > * + * {
    margin-top: 6px;
}

/* 统一工具栏样式 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar .search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.toolbar .search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
}

.toolbar .search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.toolbar .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.toolbar .toolbar-btns {
    display: flex;
    gap: 10px;
}

/* 统一筛选栏样式 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 8px;
    flex-wrap: wrap;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.filter-bar .filter-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

/* 统一表单控件样式 */
.form-control,
.filter-select,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="month"],
select,
textarea {
    height: 32px;
    padding: 4px 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--white);
    box-sizing: border-box;
    transition: var(--transition);
    min-width: 120px;
    color: var(--text-dark);
}

/* 统一placeholder样式 */
.form-control::placeholder,
.filter-select::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
input[type="month"]::placeholder,
select::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.form-control:hover,
.filter-select:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="month"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background-color: rgba(var(--primary-rgb), 0.02);
}

.form-control:focus,
.filter-select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

textarea.form-control {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

/* 统一按钮样式 */
.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    font-weight: 500;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--btn-color) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.action-btn.secondary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.action-btn.secondary:hover {
    background: rgba(var(--primary-rgb), 0.2);
}

.action-btn.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.action-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.action-btn.small {
    padding: 6px 12px;
    font-size: 0.85rem;
    height: 32px;
}

.action-btn.icon-btn {
    width: 40px;
    padding: 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-dark);
}

.modal-body {
    padding: 15px;
}

.modal-footer {
    padding: 15px 20px;
    background: rgba(var(--primary-rgb), 0.03);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 标签页样式 */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    margin-bottom: 15px;
    gap: 2px;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(var(--primary-rgb), 0.03);
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-dark);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 满意度评分样式 */
.satisfaction-rating {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.satisfaction-rating label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.satisfaction-rating label:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.satisfaction-rating input[type="radio"] {
    accent-color: var(--primary-color);
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 统一表格样式 */
.data-table,
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td,
.report-table th,
.report-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.data-table th,
.report-table th {
    background: #f8fbfc;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.8rem;
}

.data-table tbody tr,
.report-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover,
.report-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}

.data-table tbody tr:last-child td,
.report-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 8px;
}

/* 自定义下拉框 */
.custom-select {
    position: relative;
    width: 100%;
}

.employee-form .form-group .custom-select #emp-company-display {
    width: 100% !important;
    border: 1px solid rgba(var(--primary-rgb), 0.15) !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    background: var(--white) !important;
    box-sizing: border-box !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.employee-form .form-group .custom-select #emp-company-display:hover {
    border-color: rgba(var(--primary-rgb), 0.3) !important;
    background-color: rgba(var(--primary-rgb), 0.02) !important;
}

.employee-form .form-group .custom-select #emp-company-display:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08) !important;
}

/* 确保自定义下拉框与select标签样式一致 */
.employee-form .form-group .custom-select {
    position: relative;
    width: 100%;
}

.employee-form .form-group .custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-toggle:hover {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary-color) !important;
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-label {
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-label:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-label.selected {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.employee-form .form-group .custom-select-dropdown.show {
    display: block;
}



.employee-form .form-group .custom-select .dropdown-content {
    padding: 0;
}

/* 部门树样式 */
.employee-form .form-group .custom-select .dept-tree-item {
    margin: 0;
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-toggle:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-label {
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-label:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.employee-form .form-group .custom-select .dept-tree-item .dept-tree-label.selected {
    background-color: var(--primary-color);
    color: white;
}

.employee-form .form-group .custom-select .dept-tree-children {
    margin-left: 20px;
    display: none;
}

.employee-form .form-group .custom-select .dept-tree-children.show {
    display: block;
}



.table-action-btns, .notice-actions, .basic-data-actions, .dept-actions, .event-actions {
    display: flex;
    gap: 6px;
}

.btn-dispatch, .btn-edit, .btn-delete, .btn-reset, .btn-view, .btn-add, .btn-issue, .btn-print {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 编辑按钮 - 扳手图标 R23 G152 B208 */
.btn-edit {
    color: #1798d0 !important;
}

.btn-edit:hover {
    background: rgba(23, 152, 208, 0.1) !important;
    border-color: #1798d0 !important;
}

/* 删除按钮 - 红色X */
.btn-delete {
    color: #e74c3c !important;
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.1) !important;
    border-color: #e74c3c !important;
}

/* 下发按钮 - 绿色 */
.btn-issue {
    color: #27ae60 !important;
}

.btn-issue:hover {
    background: rgba(39, 174, 96, 0.1) !important;
    border-color: #27ae60 !important;
}

/* 打印按钮 - 橙色 */
.btn-print {
    color: #f39c12 !important;
}

.btn-print:hover {
    background: rgba(243, 156, 18, 0.1) !important;
    border-color: #f39c12 !important;
}

/* 添加按钮 - 蓝色 */
.btn-add {
    color: #3498db !important;
}

.btn-add:hover {
    background: rgba(52, 152, 219, 0.1) !important;
    border-color: #3498db !important;
}

/* 查看按钮 - 灰色 */
.btn-view {
    color: #95a5a6 !important;
}

.btn-view:hover {
    background: rgba(149, 165, 166, 0.1) !important;
    border-color: #95a5a6 !important;
}

/* 派单按钮 - 紫色 */
.btn-dispatch {
    color: #9b59b6 !important;
}

.btn-dispatch:hover {
    background: rgba(155, 89, 182, 0.1) !important;
    border-color: #9b59b6 !important;
}

/* 重置密码按钮 - 橙色 */
.btn-reset {
    color: #f39c12 !important;
}

.btn-reset:hover {
    background: rgba(243, 156, 18, 0.1) !important;
    border-color: #f39c12 !important;
}

.table-actions .action-btn {
    padding: 6px 12px;
    font-size: 0.65rem;
    height: 32px;
    white-space: nowrap;
}

/* 表格按钮样式 */
.table-btn {
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: transparent;
}

.table-btn:hover {
    transform: scale(1.1);
    background: rgba(var(--primary-rgb), 0.1);
}

.table-btn.edit:hover {
    color: var(--primary-color);
}

.table-btn.reset:hover {
    color: var(--primary-color);
}

.table-btn.delete:hover {
    color: #e74c3c;
}

/* 表格容器 */
.table-container {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    overflow-x: auto;
}

/* 权限说明样式 */
.settings-section {
    background: var(--white);
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.settings-section h3 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.permission-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.permission-tag.admin {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.permission-tag.manager {
    background: rgba(29, 183, 192, 0.1);
    color: var(--primary-color);
}

.permission-tag.operator {
    background: rgba(23, 152, 208, 0.1);
    color: #1798d0;
}

.permission-tag.viewer {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

.permission-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* 权限表单样式 */
.permission-form {
    max-width: 100%;
}

.permission-header {
    margin: 16px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.permission-master-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.master-label {
    font-weight: 600;
    color: var(--text-dark);
}

.master-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.permission-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    margin: 16px 0;
}

.permission-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.permission-module {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.scope-options {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scope-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.sub-permissions {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.child-item {
    margin-left: 16px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* ==================== 表格样式 ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.data-table th {
    background: rgba(var(--primary-rgb), 0.05);
    font-weight: 600;
    color: var(--text-dark);
}

.data-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}

/* ==================== 员工/客户管理头部样式 ==================== */
.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
}

.employee-header .module-title {
    margin: 0;
}

.employee-header .employee-header-actions {
    display: flex;
    gap: 10px;
}

.employee-header .action-btn {
    position: relative;
    background: var(--btn-color);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    font-size: 0.8rem;
    height: auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(var(--btn-rgb), 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.employee-header .action-btn.primary {
    background: rgb(29, 183, 192);
    box-shadow:
        0 4px 15px rgba(29, 183, 192, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.employee-header .action-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(var(--btn-rgb), 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.employee-header .action-btn.primary:hover {
    box-shadow:
        0 8px 25px rgba(29, 183, 192, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.employee-header .action-btn:active {
    transform: translateY(-1px);
}

/* 员工搜索和筛选区域 */
.employee-search-area {
    background: var(--white);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.employee-search-area .search-row {
    margin-bottom: 10px;
}

.employee-search-area .search-row:last-child {
    margin-bottom: 0;
}

.employee-search-area .employee-search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.employee-search-area .employee-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
}

.employee-search-area .employee-search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.employee-search-area .employee-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.employee-search-area .filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-search-area .filter-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

/* 员工表格容器 */
.employee-table-container {
    background: var(--white);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* 员工分组表格样式 - 防止水平滚动 */
.company-group {
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(var(--primary-rgb), 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.company-header:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

.company-header .expand-icon {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    transform: rotate(90deg);
}

.company-header.collapsed .expand-icon {
    transform: rotate(0deg);
}

.company-header .company-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.company-header .employee-count {
    font-size: 0.8rem;
    color: var(--text-light);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}

.company-employees.collapsed {
    display: none;
}

/* 员工表格滚动容器 */
.employee-table-wrapper-scroll {
    overflow-x: scroll;
    overflow-y: hidden;
    border-radius: 0 0 12px 12px;
    max-width: 100%;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.3) rgba(var(--primary-rgb), 0.05);
}

/* 自定义滚动条样式 - Webkit */
.employee-table-wrapper-scroll::-webkit-scrollbar {
    height: 10px;
    width: 10px;
    display: block;
}

.employee-table-wrapper-scroll::-webkit-scrollbar-track {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 5px;
}

.employee-table-wrapper-scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.4);
    border-radius: 5px;
    min-width: 50px;
}

.employee-table-wrapper-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.6);
}

/* company-employees 容器 - 不设置overflow，让子容器处理滚动 */
.company-employees {
    display: block;
    background: var(--white);
    max-width: 100%;
}

/* 员工数据表格 - 固定列布局 */
.employee-table-scroll {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8rem;
    table-layout: fixed;
    min-width: max-content;
}

.employee-table-scroll th,
.employee-table-scroll td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
    background: var(--white);
    white-space: nowrap;
}

.employee-table-scroll th {
    background: rgba(var(--primary-rgb), 0.05);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.employee-table-scroll tbody tr:hover td {
    background: rgba(var(--primary-rgb), 0.03);
}

/* 固定列hover时保持背景色 */
.employee-table-scroll tbody tr:hover td:nth-child(1),
.employee-table-scroll tbody tr:hover td:nth-child(2),
.employee-table-scroll tbody tr:hover td:nth-child(3) {
    background: #e8f6f7 !important;
}

/* 22列表格 - 固定列hover样式 */
.employee-table-scroll:not(:has(th:nth-child(23))) tbody tr:hover td:nth-child(22) {
    background: #e8f6f7 !important;
}

/* 23列表格 - 固定列hover样式 (第23列是操作列) */
.employee-table-scroll:has(th:nth-child(23)) tbody tr:hover td:nth-child(23) {
    background: #e8f6f7 !important;
}

/* 23列表格 - 附件列（第22列）样式，与其他滚动列一致 */
.employee-table-scroll:has(th:nth-child(23)) td:nth-child(22),
.employee-table-scroll:has(th:nth-child(23)) th:nth-child(22) {
    position: static !important;
    background: var(--white) !important;
    border-left: none !important;
    z-index: 1 !important;
    width: 60px !important;
}

/* 23列表格 - 附件列（第22列）hover样式，与其他滚动列一致 */
.employee-table-scroll:has(th:nth-child(23)) tbody tr:hover td:nth-child(22) {
    background: rgba(var(--primary-rgb), 0.03) !important;
}

/* 确保23列表格的附件列不受其他固定列样式影响 */
.employee-table-scroll:has(th:nth-child(23)) td:nth-child(22) {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    background: var(--white) !important;
    border-left: none !important;
    z-index: 1 !important;
}

.employee-table-scroll:has(th:nth-child(23)) th:nth-child(22) {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    background: rgba(var(--primary-rgb), 0.05) !important;
    border-left: none !important;
    z-index: 10 !important;
}

.employee-table-scroll tbody tr:last-child td {
    border-bottom: none;
}

/* 中间滚动列 - 降低z-index */
.employee-table-scroll th:nth-child(4),
.employee-table-scroll td:nth-child(4),
.employee-table-scroll th:nth-child(5),
.employee-table-scroll td:nth-child(5),
.employee-table-scroll th:nth-child(6),
.employee-table-scroll td:nth-child(6),
.employee-table-scroll th:nth-child(7),
.employee-table-scroll td:nth-child(7),
.employee-table-scroll th:nth-child(8),
.employee-table-scroll td:nth-child(8),
.employee-table-scroll th:nth-child(9),
.employee-table-scroll td:nth-child(9),
.employee-table-scroll th:nth-child(10),
.employee-table-scroll td:nth-child(10),
.employee-table-scroll th:nth-child(11),
.employee-table-scroll td:nth-child(11),
.employee-table-scroll th:nth-child(12),
.employee-table-scroll td:nth-child(12),
.employee-table-scroll th:nth-child(13),
.employee-table-scroll td:nth-child(13),
.employee-table-scroll th:nth-child(14),
.employee-table-scroll td:nth-child(14),
.employee-table-scroll th:nth-child(15),
.employee-table-scroll td:nth-child(15),
.employee-table-scroll th:nth-child(16),
.employee-table-scroll td:nth-child(16),
.employee-table-scroll th:nth-child(17),
.employee-table-scroll td:nth-child(17),
.employee-table-scroll th:nth-child(18),
.employee-table-scroll td:nth-child(18),
.employee-table-scroll th:nth-child(19),
.employee-table-scroll td:nth-child(19),
.employee-table-scroll th:nth-child(20),
.employee-table-scroll td:nth-child(20),
.employee-table-scroll th:nth-child(21),
.employee-table-scroll td:nth-child(21) {
    position: relative;
    z-index: 1;
}

/* 固定列样式 - 左边3列 - 提高z-index */
.employee-table-scroll td:nth-child(1) {
    width: 130px;
    position: sticky;
    left: 0;
    z-index: 100;
    background: #e8f6f7 !important;
}

.employee-table-scroll th:nth-child(1) {
    width: 130px;
    position: sticky;
    left: 0;
    z-index: 110;
    background: #d0eef0 !important;
}

.employee-table-scroll td:nth-child(2) {
    width: 80px;
    position: sticky;
    left: 134px;
    z-index: 100;
    background: #e8f6f7 !important;
}

.employee-table-scroll th:nth-child(2) {
    width: 80px;
    position: sticky;
    left: 134px;
    z-index: 110;
    background: #d0eef0 !important;
}

.employee-table-scroll td:nth-child(3) {
    width: 150px;
    position: sticky;
    left: 214px;
    z-index: 100;
    background: #e8f6f7 !important;
    border-right: 2px solid #1db7c0;
}

.employee-table-scroll th:nth-child(3) {
    width: 150px;
    position: sticky;
    left: 214px;
    z-index: 110;
    background: #d0eef0 !important;
    border-right: 2px solid #1db7c0;
}

/* 中间滚动列 - 固定宽度 */
.employee-table-scroll th:nth-child(4),
.employee-table-scroll td:nth-child(4) { width: 80px; }  /* 职务 */
.employee-table-scroll th:nth-child(5),
.employee-table-scroll td:nth-child(5) { width: 50px; }  /* 性别 */
.employee-table-scroll th:nth-child(6),
.employee-table-scroll td:nth-child(6) { width: 60px; }  /* 年龄 */
.employee-table-scroll th:nth-child(7),
.employee-table-scroll td:nth-child(7) { width: 150px; } /* 身份证号 */
.employee-table-scroll th:nth-child(8),
.employee-table-scroll td:nth-child(8) { width: 120px; } /* 联系方式 */
.employee-table-scroll th:nth-child(9),
.employee-table-scroll td:nth-child(9) { width: 100px; }  /* 入职日期 */
.employee-table-scroll th:nth-child(10),
.employee-table-scroll td:nth-child(10) { width: 90px; } /* 合同性质 */
.employee-table-scroll th:nth-child(11),
.employee-table-scroll td:nth-child(11) { width: 100px; } /* 生日 */
.employee-table-scroll th:nth-child(12),
.employee-table-scroll td:nth-child(12) { width: 100px; } /* 持证类型 */
.employee-table-scroll th:nth-child(13),
.employee-table-scroll td:nth-child(13) { width: 100px; } /* 紧急联系人 */
.employee-table-scroll th:nth-child(14),
.employee-table-scroll td:nth-child(14) { width: 120px; } /* 紧急联系电话 */
.employee-table-scroll th:nth-child(15),
.employee-table-scroll td:nth-child(15) { width: 90px; } /* 推荐人 */
.employee-table-scroll th:nth-child(16),
.employee-table-scroll td:nth-child(16) { width: 120px; } /* 开户行 */
.employee-table-scroll th:nth-child(17),
.employee-table-scroll td:nth-child(17) { width: 150px; } /* 银行卡号 */
.employee-table-scroll th:nth-child(18),
.employee-table-scroll td:nth-child(18) { width: 80px; } /* 档案状态 */
.employee-table-scroll th:nth-child(19),
.employee-table-scroll td:nth-child(19) { width: 70px; } /* 意外险 */
.employee-table-scroll th:nth-child(20),
.employee-table-scroll td:nth-child(20) { width: 90px; } /* 在职状态 */
.employee-table-scroll th:nth-child(21),
.employee-table-scroll td:nth-child(21) { width: 60px; } /* 附件 */

/* 固定操作列 - 最右边 - 提高z-index (22列表格) */
.employee-table-scroll td:nth-child(22) {
    width: 120px;
    position: sticky;
    right: 0;
    z-index: 100;
    background: #e8f6f7 !important;
    border-left: 2px solid #1db7c0;
}

.employee-table-scroll th:nth-child(22) {
    width: 120px;
    position: sticky;
    right: 0;
    z-index: 110;
    background: #d0eef0 !important;
    border-left: 2px solid #1db7c0;
}

/* 固定操作列 - 最右边 - 提高z-index (23列表格 - 客户信息建档) */
.employee-table-scroll:has(th:nth-child(23)) td:nth-child(23),
.employee-table-scroll:has(td:nth-child(23)) td:nth-child(23) {
    width: 120px;
    position: sticky;
    right: 0;
    z-index: 100;
    background: #e8f6f7 !important;
    border-left: 2px solid #1db7c0;
}

.employee-table-scroll:has(th:nth-child(23)) th:nth-child(23) {
    width: 120px;
    position: sticky;
    right: 0;
    z-index: 110;
    background: #d0eef0 !important;
    border-left: 2px solid #1db7c0;
}

/* 表格操作按钮 */
.table-action-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.table-action-btns button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}



/* ==================== 模态框样式 ==================== */
/* 筛选树选择器样式 */
.filter-tree-select {
    position: relative;
    min-width: 150px;
}

.filter-tree-display {
    padding: 8px 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.filter-tree-display:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

.filter-tree-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.filter-tree-dropdown .filter-tree-option {
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-tree-dropdown .filter-tree-option:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

.filter-tree-dropdown .filter-tree-option.selected {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-color);
    font-weight: 500;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* 地图定位样式 */
.map-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.map-search-bar input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
}

.map-address-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.address-input-group {
    display: flex;
    gap: 8px;
}

.address-input-group input {
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* 模态框底部按钮统一样式 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px 20px;
}

.modal-footer .action-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    height: auto;
    border-radius: 6px;
}

.modal-close:hover {
    color: var(--text-dark);
    background: rgba(var(--primary-rgb), 0.05);
}

.modal-body {
    padding: 20px;
}

/* 统一模态框表单行间距 */
.modal-body .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.modal-body .form-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0;
}

.modal-body .form-group label {
    white-space: nowrap;
    margin-bottom: 0;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.modal-form {
    padding: 20px;
}

.modal-actions {
    padding: 15px 20px 20px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* 价格输入组 */
.price-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.price-input-group label {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.price-input-group input {
    width: 150px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--white);
    box-sizing: border-box;
    transition: var(--transition);
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 10px;
}

/* ==================== 消息提醒样式 ==================== */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: var(--white);
    font-size: 0.7rem;
    border-radius: 9px;
    margin-left: 8px;
}

/* 消息提醒模块布局 */
#module-notifications {
    width: 100%;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
}

.notification-header .module-title {
    margin-bottom: 0;
}

.notification-header .notification-actions {
    display: flex;
    gap: 10px;
}

.notification-header .action-btn {
    position: relative;
    background: var(--btn-color);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    font-size: 0.8rem;
    height: auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(var(--btn-rgb), 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.notification-header .action-btn.publish-btn {
    background: rgb(29, 183, 192);
    box-shadow:
        0 4px 15px rgba(29, 183, 192, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.notification-header .action-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(var(--btn-rgb), 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.notification-header .action-btn.publish-btn:hover {
    box-shadow:
        0 8px 25px rgba(29, 183, 192, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.notification-header .action-btn:active {
    transform: translateY(-1px);
}

/* 消息提醒搜索区域 */
.notification-search-area {
    background: var(--white);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.notification-search-area .search-row {
    margin-bottom: 15px;
}

.notification-search-area .search-input-box {
    position: relative;
    width: 100%;
}

.notification-search-area .search-input-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
}

.notification-search-area .search-input-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.notification-search-area .search-input-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.notification-search-area .filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-search-area .filter-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.notification-search-area .filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--text-dark);
    min-width: 120px;
}

.notification-search-area .filter-reset-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.notification-search-area .filter-reset-btn:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 统一重置按钮样式 */
.filter-reset-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-reset-btn:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 消息列表区域 */
.notification-list-area {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    overflow: hidden;
}

.notification-list-area .employee-table-container {
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.notification-list-area .data-table {
    width: 100%;
}

/* 消息列表容器 */
.notification-list {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    overflow: hidden;
    min-height: 300px;
}

/* 空状态 */
.notification-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.notification-list .empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.notification-list .empty-state .empty-text {
    font-size: 1rem;
    color: var(--text-light);
}

/* 消息项 */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.notification-item:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

.notification-item.unread {
    background: rgba(var(--primary-rgb), 0.04);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

/* 消息图标 */
.notification-item .notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: rgba(var(--primary-rgb), 0.1);
}

.notification-item.unread .notif-icon {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--btn-rgb), 0.15) 100%);
}

/* 消息内容 */
.notification-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notif-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.notification-item.unread .notif-title {
    color: var(--primary-color);
}

.notification-item .notif-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-item .notif-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-item .notif-time::before {
    content: '🕐';
    font-size: 0.7rem;
}

/* 未读指示器 */
.notification-item .unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

.notification-item.read .unread-dot {
    display: none;
}

/* 消息提醒表格样式 */
.notification-list-area .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.notification-list-area .data-table th {
    background: rgba(var(--primary-rgb), 0.03);
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.notification-list-area .data-table th:first-child,
.notification-list-area .data-table td:first-child {
    padding-left: 20px;
}

.notification-list-area .data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
    color: var(--text-dark);
    text-align: left;
}

.notification-list-area .data-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}

.notification-list-area .data-table .notice-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notification-list-area .data-table .notice-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.notification-list-area .data-table .notice-status.unread .status-dot {
    background: var(--primary-color);
}

.notification-list-area .data-table .notice-status.read .status-dot {
    background: var(--text-light);
}

.notification-list-area .data-table .notice-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.notification-list-area .data-table .notice-type.system {
    background: rgba(29, 183, 192, 0.1);
    color: rgb(29, 183, 192);
}

.notification-list-area .data-table .notice-type.announcement {
    background: rgba(var(--btn-rgb), 0.1);
    color: var(--btn-color);
}

.notification-list-area .data-table .notice-type.reminder {
    background: rgba(255, 193, 7, 0.1);
    color: #f39c12;
}

.notification-list-area .data-table .notice-title {
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

.notification-list-area .data-table .notice-title:hover {
    color: var(--primary-color);
}

.notification-list-area .data-table .notice-summary {
    color: var(--text-light);
    font-size: 0.8rem;
    display: block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-list-area .data-table .notice-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.notification-list-area .data-table .notice-actions button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-list-area .data-table .notice-actions .btn-view {
    color: #1798d0 !important;
}

.notification-list-area .data-table .notice-actions .btn-view:hover {
    background: rgba(23, 152, 208, 0.1) !important;
    border-color: #1798d0 !important;
}

.notification-list-area .data-table .notice-actions .btn-delete {
    color: #e74c3c !important;
}

.notification-list-area .data-table .notice-actions .btn-delete:hover {
    background: rgba(231, 76, 60, 0.1) !important;
    border-color: #e74c3c !important;
}

/* 小按钮样式 */
.btn-small {
    padding: 2px 6px;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 3px;
    font-size: 10px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    width: 20px;
    text-align: center;
}

.btn-small:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    background: rgba(var(--primary-rgb), 0.02);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.pagination-info .page-btn {
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-info .page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination-info .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info .page-indicator {
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0 5px;
}

/* ==================== 员工表单样式 ==================== */
.modal-form.employee-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.employee-form .form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.employee-form .form-group label {
    white-space: nowrap;
    margin-bottom: 0;
    font-size: 0.8rem;
    flex-shrink: 0;
    min-width: 60px;
}

.modal-form.employee-form .form-group input:not([type="checkbox"]),
.modal-form.employee-form .form-group input:not([type="radio"]),
.modal-form.employee-form .form-group select,
.modal-form.employee-form .form-group textarea {
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
}

.modal-form.employee-form .form-group input::placeholder,
.modal-form.employee-form .form-group select::placeholder,
.modal-form.employee-form .form-group textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.employee-form .form-group textarea {
    height: auto;
    min-height: 60px;
}

.employee-form .form-group-large {
    flex: 2;
    min-width: 300px;
}

.employee-form .form-group-medium {
    flex: 1.5;
    min-width: 200px;
}

.employee-form .form-group-small {
    flex: 0.5;
    min-width: 120px;
}

/* 地址输入组 */
.employee-form .address-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.employee-form .address-input-group input {
    flex: 1;
}

.employee-form .address-input-group .action-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    height: 32px;
    white-space: nowrap;
    background: rgb(29, 183, 192);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(29, 183, 192, 0.3), inset 0 -2px 10px rgba(0, 0, 0, 0.1), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.employee-form .address-input-group .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 183, 192, 0.4), inset 0 -2px 10px rgba(0, 0, 0, 0.1), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* 生日输入组 */
.employee-form .birthday-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.employee-form .birthday-input-wrapper input[type="date"] {
    flex: 0 0 140px;
    min-width: 140px;
}

.employee-form .lunar-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-dark);
    white-space: nowrap;
}

/* 推荐人选择组 */
.employee-form .referrer-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.employee-form .referrer-select-group .form-select {
    width: 100%;
    cursor: pointer;
}

.employee-form .referrer-select-group .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.employee-form .referrer-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.employee-form .referrer-input-wrapper input[type="text"] {
    flex: 1;
}

.employee-form .referrer-input-wrapper input[type="text"]:read-only {
    background: rgba(var(--primary-rgb), 0.05);
}

.employee-form .btn-change-referrer {
    padding: 4px 10px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.employee-form .btn-change-referrer:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 第七行紧凑布局 */
.employee-form .form-row-compact {
    gap: 10px;
}

.employee-form .form-row-compact .form-group {
    flex: 0 0 auto;
    min-width: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.employee-form .form-row-compact .form-group > label {
    white-space: nowrap;
    margin-bottom: 0;
    font-size: 0.8rem;
    flex-shrink: 0;
    min-width: 60px;
}

.modal-form.employee-form .form-row-compact .form-group input:not([type="checkbox"]) {
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
}

.modal-form.employee-form .form-row-compact .form-group input::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.employee-form .form-group-status {
    flex: 0 0 auto !important;
    min-width: 120px;
}

.employee-form .form-group-insurance {
    flex: 0 0 auto !important;
    min-width: 100px;
}

.employee-form .form-group-health {
    flex: 0 0 auto !important;
    min-width: 140px;
}

/* 持证类型输入框宽度 */
.employee-form .form-group-cert-type {
    min-width: 300px !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: none !important;
}

/* 确保持证类型的下拉框也有足够宽度 */
.employee-form .form-group-cert-type .multi-select-container {
    width: 100% !important;
}

.employee-form .form-group-cert-type .multi-select-display {
    width: 100% !important;
}

.employee-form .form-group-cert-type .multi-select-dropdown {
    width: 100% !important;
}

.employee-form .form-group-archive {
    flex: 1 1 auto !important;
    min-width: 280px;
}

.employee-form .form-group-attachment {
    flex: 1 1 auto !important;
    min-width: 300px;
    white-space: nowrap;
}

/* 紧急联系人相关输入框宽度 */
.employee-form .form-group-emergency-contact {
    flex: 1 1 auto !important;
    min-width: 180px !important;
}

.employee-form .form-group-emergency-phone {
    flex: 1.5 1 auto !important;
    min-width: 220px !important;
}

.employee-form .form-group-referrer {
    flex: 1 1 auto !important;
    min-width: 180px !important;
}

.employee-form .checkbox-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    width: auto;
}

.employee-form .checkbox-group label {
    display: inline-flex;
    align-items: center;
    width: auto;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: normal;
    margin-bottom: 0;
    padding: 0;
    margin: 0;
}

.employee-form .checkbox-group label input[type="checkbox"] {
    margin-right: 4px !important;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    padding: 0;
    margin-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    z-index: 1000 !important;
    border: 1px solid #333 !important;
    background: white !important;
}

.employee-form .checkbox-group label input[type="radio"] {
    margin-right: 4px !important;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    padding: 0;
    margin-left: 0 !important;
}

/* 只读字段容器样式 */
.readonly-fields {
    display: flex;
    gap: 10px;
    align-items: center;
}

.readonly-fields input {
    flex: 1;
    min-width: 80px;
}

.employee-form .file-upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.employee-form .file-upload-area .action-btn {
    padding: 5px 12px;
    font-size: 0.75rem;
    height: auto;
    background: rgb(29, 183, 192);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(29, 183, 192, 0.3), inset 0 -2px 10px rgba(0, 0, 0, 0.1), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.employee-form .file-upload-area .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 183, 192, 0.4), inset 0 -2px 10px rgba(0, 0, 0, 0.1), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.employee-form .file-hint {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* 标签行内提示 */
.employee-form .label-with-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-form .label-hint {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: normal;
}

.employee-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

.employee-form input:not([type="checkbox"]),
.employee-form input:not([type="radio"]),
.employee-form select,
.employee-form textarea {
    width: 100%;
}

.employee-form input:not([type="checkbox"]):focus,
.employee-form input:not([type="radio"]):focus,
.employee-form select:focus,
.employee-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}



/* 输入框placeholder样式 - 确保所有提示内容为灰色 */
input::placeholder,
select::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}



/* 统一所有模态框表单样式 */
.modal-body .form-group,
.modal-form .form-group,
.modal-body .form-input,
.modal-form .form-input,
.modal-body .form-select,
.modal-form .form-select {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0;
}

.modal-body .form-group label,
.modal-form .form-group label {
    white-space: nowrap;
    margin-bottom: 0;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.modal-body .form-group input,
.modal-form .form-group input,
.modal-body .form-group select,
.modal-form .form-group select,
.modal-body .form-group textarea,
.modal-form .form-group textarea,
.modal-body .form-input,
.modal-form .form-input,
.modal-body .form-select,
.modal-form .form-select {
    flex: 1;
    min-width: 0;
}

.modal-body .form-group input:focus,
.modal-form .form-group input:focus,
.modal-body .form-group select:focus,
.modal-form .form-group select:focus,
.modal-body .form-group textarea:focus,
.modal-form .form-group textarea:focus,
.modal-body .form-input:focus,
.modal-form .form-input:focus,
.modal-body .form-select:focus,
.modal-form .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.modal-body .form-group textarea,
.modal-form .form-group textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}

.employee-form textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}

/* ==================== 多选下拉框样式 ==================== */
.multi-select-container {
    position: relative;
}

.multi-select-display {
    width: 100%;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--white);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.multi-select-option {
    padding: 2px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.multi-select-option:hover {
    background: rgba(var(--primary-rgb), 0.05);
    margin: 0;
}

.multi-select-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: normal;
}

/* 调整下拉框中复选框的间距 */
.multi-select-option input[type="checkbox"] {
    margin-right: 0 !important;
}

/* multi-select-item 样式（用于动态生成的多选选项） */
.multi-select-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.multi-select-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
   margin: 0;
}

.multi-select-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 多选框选中项显示样式 */
.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ==================== 服务包管理样式 ==================== */

/* 服务包工具栏 */
.service-package-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.service-package-toolbar .search-box {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 300px;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
    padding: 0 12px;
    transition: var(--transition);
}

.service-package-toolbar .search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.service-package-toolbar .search-box .search-icon {
    font-size: 0.9rem;
    margin-right: 8px;
    color: var(--text-light);
}

.service-package-toolbar .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.8rem;
    outline: none;
}

/* 服务包表格容器 */
.service-package-table-container {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    overflow-x: auto;
}

/* 服务包构建器行 */
.package-builder-row {
    display: flex;
    gap: 15px;
    align-items: stretch;
    min-height: 400px;
}

/* 服务项目维护搜索区域 */
.service-item-search-area {
    background: var(--white);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.service-item-search-area .search-row {
    margin-bottom: 15px;
}

.service-item-search-area .search-input-box {
    position: relative;
    width: 100%;
}

.service-item-search-area .search-input-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-item-search-area .search-input-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.service-item-search-area .search-input-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.service-item-search-area .filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-item-search-area .filter-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-item-search-area .filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--text-dark);
    min-width: 120px;
}

/* 服务项目维护表单区域 */
.service-item-form-area {
    background: var(--white);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.service-item-form-area .form-section-title {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.service-item-form-area .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.service-item-form-area .form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.service-item-form-area .form-group label {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    min-width: 60px;
}

.service-item-form-area .form-group input,
.service-item-form-area .form-group select {
    flex: 1;
    width: auto;
}

.service-item-form-area .form-group label.required {
    position: relative;
}

.service-item-form-area .form-group label.required::after {
    content: ' *';
    color: #e74c3c;
}

.service-item-form-area .form-group input,
.service-item-form-area .form-group select {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--white);
    box-sizing: border-box;
    transition: var(--transition);
}

.service-item-form-area .form-group input:focus,
.service-item-form-area .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.service-item-form-area .form-group-duration {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-item-form-area .form-group-duration label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.service-item-form-area .form-group-duration .duration-range {
    flex: 1;
    max-width: 400px;
}

.service-item-form-area .form-group-price {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-item-form-area .form-group-price label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.service-item-form-area .form-group-price .price-range {
    flex: 1;
    max-width: 300px;
}

.service-item-form-area .duration-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-item-form-area .duration-range input {
    flex: 1;
    max-width: 120px;
}

.service-item-form-area .duration-separator {
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-item-form-area .price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-item-form-area .price-range input {
    flex: 1;
    max-width: 120px;
}

.service-item-form-area .price-separator {
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-item-form-area .form-group-actions {
    display: flex;
    align-items: flex-end;
}

.service-item-form-area .form-actions {
    display: flex;
    gap: 10px;
}

.service-item-form-area .action-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: var(--transition);
}

.service-item-form-area .action-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.service-item-form-area .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* 服务项目维护列表区域 */
.service-item-list-area {
    margin-top: 12px;
}

.service-item-list-area .employee-table-container {
    margin-bottom: 8px;
    padding: 8px;
}

/* 服务项目维护表格样式 */
.service-item-list-area .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.service-item-list-area .data-table th,
.service-item-list-area .data-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.service-item-list-area .data-table th {
    background: #f8fbfc;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.8rem;
}

.service-item-list-area .data-table tbody tr {
    transition: var(--transition);
}

.service-item-list-area .data-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}

.service-item-list-area .data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 服务项目维护分页样式 */
.service-item-list-area .pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    background: rgba(var(--primary-rgb), 0.02);
}

.service-item-list-area .pagination .page-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.service-item-list-area .pagination .page-btn {
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.service-item-list-area .pagination .page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.service-item-list-area .pagination .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.service-item-list-area .pagination .page-numbers {
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0 5px;
}

/* 服务包构建器区域 */
.package-builder-section {
    flex: 1;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

/* 服务项目框体 - 加宽到4/3宽度 */
.service-item-section {
    flex: 4;
}

/* 服务包内容框体 */
.package-builder-row .package-builder-section:not(.service-item-section) {
    flex: 3;
}

.package-builder-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.package-builder-section .search-box {
    position: relative;
    margin-bottom: 8px;
}

.package-builder-section .search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
}

.package-builder-section .search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.package-builder-section .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* 服务项目列表容器 */
.service-item-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 8px;
}

.service-item-list-container .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
}

.service-item-list-container .data-table th,
.service-item-list-container .data-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
}

.service-item-list-container .data-table th {
    background: #f8fbfc;
    font-weight: 600;
    font-size: 0.65rem;
    position: sticky;
    top: 0;
}

.service-item-list-container .data-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}



/* 统一所有复选框大小 */
input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin-right: 8px;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}



/* 包内时长输入框 */
.package-duration-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
}

.package-duration-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.08);
}

/* 服务包构建器操作按钮 */
.package-builder-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 0 5px;
}

.package-builder-actions .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* 服务包统计信息 */
.package-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
}

.package-stats strong {
    color: var(--primary-color);
    font-size: 1rem;
}

/* 统一所有单选按钮大小 */
input[type="radio"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin-right: 8px;
}

/* 状态选项样式 */
.status-group {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 2px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
}

/* 模态框大尺寸 */
.modal-content.large,
.modal-content.modal-large {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
}

.modal-content.large .modal-body,
.modal-content.modal-large .modal-body,
.modal-content.large .modal-form,
.modal-content.modal-large .modal-form {
    padding: 20px;
}

/* 服务包表格中的内容显示 */
.package-content-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.status-badge.enabled {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-badge.disabled {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

/* 选中行样式 */
.service-item-list-container .data-table tbody tr.selected {
    background: rgba(var(--primary-rgb), 0.1);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .package-builder-row {
        flex-direction: column;
    }
    
    .package-builder-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .modal-content.large,
    .modal-content.modal-large {
        width: 98%;
        max-height: 95vh;
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 220px;
    }
    
    .admin-main {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .login-box {
        padding: 30px 25px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .system-login-page {
        padding: 20px 15px;
    }
    
    .login-box {
        padding: 25px 20px;
    }
    
    .admin-main {
        padding: 20px;
    }
    
    .module-title {
        font-size: 1.2rem;
    }
}

/* 数据备份与恢复 */
.backup-section {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin-top: 1rem;
}

.backup-actions {
  display: flex;
  gap: 1rem;
  margin-right: 1rem;
}

.backup-info {
  margin: 0;
}

.backup-hint {
  font-size: 0.65rem;
  color: #666;
  margin: 0;
}

/* 小程序管理模块 */
.miniprogram-section {
  padding: 1rem;
}

.section-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.1rem;
}

.section-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* 基础信息表单 */
.basic-info-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-row label {
  min-width: 100px;
  color: #333;
  font-weight: 500;
}

.form-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-input:read-only {
  background: #f8f9fa;
  cursor: not-allowed;
}

/* 登录角色配置 */
.login-modes {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.mode-card {
  flex: 1;
  min-width: 180px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

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

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mode-card h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.mode-card p {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.mode-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.mode-status:contains(已配置) {
  background: rgba(29, 183, 192, 0.1);
  color: #1db7c0;
}

.mode-status:contains(待开发) {
  background: rgba(206, 212, 218, 0.5);
  color: #6c757d;
}

/* 账号管理 */
.account-management {
  margin-top: 1rem;
}

.action-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-table-container {
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-table th,
.account-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.account-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-table tr:hover {
  background: #f8f9fa;
}

.status-active {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(29, 183, 192, 0.1);
  color: #1db7c0;
}

.status-inactive {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* 组件设计器 */
.designer-container {
  margin-top: 1rem;
}

.designer-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.designer-canvas {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.canvas-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.canvas-header h4 {
  margin: 0;
  color: #333;
}

.canvas-content {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 1.5rem;
  min-height: 500px;
}

.component-library {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.component-library h5 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.component-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.component-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: grab;
  transition: all 0.2s ease;
}

.component-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.component-icon {
  font-size: 1.2rem;
  width: 32px;
  text-align: center;
}

.canvas-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.preview-device {
  margin-top: 2rem;
}

.device-frame {
  width: 375px;
  height: 812px;
  background: #fff;
  border: 12px solid #333;
  border-radius: 36px;
  padding: 60px 12px 60px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
}

.device-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #333;
  border-radius: 10px;
}

.device-content {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.component-properties {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.component-properties h5 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.properties-panel {
  min-height: 400px;
  color: #666;
}

/* 登录设置样式 */
.checkbox-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}



.input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-suffix {
  color: #666;
  font-size: 0.9rem;
}

.form-input.small {
  width: 120px;
}

.form-select.small {
  width: 180px;
  font-size: 0.85rem;
  padding: 4px 8px;
}

.mode-settings {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

/* 登录日志样式 */
.search-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-btn {
  padding: 0.5rem 1rem;
  background: #1db7c0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-btn:hover {
  background: #19a4ad;
}

.logs-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logs-table th,
.logs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.logs-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logs-table tr:hover {
  background: #f8f9fa;
}

.status-success {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

/* 多选组件的placeholder样式 */
.multi-select-display .placeholder {
    color: var(--text-muted) !important;
}

.status-error {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* 小程序管理子模块样式 */
.submodule-content {
  display: block;
}

.submodule-content.hidden {
  display: none;
}

#miniprogram-submenu .submenu-item.active {
  background: rgba(29, 183, 192, 0.1);
  color: #1db7c0;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .canvas-content {
    grid-template-columns: 200px 1fr 250px;
  }
  
  .device-frame {
    width: 320px;
    height: 690px;
  }
  
  .login-modes {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .checkbox-group {
    gap: 1rem;
  }
}

@media (max-width: 992px) {
  .login-modes {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .canvas-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .component-library,
  .component-properties {
    order: 1;
  }
  
  .canvas-area {
    order: 2;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .form-row label {
    min-width: auto;
  }
  
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .designer-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-select {
    min-width: auto;
  }
  
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-btn {
    align-self: flex-start;
  }
}
