/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 登录页样式 - vue3-admin 风格 */
body.login-page {
    min-height: 100vh;
    background: #2d3a4b;
    color: #fff;
    overflow-x: hidden;
}

.vlogin {
    position: relative;
    min-height: 100vh;
    padding: 0 48px 0;
    background: #2d3a4b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vlogin-wave {
    position: absolute;
    left: 42%;
    top: -10%;
    width: 52%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(20, 28, 40, 0.55) 0%, rgba(45, 58, 75, 0) 70%);
    transform: rotate(-8deg);
    pointer-events: none;
}

.vlogin-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.vlogin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.vlogin-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.vlogin-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #42b883, #347474);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.vlogin-brand-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.vlogin-lang {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.vlogin-lang:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.vlogin-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 24px;
}

.vlogin-left {
    flex: 1;
    max-width: 520px;
    padding-left: 24px;
}

.vlogin-hero {
    display: block;
    width: min(100%, 430px);
    margin-bottom: 28px;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

.vlogin-slogan {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    letter-spacing: 0.5px;
}

.vlogin-sub {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.72);
}

.vlogin-right {
    flex: 0 0 auto;
    width: 420px;
}

.vlogin-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px 26px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    color: #303133;
}

.vlogin-tabs {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #ebeef5;
}

.vlogin-tab {
    position: relative;
    border: none;
    background: none;
    padding: 0 0 12px;
    font-size: 16px;
    color: #909399;
    cursor: pointer;
}

.vlogin-tab.is-active {
    color: #409eff;
    font-weight: 600;
}

.vlogin-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #409eff;
    border-radius: 2px;
}

.vlogin-pane {
    display: none;
}

.vlogin-pane.is-active {
    display: block;
}

.vlogin-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fef0f0;
    color: #f56c6c;
    font-size: 13px;
}

.vlogin-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.vlogin-field:focus-within {
    border-color: #409eff;
}

.vlogin-field.is-invalid {
    border-color: #f56c6c;
}

.vlogin-field-icon {
    color: #a8abb2;
    display: inline-flex;
}

.vlogin-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #303133;
}

.vlogin-field input::placeholder {
    color: #c0c4cc;
}

.vlogin-field-error {
    margin: -10px 0 12px;
    font-size: 12px;
    color: #f56c6c;
}

.vlogin-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 4px 0 22px;
    font-size: 14px;
}

.vlogin-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #606266;
    cursor: pointer;
    user-select: none;
}

.vlogin-remember input {
    width: 14px;
    height: 14px;
    accent-color: #409eff;
}

.vlogin-forgot {
    color: #409eff;
    text-decoration: none;
}

.vlogin-forgot:hover {
    color: #66b1ff;
}

.vlogin-submit {
    display: block;
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 21px;
    background: #409eff;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vlogin-submit:hover {
    background: #66b1ff;
}

.vlogin-third {
    margin-top: 26px;
}

.vlogin-third-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #909399;
    font-size: 13px;
}

.vlogin-third-title::before,
.vlogin-third-title::after {
    content: '';
    width: 48px;
    height: 1px;
    background: #e4e7ed;
    margin: 0 12px;
}

.vlogin-third-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.vlogin-social {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #606266;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.vlogin-social:hover {
    color: #409eff;
    background: #ecf5ff;
}

.vlogin-register-tip {
    text-align: center;
    padding: 24px 8px 8px;
}

.vlogin-register-tip p {
    margin: 0 0 8px;
    color: #303133;
    font-size: 16px;
}

.vlogin-register-sub {
    color: #909399 !important;
    font-size: 13px !important;
    margin-bottom: 28px !important;
}

.vlogin-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: auto;
    padding: 12px 0 16px;
}

.vlogin-icp,
.vlogin-footer a {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    text-decoration: none;
}

.vlogin-icp:hover,
.vlogin-footer a:hover {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 960px) {
    .vlogin {
        padding: 0 16px 0;
    }

    .vlogin-body {
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
        padding-top: 12px;
    }

    .vlogin-left {
        padding-left: 0;
        text-align: center;
        max-width: none;
    }

    .vlogin-hero {
        margin: 0 auto 16px;
        width: min(100%, 280px);
    }

    .vlogin-slogan {
        font-size: 22px;
    }

    .vlogin-right {
        width: 100%;
        max-width: 420px;
    }
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #d1d5db;
    background-color: #fafafa;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* 后台通用表单：无标签，左对齐 */
body.admin-body .main-content form:not(.search-form):not(.customer-search-form):not(.customer-form-page):not(.employee-form-page):not(.settings-inline-form):not(.follow-compose-form):not(.admin-form-modal-form) .form-group {
    display: block;
    margin-bottom: 14px;
    padding-left: 0;
}

body.admin-body .main-content form:not(.search-form):not(.customer-search-form):not(.customer-form-page):not(.employee-form-page):not(.settings-inline-form):not(.follow-compose-form):not(.admin-form-modal-form):not(.perf-leave-form) .form-control,
body.admin-body .main-content form:not(.search-form):not(.customer-search-form):not(.customer-form-page):not(.employee-form-page):not(.settings-inline-form):not(.follow-compose-form):not(.admin-form-modal-form):not(.perf-leave-form) select.form-control {
    width: 100%;
    max-width: none;
    padding: 8px 10px;
}

body.admin-body .main-content form:not(.search-form):not(.customer-search-form):not(.customer-form-page):not(.employee-form-page):not(.settings-inline-form):not(.follow-compose-form):not(.admin-form-modal-form) .watermark,
body.admin-body .main-content form:not(.search-form):not(.customer-search-form):not(.customer-form-page):not(.employee-form-page):not(.settings-inline-form):not(.follow-compose-form):not(.admin-form-modal-form) .invalid-feedback {
    width: auto;
    margin: 4px 0 0;
    padding-left: 0;
}

body.admin-body .follow-compose-form .form-group .form-control {
    max-width: none;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    border-radius: var(--control-radius, 4px);
}

input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='file']),
select,
textarea {
    border-radius: var(--control-radius, 4px);
}

.form-control-readonly {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
}

.customer-form-card .card-body {
    padding: 20px 24px 24px;
}

.customer-form-page-body {
    padding: 20px 24px 24px;
}

.customer-form-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.customer-form-section {
    margin: 0;
}

.customer-form-section-title {
    margin: 0 0 16px;
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.customer-form-page .customer-form-grid,
.customer-form-layout .customer-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-width: 720px;
}

.customer-form-page .form-group,
.customer-form-layout .form-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    padding: 0;
    min-height: 0;
}

.customer-form-page .form-inline-label,
.customer-form-layout .form-inline-label {
    display: inline-block;
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    white-space: nowrap;
}

.customer-form-page .form-field-body,
.customer-form-layout .form-field-body {
    flex: 1;
    min-width: 0;
}

.customer-form-page .form-label,
.customer-form-layout .form-label {
    display: none;
}

.customer-form-page .form-control,
.customer-form-page select.form-control,
.customer-form-layout .form-control,
.customer-form-layout select.form-control {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 9px 12px;
}

.customer-form-page .invalid-feedback,
.customer-form-layout .invalid-feedback {
    width: auto;
    margin-top: 4px;
    padding-left: 0;
}

.customer-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: none;
}

.employee-form-page .employee-form-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.employee-form-page .employee-form-section-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.employee-form-page .employee-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.employee-form-page .form-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0;
}

.employee-form-page .form-group:last-child {
    margin-bottom: 0;
}

.employee-form-page .form-group.form-group-full {
    align-items: flex-start;
}

.employee-form-page .form-inline-label {
    display: inline-block;
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.employee-form-page .form-field-body {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.employee-form-page .form-group.form-group-full .form-field-body {
    max-width: none;
}

.employee-form-page .form-label {
    display: none;
}

.employee-form-page .form-control,
.employee-form-page select.form-control {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 9px 12px;
}

.employee-form-page .watermark,
.employee-form-page .invalid-feedback {
    width: auto;
    margin-top: 4px;
    padding-left: 0;
}

.employee-form-page .permission-grid {
    max-width: none;
    min-width: 0;
}

.employee-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: none;
}

@media (max-width: 1200px) {
    .employee-form-page .employee-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .employee-form-page .employee-form-grid {
        grid-template-columns: 1fr;
    }
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.company-name-check-feedback.is-checking {
    color: #6b7280;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    border-radius: var(--control-radius, 4px);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    -webkit-font-smoothing: antialiased;
}

.btn-primary,
a.btn-primary,
button.btn-primary {
    background-color: #2563eb;
    color: #fff !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    background-color: #1d4ed8;
    color: #fff !important;
}

.btn-danger,
a.btn-danger,
button.btn-danger {
    background-color: #dc3545;
    color: #fff !important;
}

.btn-danger:hover,
a.btn-danger:hover,
button.btn-danger:hover {
    background-color: #c82333;
    color: #fff !important;
}

.btn-secondary {
    background-color: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #cbd5e1;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* 提示框样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 顶部消息提示（不阻塞操作） */
.admin-toast-wrap {
    position: fixed;
    top: 72px;
    left: 50%;
    z-index: 9999;
    transform: translateX(-50%) translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.admin-toast-wrap.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.admin-toast-wrap.is-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
}

.admin-toast-card {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 330px;
    max-width: 460px;
    padding: 14px 38px 14px 16px;
    border-radius: 0;
    color: #fff;
    box-shadow: none;
    position: relative;
}

.admin-toast-card.admin-toast-success {
    background: #409eff;
}

.admin-toast-card.admin-toast-error {
    background: #f56c6c;
}

.admin-toast-card.admin-toast-warning {
    background: #e6a23c;
}

.admin-toast-status-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    background: transparent;
    position: relative;
}

.admin-toast-status-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.admin-toast-card.admin-toast-success .admin-toast-status-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.admin-toast-card.admin-toast-error .admin-toast-status-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.admin-toast-card.admin-toast-warning .admin-toast-status-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z'/%3E%3C/svg%3E");
}

.admin-toast-content {
    flex: 1;
    min-width: 0;
}

.admin-toast-head {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2px;
}

.admin-toast-message {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
}

.admin-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.admin-toast-close:hover {
    opacity: 1;
}

/* 后台管理布局 */
body.admin-body {
    background: #fafbfc;
    color: #333;
    --control-radius: 4px;
}

.svg-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.svg-icon-lg {
    width: 18px;
    height: 18px;
    display: block;
}

.svg-icon-xl {
    width: 24px;
    height: 24px;
    display: block;
}

.metric-tip-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    color: #c4c4c4;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: 230px;
    min-width: 230px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: contain;
    background: #4f76b7;
    color: #dbeafe;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease, min-width 0.2s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px 18px;
    border-bottom: none;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-brand-logo-wrap {
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
}

.sidebar-brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.system-logo-preview {
    width: 120px;
    height: 120px;
    border: 1px dashed #d1d5db;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.system-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.system-logo-preview-empty {
    background: #eff6ff;
    color: #2563eb;
    font-size: 36px;
    font-weight: 700;
}

.sidebar-brand-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.sidebar-brand-subtitle {
    font-size: 12px;
    color: #93c5fd;
    margin-top: 2px;
}

.sidebar-search {
    padding: 0 16px 12px;
}

.sidebar-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    margin: 0 16px 12px;
    border-radius: 10px;
    background: #f1f3f6;
    color: #6f7782;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-date-icon {
    width: 15px;
    height: 15px;
    color: #9aa3ad;
    flex-shrink: 0;
}

.sidebar-search-inner {
    position: relative;
}

.sidebar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.sidebar-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    border: none;
    border-radius: var(--control-radius, 4px);
    background: #fff;
    color: #374151;
    font-size: 13px;
}

.sidebar-search-input::placeholder {
    color: #9ca3af;
}

.sidebar-search-input:focus {
    outline: 2px solid rgba(47, 111, 214, 0.35);
    outline-offset: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.sidebar-menu li {
    margin-bottom: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 26px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-menu a.active {
    background: #3d619f;
    color: #fff;
    margin: 0;
    padding: 11px 26px;
    border-radius: 0;
}

.menu-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon .fa-solid {
    font-size: 15px;
    line-height: 1;
}

.menu-icon .svg-icon.fa-solid {
    width: 18px;
    height: 18px;
}

.sidebar-submenu .menu-icon .svg-icon.fa-solid {
    width: 16px;
    height: 16px;
}

.sidebar-submenu .menu-icon .fa-solid {
    font-size: 14px;
}

.admin-user-menu-icon .fa-solid {
    font-size: 16px;
    line-height: 1;
}

.svg-icon.fa-solid {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.svg-icon-lg.fa-solid {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.svg-icon-xl.fa-solid {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.svg-icon-menu.fa-solid {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.metric-tip-icon.fa-solid {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    vertical-align: -2px;
}

.menu-text {
    font-size: 14px;
}

.sidebar-footer {
    flex-shrink: 0;
    background: #4f76b7;
    padding: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
}

.sidebar-toggle {
    width: 100%;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sidebar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-expand {
    display: none;
}

body.sidebar-collapsed .sidebar {
    width: 72px;
    min-width: 72px;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-search,
body.sidebar-collapsed .sidebar-date,
body.sidebar-collapsed .menu-text {
    display: none;
}

body.sidebar-collapsed .sidebar-menu {
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .sidebar-menu a.active {
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .sidebar-toggle-collapse {
    display: none;
}

body.sidebar-collapsed .sidebar-toggle-expand {
    display: inline-flex;
}

/* 顶栏 */
.admin-topbar {
    height: 52px;
    background: #fff;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    min-width: 0;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.admin-tab {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f6fb;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
}

.admin-breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
}

.admin-breadcrumb-link:hover {
    color: #2563eb;
}

.admin-breadcrumb-sep {
    color: #d1d5db;
    user-select: none;
}

.admin-breadcrumb-current {
    color: #111827;
    font-weight: 500;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.admin-user-dropdown {
    position: relative;
}

.admin-user-trigger {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-width: auto;
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}

.admin-user-trigger .admin-role-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.admin-user-trigger:hover,
.admin-user-dropdown.is-open .admin-user-trigger {
    background: #f3f4f6;
}

.admin-user-trigger-avatar {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: #f3f4f6;
    flex-shrink: 0;
}

.admin-user-trigger-name {
    max-width: 120px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 168px;
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 10001;
    overflow: hidden;
}

.admin-user-dropdown.is-open .admin-user-menu {
    display: block;
}

.admin-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.admin-user-menu-item:hover {
    background: #f9fafb;
    color: #111827;
}

.admin-user-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #6b7280;
}

.admin-user-menu-item-danger,
.admin-user-menu-item-danger .admin-user-menu-icon {
    color: #2563eb;
}

.admin-user-menu-item-danger:hover {
    background: #f9fafb;
    color: #1d4ed8;
}

.admin-user-menu-divider {
    height: 1px;
    background: #eef0f3;
    margin: 0;
}

.svg-icon-menu {
    width: 18px;
    height: 18px;
    display: block;
}

.admin-badge {
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    border: none;
    border-radius: 6px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-user-link {
    text-decoration: none;
    color: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    border-radius: 0;
    padding: 2px 6px 2px 2px;
    transition: background-color 0.2s ease;
}

.admin-user-link:hover {
    background: #f3f4f6;
    color: inherit;
}

.admin-user-avatar {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: #f3f4f6;
    flex-shrink: 0;
}

.admin-user-name {
    font-size: 14px;
    color: #374151;
}

.admin-logout {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.admin-logout:hover {
    color: #1d4ed8;
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 960px;
}

.profile-card .card-body {
    padding-top: 8px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.profile-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.admin-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.admin-profile-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-profile-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.admin-profile-modal-dialog {
    position: relative;
    width: 520px;
    max-width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border: none;
}

.admin-profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: none;
}

.admin-profile-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.admin-profile-modal-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.admin-profile-modal-close:hover {
    color: #374151;
}

.admin-profile-modal-body {
    padding: 20px;
}

.admin-profile-modal-body .form-group {
    margin-bottom: 16px;
}

.admin-profile-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.admin-profile-password-divider {
    margin: 8px 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.admin-profile-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
}

body.profile-modal-open {
    overflow: hidden;
}

/* 主内容区域 */
.main-content {
    padding: 12px 16px 20px 12px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.content-icp-footer {
    margin-top: auto;
    padding: 20px 8px 4px;
    text-align: center;
    flex-shrink: 0;
}

.content-icp-link {
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
}

.content-icp-link:hover {
    color: #6b7280;
    text-decoration: underline;
}

.main-content.customers-page,
.main-content.admin-list-page,
.main-content.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 52px);
    overflow: hidden;
}

.page-title {
    display: none;
}

/* 首页区块 */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
    overflow: hidden;
    border: none;
}

/* 列表卡片不能 overflow:hidden，否则操作列 sticky 失效 */
.dashboard-card.admin-list-card {
    overflow: visible;
}

.welcome-card {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.welcome-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-avatar {
    width: 56px;
    height: 56px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    background: #f3f4f6;
}

.welcome-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.welcome-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.welcome-stats {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}

.welcome-stat-item {
    text-align: center;
    min-width: 72px;
}

.welcome-stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
}

.welcome-stat-icon.icon-blue { background: #3b82f6; }
.welcome-stat-icon.icon-green { background: #10b981; }
.welcome-stat-icon.icon-orange { background: #f59e0b; }

.welcome-stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.welcome-stat-item strong {
    font-size: 20px;
    color: #1f2937;
    font-weight: 600;
}

.card-inner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 8px;
    border-bottom: none;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.section-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 12px 16px;
}

.metric-item {
    padding: 16px 12px 12px;
    border-right: none;
    border-radius: 10px;
    background: #f8fafc;
}

.metric-item:last-child {
    border-right: none;
}

.metric-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-value {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.2;
}

.metric-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 0;
    min-height: 18px;
}

.metric-line {
    display: none;
}

.metric-blue .metric-line,
.metric-green .metric-line,
.metric-orange .metric-line,
.metric-purple .metric-line {
    display: none;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 20px 28px;
    padding: 22px 28px 30px;
}

.quick-item {
    text-decoration: none;
    color: #374151;
    text-align: center;
    transition: transform 0.15s ease;
}

.quick-item:hover {
    transform: translateY(-2px);
}

.quick-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: none;
    transition: background-color 0.15s ease;
}

.quick-svg {
    width: 26px;
    height: 26px;
    display: block;
}

.quick-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.quick-icon-cyan {
    background: #ecfeff;
    color: #0891b2;
}

.quick-icon-indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.quick-icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.quick-icon-orange {
    background: #fff7ed;
    color: #ea580c;
}

.quick-item:hover .quick-icon-blue {
    background: #dbeafe;
}

.quick-item:hover .quick-icon-cyan {
    background: #cffafe;
}

.quick-item:hover .quick-icon-indigo {
    background: #e0e7ff;
}

.quick-item:hover .quick-icon-purple {
    background: #ede9fe;
}

.quick-item:hover .quick-icon-orange {
    background: #ffedd5;
}

.quick-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.dashboard-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-page > .dashboard-card {
    flex-shrink: 0;
}

.dashboard-page .dashboard-split {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1.75fr) minmax(220px, 0.72fr);
    align-items: stretch;
}

body.sidebar-collapsed .dashboard-page .dashboard-split {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.88fr);
}

.dashboard-page .dashboard-split .dashboard-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
}

.dashboard-page .dashboard-split .dashboard-card:last-child .card-chart-wrap {
    flex: 1;
    min-height: 0;
}

.dashboard-page .dashboard-split .card-inner-head {
    flex-shrink: 0;
}

.dashboard-page .dashboard-split .card-table-wrap {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

.dashboard-page .dashboard-split .card-chart-wrap {
    width: 100%;
    padding: 16px 18px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow: visible;
    box-sizing: border-box;
}

/* 侧栏展开：卡片随高度自适应，内容垂直居中 */
body:not(.sidebar-collapsed) .dashboard-page .dashboard-split .dashboard-card:last-child {
    align-self: stretch;
}

body:not(.sidebar-collapsed) .dashboard-page .dashboard-split .dashboard-card:last-child .card-chart-wrap {
    align-items: center;
    justify-content: flex-start;
    padding: 14px 16px;
    gap: 12px;
}

body:not(.sidebar-collapsed) .dashboard-chart-canvas-wrap {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

/* 侧栏收起：内容水平+垂直居中 */
body.sidebar-collapsed .dashboard-page .dashboard-split .dashboard-card:last-child .card-chart-wrap {
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    gap: 20px;
}

body.sidebar-collapsed .dashboard-chart-canvas-wrap {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
}

body.sidebar-collapsed .dashboard-page .dashboard-split .project-type-legend {
    flex: 0 1 auto;
}

.dashboard-page .dashboard-split .card-chart-wrap .empty-state {
    flex: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-chart-canvas-wrap {
    flex: 0 0 128px;
    width: 128px;
    height: 128px;
    position: relative;
}

.dashboard-chart-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.project-type-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-type-legend li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #4b5563;
    padding: 7px 0;
    border-bottom: none;
}

.dashboard-split .admin-table .table-time-col,
.dashboard-split .admin-table .table-time-cell {
    white-space: nowrap;
    width: 1%;
}

.dashboard-split .admin-table .table-time-cell {
    color: #4b5563;
    font-size: 13px;
}

.project-type-legend li:last-child {
    border-bottom: none;
}

.project-type-legend-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.project-type-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-type-legend-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-type-legend-value {
    color: #111827;
    font-weight: 600;
    flex-shrink: 0;
}

.dashboard-page .dashboard-split .card-table-wrap .empty-state {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-split .dashboard-card {
    margin-bottom: 0;
}

.card-table-wrap {
    padding: 0;
}

.card-table-wrap .admin-table th:first-child,
.card-table-wrap .admin-table td:first-child {
    padding-left: 24px;
}

.card-table-wrap .admin-table th:last-child,
.card-table-wrap .admin-table td:last-child {
    padding-right: 24px;
}

.panel-card,
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
    overflow: hidden;
    border: none;
}

.page-toolbar {
    margin-bottom: 16px;
}

.page-toolbar .page-title {
    margin-bottom: 0;
}

.card-header {
    padding: 16px 20px 10px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.card-body {
    padding: 20px;
}

.admin-list-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
    overflow: visible;
}

.admin-list-card > .card-header {
    border-radius: 12px 12px 0 0;
}

.admin-list-card .card-body.admin-list-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    border-radius: 0 0 12px 12px;
}

.admin-list-scroll {
    flex: 1;
    min-height: 420px;
    overflow: auto;
    border-radius: 0 0 12px 12px;
    -webkit-overflow-scrolling: touch;
}

.admin-list-scroll .table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-list-scroll .table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
}

.admin-list-scroll .table th,
.admin-list-scroll .table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    max-width: 220px;
}

.admin-list-scroll .table td > a:not(.action-link):not(.btn),
.admin-list-scroll .table td > span:not(.status-tag):not(.stage-badge):not(.table-actions),
.admin-list-scroll .table .list-cell-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.admin-list-scroll .table th:last-child,
.admin-list-scroll .table td:last-child,
.admin-list-scroll .table th.action-col,
.admin-list-scroll .table td.action-col {
    position: sticky !important;
    right: 0 !important;
    left: auto;
    z-index: 5;
    width: 1%;
    min-width: 260px;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    background: #fff;
    box-shadow: -10px 0 12px -12px rgba(15, 23, 42, 0.35);
}

.admin-list-scroll .table thead th:last-child,
.admin-list-scroll .table thead th.action-col {
    z-index: 6;
    top: 0;
}

.admin-list-scroll .table tbody tr:hover td:last-child,
.admin-list-scroll .table tbody tr:hover td.action-col {
    background: #f9fbff;
}

.admin-list-scroll .table-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    max-width: none;
}

.admin-list-scroll .table td:last-child .table-actions,
.admin-list-scroll .table td.action-col .table-actions {
    flex-wrap: nowrap;
}

.admin-list-scroll .table td:last-child .action-transfer-menu,
.admin-list-scroll .table td.action-col .action-transfer-menu {
    right: 0;
    left: auto;
}

.table-row--blacklist > td:last-child,
.table-row--blacklist > td.action-col {
    background: #f3f4f6;
}

.table-row--blacklist:hover > td:last-child,
.table-row--blacklist:hover > td.action-col {
    background: #ebecef;
}

.table-row--expiry-urgent > td:last-child,
.table-row--expiry-urgent > td.action-col,
.table-row--expiry-soon > td:last-child,
.table-row--expiry-soon > td.action-col {
    background: inherit;
}

.admin-list-footer {
    flex-shrink: 0;
    padding: 12px 16px;
    border-top: none;
    background: #fff;
}

.admin-list-body .empty-state,
.admin-list-body .detail-empty {
    flex: 1;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-split .card-table-wrap {
    min-height: 300px;
    max-height: 360px;
    overflow: auto;
}

.dashboard-split .card-table-wrap .admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* 统计卡片（通用页） */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.data-preview-stats {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.metric-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

/* ---------- 数据预览可视化模块 ---------- */
.data-preview-extra {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.data-preview-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 0;
}

.data-preview-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 14px;
}

/* 近7日趋势（SVG 折线面积图） */
.data-preview-trend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.data-preview-trend-head .data-preview-card-title {
    margin-bottom: 0;
}

.data-preview-trend-legend {
    display: flex;
    gap: 16px;
    align-items: center;
}

.data-preview-trend-svg {
    display: block;
    width: 100%;
    height: auto;
}

.data-preview-trend-grid {
    stroke: #eef0f3;
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.data-preview-trend-axis {
    font-size: 10px;
    fill: #9ca3af;
}

.data-preview-trend-num {
    font-size: 11px;
    fill: #6b7280;
    font-weight: 600;
}

.data-preview-trend-num.is-person {
    fill: #7c3aed;
}

.data-preview-trend-dot {
    vector-effect: non-scaling-stroke;
}

.data-preview-trend-x {
    font-size: 11px;
    fill: #6b7280;
}

.data-preview-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.data-preview-legend-item i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.data-preview-legend-item i.is-enterprise { background: #3b82f6; }
.data-preview-legend-item i.is-person { background: #8b5cf6; }

/* 池分布 */
.data-preview-pool-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.data-preview-pool-row:last-child { margin-bottom: 0; }

.data-preview-pool-label {
    width: 72px;
    font-size: 13px;
    color: #374151;
    flex-shrink: 0;
}

.data-preview-pool-bar {
    flex: 1;
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.data-preview-pool-fill {
    display: block;
    height: 100%;
    border-radius: 5px;
}

.data-preview-pool-fill.is-公共线索 { background: #6b7280; }
.data-preview-pool-fill.is-我的领取 { background: #f59e0b; }
.data-preview-pool-fill.is-我的跟进 { background: #8b5cf6; }
.data-preview-pool-fill.is-我的客户 { background: #10b981; }
.data-preview-pool-fill.is-已流失 { background: #ec4899; }

.data-preview-pool-count {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: #111827;
    flex-shrink: 0;
}

/* 到期速览 */
.data-preview-expiry {
    grid-column: 1 / -1;
}

.data-preview-expiry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.data-preview-expiry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f9fafb;
}

.data-preview-expiry-item.is-enterprise { border-left: 4px solid #3b82f6; }
.data-preview-expiry-item.is-person { border-left: 4px solid #8b5cf6; }

.data-preview-expiry-label {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

.data-preview-expiry-value {
    font-size: 22px;
    color: #111827;
    margin-left: auto;
}

.data-preview-expiry-sub {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.metric-summary-card {
    position: relative;
    min-height: 118px;
    padding: 16px 18px;
    color: #fff;
    overflow: hidden;
    border-radius: 0;
}

.metric-summary-title {
    font-size: 13px;
    opacity: 0.92;
    margin-bottom: 10px;
}

.metric-summary-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.metric-summary-desc {
    font-size: 12px;
    opacity: 0.82;
}

.metric-summary-icon {
    position: absolute;
    right: 14px;
    bottom: 10px;
    opacity: 0.18;
}

.metric-summary-svg {
    width: 42px;
    height: 42px;
    display: block;
}

.metric-blue { background: #4a90e2; }
.metric-green { background: #67c23a; }
.metric-orange { background: #e6a23c; }
.metric-purple { background: #5e5cc6; }
.metric-pink { background: #b346b1; }
.metric-slate { background: #6b7280; }
.metric-red { background: #ef4444; }

.admin-form-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.admin-form-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-form-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.admin-form-modal-dialog {
    position: relative;
    width: 520px;
    max-width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.admin-form-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: none;
}

.admin-form-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.admin-form-modal-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.admin-form-modal-close:hover {
    color: #374151;
}

.admin-form-modal-body {
    padding: 20px;
}

.admin-form-modal-body .form-group {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.admin-form-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.admin-form-modal-body .form-inline-label,
.admin-profile-modal-body .form-inline-label,
.follow-compose-form .form-inline-label {
    display: inline-block;
    width: 88px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 9px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.admin-form-modal-body .form-field-body,
.admin-profile-modal-body .form-field-body,
.follow-compose-form .form-field-body {
    flex: 1;
    min-width: 0;
}

.admin-profile-modal-body .form-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.admin-profile-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.follow-compose-form .form-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.follow-compose-form .form-inline-label {
    width: 72px;
    padding-top: 8px;
}

.admin-form-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 20px;
    border-top: none;
}

.admin-form-modal .form-control,
.admin-form-modal select.form-control {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.table-time-cell {
    white-space: nowrap;
    color: #4b5563;
    font-size: 13px;
}

body.admin-modal-open {
    overflow: hidden;
}

.settings-inline-form .form-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-inline-form .form-field-body {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.settings-inline-form .form-control,
.settings-inline-form .system-logo-preview {
    width: 100%;
    max-width: none;
}

.settings-inline-form .form-control[name="lead_release_days"],
.settings-inline-form .form-control[name="freeze_quota"] {
    width: 160px;
}

.settings-inline-form .form-inline-unit {
    font-size: 14px;
    color: #6b7280;
    margin-left: 4px;
    white-space: nowrap;
}

.settings-form-page .form-group {
    margin-bottom: 14px;
}

.settings-form-page .form-group:last-child {
    margin-bottom: 0;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageSpinner {
    to {
        transform: rotate(360deg);
    }
}

body.login-page.page-enter .login-container {
    animation: pageFadeIn 0.28s ease;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

body.page-leaving .page-transition-overlay {
    opacity: 1;
    visibility: visible;
}

.page-transition-content {
    text-align: center;
}

.page-transition-spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 12px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: pageSpinner 0.8s linear infinite;
}

.page-transition-text {
    font-size: 14px;
    color: #4b5563;
}

.login-icp-link,
.content-icp-link {
    font-size: 12px;
    text-decoration: none;
}

.login-icp-link {
    color: rgba(255, 255, 255, 0.85);
}

.login-icp-link:hover {
    color: #fff;
    text-decoration: underline;
}

.login-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    z-index: 2;
}

.data-preview-stats .stat-card {
    padding: 14px 16px;
    border-radius: 0;
}

.data-preview-stats .stat-title {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.data-preview-stats .stat-value {
    font-size: 22px;
}

.data-preview-stats .stat-card-total {
    border-left: 4px solid #2563eb;
}

.data-preview-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.data-preview-chart-card .card-body {
    min-height: 320px;
}

.data-preview-chart-card canvas {
    width: 100% !important;
    height: 280px !important;
}

.stage-stat-wait-sales { border-left: 4px solid #f59e0b; }
.stage-stat-wait-customer { border-left: 4px solid #f97316; }
.stage-stat-writing { border-left: 4px solid #3b82f6; }
.stage-stat-review { border-left: 4px solid #8b5cf6; }
.stage-stat-stamping { border-left: 4px solid #6366f1; }
.stage-stat-contracted { border-left: 4px solid #10b981; }
.stage-stat-signoff { border-left: 4px solid #14b8a6; }
.stage-stat-declared { border-left: 4px solid #06b6d4; }
.stage-stat-delivered { border-left: 4px solid #0ea5e9; }
.stage-stat-paused { border-left: 4px solid #9ca3af; }
.stage-stat-cancelled { border-left: 4px solid #ef4444; }
.stage-stat-default { border-left: 4px solid #d1d5db; }

.stat-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 18px 20px;
    border: none;
}

.stat-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
}

.primary { border-left: 4px solid #3b82f6; }
.success { border-left: 4px solid #10b981; }
.warning { border-left: 4px solid #f59e0b; }
.danger { border-left: 4px solid #ef4444; }

/* 表格 */
.table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td,
.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f5f6f8;
    font-size: 14px;
}

.table th,
.admin-table th {
    font-weight: 600;
    background: #fff;
    color: #6b7280;
}

.table tr:hover,
.admin-table tbody tr:hover {
    background: #f9fbff;
}

.table a,
.admin-table a {
    color: #2563eb;
    text-decoration: none;
}

.table a.btn,
.admin-table a.btn,
.table a.action-link,
.admin-table a.action-link,
.card-header a.btn,
.card-header-actions a.btn {
    text-decoration: none;
}

.table a.btn-primary,
.admin-table a.btn-primary,
.table a.action-link-primary,
.admin-table a.action-link-primary,
.card-header a.btn-primary,
.card-header a.btn-danger {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.table a.btn-danger,
.admin-table a.btn-danger,
.card-header a.btn-danger {
    color: #fff !important;
}

.table a.action-link-neutral,
.admin-table a.action-link-neutral {
    color: #4b5563 !important;
}

.table a.action-link-delete,
.admin-table a.action-link-delete {
    color: #dc2626 !important;
}

.table a:hover,
.admin-table a:hover {
    text-decoration: underline;
}

.table a.btn:hover,
.admin-table a.btn:hover,
.table a.action-link:hover,
.admin-table a.action-link:hover,
.card-header a.btn:hover {
    text-decoration: none;
}

/* 搜索表单 */
.search-form,
.customer-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: none;
    flex-shrink: 0;
}

.search-form .form-group,
.customer-search-form .form-group {
    margin-bottom: 0;
    flex: 0 0 auto;
    flex-grow: 0;
    width: auto;
    max-width: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-form .form-inline-label,
.customer-search-form .form-inline-label {
    display: inline-block;
    flex-shrink: 0;
    min-width: auto;
    width: auto;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.search-form .form-field-body,
.customer-search-form .form-field-body {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

.search-form .form-field-body .form-control,
.search-form .form-field-body select.form-control,
.customer-search-form .form-control,
.customer-search-form select.form-control {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding: 8px 10px;
    height: 34px;
    border-radius: var(--control-radius, 4px);
}

.search-field-id .form-control,
.search-field-name .form-control {
    width: 120px;
}

.search-field-select .form-control {
    width: 132px;
}

.search-field-phone .form-control {
    width: 148px;
}

.search-field-email .form-control {
    width: 180px;
}

.search-field-keyword .form-control,
.customer-search-form .search-keyword-group .form-control {
    width: 180px;
}

.search-field-md .form-control {
    width: 148px;
}

.search-field-date-range .search-date-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-field-date-range .search-date-range .form-control {
    width: 138px;
}

.search-date-sep {
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

/* 线索筛选：多列网格布局 */
.search-form.search-form--grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px 16px;
}

.search-form--grid .search-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 20px;
    width: 100%;
}

.search-form--grid .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.search-form--grid .form-inline-label {
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    text-align: right;
    color: #4b5563;
    font-size: 13px;
    font-weight: 400;
}

.search-form--grid .form-field-body {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.search-form--grid .form-field-body .form-control,
.search-form--grid .form-field-body select.form-control,
.search-form--grid .search-field-keyword .form-control,
.search-form--grid .search-field-select .form-control,
.search-form--grid .search-field-name .form-control {
    width: 100%;
    min-width: 0;
}

.search-form--grid .search-date-range {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.search-form--grid .search-date-range .form-control {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.search-form--grid .search-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.search-form--grid .search-form-actions {
    margin: 0;
}

.search-form--grid .search-form-spacer {
    display: none;
}

/* 自定义日期区间选择器 */
.drp {
    position: relative;
    width: 100%;
}

.drp.is-open {
    z-index: 30;
}

.dashboard-card:has(.drp) {
    overflow: visible;
}

.drp-trigger {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 7px 6px 10px;
    border: 1px solid #d5dbe5;
    border-radius: var(--control-radius, 4px);
    background: #fff;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
}

.drp.has-value .drp-display {
    color: #111827;
}

.drp.is-open .drp-trigger,
.drp-trigger:hover {
    border-color: #2563eb;
}

.drp.is-open .drp-trigger {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.drp-display {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drp-trigger-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #eef4ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drp-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1200;
    width: 560px;
    max-width: min(560px, calc(100vw - 32px));
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.drp.is-open .drp-panel {
    display: block;
}
.drp.is-align-right .drp-panel {
    left: auto;
    right: 0;
}
.drp.is-drop-up .drp-panel {
    top: auto;
    bottom: calc(100% + 6px);
}

.drp-panel-inputs {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.drp-input {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-size: 13px;
}

.drp-input.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.drp-input-sep {
    color: #9ca3af;
}

.drp-calendars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.drp--single .drp-calendars {
    grid-template-columns: 1fr;
}
.drp--single .drp-panel {
    width: 288px;
    max-width: calc(100vw - 40px);
    padding: 10px;
}
.drp--single .drp-panel-inputs {
    margin-bottom: 8px;
}
.drp--single .drp-day {
    height: 24px;
    font-size: 12.5px;
}

.drp-calendar-head {
    display: grid;
    grid-template-columns: 28px 28px 1fr 28px 28px;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.drp-calendar-title {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.drp-nav,
.drp-nav-spacer {
    width: 28px;
    height: 28px;
}

.drp-nav {
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.drp-nav:hover {
    background: #f3f4f6;
    color: #111827;
}

.drp-weekdays,
.drp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.drp-weekdays span {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
}

.drp-day {
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: #111827;
    font-size: 13px;
    cursor: pointer;
}

.drp-day:hover {
    background: #eff6ff;
}

.drp-day.is-outside {
    color: #d1d5db;
}

.drp-day.is-disabled,
.drp-day.is-disabled:hover {
    background: transparent;
    color: #cbd2da;
    cursor: not-allowed;
}

.drp-day.is-today {
    color: #2563eb;
    font-weight: 600;
}

.drp-day.is-today.is-disabled {
    color: #cbd2da;
}

.drp-day.is-in-range {
    background: #dbeafe;
    border-radius: 0;
}

.drp-day.is-start,
.drp-day.is-end {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.drp-day.is-start {
    border-radius: 4px 0 0 4px;
}

.drp-day.is-end {
    border-radius: 0 4px 4px 0;
}

.drp-day.is-start.is-end {
    border-radius: 4px;
}

.drp-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.drp-link-btn {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.drp-link-btn:hover {
    color: #1d4ed8;
}

@media (max-width: 720px) {
    .drp-panel {
        width: min(320px, calc(100vw - 24px));
    }

    .drp-calendars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1280px) {
    .search-form--grid .search-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .search-form--grid .search-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-form--grid .form-inline-label {
        flex-basis: 64px;
        width: 64px;
        min-width: 64px;
    }
}

@media (max-width: 640px) {
    .search-form--grid .search-form-grid {
        grid-template-columns: 1fr;
    }

    .search-form--grid .form-inline-label {
        text-align: left;
    }
}

.search-form-actions,
.customer-search-form .search-form-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: 0;
}

.search-form-actions--end {
    margin-left: 0;
}

.search-form-spacer {
    flex: 1 1 auto;
    min-width: 16px;
    height: 1px;
}

.search-form .form-field-body .form-control::placeholder,
.customer-search-form .form-control::placeholder {
    color: #9ca3af;
}

.search-form .search-form-actions .btn,
.customer-search-form .search-form-actions .btn,
.search-form > .btn {
    align-self: center;
    width: auto;
    height: 34px;
    padding: 0 16px;
    line-height: 32px;
    border-radius: var(--control-radius, 4px);
}

body.admin-body .form-control,
body.admin-body select,
body.admin-body textarea,
body.admin-body input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='file']),
body.admin-body .btn,
body.admin-body .pagination a,
body.admin-body .action-link,
body.admin-body .search-form .form-control,
body.admin-body .search-form select.form-control {
    border-radius: var(--control-radius, 4px);
}

body.admin-body .alert {
    border-radius: var(--control-radius);
}

body.admin-body .form-label {
    display: none;
}

.settings-inline-form .form-inline-label {
    display: inline-block;
    width: 88px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.settings-inline-form .form-group-actions .form-inline-label {
    visibility: hidden;
}

body.admin-body .invalid-feedback,
body.admin-body .watermark {
    padding-left: 0;
}

body.admin-body .permission-item > span,
body.admin-body .column-picker-panel label span,
body.admin-body .search-field-checkbox + span {
    display: inline;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.action-transfer {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.action-transfer-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 40;
    min-width: 132px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.action-transfer-menu.is-portal {
    position: fixed;
    z-index: 20000;
}

.action-transfer-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.action-transfer-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.transfer-status-mask {
    position: fixed;
    inset: 0;
    z-index: 21000;
    background: rgba(15, 23, 42, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
}

.transfer-status-card {
    width: 320px;
    max-width: calc(100vw - 32px);
    padding: 16px 16px 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.22);
}

.transfer-status-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #26313f;
}

.transfer-status-sub {
    margin: 0 0 12px;
    font-size: 12.5px;
    color: #7b8494;
}

.transfer-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transfer-status-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.transfer-status-item strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #26313f;
}

.transfer-status-item span {
    font-size: 12px;
    color: #8a93a0;
}

.transfer-status-item:hover {
    border-color: #b9d2fb;
    background: #f5f9ff;
}

.transfer-status-cancel {
    margin-top: 10px;
    width: 100%;
    padding: 7px 0;
    border: 0;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}

.transfer-status-cancel:hover {
    background: #e9ecf1;
}

.stage-timeline-actions .action-transfer {
    margin-left: 0;
}

.stage-timeline-actions .action-transfer-toggle.action-link {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--control-radius, 4px);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
}

.action-link-primary {
    background: #2563eb;
    color: #fff !important;
    font-weight: 600;
}

.action-link-primary:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.action-link-neutral {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.action-link-neutral:hover {
    background: #f9fafb;
    color: #374151;
}

.action-link-edit {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.action-link-edit:hover {
    background: #f9fafb;
    color: #111827;
}

.action-link-delete {
    background: #fff;
    color: #dc2626;
    border-color: #fca5a5;
}

.action-link-delete:hover {
    background: #fef2f2;
    color: #b91c1c;
}

body.admin-body .btn-secondary {
    background-color: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

body.admin-body .btn-secondary:hover {
    background-color: #f9fafb;
    color: #374151;
}

body.admin-body .card-header {
    border-radius: 0;
}

@media (max-width: 1100px) {
    .metric-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-item:nth-child(2) {
        border-right: none;
    }

    .metric-item:nth-child(odd) {
        border-right: none;
    }

    .welcome-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-stats {
        width: 100%;
        justify-content: space-around;
    }

    .dashboard-split {
        grid-template-columns: 1fr;
    }

    .dashboard-page .dashboard-split {
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }

    body:not(.sidebar-collapsed) .dashboard-page .dashboard-split .dashboard-card:last-child .card-chart-wrap {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 16px;
    }

    body.sidebar-collapsed .dashboard-page .dashboard-split .dashboard-card:last-child .card-chart-wrap {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .dashboard-chart-canvas-wrap {
        margin: 0 auto;
    }

    .data-preview-charts {
        grid-template-columns: 1fr;
    }

    .metric-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        height: auto;
        overflow: visible;
        overscroll-behavior: auto;
    }

    .sidebar-footer {
        position: static;
    }

    .sidebar-menu {
        min-height: auto;
        overflow: visible;
    }

    body.sidebar-collapsed .sidebar-brand-text,
    body.sidebar-collapsed .sidebar-search,
    body.sidebar-collapsed .menu-text {
        display: block;
    }

    body.sidebar-collapsed .sidebar-menu a {
        justify-content: flex-start;
        padding-left: 14px;
        padding-right: 14px;
    }

    body.sidebar-collapsed .sidebar-toggle-collapse {
        display: inline-flex;
    }

    body.sidebar-collapsed .sidebar-toggle-expand {
        display: none;
    }

    .main-content {
        padding: 16px;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }

    .metric-item {
        border-right: none;
        border-bottom: none;
    }

    .metric-item:last-child {
        border-bottom: none;
    }

    .welcome-stats {
        gap: 16px;
    }
}


/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.3;
    border-radius: 3px;
    border: none;
    font-weight: 500;
    vertical-align: middle;
}

.status-tag.stage-badge,
.status-tag.priority-badge {
    min-width: 44px;
    height: 18px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    border-radius: 3px;
    border: none;
    white-space: nowrap;
    box-shadow: none;
    letter-spacing: 0;
}

.status-tag.priority-badge {
    min-width: 24px;
}

.status-success {
    background-color: #3d9e2e;
    color: #fff;
}

.status-failed {
    background-color: #d93030;
    color: #fff;
}

.status-pending {
    background-color: #c47a17;
    color: #fff;
}

.status-warning {
    background-color: #b8860b;
    color: #fff;
}

.status-tag.stage-badge.stage-default {
    background-color: #6b7280;
    color: #fff;
}

.status-tag.stage-badge.stage-wait {
    background-color: #c47a17;
    color: #fff;
}

.status-tag.stage-badge.stage-active {
    background-color: #1a6fd4;
    color: #fff;
}

.status-tag.stage-badge.stage-done {
    background-color: #3d9e2e;
    color: #fff;
}

.status-tag.priority-badge.priority-high {
    background-color: #d93030;
    color: #fff;
}

.status-tag.priority-badge.priority-medium {
    background-color: #c47a17;
    color: #fff;
}

.status-tag.priority-badge.priority-low {
    background-color: #6b7280;
    color: #fff;
}

.status-tag.priority-badge.priority-default {
    background-color: #6b7280;
    color: #fff;
}

.project-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.project-file-list a {
    color: #2563eb;
    font-size: 13px;
}

.project-file-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-file-picker-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.project-file-picker-label:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.project-file-input {
    display: none;
}

.project-file-hint {
    font-size: 12px;
    color: #9ca3af;
}

.project-file-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.project-file-preview-item {
    position: relative;
    border: 1px solid #e5e7eb;
    background: #fafbfc;
    padding: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.project-file-preview-item img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.project-file-preview-icon {
    width: auto;
    height: auto;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.file-type-icon {
    position: relative;
    width: 48px;
    height: 56px;
    flex-shrink: 0;
}

.file-type-icon__doc {
    display: block;
    width: 48px;
    height: 56px;
}

.file-type-icon__sheet {
    fill: #f8fafc;
    stroke: #dbeafe;
    stroke-width: 1.5;
}

.file-type-icon__fold {
    fill: #e2e8f0;
    stroke: #dbeafe;
    stroke-width: 1.5;
}

.file-type-icon__badge {
    fill: var(--file-type-color, #64748b);
}

.file-type-icon__label {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    min-width: 28px;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--file-type-color, #64748b);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.02em;
}

.project-file-preview-name {
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
    word-break: break-all;
}

.project-file-preview-meta {
    font-size: 11px;
    color: #9ca3af;
}

.project-file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.project-file-preview-remove:hover {
    background: #ef4444;
}

.project-file-preview-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
}

.project-file-preview-link:hover {
    text-decoration: underline;
}

.project-file-preview-list--readonly {
    margin-top: 0;
}

.project-file-preview-list--readonly .project-file-preview-item {
    width: 96px;
}

.rich-editor-wrap {
    width: 100%;
    border: 1px solid #d8dee9;
    background: #fff;
    overflow: hidden;
}

.rich-editor-wrap.is-invalid {
    border-color: #ef4444;
}

.rich-editor-toolbar {
    border-bottom: 1px solid #e5e7eb;
}

.rich-editor-body {
    min-height: 240px;
    height: 280px;
}

.rich-text-content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    word-break: break-word;
}

.rich-text-content p {
    margin: 0 0 10px;
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 0 0 10px;
    padding-left: 1.4em;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5 {
    margin: 0 0 10px;
    font-weight: 600;
}

.rich-text-content a {
    color: #2563eb;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
}

.status-tag.stage-badge.stage-wait-sales {
    background-color: #c47a17;
    color: #fff;
}

.status-tag.stage-badge.stage-wait-customer {
    background-color: #c2410c;
    color: #fff;
}

.status-tag.stage-badge.stage-writing {
    background-color: #1a6fd4;
    color: #fff;
}

.status-tag.stage-badge.stage-review {
    background-color: #6d28d9;
    color: #fff;
}

.status-tag.stage-badge.stage-stamping {
    background-color: #4f46e5;
    color: #fff;
}

.status-tag.stage-badge.stage-contracted {
    background-color: #3d9e2e;
    color: #fff;
}

.status-tag.stage-badge.stage-signoff {
    background-color: #0f766e;
    color: #fff;
}

.status-tag.stage-badge.stage-declared {
    background-color: #15803d;
    color: #fff;
}

.status-tag.stage-badge.stage-delivered {
    background-color: #0e7490;
    color: #fff;
}

.status-tag.stage-badge.stage-paused {
    background-color: #b8860b;
    color: #fff;
}

.status-tag.stage-badge.stage-cancelled {
    background-color: #d93030;
    color: #fff;
}

/* 水印文字 */
.watermark {
    color: #999;
}

/* 文本颜色 */
.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

/* 分页样式 */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 13px;
    color: #6b7280;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    color: #374151;
    text-decoration: none;
    border: 1px solid #d1d5db;
}

.pagination a:hover {
    background-color: #f3f4f6;
}

.pagination a.active {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination a.disabled {
    color: #9ca3af;
    pointer-events: none;
}

.amount {
    text-align: right;
}

/* 客户详情页 */
.main-content.customer-detail-page-wrap {
    padding: 10px 12px 16px;
}

.customer-detail-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
}

.detail-record-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.project-stage-timeline-panel .detail-panel-body {
    padding: 12px 16px 20px;
}

.stage-timeline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stage-timeline-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.stage-timeline-track {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 100%;
    padding: 12px 4px 8px;
}

.stage-timeline-step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.stage-timeline-node-wrap {
    position: relative;
    z-index: 2;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.stage-timeline-node {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #dcdfe6;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.stage-timeline-line {
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e4e7ed;
    z-index: 1;
}

.stage-timeline-step--completed .stage-timeline-node {
    background: #409eff;
    border-color: #409eff;
}

.stage-timeline-step--completed .stage-timeline-line {
    background: #409eff;
}

.stage-timeline-step--active .stage-timeline-node {
    width: 24px;
    height: 24px;
    border-width: 3px;
    background: #409eff;
    border-color: #409eff;
    box-shadow: 0 0 0 5px rgba(64, 158, 255, 0.2);
}

.stage-timeline-step--active.stage-timeline-step--stage-paused .stage-timeline-node {
    background: #e6a23c;
    border-color: #e6a23c;
    box-shadow: 0 0 0 5px rgba(230, 162, 60, 0.2);
}

.stage-timeline-step--active.stage-timeline-step--stage-cancelled .stage-timeline-node {
    background: #f56c6c;
    border-color: #f56c6c;
    box-shadow: 0 0 0 5px rgba(245, 108, 108, 0.2);
}

.stage-timeline-step--active.stage-timeline-step--stage-contracted .stage-timeline-node,
.stage-timeline-step--active.stage-timeline-step--stage-declared .stage-timeline-node,
.stage-timeline-step--active.stage-timeline-step--stage-delivered .stage-timeline-node,
.stage-timeline-step--active.stage-timeline-step--stage-signoff .stage-timeline-node {
    background: #67c23a;
    border-color: #67c23a;
    box-shadow: 0 0 0 5px rgba(103, 194, 58, 0.2);
}

.stage-timeline-label {
    font-size: 13px;
    line-height: 1.5;
    color: #909399;
    padding: 0 4px;
    word-break: break-all;
    min-height: 40px;
}

.stage-timeline-step--completed .stage-timeline-label {
    color: #606266;
}

.stage-timeline-step--active .stage-timeline-label {
    color: #303133;
    font-size: 14px;
    font-weight: 600;
}

.stage-timeline-time {
    margin-top: 6px;
    font-size: 12px;
    color: #c0c4cc;
    line-height: 1.3;
}

.detail-record-no {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.detail-record-sub {
    font-size: 13px;
    color: #6b7280;
}

.detail-record-divider {
    margin: 0 8px;
    color: #d1d5db;
}

.detail-record-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, 42%);
    gap: 16px;
    align-items: start;
}

.detail-main-column,
.detail-side-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.detail-panel {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.detail-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    border-bottom: none;
    background: #fff;
}

.detail-panel-meta {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

.detail-panel-body {
    padding: 4px 20px 12px;
}

.detail-rows {
    margin: 0;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: none;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row dt {
    width: 120px;
    flex-shrink: 0;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.detail-row dd {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    color: #111827;
    line-height: 1.6;
    word-break: break-word;
}

.detail-row--block {
    flex-direction: column;
    gap: 8px;
}

.detail-row--block dt {
    width: auto;
}

.detail-row--block dd {
    width: 100%;
}

.detail-row--block .rich-text-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.detail-rows-summary .detail-row dt {
    width: 96px;
}

.follow-timeline {
    max-height: 420px;
    overflow-y: auto;
    padding-top: 4px;
}

.follow-timeline-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: none;
}

.follow-timeline-item:last-child {
    border-bottom: none;
}

.follow-avatar {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: #f3f4f6;
    flex-shrink: 0;
}

.follow-timeline-content {
    flex: 1;
    min-width: 0;
}

.follow-timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.follow-timeline-user {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.follow-timeline-time {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.follow-timeline-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    word-break: break-word;
}

.follow-timeline-text:empty {
    display: none;
}

.follow-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.follow-attachment-item {
    max-width: 100%;
}

.follow-attachment-image {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.follow-attachment-image img {
    display: block;
    max-width: 160px;
    max-height: 120px;
    object-fit: cover;
}

.follow-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    text-decoration: none;
    max-width: 100%;
}

.follow-attachment-file .file-type-icon {
    width: 40px;
    height: 46px;
}

.follow-attachment-file .file-type-icon__doc {
    width: 40px;
    height: 46px;
}

.follow-attachment-file .file-type-icon__label {
    bottom: 8px;
    font-size: 8px;
}

.follow-attachment-file:hover {
    border-color: #cbd5e1;
    background: #f3f4f6;
}

.follow-attachment-file-name {
    font-size: 12px;
    word-break: break-all;
}

.follow-compose-form .follow-attachment-upload {
    margin-top: 0;
}

.follow-compose-form .project-file-preview-list {
    margin-top: 8px;
}

.follow-compose-form .project-file-preview-item {
    width: 92px;
}

.follow-timeline-status {
    margin-top: 8px;
}

.detail-empty {
    padding: 28px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.follow-compose-form .form-group {
    margin-bottom: 12px;
}

.follow-compose-input {
    min-height: 96px;
    resize: vertical;
}

.followup-template-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.followup-template-label {
    font-size: 14px;
    color: #94a3b8;
}

.followup-template-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.followup-template-chip {
    border: 1px solid #dbe3ee;
    background: #f7fafa;
    color: #33465c;
    font-size: 14px;
    line-height: 1.4;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.followup-template-chip:hover {
    background: #eff5f5;
    border-color: #b9c9d6;
}

.followup-template-chip:active {
    transform: translateY(1px);
}

.followup-template-selected {
    font-size: 14px;
    color: #94a3b8;
}

.form-inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.followup-template-cell {
    max-width: 520px;
    color: #475569;
    word-break: break-all;
}

.action-link-danger {
    color: #c2705f;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.action-link-danger:hover {
    text-decoration: underline;
}

.follow-compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.follow-compose-actions .claim-left {
    margin-right: auto;
}

/* 公司资质是否异常：两级下拉并排 */
.form-field-body .qual-abnormal-yn,
.form-field-body .qual-abnormal-type {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    max-width: 60%;
}
.form-field-body .qual-abnormal-type {
    margin-left: 8px;
}

.detail-follow-panel {
    min-height: 240px;
}

.detail-compose-panel .detail-panel-body {
    padding-top: 12px;
}
.detail-compose-panel {
    overflow: visible;
}

.customer-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
}

.info-value {
    font-size: 16px;
}

@media (max-width: 1100px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .follow-timeline {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .stage-timeline-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .project-stage-timeline-panel .detail-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-timeline-track {
        min-width: 880px;
    }

    .stage-timeline-step {
        flex: 0 0 80px;
        min-width: 80px;
    }

    .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-row dt {
        width: auto;
    }
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #e9ecef;
    font-size: 12px;
}

/* 响应式布局 */
@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* 数据预览看板 */
.main-content.data-board-page {
    padding-bottom: 28px;
    overflow-x: hidden;
    min-width: 0;
}

.data-board {
    max-width: 100%;
    min-width: 0;
}

.data-board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.data-board-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.data-board-range {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.data-board-range-item {
    padding: 8px 14px;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    border-right: none;
}

.data-board-range-item:last-child {
    border-right: none;
}

.data-board-range-item:hover {
    background: #f8fafc;
    color: #111827;
}

.data-board-range-item.is-active {
    background: #2563eb;
    color: #fff;
}

.data-board-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-change.is-up {
    color: #bbf7d0;
}

.metric-change.is-down {
    color: #fecaca;
}

.data-board-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.data-board-main--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    width: 100%;
}

.data-board-sales-filter {
    margin-bottom: 14px;
    max-width: 100%;
    min-width: 0;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.data-board-sales-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
}

.data-board-sales-datepicker {
    flex: 0 0 260px;
    width: 260px;
    max-width: 42%;
    min-width: 200px;
}

.data-board-sales-datepicker .drp,
.data-board-sales-datepicker .drp-trigger {
    width: 100%;
}

.data-board-sales-presets {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.data-board-sales-preset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.data-board-sales-preset:hover {
    color: #111827;
    background: #f3f4f6;
}

.data-board-sales-preset.is-active {
    color: #fff;
    background: #2563eb;
}

.data-board-sales-preset.is-active:hover {
    color: #fff;
    background: #1d4ed8;
}

.data-board-sales-table th.is-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}


.data-board-sales-table thead th.is-sortable {
    white-space: normal;
    word-break: normal;
    line-height: 1.3;
    min-width: 96px;
    padding: 8px 6px;
    text-align: center;
}
.data-board-sales-table th.is-sortable:hover {
    color: #1d4ed8;
}

.data-board-sales-table th.is-sortable .sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #c0c4cc;
    opacity: 0.55;
}

.data-board-sales-table th.is-sortable.is-sorted .sort-icon,
.data-board-sales-table th.is-sortable:hover .sort-icon {
    opacity: 1;
}

.data-board-sales-table th.is-sortable.is-asc .sort-icon {
    border-top: 0;
    border-bottom: 5px solid #1d4ed8;
}

.data-board-sales-table th.is-sortable.is-desc .sort-icon {
    border-top-color: #1d4ed8;
}

.data-board .admin-list-card {
    margin-bottom: 0;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* 业务员表无操作列，取消最后一列 sticky，避免把整页撑宽 */
.data-board .admin-list-scroll {
    max-width: 100%;
}

.data-board .admin-list-scroll .table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}

.data-board .admin-list-scroll .table th:last-child,
.data-board .admin-list-scroll .table td:last-child,
.data-board .admin-list-scroll .table th.action-col,
.data-board .admin-list-scroll .table td.action-col {
    position: static !important;
    right: auto !important;
    width: auto;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-board-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.data-board-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 16px 18px;
}

.data-board-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.data-board-card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.data-board-card-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.data-board-legend {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #6b7280;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.legend-dot-blue { background: #3b82f6; }
.legend-dot-orange { background: #f59e0b; }

.data-board-chart-wrap {
    height: 280px;
}

.data-board-flow-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 6px;
}

.data-board-flow-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
}

.data-board-flow-top strong {
    font-size: 14px;
    color: #111827;
}

.data-board-flow-top em {
    font-style: normal;
    margin-left: 6px;
    color: #9ca3af;
    font-size: 12px;
}

.data-board-flow-bar {
    height: 10px;
    background: #f3f4f6;
    overflow: hidden;
}

.data-board-flow-bar span {
    display: block;
    height: 100%;
}

.flow-stage-wait { background: #f59e0b; }
.flow-stage-active { background: #3b82f6; }
.flow-stage-done { background: #22c55e; }
.flow-stage-cancelled { background: #ef4444; }
.flow-stage-default { background: #9ca3af; }

.data-board-hbar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.data-board-hbar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 5px;
}

.data-board-hbar {
    height: 8px;
    background: #f3f4f6;
    overflow: hidden;
}

.data-board-hbar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.data-board-donut-wrap {
    position: relative;
    height: 240px;
}

.data-board-donut-center {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.data-board-donut-center strong {
    display: block;
    font-size: 24px;
    color: #111827;
    line-height: 1.1;
}

.data-board-donut-center span {
    font-size: 12px;
    color: #9ca3af;
}

.data-board-rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
}

.data-board-rank-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: none;
}

.data-board-rank-item:last-child {
    border-bottom: none;
}

.data-board-rank-index {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.data-board-rank-item:nth-child(1) .data-board-rank-index { background: #fef3c7; color: #d97706; }
.data-board-rank-item:nth-child(2) .data-board-rank-index { background: #e5e7eb; color: #4b5563; }
.data-board-rank-item:nth-child(3) .data-board-rank-index { background: #ffedd5; color: #c2410c; }

.data-board-rank-name {
    font-size: 13px;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-board-rank-meta {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.data-board-card-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: none;
    text-align: right;
}

.data-board-card-foot a {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}

.data-board-card-foot a:hover {
    text-decoration: underline;
}

.metric-summary-card .metric-change {
    font-weight: 600;
}

@media (max-width: 1200px) {
    .data-board-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .data-board-main,
    .data-board-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .data-board-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-board-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .data-board-range {
        width: 100%;
    }

    .data-board-range-item {
        flex: 1;
        text-align: center;
    }
}

.client-yesno-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 36px;
}

.client-yesno-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.client-yesno-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.client-credential-details {
    display: contents;
}

.client-credential-details[hidden] {
    display: none !important;
}

.client-attachment-cell {
    line-height: 1.5;
    max-width: 220px;
}

.client-attachment-count {
    display: inline-block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 12px;
}

.page-switch-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
}

.page-switch-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    margin-bottom: -1px;
    padding: 10px 18px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    box-shadow: none;
    transition: color .15s ease, border-color .15s ease;
}

.page-switch-tab:hover {
    color: #111827;
    background: transparent;
}

.page-switch-tab.is-active {
    color: #2563eb;
    background: transparent;
    border-bottom-color: #2563eb;
    box-shadow: none;
    font-weight: 600;
}

.admin-form-modal-dialog--wide {
    width: 680px;
    max-width: calc(100vw - 48px);
}

.blacklist-move-list {
    max-height: 320px;
    overflow: auto;
    margin: 0 0 16px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 10px;
}

.blacklist-move-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.blacklist-move-item:last-child {
    margin-bottom: 0;
}

.blacklist-move-item input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.blacklist-move-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.blacklist-move-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.blacklist-move-meta {
    font-size: 12px;
    color: #6b7280;
}

.blacklist-move-item .status-tag {
    flex-shrink: 0;
}

.table-row--blacklist > td {
    color: #9ca3af;
    background: #f3f4f6;
}

.table-row--blacklist .customer-count-link {
    color: #9ca3af;
}

.table-row--blacklist .action-link-primary {
    color: #6b7280;
}

.table-row--blacklist .status-tag {
    opacity: 0.85;
}

.expiry-summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.expiry-claim-tip {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #8c6d1f;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 0 14px;
    font-size: 13px;
}

.expiry-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.expiry-summary-card:hover,
.expiry-summary-card.is-active {
    border-color: #dbeafe;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.expiry-summary-label {
    font-size: 13px;
    color: #6b7280;
}

.expiry-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.expiry-summary-card--expired .expiry-summary-value {
    color: #dc2626;
}

.expiry-summary-card--soon .expiry-summary-value {
    color: #d97706;
}

/* 企业到期提醒：30 / 60 / 90 天分级预警 */
.expiry-tier-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: -6px 0 16px;
}

.expiry-tier-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #f4f6fa;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease;
}

.expiry-tier-chip strong {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.expiry-tier-chip:hover,
.expiry-tier-chip.is-active {
    background: #fff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.expiry-tier-chip.is-active strong {
    color: #1d4ed8;
}

.table-row--expiry-urgent > td {
    background: #fef2f2;
}

.table-row--expiry-soon > td {
    background: #fffbeb;
}

.metric-item--link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background-color .15s ease;
}

.metric-item--link:hover {
    background: #f9fafb;
}

.metric-item--danger .metric-value {
    color: #dc2626;
}

.metric-item--warn .metric-value {
    color: #d97706;
}

@media (max-width: 768px) {
    .expiry-summary-row {
        grid-template-columns: 1fr;
    }
}

/* 页签切换（企业/人才） */
.module-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.module-tab {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s ease;
}
.module-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.module-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* 子页签（企业客户：未冻结企业/冻结企业） */
.module-tabs--sub {
    margin-bottom: 12px;
}
.module-tabs--sub .module-tab {
    padding: 5px 14px;
    font-size: 13px;
}

/* 页签导航（nav-tabs） */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 2px solid #e5e7eb;
}
.nav-tabs .nav-item {
    margin: 0;
}
.nav-tabs .nav-link {
    display: inline-block;
    padding: 9px 20px;
    margin-bottom: -2px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.nav-tabs .nav-link:hover {
    color: #2563eb;
    background: #f5f8ff;
}
.nav-tabs .nav-link.active {
    color: #2563eb;
    font-weight: 600;
    background: #fff;
    border-color: #e5e7eb;
    border-bottom-color: #fff;
}

/* 描边按钮（尺寸继承 .btn / .btn-sm，仅定义边框与配色） */
.btn-outline-primary {
    color: #2563eb;
    background: #fff;
    border: 1px solid #2563eb;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn-outline-primary:hover {
    background: #2563eb;
    color: #fff;
}
.btn-outline-danger {
    color: #dc2626;
    background: #fff;
    border: 1px solid #dc2626;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn-outline-danger:hover {
    background: #dc2626;
    color: #fff;
}
/* 描边按钮带 1px 边框：上下左右各减 1px padding，保证与实心按钮同尺寸 */
.btn-outline-primary,
.btn-outline-danger {
    padding: 9px 14px;
}
.btn-outline-primary.btn-sm,
.btn-outline-danger.btn-sm,
a.btn-outline-primary.btn-sm,
button.btn-outline-danger.btn-sm {
    padding: 4px 9px;
}

/* 状态角标 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 10px;
    vertical-align: 1px;
    margin-left: 2px;
}
.badge-danger { background: #ef4444; color: #fff; }
.badge-warning { background: #f59e0b; color: #fff; }
.badge-success { background: #10b981; color: #fff; }
.badge-secondary { background: #9ca3af; color: #fff; }

/* 通用工具类 */
.text-muted { color: #9ca3af; }
.table-striped tbody tr:nth-child(odd) { background: #fafbfc; }

/* ============ 业绩管理模块 ============ */
.sidebar-menu-group {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-group-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-menu-group.has-active > .sidebar-group-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-group-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.sidebar-group-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.sidebar-menu-group.is-open .sidebar-group-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-group.is-open .sidebar-submenu {
    display: block;
}

.sidebar-submenu a {
    padding: 9px 26px 9px 48px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.sidebar-submenu a:hover {
    color: #fff;
}

.sidebar-submenu a.active {
    padding: 9px 26px 9px 48px;
    background: #3d619f;
    color: #fff;
}

.sidebar-submenu .menu-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.sidebar-submenu .menu-text {
    font-size: 13px;
}

@media (min-width: 769px) {
    body.sidebar-collapsed .sidebar-submenu {
        display: none;
    }

    body.sidebar-collapsed .sidebar-group-arrow {
        display: none;
    }

    body.sidebar-collapsed .sidebar-group-toggle {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
}

.perf-monthbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.perf-monthbar-left,
.perf-monthbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.perf-month-label {
    font-size: 15px;
    font-weight: 700;
    color: #303133;
}

.perf-month-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.perf-month-nav a {
    padding: 4px 10px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background: #fff;
    color: #606266;
    font-size: 12px;
    text-decoration: none;
}

.perf-month-nav a:hover {
    border-color: #4a90e2;
    color: #4a90e2;
}

.perf-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 16px;
}

.perf-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(15, 35, 70, 0.04);
}

.perf-card + .perf-card {
    margin-top: 16px;
}

/* 网格内并列的卡片由 grid gap 控制间距，避免第二列被额外顶下去 */
.perf-grid > .perf-card + .perf-card {
    margin-top: 0;
}

.perf-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.perf-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #303133;
}

.perf-card-sub {
    font-size: 12px;
    color: #909399;
    line-height: 1.6;
}

.perf-ring {
    position: relative;
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

.perf-ring svg {
    display: block;
    margin: 0 auto;
}

.perf-ring-center {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    width: 120px;
}

.perf-ring-center strong {
    display: block;
    font-size: 26px;
    line-height: 1.15;
    color: #1f2d3d;
    font-weight: 700;
}

.perf-ring-center span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #909399;
}

.perf-ring-caption {
    margin-top: 10px;
    font-size: 12px;
    color: #909399;
}

.perf-month-card {
    display: flex;
    flex-direction: column;
}
.perf-month-card .perf-ring {
    width: 260px;
    margin-top: auto;
    margin-bottom: auto;
}
.perf-month-card .perf-ring svg {
    width: 220px;
    height: 220px;
}
.perf-month-card .perf-ring-center {
    width: 156px;
    top: 44%;
}
.perf-month-card .perf-ring-center strong {
    font-size: 34px;
}
.perf-month-card .perf-ring-center span {
    font-size: 13px;
    margin-top: 6px;
}
.perf-month-card .perf-ring-caption {
    margin-top: 12px;
    font-size: 13px;
}

.perf-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.perf-kpi {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}

.perf-kpi label {
    display: block;
    font-size: 12px;
    color: #909399;
}

.perf-kpi strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
    color: #303133;
}

.perf-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.perf-stat-item {
    border: 1px solid #edf0f5;
    border-radius: 9px;
    padding: 11px 12px;
    background: #fafbfd;
}

.perf-stat-item.is-ok {
    border-color: #cdeedd;
    background: #f5fdf9;
}

.perf-stat-item.is-bad {
    border-color: #f7d7d7;
    background: #fff7f7;
}

.perf-stat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: #909399;
}

.perf-stat-value {
    margin-top: 5px;
    font-size: 19px;
    font-weight: 700;
    color: #303133;
    line-height: 1.2;
}

.perf-stat-req {
    margin-top: 3px;
    font-size: 12px;
    color: #909399;
}

.perf-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.perf-badge.is-ok { background: #eaf7ef; color: #1f7a4d; }
.perf-badge.is-bad { background: #fdeeee; color: #b23c3c; }
.perf-badge.is-warn { background: #fff6e8; color: #a56a10; }
.perf-badge.is-muted { background: #f2f4f7; color: #7b8aa0; }
.perf-badge.is-info { background: #eef4fd; color: #2f6fd0; }

.perf-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.perf-alert strong { font-weight: 700; }

.perf-alert.is-warn {
    background: #fff9ee;
    border: 1px solid #f2ddb8;
    color: #8a5a12;
}

.perf-alert.is-bad {
    background: #fff3f3;
    border: 1px solid #f4cccc;
    color: #a33535;
}

.perf-alert.is-info {
    background: #f1f6fd;
    border: 1px solid #d5e4f7;
    color: #2f5c94;
}

.perf-alert-icon {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
}

.perf-bar {
    width: 100%;
    background: #eef1f6;
    border-radius: 999px;
    overflow: hidden;
}

.perf-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.perf-rank {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perf-rank-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 110px;
    gap: 10px;
    align-items: center;
}

.perf-rank-no {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef1f6;
    color: #606266;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    font-weight: 700;
}

.perf-rank-row:first-child .perf-rank-no {
    background: #fdf3e1;
    color: #a56a10;
}

.perf-rank-main {
    min-width: 0;
}

.perf-rank-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #303133;
    margin-bottom: 5px;
}

.perf-rank-meta {
    font-size: 12px;
    color: #909399;
    white-space: nowrap;
}

.perf-member-list {
    display: flex;
    flex-direction: column;
}

.perf-member-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eef1f6;
}

.perf-member-row:last-child { border-bottom: 0; }

.perf-member-name {
    font-size: 14px;
    color: #303133;
    font-weight: 600;
}

.perf-member-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #909399;
    font-weight: 400;
}

.perf-member-progress {
    min-width: 0;
}

.perf-member-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #606266;
}

.perf-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

.perf-calendar th {
    font-size: 12px;
    font-weight: 600;
    color: #909399;
    padding: 2px 0 6px;
    text-align: center;
}

.perf-calendar td {
    vertical-align: top;
    padding: 0;
}

.perf-cal-day {
    display: block;
    min-height: 82px;
    padding: 8px;
    background: #fbfcfe;
    border: 1px solid #edf0f5;
    border-radius: 9px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.perf-cal-day:hover {
    border-color: #c9d8ee;
    background: #f4f8fe;
}

.perf-cal-day.is-today {
    border-color: #4a90e2;
    box-shadow: inset 0 0 0 1px #4a90e2;
    background: #f3f8fe;
}

.perf-cal-day.is-selected {
    border-color: #2f6fd0;
    background: #eaf2fd;
}

.perf-cal-day.is-empty {
    background: transparent;
    border-color: transparent;
}

.perf-cal-date {
    font-size: 12px;
    color: #909399;
}

.perf-cal-day.is-today .perf-cal-date {
    color: #2f6fd0;
    font-weight: 700;
}

.perf-cal-amount {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #303133;
    word-break: break-all;
}

.perf-cal-empty {
    margin-top: 4px;
    font-size: 12px;
    color: #c0c4cc;
}

.perf-cal-mark {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0c4cc;
}

.perf-cal-mark.is-ok { background: #67c23a; }
.perf-cal-mark.is-bad { background: #ef4444; }

.perf-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: #909399;
}

.perf-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.perf-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.perf-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.perf-field label {
    display: block;
    font-size: 12px;
    color: #606266;
    margin-bottom: 5px;
}

.perf-field .form-control {
    width: 100%;
}

.perf-leave-form .perf-field {
    flex: 0 0 auto;
}

.perf-leave-form .drp {
    width: 244px;
    flex: 0 0 auto;
}

.perf-leave-form .drp-trigger {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    font-size: 13.5px;
}

.perf-leave-form .drp.is-open .drp-trigger,
.perf-leave-form .drp-trigger:hover {
    border-color: #2563eb;
}

.perf-leave-form .drp.has-value .drp-display {
    color: #26313f;
}

.perf-leave-form .drp-panel {
    width: 500px;
    max-width: min(500px, calc(100vw - 32px));
    left: 0;
    transform: none;
}

.perf-leave-form .perf-field label {
    font-size: 12.5px;
    color: #6b7684;
    margin-bottom: 6px;
}

.perf-leave-form input[type="date"],
.perf-leave-form select {
    width: auto;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #fff;
    color: #26313f;
    font-size: 13.5px;
    line-height: 36px;
    font-family: inherit;
    flex: 0 0 auto;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.perf-leave-form input[type="date"] {
    width: 140px;
}

.perf-leave-form select {
    width: 78px;
    padding-right: 22px;
}

.perf-leave-form input[type="date"]:hover,
.perf-leave-form select:hover {
    border-color: #b9c3d0;
}

.perf-leave-form input[type="date"]:focus,
.perf-leave-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.perf-leave-form input[type="date"]::-webkit-calendar-picker-indicator {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    padding: 0;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.15s;
}

.perf-leave-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.75;
}

.perf-leave-form button[type="submit"] {
    height: 38px;
    padding: 0 18px;
    font-size: 13px;
    border-radius: 4px;
    flex: 0 0 auto;
}

.perf-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.perf-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.perf-summary-item {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    padding: 12px 14px;
}

.perf-summary-item label {
    display: block;
    font-size: 12px;
    color: #909399;
}

.perf-summary-item strong {
    display: block;
    margin-top: 4px;
    font-size: 19px;
    color: #303133;
    line-height: 1.2;
}

.perf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.perf-empty {
    padding: 34px 10px;
    text-align: center;
    color: #909399;
    font-size: 13px;
}

.perf-issue-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.perf-issue-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fdf0f0;
    border: 1px solid #f6d6d6;
    color: #a33535;
    font-size: 12px;
    line-height: 20px;
}

.perf-issue-chip.is-missing {
    background: #f4f5f8;
    border-color: #e3e6ee;
    color: #6b7788;
}

.perf-group-block {
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
}

.perf-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.perf-group-name {
    font-size: 15px;
    font-weight: 700;
    color: #303133;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perf-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #606266;
}

.perf-target-table {
    width: 100%;
    border-collapse: collapse;
}

.perf-target-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #909399;
    padding: 8px 10px;
    background: #f7f9fc;
}

.perf-target-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f2f7;
    font-size: 13px;
    color: #303133;
    vertical-align: middle;
}

.perf-target-input {
    width: 150px;
    text-align: right;
}

.perf-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: #909399;
}

.perf-required {
    color: #ef4444;
    margin-left: 2px;
}

.perf-check-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fbfcfe;
}

.perf-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 2px;
    font-size: 13px;
    color: #303133;
}

.perf-check-row input {
    width: 15px;
    height: 15px;
}

.perf-check-row span.group {
    margin-left: auto;
    font-size: 12px;
    color: #909399;
}

.perf-report-edit-btn {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .perf-grid { grid-template-columns: 1fr; }
    .perf-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .perf-stat-grid,
    .perf-summary,
    .perf-form-grid,
    .perf-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .perf-member-row { grid-template-columns: 1fr; gap: 6px; }
    .perf-rank-row { grid-template-columns: 24px minmax(0, 1fr); }
    .perf-rank-meta { grid-column: 2; }
    .perf-calendar { border-spacing: 3px; }
    .perf-cal-day { min-height: 64px; padding: 5px; }
}

/* ============ 业绩管理模块 · 第4轮视觉收敛 ============ */
.perf-text-muted {
    font-size: 12px;
    color: #909399;
}

.perf-note-line {
    margin-top: 10px;
    font-size: 12px;
    color: #909399;
}

.perf-history-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    margin-bottom: 16px;
    border-top: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
    font-size: 13px;
    color: #606266;
}

.perf-month-nav a,
.perf-month-history {
    padding: 4px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 2px;
    background: #fff;
    color: #606266;
    font-size: 12px;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}

.perf-month-nav a:hover,
.perf-month-history:hover {
    border-color: #909399;
    color: #303133;
}

.perf-month-history {
    font-family: inherit;
}

.perf-month-modal .perf-month-dialog {
    width: 560px;
    max-width: calc(100vw - 32px);
}

.perf-month-years {
    max-height: 420px;
    overflow-y: auto;
}

.perf-month-year {
    margin-bottom: 14px;
}

.perf-month-year-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #303133;
}

.perf-month-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.perf-month-item {
    display: block;
    padding: 7px 6px;
    border: 1px solid #ebeef5;
    border-radius: 2px;
    text-align: center;
    font-size: 13px;
    color: #606266;
    text-decoration: none;
    background: #fff;
}

.perf-month-item:hover {
    border-color: #909399;
    color: #303133;
}

.perf-month-item.is-selected {
    border-color: #303133;
    color: #303133;
    font-weight: 600;
}

.perf-month-item.is-current {
    color: #303133;
}

.perf-month-item.is-current::after {
    content: "本月";
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #909399;
}

.perf-month-item.is-disabled {
    border-color: #f2f2f2;
    background: #fafafa;
    color: #c0c4cc;
    cursor: default;
}

/* 收敛圆角、阴影与彩色底 */
.perf-card,
.perf-group-block,
.perf-summary-item,
.perf-stat-item,
.perf-kpi,
.perf-issue-chip,
.perf-check-list {
    border-radius: 2px;
    box-shadow: none;
}

.perf-card,
.perf-group-block {
    border-color: #e4e7ed;
}

.perf-kpi {
    background: #fafafa;
}

.perf-stat-item,
.perf-stat-item.is-ok,
.perf-stat-item.is-bad {
    background: #fff;
    border-color: #e4e7ed;
}

.perf-stat-item.is-ok,
.perf-stat-item.is-bad {
    border-left: 2px solid #c0c4cc;
}

.perf-stat-item.is-ok { border-left-color: #67c23a; }
.perf-stat-item.is-bad { border-left-color: #f56c6c; }

.perf-badge {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: none !important;
    font-size: 12px;
    font-weight: 400;
    line-height: inherit;
    color: #606266;
}

.perf-badge.is-ok { color: #529b2e; }
.perf-badge.is-bad { color: #c45656; }
.perf-badge.is-warn { color: #b88230; }
.perf-badge.is-muted { color: #909399; }
.perf-badge.is-info { color: #606266; }

.perf-alert {
    display: block;
    padding: 8px 12px;
    border: none;
    border-left: 3px solid #dcdfe6;
    border-radius: 0;
    background: #fafafa;
    color: #606266;
    font-size: 13px;
    line-height: 1.7;
}

.perf-alert.is-warn { border-left-color: #e6a23c; background: #fdfaf4; color: #7d5a1e; }
.perf-alert.is-bad { border-left-color: #f56c6c; background: #fdf7f7; color: #9c4444; }
.perf-alert.is-info { border-left-color: #c0c4cc; background: #fafafa; color: #606266; }

.perf-bar,
.perf-bar span {
    border-radius: 0;
}

.perf-rank-no {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #909399;
    font-size: 12px;
    font-weight: 400;
    line-height: inherit;
}

.perf-rank-row:first-child .perf-rank-no {
    background: none;
    color: #909399;
    font-weight: 600;
}

.perf-issue-chip,
.perf-issue-chip.is-missing {
    padding: 1px 6px;
    border-radius: 2px;
    background: #fff;
    border-color: #e4e7ed;
    color: #606266;
}

.perf-month-dialog {
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.perf-month-dialog .admin-form-modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #ebeef5;
}

.perf-month-dialog .admin-form-modal-body {
    padding: 16px;
}

.perf-month-dialog .admin-form-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #ebeef5;
}

/* ============ 移动端适配：登录页 ============ */
@media (max-width: 640px) {
    .vlogin {
        padding: 0 14px;
        min-height: 100dvh;
    }

    .vlogin-header {
        height: 56px;
        padding-top: 6px;
    }

    .vlogin-brand-name {
        font-size: 15px;
    }

    .vlogin-body {
        gap: 12px;
        padding: 8px 0 16px;
    }

    .vlogin-left {
        padding: 0 4px;
    }

    .vlogin-hero {
        width: min(78%, 220px);
        margin: 0 auto 10px;
    }

    .vlogin-slogan {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .vlogin-sub {
        font-size: 13px;
    }

    .vlogin-right {
        max-width: 400px;
    }

    .vlogin-card {
        padding: 22px 18px 20px;
        border-radius: 8px;
    }

    .vlogin-tabs {
        margin-bottom: 20px;
    }

    .vlogin-field {
        height: 48px;
        margin-bottom: 14px;
    }

    .vlogin-field input {
        font-size: 16px;
    }

    .vlogin-submit {
        height: 48px;
        font-size: 16px;
        border-radius: 24px;
    }

    .vlogin-error {
        font-size: 14px;
    }
}

/* ============ 业绩模块移动端适配 ============ */
.perf-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .perf-monthbar {
        gap: 8px;
    }

    .perf-month-label {
        font-size: 16px;
    }

    .perf-month-nav a,
    .perf-month-history {
        padding: 6px 10px;
        font-size: 13px;
        line-height: 22px;
    }

    .perf-card {
        padding: 14px;
    }

    .perf-card-title {
        font-size: 15px;
    }

    .perf-grid {
        gap: 12px;
    }

    .perf-summary,
    .perf-stat-grid,
    .perf-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .perf-form-grid {
        grid-template-columns: 1fr;
    }

    .perf-summary-item {
        padding: 10px 12px;
    }

    .perf-summary-item strong {
        font-size: 17px;
    }

    .perf-stat-value {
        font-size: 17px;
    }

    .perf-kpi strong {
        font-size: 16px;
    }

    .perf-ring {
        width: 176px;
    }

    .perf-ring-center {
        width: 108px;
    }

    .perf-ring-center strong {
        font-size: 23px;
    }

    .perf-form-actions {
        margin-top: 14px;
    }

    .perf-form-actions .btn {
        flex: 1 1 45%;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .perf-monthbar .btn,
    .perf-toolbar .btn {
        min-height: 38px;
    }

    .perf-alert {
        padding: 10px 12px;
        font-size: 14px;
    }

    .perf-alert .btn {
        margin-top: 8px;
        margin-left: 0 !important;
    }

    .perf-member-row {
        gap: 4px;
        padding: 10px 0;
    }

    .perf-rank-row {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 8px;
    }

    .perf-calendar {
        border-spacing: 2px;
    }

    .perf-cal-day {
        min-height: 54px;
        padding: 4px;
    }

    .perf-cal-amount {
        font-size: 12px;
    }

    .perf-cal-date {
        font-size: 11px;
    }

    .perf-cal-mark {
        right: 4px;
        bottom: 4px;
    }

    .perf-group-block {
        padding: 12px;
    }

    .perf-group-name {
        font-size: 14px;
    }

    .perf-group-meta {
        gap: 8px 14px;
        font-size: 12px;
    }

    .perf-target-table th {
        padding: 7px 8px;
        font-size: 12px;
    }

    .perf-target-table td {
        padding: 7px 8px;
        font-size: 13px;
    }

    .perf-target-input {
        width: 130px;
    }

    .perf-month-dialog {
        width: calc(100vw - 28px);
    }

    .perf-month-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .perf-month-item {
        padding: 8px 4px;
        font-size: 14px;
    }

    #perfGroupModal.is-open,
    #perfStandardModal.is-open,
    .perf-month-modal.is-open {
        padding: 12px;
    }

    #perfGroupModal .admin-form-modal-dialog,
    #perfStandardModal .admin-form-modal-dialog {
        width: 100%;
    }

    .perf-empty {
        padding: 24px 8px;
        font-size: 14px;
    }
}

/* ============ 移动端抽屉侧栏（默认收起） ============ */
.admin-sidebar-toggle {
    display: none;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    .admin-layout {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 264px;
        max-width: 82vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1200;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(15, 23, 42, 0.45);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .admin-main {
        width: 100%;
        min-width: 0;
    }

    .admin-topbar {
        padding: 0 10px;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        margin-right: 10px;
        padding: 0 9px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .admin-sidebar-toggle span {
        display: block;
        height: 2px;
        background: #374151;
        border-radius: 1px;
    }
}

/* ============ 业绩模块移动端字号再放大 ============ */
@media (max-width: 640px) {
    .perf-month-label {
        font-size: 17px;
    }

    .perf-card-title {
        font-size: 16px;
    }

    .perf-card-sub {
        font-size: 13px;
    }

    .perf-stat-value {
        font-size: 19px;
    }

    .perf-kpi strong {
        font-size: 17px;
    }

    .perf-summary-item strong {
        font-size: 19px;
    }

    .perf-stat-label,
    .perf-stat-req,
    .perf-kpi label,
    .perf-summary-item label,
    .perf-member-sub {
        font-size: 13px;
    }

    .perf-member-value {
        font-size: 13px;
    }

    .perf-member-name,
    .perf-rank-name {
        font-size: 15px;
    }

    .perf-month-nav a,
    .perf-month-history {
        min-height: 30px;
        font-size: 14px;
    }

    .perf-form-actions .btn {
        min-height: 44px;
        font-size: 15px;
    }

    .perf-monthbar .btn,
    .perf-toolbar .btn {
        min-height: 42px;
        font-size: 15px;
    }

    .perf-cal-amount {
        font-size: 13px;
    }

    .perf-cal-empty {
        font-size: 12px;
    }

    .perf-legend {
        font-size: 13px;
    }

    .perf-target-table td {
        font-size: 14px;
    }

    .perf-target-table th {
        font-size: 13px;
    }

    .perf-group-name {
        font-size: 15px;
    }

    .perf-group-meta {
        font-size: 13px;
    }
}

/* ============ 移动端最小字号 14px ============ */
@media (max-width: 640px) {
    .perf-card-sub,
    .perf-stat-label,
    .perf-stat-req,
    .perf-kpi label,
    .perf-summary-item label,
    .perf-member-sub,
    .perf-member-value,
    .perf-cal th,
    .perf-cal-date,
    .perf-cal-amount,
    .perf-cal-empty,
    .perf-legend,
    .perf-field label,
    .perf-target-table th,
    .perf-group-meta,
    .perf-text-muted,
    .perf-note-line,
    .perf-badge,
    .perf-rank-no,
    .perf-month-year-label,
    .perf-month-item.is-current::after,
    .perf-check-row,
    .perf-check-row span.group {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .sidebar-submenu a {
        font-size: 14px;
    }

    .sidebar-menu a,
    .sidebar-group-toggle {
        font-size: 15px;
    }
}

/* 绩效规则配置与考核新增样式 */
.perf-form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #303133;
    margin: 14px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #edf0f5;
}
.perf-form-section-title:first-child {
    margin-top: 0;
}
.perf-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-form-modal-dialog-wide {
    width: 640px;
    max-width: 94vw;
}
.perf-rules-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #606266;
    line-height: 1.7;
}
.perf-score-box {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px dashed #c8d5ea;
    border-radius: 8px;
    background: #f8fafd;
    font-size: 14px;
    color: #303133;
}
.perf-muted {
    font-size: 13px;
    color: #909399;
    margin-top: 8px;
    line-height: 1.7;
}
.perf-cell-ok {
    color: #18a058;
}
.perf-cell-bad {
    color: #d03050;
    font-weight: 600;
}
@media (max-width: 768px) {
    .perf-form-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .perf-score-box {
        font-size: 14px;
    }
    .perf-rules-summary {
        font-size: 14px;
    }
}
/* ===== 业绩大盘 ===== */
.perf-ov-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.perf-ov-cell {
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fbfcfe;
    min-width: 0;
}
.perf-ov-label {
    font-size: 13px;
    color: #6b7688;
    margin-bottom: 6px;
}
.perf-ov-big {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}
.perf-ov-lines {
    font-size: 14px;
    line-height: 1.9;
}
.perf-ov-group-row {
    padding: 10px 2px;
    border-bottom: 1px dashed #e6eaf2;
}
.perf-ov-group-row:last-child {
    border-bottom: none;
}
.perf-ov-group-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 15px;
    margin-bottom: 6px;
}
.perf-ov-group-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    margin-top: 6px;
    align-items: center;
}
.perf-ov-progress {
    margin-top: 2px;
}
.perf-bar-track {
    height: 8px;
    background: #edf1f7;
    border-radius: 4px;
    overflow: hidden;
}
.perf-bar-fill {
    height: 100%;
    border-radius: 4px;
    min-width: 0;
}
.perf-warn-fill-green { background: #2f9e6a; }
.perf-warn-fill-yellow { background: #e6a23c; }
.perf-warn-fill-red { background: #dc5a5a; }
.perf-warn-fill-gray { background: #a8b4c4; }
.perf-warn-green { color: #2f9e6a; font-weight: 700; }
.perf-warn-yellow { color: #d4880f; font-weight: 700; }
.perf-warn-red { color: #dc5a5a; font-weight: 700; }
.perf-warn-gray { color: #6b7688; font-weight: 700; }
.perf-warn-text-green { color: #2f9e6a; }
.perf-warn-text-yellow { color: #d4880f; }
.perf-warn-text-red { color: #dc5a5a; }
.perf-warn-text-gray { color: #6b7688; }
.perf-ov-tag {
    font-size: 12px;
    padding: 1px 8px;
    border: 1px solid currentColor;
    border-radius: 10px;
}
.perf-chart-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
}
.perf-chart-grid {
    display: grid;
    /* 自适应列数：四张图并排一排，数量不足时自动均分，不会留空列 */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .perf-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .perf-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.perf-chart-box {
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    padding: 12px 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
/* 卡内月历/占位文案跟随卡片宽度自适应 */
.perf-chart-box .perf-calendar,
.perf-chart-box .perf-muted {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.perf-chart-box .perf-calendar {
    width: 100%;
}
.perf-chart-box canvas {
    display: block;
    width: 100% !important;
    height: 200px !important;
}
.perf-chart-title {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 8px;
}
.perf-chart-legend {
    font-size: 11px;
    line-height: 1.4;
    color: #6b7688;
    margin: -4px 0 8px;
}
.perf-calendar {
    font-size: 12px;
    min-width: 0;
}
.perf-cal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 2px;
}
.perf-cal-head .perf-cal-day {
    background: transparent;
    color: #6b7688;
    font-weight: 700;
    text-align: center;
}
.perf-cal-day {
    text-align: center;
    padding: 5px 0;
    border-radius: 4px;
    background: #f2f5f9;
}
.perf-cal-day.is-empty { background: transparent; }
.perf-cal-day.is-qualified { background: #d8f0e2; color: #1c7a4a; }
.perf-cal-day.is-failed { background: #fbdcdc; color: #b03a3a; }
.perf-cal-day.is-missed { background: #eef1f5; color: #8a94a6; }
.perf-cal-day.is-offday { background: #e8ecf3; color: #6b7688; }
.perf-cal-day.is-leave { background: #fdf1d8; color: #b07d1a; }
.perf-cal-day.is-future { background: transparent; color: #c3cad6; }
/* 大盘四列并排时图表卡内的月历格：取消其它页面的日历卡高度/描边，字号收紧才放得下 */
.perf-chart-box .perf-cal-day {
    min-height: 0;
    border: 0;
    font-size: 10px;
    padding: 3px 0;
}
.perf-chart-box .perf-muted {
    font-size: 11px;
    line-height: 1.45;
}
.perf-cell-reasons {
    font-size: 12px;
    color: #6b7688;
}
.perf-card-body {
    padding: 12px 16px;
}
@media (max-width: 768px) {
    .perf-ov-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .perf-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .perf-ov-big {
        font-size: 20px;
    }
    .perf-ov-label,
    .perf-ov-lines,
    .perf-calendar {
        font-size: 14px;
    }
}

/* 报价协同 */
.quote-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 0 0 6px;
    flex-wrap: wrap;
}
.quote-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2a37;
}
.quote-sub {
    margin-top: 4px;
    font-size: 14px;
    color: #8a93a0;
}
.quote-head-meta {
    font-size: 14px;
    color: #6b7280;
    text-align: right;
}
.quote-head-meta strong {
    color: #26313f;
    font-weight: 600;
}
.quote-meta-label {
    margin-right: 6px;
    color: #98a1ad;
}
.quote-stale {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 6px 10px;
    margin-bottom: 8px;
    background: #fff7e6;
    border: 1px solid #ffd8a8;
    border-radius: 6px;
    font-size: 13px;
    color: #8a5300;
    flex-wrap: wrap;
}
.quote-unread {
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #f1f6ff;
    border: 1px solid #d0e2ff;
    border-radius: 6px;
    font-size: 14px;
}
.quote-unread-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.quote-unread-form {
    margin: 0;
}
.quote-unread-list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: #3c4654;
}
.quote-unread-list li {
    padding: 3px 0;
}
.quote-search {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.quote-search-input {
    flex: 1 1 240px;
    min-width: 180px;
    padding: 5px 9px;
    font-size: 13px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    box-sizing: border-box;
}
.quote-search-select {
    padding: 5px 7px;
    font-size: 13px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #fff;
}
.quote-search-count {
    font-size: 12.5px;
    color: #8a93a0;
}
.quote-block {
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.quote-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-bottom: 1px solid #eceff2;
    flex-wrap: wrap;
}
.quote-block-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2a37;
}
.quote-block-hint {
    font-size: 12.5px;
    color: #98a1ad;
}
.quote-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 72vh;
}
.quote-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}
.quote-table th,
.quote-table td {
    border-bottom: 1px solid #eceff2;
    padding: 4px 8px;
    text-align: left;
    vertical-align: middle;
}
.quote-table thead th {
    background: #f7f9fb;
    font-weight: 600;
    color: #5b6573;
    font-size: 12.5px;
    white-space: nowrap;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: inset 0 -1px 0 #eceff2;
}
.quote-col-name {
    width: 230px;
}
.quote-col-price {
    width: 84px;
}
.quote-col-time {
    width: 66px;
    white-space: nowrap;
}
.quote-col-mod {
    white-space: nowrap;
}
/* 吸收剩余宽度，让数据列保持紧凑、空白只留在最右 */
.quote-col-fill {
    width: auto;
}
.quote-table thead th.quote-col-fill {
    background: #f7f9fb;
}
.quote-table-qual .quote-col-name {
    width: 230px;
}
.quote-table thead th.quote-col-price {
    text-align: center;
}
.quote-table-mod thead th:nth-child(1),
.quote-table-mod thead th:nth-child(2),
.quote-table-mod thead th:nth-child(3) {
    width: 200px;
}
.quote-table-mod thead th:nth-child(4),
.quote-table-mod thead th:nth-child(5),
.quote-table-mod thead th:nth-child(6) {
    width: 84px;
    text-align: center;
}
.quote-name {
    color: #26313f;
    word-break: break-word;
}
.quote-name-main {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.3;
}
.quote-row-time {
    margin-top: 1px;
    font-size: 12px;
    color: #a3abb6;
}
.quote-lv {
    margin-left: 6px;
    font-style: normal;
    font-size: 14px;
    color: #a3abb6;
}
.quote-cell {
    padding: 3px 4px;
}
.quote-input {
    display: block;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    min-width: 56px;
    padding: 3px 6px;
    font-size: 13px;
    border: 1px solid #dde2e8;
    border-radius: 5px;
    text-align: right;
    box-sizing: border-box;
}
.quote-cell-text .quote-input,
.quote-input-text {
    min-width: 100px;
    max-width: 200px;
    text-align: left;
}
.quote-input:focus {
    outline: none;
    border-color: #3b7ddd;
    box-shadow: 0 0 0 2px rgba(59, 125, 221, 0.12);
}
.quote-time {
    white-space: nowrap;
    color: #8a93a0;
}
.quote-stale-tag {
    color: #c0392b;
    font-weight: 600;
}
.quote-never {
    color: #b0b8c2;
}
.quote-block-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    flex-wrap: wrap;
}
.quote-empty {
    padding: 12px;
    color: #98a1ad;
    font-size: 13px;
}
.quote-log-list {
    margin: 0;
    padding: 2px 12px 2px;
    list-style: none;
    font-size: 12.5px;
    min-height: 44px;
    max-height: 62px;
    overflow-y: auto;
    overflow-x: hidden;
}
.quote-log-list li {
    padding: 1px 0;
    border-bottom: 1px dashed #f0f2f5;
    color: #3c4654;
    line-height: 1.4;
    word-break: break-word;
}
.quote-log-time {
    color: #98a1ad;
    margin-right: 8px;
}
.quote-log-operator {
    color: #2f3947;
    margin-right: 6px;
}
.quote-log-kind {
    color: #8a93a0;
    margin-right: 6px;
}
.quote-log-item {
    color: #26313f;
    font-weight: 500;
}
.quote-log-change {
    margin-left: 4px;
    color: #3b7ddd;
}
.menu-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e74c3c;
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}
.menu-dot-stale {
    margin-left: auto;
    background: #f0a020;
}
.menu-marks {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}
.menu-marks .menu-badge,
.menu-marks .menu-dot-stale {
    margin-left: 0;
}
.menu-dot-fresh {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22a06b;
    box-shadow: 0 0 0 1px rgba(34, 160, 107, 0.35);
    animation: menuDotPulse 2.2s ease-in-out infinite;
}
.menu-dot-stale {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f0a020;
    box-shadow: 0 0 0 1px rgba(240, 160, 32, 0.35);
    animation: menuDotPulse 2.2s ease-in-out infinite;
    animation-delay: 0.55s;
}
@keyframes menuDotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.42;
        transform: scale(0.82);
    }
}
body.sidebar-collapsed .menu-badge,
body.sidebar-collapsed .menu-dot-stale,
body.sidebar-collapsed .menu-marks {
    display: none;
}

/* 公共线索列表：紧凑排版，压缩列间距让整行尽量少占宽 */
.table--compact {
    font-size: 13px;
}
.table--compact th,
.table--compact td {
    padding: 6px 5px;
    font-size: 13px;
    vertical-align: middle;
}
.table--compact th {
    font-size: 12.5px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.table--compact td:nth-child(2),
.table--compact th:nth-child(2) {
    max-width: 186px;
}
.table--compact td:nth-child(4),
.table--compact th:nth-child(4) {
    max-width: 104px;
}
.table--compact td:nth-child(5),
.table--compact th:nth-child(5) {
    max-width: 158px;
}
.table--compact td:nth-child(7),
.table--compact th:nth-child(7) {
    max-width: 110px;
}
.table--compact .table-actions {
    gap: 3px;
    flex-wrap: nowrap;
}
.table--compact .action-link {
    padding: 3px 5px;
    font-size: 12px;
}

/* 客户总览 · 人才客户表格：7 列收进内容区，窄屏不横滚 */
.all-clients-person-table th,
.all-clients-person-table td {
    padding: 6px 3px;
}
.table--compact .cell-flag {    display: inline-block;
    margin-left: 4px;
    padding: 0 3px;
    border: 1px solid #f2c9c9;
    border-radius: 3px;
    color: #e05a5a;
    font-size: 11px;
    line-height: 1.5;
}
.quote-form {
    margin: 0;
}
.quote-hidden-form {
    display: none;
}
.quote-log-block .quote-block-head {
    align-items: center;
}
.quote-unread-chip {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #c0392b;
}
.quote-log-list li.is-unread {
    background: #f6f9ff;
    box-shadow: inset 3px 0 0 #3b7ddd;
    padding-left: 8px;
    margin-left: -8px;
    border-radius: 4px;
}
.quote-add {
    margin-left: auto;
}
.quote-add summary {
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    color: #3b7ddd;
    padding: 2px 0;
    white-space: nowrap;
}
.quote-add summary::-webkit-details-marker {
    display: none;
}
.quote-add-form {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
}
.quote-add-form input[type="text"] {
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #d8dde3;
    border-radius: 5px;
    min-width: 150px;
    box-sizing: border-box;
}
.quote-add-form--mod input[type="text"] {
    min-width: 0;
    width: 138px;
}
.quote-add-form--mod input.quote-add-money {
    width: 88px;
    text-align: right;
}
.quote-col-op {
    width: 54px;
}
.quote-op {
    width: 54px;
    padding: 0 4px;
    text-align: center;
}
.quote-stop-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 22px;
    border: 1px solid transparent;
    background: transparent;
    color: #c2c9d2;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}
.quote-stop-btn:hover {
    color: #e74c3c;
    border-color: #f5c2c0;
    background: #fff5f5;
}
.quote-th-edit {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
}
.quote-th-edit:hover {
    color: #2563eb;
    border-color: #c9dcfb;
    background: #f5f9ff;
}
.quote-op-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.quote-edit-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 1;
    border: 1px solid transparent;
    background: transparent;
    color: #b7bfca;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}
.quote-edit-btn:hover {
    color: #2563eb;
    border-color: #c9dcfb;
    background: #f5f9ff;
}
.quote-inactive-ops {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.quote-inline-delete {
    display: inline;
    margin: 0;
}
.quote-del-btn {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid #f0c9c6;
    border-radius: 4px;
    background: #fff;
    color: #d9503f;
    cursor: pointer;
}
.quote-del-btn:hover {
    background: #fff5f4;
    border-color: #e9a9a3;
}
.quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
}
.quote-modal.is-open {
    display: block;
}
.quote-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}
.quote-modal-dialog {
    position: relative;
    width: 340px;
    max-width: calc(100vw - 32px);
    margin: 12vh auto 0;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.quote-modal-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #26313f;
}
.quote-modal-field {
    display: block;
    margin-bottom: 10px;
}
.quote-modal-field > span {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    color: #6b7280;
}
.quote-modal-field input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    font-size: 13.5px;
    box-sizing: border-box;
}
.quote-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}
.quote-cell-label {
    display: none;
}
.quote-fresh-note {
    color: #1a8f5c;
    font-weight: 600;
}
.quote-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 6px;
    flex: 0 0 auto;
}
.quote-dot.is-bad {
    background: #e74c3c;
}
.quote-dot.is-good {
    background: #22a06b;
}
.quote-row-time.is-good {
    color: #1a8f5c;
}
.quote-table tr.is-ok td.quote-name {
    position: relative;
}
.quote-table tr.is-stale td.quote-name {
    position: relative;
}
.quote-table tr.is-stale td.quote-name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 2px;
    background: #e74c3c;
}
.quote-inactive {
    padding: 0 14px 10px;
}
.quote-inactive summary {
    cursor: pointer;
    font-size: 14px;
    color: #8a93a0;
    padding: 8px 0;
}
.quote-inactive ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.quote-inactive li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f2f5;
    font-size: 14px;
    color: #5b6573;
}

/* 窄窗：价格列收窄，把宽度让给名称列 */
@media (max-width: 1100px) {
    .quote-col-name {
        width: 26%;
    }
    .quote-col-price {
        width: 66px;
    }
    .quote-table-qual .quote-col-name {
        width: 34%;
    }
    .quote-table-qual .quote-col-price {
        width: 66px;
    }
    .quote-table-mod thead th:nth-child(1),
    .quote-table-mod thead th:nth-child(2),
    .quote-table-mod thead th:nth-child(3) {
        width: 26%;
    }
    .quote-table-mod thead th:nth-child(4),
    .quote-table-mod thead th:nth-child(5),
    .quote-table-mod thead th:nth-child(6) {
        width: 66px;
    }
    .quote-input {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .quote-head {
        padding-bottom: 8px;
    }
    .quote-head-meta {
        text-align: left;
    }
    .quote-block-head {
        padding: 10px 12px;
        gap: 8px;
    }
    .quote-search {
        gap: 8px;
    }
    .quote-search-input {
        flex: 1 1 100%;
    }
    .quote-table-wrap {
        overflow-x: visible;
        overflow-y: visible;
        max-height: none;
    }
    .quote-table {
        display: block;
    }
    .quote-table thead {
        display: none;
    }
    .quote-table tbody {
        display: block;
    }
    .quote-table tr {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        padding: 12px;
        border-bottom: 1px solid #eceff2;
    }
    .quote-table td {
        display: block;
        border: 0;
        padding: 0;
    }
    .quote-table td.quote-col-fill {
        display: none;
    }
    .quote-table td.quote-name {
        grid-column: 1 / -1;
        padding-right: 30px;
    }
    .quote-table td.quote-op {
        position: absolute;
        right: 8px;
        top: 8px;
        width: auto;
        padding: 0;
    }
    .quote-table td.quote-name::before {
        top: 0;
        bottom: 0;
        left: -12px;
    }
    .quote-cell-label {
        display: block;
        font-size: 14px;
        color: #98a1ad;
        margin-bottom: 3px;
    }
    .quote-input {
        min-width: 0;
        padding: 8px 8px;
        text-align: left;
    }
    .quote-table .quote-empty {
        grid-column: 1 / -1;
    }
}


/* 号码校正列表：列内不折字，窄窗横向滚动 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.phone-corr-table {
    min-width: 880px;
}
.phone-corr-table th,
.phone-corr-table td {
    white-space: nowrap;
    vertical-align: middle;
}
.phone-corr-table td .phone-corr-line + .phone-corr-line {
    margin-top: 2px;
    color: #8a93a0;
}

/* 报价协同：两行并排（证书+资质 / 学历+考培），四张表等高可滚动、表头固定 */
.quote-block-row-main,
.quote-block-row {
    display: grid;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 10px;
}
.quote-block-row-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.quote-block-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.quote-block-row-main > .quote-block,
.quote-block-row > .quote-block {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 62vh;
}
.quote-block-row-main > .quote-block > .quote-form,
.quote-block-row > .quote-block > .quote-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.quote-block-row-main .quote-table-wrap,
.quote-block-row .quote-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}
/* 列宽：证书 */
.quote-block-row-main .quote-table-cert .quote-col-name {
    width: 26%;
}
.quote-block-row-main .quote-table-cert .quote-col-price {
    width: 12%;
}
/* 列宽：资质（与证书各占一半） */
.quote-block-row-main .quote-table-qual .quote-col-name {
    width: 40%;
}
.quote-block-row-main .quote-table-qual .quote-col-price {
    width: 26%;
}
.quote-block-row-main .quote-table-qual .quote-col-op,
.quote-block-row-main .quote-table-qual .quote-op {
    width: 44px;
}
/* 列宽：学历（8 个数据列，百分比撑满卡片，避免固定在左半边） */
.quote-block-row .quote-table-edu thead th:nth-child(1) {
    width: 11%;
}
.quote-block-row .quote-table-edu thead th:nth-child(2) {
    width: 12%;
}
.quote-block-row .quote-table-edu thead th:nth-child(3) {
    width: 22%;
}
.quote-block-row .quote-table-edu thead th:nth-child(4) {
    width: 11%;
}
.quote-block-row .quote-table-edu thead th:nth-child(5),
.quote-block-row .quote-table-edu thead th:nth-child(6),
.quote-block-row .quote-table-edu thead th:nth-child(7),
.quote-block-row .quote-table-edu thead th:nth-child(8) {
    width: 9.75%;
}
.quote-block-row .quote-table-edu thead th:nth-child(9) {
    width: 4%;
}
.quote-block-row .quote-table-edu thead th:nth-child(10) {
    width: 1%;
}
/* 列宽：考培（7 个数据列，百分比撑满卡片，含业务提成/同行提成） */
.quote-block-row .quote-table-train thead th:nth-child(1) {
    width: 13%;
}
.quote-block-row .quote-table-train thead th:nth-child(2) {
    width: 30%;
}
.quote-block-row .quote-table-train thead th:nth-child(3) {
    width: 10%;
}
.quote-block-row .quote-table-train thead th:nth-child(4),
.quote-block-row .quote-table-train thead th:nth-child(5),
.quote-block-row .quote-table-train thead th:nth-child(6),
.quote-block-row .quote-table-train thead th:nth-child(7) {
    width: 9.75%;
}
.quote-block-row .quote-table-train thead th:nth-child(8) {
    width: 7%;
}
.quote-block-row .quote-table-train thead th:nth-child(9) {
    width: 1%;
}
/* 学历/考培表头：所有列统一居中，并给每列一条淡竖线，让表头与下面的单元格对得上 */
.quote-block-row .quote-table-edu thead th,
.quote-block-row .quote-table-train thead th {
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    text-align: center;
    vertical-align: middle;
    padding-left: 3px;
    padding-right: 3px;
    box-shadow: inset -1px 0 0 #e9edf2, inset 0 -1px 0 #eceff2;
}
/* 表头按钮收窄横向内边距，让 4 字标题单行放下 */
.quote-block-row .quote-table-edu thead th .quote-th-edit,
.quote-block-row .quote-table-train thead th .quote-th-edit {
    padding-left: 3px;
    padding-right: 3px;
}
/* 学历/考培表头所有列统一居中，与下方输入框保持同一列中心 */
/* 报考专业 / 专业·工种：固定两行高，内容超出的鼠标悬停看全文 */
.quote-add-form--mod .quote-add-major {
    flex: 2 1 160px;
    width: auto;
    min-width: 160px;
}
.quote-block-row-main .quote-input,
.quote-block-row .quote-input {
    max-width: 100%;
    min-width: 0;
}
.quote-block-row .quote-input-text {
    min-width: 0;
}
.quote-block-row .quote-add-form--mod input[type=text] {
    flex: 1 1 84px;
    width: auto;
    min-width: 84px;
}
.quote-add-form--mod {
    flex-wrap: wrap;
}
/* 表格单元格统一紧凑 */
.quote-block-row-main .quote-table th,
.quote-block-row-main .quote-table td,
.quote-block-row .quote-table th,
.quote-block-row .quote-table td {
    padding: 4px 6px;
}
.quote-row-time {
    margin-top: 0;
    font-size: 11px;
}
@media (max-width: 1500px) {
    .quote-block-row-main,
    .quote-block-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .quote-block-row-main > .quote-block,
    .quote-block-row > .quote-block {
        margin-bottom: 10px;
        max-height: 62vh;
    }
    /* 证书表压到与学历/考培同宽，三张表左右边缘一致 */
    .quote-block-row-main .quote-table-cert .quote-col-name {
        width: 30%;
    }
    .quote-block-row-main .quote-table-cert .quote-col-price {
        width: 12%;
    }
    .quote-block-row-main .quote-table-cert .quote-col-op {
        width: 10%;
    }
    .quote-block-row-main .quote-table-qual .quote-col-name {
        width: 230px;
    }
    .quote-block-row-main .quote-table-qual .quote-col-price {
        width: 84px;
    }
    .quote-block-row-main .quote-table-qual .quote-col-op,
    .quote-block-row-main .quote-table-qual .quote-op {
        width: 54px;
    }
    /* 窄栏下改为按比例分栏：表格始终等于容器宽度，出竖向滚动条时也不会挤出一条横向滚动条 */
    .quote-block-row .quote-table-edu thead th:nth-child(1),
    .quote-block-row .quote-table-edu thead th:nth-child(2),
    .quote-block-row .quote-table-edu thead th:nth-child(4),
    .quote-block-row .quote-table-edu thead th:nth-child(5),
    .quote-block-row .quote-table-edu thead th:nth-child(6),
    .quote-block-row .quote-table-edu thead th:nth-child(7),
    .quote-block-row .quote-table-edu thead th:nth-child(8) {
        width: 10.8%;
    }
    .quote-block-row .quote-table-edu thead th:nth-child(3) {
        width: 14.4%;
    }
    .quote-block-row .quote-table-edu thead th:nth-child(9) {
        width: 10%;
    }
    .quote-block-row .quote-table-train thead th:nth-child(1) {
        width: 15%;
    }
    .quote-block-row .quote-table-train thead th:nth-child(2) {
        width: 20%;
    }
    .quote-block-row .quote-table-train thead th:nth-child(3),
    .quote-block-row .quote-table-train thead th:nth-child(4),
    .quote-block-row .quote-table-train thead th:nth-child(5),
    .quote-block-row .quote-table-train thead th:nth-child(6),
    .quote-block-row .quote-table-train thead th:nth-child(7) {
        width: 11%;
    }
    .quote-block-row .quote-table-train thead th:nth-child(8) {
        width: 10%;
    }
    /* 输入框跟随列宽收缩，不再用固定最小宽度把表格推宽 */
    .quote-block-row-main .quote-input,
    .quote-block-row .quote-input {
        max-width: 100%;
        min-width: 0;
    }
    .quote-block-row .quote-table th,
    .quote-block-row .quote-table td {
        padding-left: 3px;
        padding-right: 3px;
    }
    /* 学历/考培表头：统一居中，与下方居中排布的输入框同轴 */
    .quote-block-row .quote-table-edu thead th,
    .quote-block-row .quote-table-train thead th {
        white-space: normal;
        word-break: break-word;
        line-height: 1.25;
        text-align: center;
        vertical-align: middle;
        padding-left: 1px;
        padding-right: 1px;
    }
    .quote-block-row .quote-table-edu thead th .quote-th-edit,
    .quote-block-row .quote-table-train thead th .quote-th-edit {
        padding-left: 2px;
        padding-right: 2px;
    }
}

/* 日报：在职时长 + 今日日报 + 请假 + 外勤 四卡同排 */
.perf-hire-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}
@media (max-width: 1500px) {
    .perf-hire-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .perf-hire-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
.perf-today-report-card .perf-today-status {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0 8px;
}
.perf-today-status.is-ok { color: #15803d; }
.perf-today-status.is-bad { color: #dc2626; }
.perf-today-status.is-muted { color: #64748b; }
.perf-card-sub {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.perf-hire-row > .perf-card {
    margin: 0;
}
.perf-attendance-body {
    display: flex;
    flex-direction: column;
}
.perf-attendance-card .perf-attendance-block {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.perf-attendance-card .perf-attendance-block .perf-card-body {
    padding: 0;
}
.perf-attendance-card .perf-attendance-subhead {
    margin-bottom: 10px;
}
.perf-attendance-divider {
    border-top: 1px dashed #e2e8f0;
    margin: 14px 0 16px;
}
@media (max-width: 760px) {
    .perf-hire-row {
        grid-template-columns: 1fr;
    }
}
.perf-hire-card .perf-card-head {
    margin-bottom: 8px;
}
.perf-hire-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.perf-hire-label {
    margin: 0;
    font-size: 13px;
    color: #5b6674;
    white-space: nowrap;
}
.perf-hire-form .drp {
    width: 196px;
    flex: 0 0 auto;
}
.perf-hire-days {
    font-size: 13px;
    color: #6b7686;
}
.perf-hire-days strong {
    color: #1f2a37;
}
/* 在职天数放大展示，一眼可见 */
.perf-hire-big {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 10px;
}
.perf-hire-big strong {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}
.perf-hire-big span {
    font-size: 13px;
    color: #5b6674;
}

/* 日报页：填报/本月完成度的卡片间距与上方「在职时长/请假登记」保持一致 */
.perf-grid--compact {
    gap: 12px;
    margin-top: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.perf-grid--compact > .perf-card + .perf-card {
    margin-top: 0;
}
.perf-grid--compact + .perf-card {
    margin-top: 12px;
}

/* 单元格内容放不下时，悬停弹出全文 */
.quote-hover-tip {
    position: fixed;
    z-index: 6000;
    display: none;
    max-width: 340px;
    max-height: 280px;
    overflow: auto;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    font-size: 13px;
    line-height: 1.5;
    color: #1f2937;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    pointer-events: none;
}

/* 报价预览页：紧凑网格、只读 */
.quote-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quote-preview-btn {
    flex: 0 0 auto;
}
.qp-wrap {
    padding: 0 0 18px;
}
.qp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.qp-back {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #fff;
    color: #25303d;
    font-size: 12.5px;
    text-decoration: none;
}
.qp-back:hover {
    border-color: #9db2cc;
    color: #1a56a8;
}
.qp-head h1 {
    margin: 0;
    font-size: 19px;
}
.qp-sub {
    font-size: 12px;
    color: #7b8794;
}
.qp-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.qp-stamp {
    font-size: 12px;
    color: #7b8794;
}
.qp-sec {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    overflow-x: auto;
}
.qp-sec-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.qp-sec-head h2 {
    margin: 0;
    font-size: 15px;
}
.qp-sec-head span {
    font-size: 12px;
    color: #7b8794;
}
.qp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12.5px;
}
.qp-table th,
.qp-table td {
    padding: 4px 5px;
    border-bottom: 1px solid #e9edf2;
    text-align: left;
    vertical-align: middle;
}
.qp-table thead th {
    background: #f4f6f9;
    border-bottom: 1px solid #dbe1e9;
    color: #37424f;
    font-weight: 600;
}
.qp-table thead th.qp-th-price {
    text-align: right;
    font-size: 11.5px;
}
.qp-table td.qp-name {
    color: #1f2937;
    line-height: 1.45;
    word-break: break-word;
}
.qp-table td.qp-num {
    text-align: right;
    white-space: nowrap;
    color: #111827;
}
.qp-table td.qp-num b {
    font-weight: 600;
}
.qp-table td.is-empty {
    color: #aeb7c2;
}
.qp-table tr.qp-group-row td {
    background: #fafbfc;
    border-bottom: 1px solid #e3e8ee;
    color: #5b6675;
    font-weight: 600;
    padding-top: 6px;
}
.qp-table--cert .qp-col-name {
    width: 34%;
}
.qp-table--qual .qp-col-name {
    width: 40%;
}
.qp-table td.qp-text {
    color: #1f2937;
    word-break: break-word;
}
.qp-table--edu {
    min-width: 620px;
}
.qp-table--train {
    min-width: 640px;
}
.qp-table--edu .qp-col-school {
    width: 13%;
}
.qp-table--edu .qp-col-level {
    width: 10%;
}
.qp-table--edu .qp-col-major {
    width: 25%;
}
.qp-table--edu .qp-col-time {
    width: 12%;
}
.qp-table--edu .qp-col-price {
    width: 10%;
}
.qp-table--train .qp-col-school {
    width: 18%;
}
.qp-table--train .qp-col-major {
    width: 31%;
}
.qp-table--train .qp-col-level {
    width: 11%;
}
.qp-table--train .qp-col-price {
    width: 10%;
}
.qp-empty {
    padding: 14px;
    color: #8d97a4;
    font-size: 13px;
    text-align: center;
}

@page {
    size: A4;
    margin: 10mm;
}
/* 导出 PDF：打印时只隐去导航，页面排版保持屏幕上的样子 */
@media print {
    .sidebar,
    .sidebar-overlay,
    .admin-topbar,
    .qp-back,
    .qp-export {
        display: none !important;
    }
    .admin-main {
        margin: 0 !important;
    }
    .main-content {
        padding: 0 !important;
        max-width: none !important;
        background: #ffffff !important;
    }
    body,
    .admin-body {
        background: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .qp-wrap {
        padding: 0 !important;
    }
    .qp-head {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }
    .qp-head h1 {
        font-size: 15pt !important;
    }
    .qp-sub {
        font-size: 9pt !important;
    }
    .qp-stamp {
        font-size: 9pt !important;
    }
    .qp-sec {
        margin-bottom: 6px !important;
        border-color: #d5dbe2 !important;
        box-shadow: none !important;
    }
    .qp-table {
        font-size: 10pt !important;
    }
    .qp-table th,
    .qp-table td {
        padding: 3px 6px !important;
    }
    .qp-table tr {
        break-inside: avoid;
    }
    body.qp-print-body {
    margin: 0;
    padding: 0;
    background: #fff;
}
.qp-table tr.qp-group-row {
        break-after: avoid;
    }
}

/* 我的头像：预览 + 上传（每个登录用户都能改自己的头像） */
.admin-profile-avatar-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-profile-avatar-preview {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dde3ea;
    background: #fff;
    flex: 0 0 auto;
}
.admin-profile-avatar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-profile-avatar-upload {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.admin-profile-avatar-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.admin-profile-avatar-hint {
    font-size: 12px;
    color: #8a94a2;
}
.admin-profile-avatar-hint.is-error {
    color: #d92d20;
}

/* 人才客户：合作到期时间行内编辑 */
.person-expiry-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.person-expiry-cell .person-expiry-input {
    width: 140px;
    min-width: 0;
}
.person-expiry-cell .btn {
    white-space: nowrap;
}

/* 人才客户：证书信息合并列 + 状态行内下拉 */
.person-cert-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    white-space: nowrap;
}
.person-cert-cell .person-cert-sub {
    color: #667085;
    font-size: 12px;
}
.person-status-select {
    width: 96px;
    min-width: 0;
    padding: 4px 8px;
    font-size: 13px;
}
.person-frozen-flag {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    padding: 1px 6px;
}

/* 人才客户表格：证书信息两行展示，字号与全站表格一致 */
.person-cert-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.person-cert-cell .person-cert-sub {
    color: #667085;
}
.person-frozen-flag {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    padding: 1px 6px;
}
.admin-list-scroll .admin-person-table {
    width: 100% !important;
    table-layout: fixed !important;
    min-width: 0 !important;
}
.admin-list-scroll .admin-person-table thead th {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
}
.admin-person-table th:nth-child(1) { width: 12% !important; }
.admin-person-table th:nth-child(2) { width: 12% !important; }
.admin-person-table th:nth-child(3) { width: 18% !important; }
.admin-person-table th:nth-child(4) { width: 16% !important; }
.admin-person-table th:nth-child(5) { width: 17% !important; }
.admin-person-table th:nth-child(6) { width: 25% !important; }
.admin-list-scroll .admin-person-table td:last-child .table-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 6px;
    flex-wrap: wrap;
}
.admin-person-table .person-frozen-flag {
    display: block;
    width: fit-content;
    margin: 2px 0 0;
}
.admin-person-table td:first-child {
    white-space: normal;
}
.admin-person-table .person-cert-cell {
    white-space: normal;
    word-break: break-word;
}
.admin-person-table .person-expiry-text {
    white-space: nowrap;
}
.admin-person-table .person-expiry-empty {
    color: #98a2b3;
}

.person-deal-field .drp {
    flex: 1 1 auto;
    min-width: 0;
}
.person-deal-dialog .drp-panel {
    left: auto;
    right: 0;
}
.detail-follow-panel .drp-panel {
    left: auto;
    right: 0;
}
.drp-trigger.is-required {
    border-color: #f59e0b;
}

/* 人才成交确认弹层 */
.person-deal-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.person-deal-dialog {
    width: 420px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    padding: 20px 22px 18px;
}
.person-deal-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}
.person-deal-sub {
    margin: 8px 0 14px;
    font-size: 13.5px;
    color: #475467;
    line-height: 1.6;
}
.person-deal-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.person-deal-field label {
    flex: 0 0 auto;
    font-size: 13.5px;
    color: #344054;
}
.person-deal-field .form-control {
    flex: 1 1 auto;
    width: auto;
}
.person-deal-hint {
    font-size: 12.5px;
    color: #667085;
    line-height: 1.6;
    margin-bottom: 16px;
}
.person-deal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 全站统一样式：单日期输入框（与请假表单同一套外观） */
input[type="date"].form-control {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #fff;
    color: #26313f;
    font-size: 13.5px;
    line-height: 36px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="date"].form-control:hover {
    border-color: #b9c3d0;
}
input[type="date"].form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
input[type="date"].form-control::-webkit-calendar-picker-indicator {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    padding: 0;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.15s;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator:hover {
    opacity: 0.75;
}

/* 到期维护：资质/安许过期后必须先更新到期时间才能跟进 */
.follow-expiry-gate {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #f2ce8a;
    border-radius: 8px;
    background: #fffaf1;
}

.follow-expiry-gate-title {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #8a5a00;
}

.follow-expiry-gate-sub {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #9a7b45;
}

.follow-expiry-gate .form-group {
    margin-bottom: 8px;
}

.follow-expiry-gate .form-group:last-child {
    margin-bottom: 0;
}

.expiry-claimed-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #9a7b45;
}

/* ===== 多项资质 / 备用联系方式（2026-11-11） ===== */
.qual-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qual-item-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    padding: 2px 0;
}

.qual-item-name-text {
    font-weight: 500;
}

.qual-item-expire {
    font-size: 12.5px;
    color: #475569;
}

.qual-item-expire.is-urgent {
    color: #d97706;
}

.qual-item-expire.is-expired {
    color: #c2705f;
}

.qual-items-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qual-items-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qual-item-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.qual-item-row input[data-qual-name] {
    flex: 1 1 240px;
    min-width: 180px;
}

.qual-item-date {
    flex: 0 0 auto;
    min-width: 210px;
}

.qual-item-remove {
    color: #c2705f !important;
    padding: 4px 8px;
    font-weight: 400;
}

.qual-item-remove:hover {
    color: #a4553f !important;
}

.qual-items-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qual-items-hint {
    font-size: 12px;
    color: #64748b;
}

.detail-contact-panel .phone-alt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
}

.detail-contact-panel .phone-alt-number {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
    word-break: break-all;
}

.detail-contact-panel .phone-alt-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0;
}

.detail-contact-panel .phone-alt-actions .btn {
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.55;
    white-space: nowrap;
    border-radius: 4px;
}

/* 详情页右侧「联系方式」面板：字号与字重统一，电话行加粗突出 */
.detail-contact-panel .detail-panel-body {
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
}

.detail-contact-panel .contact-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 3px 0;
}

.detail-contact-panel .contact-label {
    flex: 0 0 52px;
    width: 52px;
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
}

.detail-contact-panel .contact-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
    word-break: break-all;
}

.detail-contact-panel .contact-divider {
    height: 1px;
    margin: 4px 0 10px;
    background: #edf1f5;
}
.detail-contact-panel .contact-line-action {
    margin-left: auto;
}

.detail-contact-panel .contact-line-action .btn {
    padding: 2px 10px;
    font-size: 12px;
}
.detail-contact-panel .contact-alt-title {
    margin: 12px 0 4px;
    padding-top: 10px;
    border-top: 1px solid #edf1f5;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.detail-contact-panel .contact-alt-empty {
    padding-top: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.qual-item-row.phone-alt-row {
    flex-wrap: nowrap;
}

.qual-item-row .phone-alt-input {
    flex: 1 1 0;
    min-width: 160px;
    max-width: none;
}

/* 列表「资质到期时间」：日期一行 + 资质名一行，避免把表格撑宽 */
.admin-list-scroll .table td.expire-cell {
    max-width: 126px;
    white-space: normal;
    line-height: 1.35;
    vertical-align: middle;
}

.admin-list-scroll .table td.expire-cell > span {
    white-space: normal;
    word-break: break-word;
}

.expire-cell-name {
    display: -webkit-box;
    margin-top: 1px;
    font-size: 12px;
    font-weight: 400;
    color: #475569;
    line-height: 1.3;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 到期提醒「类型」列：显示资质名时限制宽度，避免把表格撑宽 */
.admin-list-scroll .table td.expire-type-cell {
    max-width: 118px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

/* 备用号「→电话2」次级按钮：文字按钮，不抢主按钮视觉 */
.phone-alt-target {
    padding: 0 2px;
    border: none;
    background: none;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
    white-space: nowrap;
    cursor: pointer;
}

.phone-alt-target:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 「等N项」不是资质名称：只用颜色区分，字号与资质名一致 */
.qual-count-more {
    color: #94a3b8;
}
.form-hint-muted {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #94a3b8;
}
.admin-list-scroll .table td.expire-time-cell {
    max-width: 165px;
    white-space: normal;
    line-height: 1.45;
}

.expire-time-multi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    white-space: nowrap;
    font-size: 13px;
    color: #111827;
}

.expire-time-multi em {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
}

.expire-hover-tip {
    position: fixed;
    z-index: 9999;
    display: none;
    max-width: 420px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    font-size: 13px;
    line-height: 1.8;
    color: #111827;
    white-space: pre-line;
    pointer-events: none;
}
/* 到期提醒列表：多资质逐项展示时控制列宽，避免撑破表格 */
.expiry-list-scroll .table td.expiry-company-cell {
    max-width: 175px;
}

.expiry-list-scroll .table td.expiry-company-cell .customer-count-link,
.expiry-list-scroll .table td.expiry-company-cell > span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.expiry-list-scroll .table td.expire-time-cell {
    max-width: 150px;
}

.expiry-list-scroll .table .table-actions {
    gap: 4px;
    flex-wrap: nowrap;
}

.expiry-list-scroll .table .table-actions .action-link {
    padding: 3px 6px;
    font-size: 13px;
    white-space: nowrap;
}

/* 到期提醒列表：当前归属列（归属人 14px，阶段说明只弱化颜色不缩字号） */
.expiry-list-scroll .table td.expiry-owner-cell {
    max-width: 130px;
}

.expiry-list-scroll .table td.expiry-owner-cell .expiry-owner-name,
.expiry-list-scroll .table td.expiry-owner-cell .expiry-owner-stage,
.expiry-list-scroll .table td.expiry-owner-cell .expiry-owner-empty {
    font-size: 14px;
    line-height: 1.5;
}

.expiry-list-scroll .table td.expiry-owner-cell .expiry-owner-stage {
    color: #94a3b8;
    font-style: normal;
}

.expiry-list-scroll .table td.expiry-owner-cell .expiry-owner-empty {
    color: #94a3b8;
}
/* 从到期提醒领取、到期时间仍未更新：整行淡红 + 左侧色条 */
.table tbody tr.table-row--expiry-stale td {
    background-color: #fdf1ed;
}

.table tbody tr.table-row--expiry-stale td:first-child {
    box-shadow: inset 3px 0 0 #c2705f;
}

.table tbody tr.table-row--expiry-stale:hover td {
    background-color: #fbe7df;
}
/* 客户总览：业务员阶段分布表 */
.sales-stage-table th,
.sales-stage-table td {
    font-size: 14px;
}

.sales-stage-table .sales-stage-group {
    text-align: center;
    border-left: 1px solid #e5e7eb;
}

.sales-stage-table .sales-stage-name {
    width: 180px;
}

.sales-stage-table .sales-stage-num {
    width: 88px;
    text-align: center;
}

.sales-stage-table .sales-stage-num.is-zero {
    color: #94a3b8;
}
/* 公司资质异常：被执行人 / 限制高消费 可同时勾选 */
.qual-abnormal-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
/* 我的客户 / 我的跟进 / 我的领取：最新一条跟进内容，单行省略 + 悬停显示全文 */
.table .last-follow-content-cell {
    max-width: 220px;
}
.table .last-follow-content-cell .last-follow-content-text {
    display: block;
    max-width: 220px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: default;
}

/* 业绩直通车：绿色醒目标识（周一至周五累计达本周目标 100% → 本周默认合格） */
.perf-badge.is-express {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
    border: 1px solid #15803d;
    white-space: nowrap;
}
.perf-alert.is-express {
    border-left: 4px solid #16a34a;
    background: #f0fdf4;
    color: #14532d;
}

/* 到期线索延期一周更新 */
.follow-expiry-extension {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}
.follow-expiry-extension input[type="checkbox"] {
    margin-top: 2px;
    flex: 0 0 auto;
}

/* 修复：通用 .perf-badge 的 background:none !important 覆盖直通车绿底 */
.perf-badge.is-express {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #ffffff !important;
}
/* 直通车名单：名字与徽标同一行，业绩信息靠右，避免被 120px 列宽挤到下一行 */
.perf-express-list { display: flex; flex-direction: column; }
.perf-express-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #eef1f6;
}
.perf-express-row:last-child { border-bottom: 0; }
.perf-express-main { min-width: 0; flex: 1 1 auto; }
.perf-express-main .perf-member-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.perf-express-metrics {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #606266;
    white-space: nowrap;
}
.perf-express-metrics strong { color: #15803d; }
@media (max-width: 720px) {
    .perf-express-row { align-items: flex-start; flex-direction: column; gap: 6px; }
    .perf-express-metrics { white-space: normal; }
}

/* 业绩直通车·合格：比普通直通车标识更醒目（绿色渐变 + 勾选 + 高亮卡片） */
.perf-summary-item.perf-summary-express {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.22);
}
.perf-summary-item.perf-summary-express label {
    color: #15803d;
    font-weight: 700;
}
.perf-badge.is-express.is-express-pass {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    animation: perfExpressPassGlow 2.4s ease-in-out infinite;
}
.perf-badge.is-express.is-express-pass::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
@keyframes perfExpressPassGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(22, 163, 74, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 6px 22px rgba(34, 197, 94, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}
@media (max-width: 720px) {
    .perf-badge.is-express.is-express-pass { font-size: 14px; padding: 5px 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .perf-badge.is-express.is-express-pass { animation: none; }
}

/* 日报综合完成率：合格绿色醒目 / 不合格标红提醒 */
.perf-score-box.is-passed {
    border: 1px solid #67c23a;
    background: linear-gradient(135deg, #f0f9eb 0%, #e1f7d3 100%);
    color: #15803d;
    font-weight: 600;
}
.perf-score-box.is-passed #perfScoreValue {
    color: #16a34a;
    font-size: 17px;
    font-weight: 800;
}
.perf-score-box.is-passed #perfScoreHint {
    color: #15803d;
    font-weight: 600;
}
.perf-score-box.is-failed {
    border: 1px solid #f56c6c;
    background: linear-gradient(135deg, #fef0f0 0%, #fde2e2 100%);
    color: #c0392b;
    font-weight: 600;
}
.perf-score-box.is-failed #perfScoreValue {
    color: #d03050;
    font-size: 17px;
    font-weight: 800;
}
.perf-score-box.is-failed #perfScoreHint {
    color: #d03050;
    font-weight: 600;
}

/* 业绩概览：按日/按月切换，日期控件复用全站自定义 .drp 单日选择器 */
.perf-date-filter {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.perf-view-mode {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.perf-view-mode.is-day {
    background: #e8f7ee;
    color: #15803d;
}
.perf-date-filter .drp {
    flex: 0 0 168px;
    width: 168px;
}
.perf-date-filter .drp-trigger {
    min-height: 32px;
    height: 32px;
    padding: 4px 9px;
}
@media (max-width: 768px) {
    .perf-date-filter {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }
    .perf-date-filter .drp {
        flex: 1 1 150px;
        width: auto;
        min-width: 0;
    }
}

/* 我的跟进：详情按钮统一标蓝 */
.table .table-actions .action-link-detail,
.admin-table .table-actions .action-link-detail,
.action-link-detail {
    background: #eef5ff !important;
    border-color: #b7d3fb !important;
    color: #1d63d8 !important;
    font-weight: 700;
}
.table .table-actions .action-link-detail:hover,
.admin-table .table-actions .action-link-detail:hover,
.action-link-detail:hover {
    background: #dceaff !important;
    border-color: #8bb8f5 !important;
    color: #174ea6 !important;
}

/* 日报微信总人数/总群数：沿用上一天 + 快速增减 */
.perf-wechat-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.perf-wechat-control .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.perf-wechat-delta {
    flex: 0 0 72px;
    width: 72px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}
.perf-wechat-delta:focus {
    outline: none;
    border-color: #2563eb;
}
.perf-wechat-hint {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .perf-wechat-hint {
        font-size: 10.5px;
    }
}

/* 订单与财务模块 */
.order-filter { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.order-filter .form-control { min-width:140px; }
.order-filter .order-filter-keyword { min-width:220px; }
.order-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 12px; align-items:start; }
.order-field { min-width:0; }
.order-field label { display:block; font-size:12px; color:#64748b; margin-bottom:4px; font-weight:600; }
.order-field .form-control { width:100%; }
.order-field-wide { grid-column:span 2; }
.order-field-full { grid-column:1 / -1; }
.order-section { border:1px solid #e5e7eb; border-radius:6px; padding:16px; margin-bottom:12px; background:#fff; }
.order-subhead { grid-column:1 / -1; margin:2px 0 -2px; padding-top:8px; border-top:1px solid #eef2f7; font-size:13px; font-weight:700; color:#334155; }
.order-subhead-half { grid-column:span 2; }
.order-date-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px 12px; }
.order-subhead:first-child { margin-top:0; padding-top:0; border-top:0; }
.order-page .dashboard-card { border-radius:6px; }
.order-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.order-section-title { margin:0; font-size:15px; color:#111827; font-weight:700; }
.order-section-sub { color:#8a94a6; font-size:12px; }
.order-model-box { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.order-model-option { border:1px solid #dbe3ef; border-radius:9px; padding:10px 12px; cursor:pointer; background:#f8fafc; }
.order-model-option input { margin-right:6px; }
.order-model-option strong { display:block; font-size:13px; color:#1f2937; margin-bottom:3px; }
.order-model-option span { color:#64748b; font-size:11px; line-height:1.5; }
.order-model-option.is-active { border-color:#2563eb; background:#eff6ff; }
.order-profit-preview { background:#f8fafc; border:1px solid #e5e7eb; border-radius:4px; padding:12px 14px; display:flex; justify-content:space-between; align-items:center; }
.order-profit-preview > div { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; }
.order-profit-preview span { color:#64748b; font-size:12px; }
.order-profit-preview strong { font-size:20px; color:#0f766e; }
.order-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.order-stat { background:#fff; border:1px solid #e5e7eb; border-radius:6px; padding:14px 16px; }
.order-stat-label { color:#64748b; font-size:12px; }
.order-stat-value { color:#111827; font-size:22px; font-weight:700; margin-top:5px; }
.order-stat-value.green { color:#0f766e; }
.order-stat-value.blue { color:#2563eb; }
.order-stat-value.red { color:#dc2626; }
.order-table-wrap { overflow:auto; }
.order-table { min-width:1080px; }

.expense-form-grid { grid-template-columns: 126px minmax(0, 1.3fr) 112px minmax(0, 1.4fr); }
.payroll-rule-grid { display: grid; grid-template-columns: 240px 290px 120px; gap: 14px; align-items: end; margin-bottom: 14px; }
.payroll-rule-grid .btn { white-space: nowrap; }
.payroll-rule-inline { display: flex; align-items: center; gap: 8px; color: #374151; font-size: 13px; }
.payroll-rule-inline .form-control { width: 120px; flex: 0 0 120px; }
.payroll-config-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.payroll-config-table th:nth-child(1) { width: 55%; }
.payroll-config-table th:nth-child(2) { width: 45%; }
.payroll-preview-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.payroll-preview-table th:nth-child(1) { width: 12%; }
.payroll-preview-table th:nth-child(2) { width: 28%; }
.payroll-preview-table th:nth-child(3) { width: 11%; }
.payroll-preview-table th:nth-child(4) { width: 11%; }
.payroll-preview-table th:nth-child(5) { width: 9%; }
.payroll-preview-table th:nth-child(6) { width: 15%; }
.payroll-preview-table th:nth-child(7) { width: 14%; }
.payroll-preview-table th, .payroll-preview-table td { padding-left: 6px; padding-right: 6px; font-size: 13px; }
.payroll-preview-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.payroll-preview-table td.payroll-package-cell { white-space: normal; overflow: visible; text-overflow: clip; }
.payroll-package-cell span { display: block; line-height: 1.45; white-space: nowrap; }
.payroll-year-end { color: #b45309; font-weight: 600; }
.payroll-batch-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.payroll-batch-list-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.payroll-batch-list-table th:nth-child(1) { width: 13%; }
.payroll-batch-list-table th:nth-child(2) { width: 12%; }
.payroll-batch-list-table th:nth-child(3) { width: 11%; }
.payroll-batch-list-table th:nth-child(4) { width: 35%; }
.payroll-batch-list-table th:nth-child(5) { width: 9%; }
.payroll-batch-list-table th:nth-child(6) { width: 20%; }
.payroll-batch-list-table th, .payroll-batch-list-table td { padding-left: 6px; padding-right: 6px; font-size: 13px; }
.payroll-batch-list-table td { white-space: nowrap; }
.payroll-batch-list-table td.payroll-batch-main { white-space: normal; }
.payroll-batch-main .order-muted { word-break: break-all; line-height: 1.35; }
.payroll-batch-list-table td.payroll-confirm-cell { white-space: normal; line-height: 1.45; }
.payroll-confirm-count { display: block; font-weight: 600; }
.payroll-confirm-line { display: block; margin-top: 4px; font-size: 12px; }
.payroll-confirm-line.confirmed { color: #047857; }
.payroll-confirm-line.pending { color: #b45309; }
.payroll-batch-actions { white-space: normal !important; }
.payroll-batch-actions .btn { margin: 0 0 4px 0; }
.payroll-batch-actions form { display: block; }
.payroll-batch-table th:nth-child(1) { width: 12%; }
.payroll-batch-table th:nth-child(2) { width: 12%; }
.payroll-batch-table th:nth-child(3) { width: 22%; }
.payroll-batch-table th:nth-child(4) { width: 15%; }
.payroll-batch-table th:nth-child(5) { width: 15%; }
.payroll-batch-table th:nth-child(6) { width: 10%; }
.payroll-batch-table th:nth-child(7) { width: 14%; }
.payroll-batch-table th, .payroll-batch-table td { padding-left: 4px; padding-right: 4px; font-size: 13px; }
.payroll-batch-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.payroll-batch-table td.payroll-package-cell { white-space: normal; overflow: visible; text-overflow: clip; }
.payroll-progress-cell span { display: block; line-height: 1.35; }
.payroll-refund-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.payroll-refund-table th:nth-child(1) { width: 20%; }
.payroll-refund-table th:nth-child(2) { width: 12%; }
.payroll-refund-table th:nth-child(3) { width: 12%; }
.payroll-refund-table th:nth-child(4) { width: 18%; }
.payroll-refund-table th:nth-child(5) { width: 18%; }
.payroll-refund-table th:nth-child(6) { width: 10%; }
.payroll-refund-table th:nth-child(7) { width: 10%; }
.payroll-refund-table th, .payroll-refund-table td { padding-left: 10px; padding-right: 10px; font-size: 13px; }
.payroll-refund-table td { overflow: hidden; text-overflow: ellipsis; }
.payroll-bonus-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.payroll-bonus-table th:nth-child(1) { width: 14%; }
.payroll-bonus-table th:nth-child(2) { width: 22%; }
.payroll-bonus-table th:nth-child(3) { width: 18%; }
.payroll-bonus-table th, .payroll-bonus-table td { padding-left: 8px; padding-right: 8px; font-size: 13px; }
.expense-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.expense-table th:nth-child(1) { width: 116px; }
.expense-table th:nth-child(2) { width: 104px; }
.expense-table th:nth-child(3) { width: 110px; }
.expense-table th:nth-child(4) { width: 86px; }
.expense-table th:nth-child(6) { width: 96px; }
.expense-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expense-table td:nth-child(5) { white-space: normal; line-height: 1.45; }
.order-table td, .order-table th { white-space:nowrap; }
.order-flow-table { width:100%; min-width:0; table-layout:fixed; }
.order-flow-table th:nth-child(1) { width:90px; }
.order-flow-table th:nth-child(2) { width:230px; }
.order-flow-table th:nth-child(3) { width:95px; }
.order-flow-table th:nth-child(4) { width:60px; }
.order-flow-table th:nth-child(6) { width:54px; }
.order-flow-table td, .order-flow-table th { font-size:12px; padding:10px 8px; overflow:hidden; text-overflow:ellipsis; }
.order-flow-table td:nth-child(5) { white-space:normal; }
.order-flow-party { white-space:normal; line-height:1.5; }
.order-flow-party .order-badge { margin-right:4px; }
.order-party-table { width:100%; border-collapse:collapse; }
.order-party-table.order-balance-table { table-layout:fixed; }
.biz-page .order-balance-table th:nth-child(1) { width: 24%; }.biz-page .order-balance-table th:nth-child(2) { width: 17%; }
.biz-page .order-balance-table th:nth-child(3) { width: 24%; }
.biz-page .order-balance-table th:nth-child(4) { width: 35%; }
.biz-page .order-balance-table th,
.biz-page .order-balance-table td { padding-left: 6px; padding-right: 6px; }
.biz-page .order-balance-table td:nth-child(4) { white-space: nowrap; }
.biz-page .order-balance-table .order-badge { padding: 1px 5px; font-size: 12px; white-space: nowrap; }
.biz-page .order-section.order-area-balance { padding: 12px; }
.biz-page .order-area-balance .order-section-head { margin-bottom: 10px; }
.order-party-table th, .order-party-table td { padding:9px 10px; border-bottom:1px solid #eef2f7; font-size:13px; text-align:left; }
.order-party-table th { color:#64748b; font-weight:600; background:#f8fafc; }
.order-money { font-variant-numeric:tabular-nums; }
.order-money.in { color:#0f766e; }
.order-money.out { color:#dc2626; }
.order-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:3px; font-size:11px; line-height:1.5; background:#eef2f7; color:#475569; }
.order-badge.blue { background:#eff6ff; color:#2563eb; }
.order-badge.green { background:#ecfdf5; color:#047857; }
.order-badge.orange { background:#fff7ed; color:#c2410c; }
.order-badge.red { background:#fef2f2; color:#b91c1c; }
.order-actions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.order-refund-tip { color:#b45309; font-size:12px; line-height:1.4; }
.order-muted { color:#94a3b8; font-size:12px; }
.order-empty { padding:28px; text-align:center; color:#94a3b8; }
.order-detail-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr); gap:16px; align-items:start; }
.order-monthly-profit { font-size:12px; }
.order-monthly-profit th, .order-monthly-profit td { padding:9px 6px; }
.order-detail-col { display:flex; flex-direction:column; gap:16px; min-width:0; }
.order-detail-main { grid-column:1; grid-row:1; }
.order-detail-main .order-area-info { order:1; }
.order-detail-main .order-area-parties { order:2; }
.order-detail-main .order-area-edu,
.order-detail-main .order-area-cert { order:3; }
.order-detail-main .order-area-payables { order:4; }
.order-detail-main .order-area-flow { order:5; }
.order-detail-side { grid-column:2; grid-row:1; }
.order-detail-grid .order-section { margin-bottom:0; }
.order-area-flow { grid-column:1 / -1; grid-row:2; }
.order-kv { display:grid; grid-template-columns:150px minmax(0,1fr); gap:8px 12px; font-size:13px; }
.order-kv .k { color:#64748b; }
.order-kv .v { color:#111827; word-break:break-all; }
.order-modal { position:fixed; inset:0; z-index:1200; background:rgba(15,23,42,.48); display:none; align-items:center; justify-content:center; padding:20px; }
.order-modal.is-open { display:flex; }
.order-modal-card { width:min(520px,94vw); max-height:88vh; overflow:auto; background:#fff; border-radius:8px; box-shadow:0 20px 60px rgba(15,23,42,.24); padding:20px; }
.order-modal-card.is-date-open { overflow:visible; max-height:none; }
.order-modal-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.order-modal-title { margin:0; font-size:16px; color:#111827; }
.order-modal-close { border:0; background:transparent; font-size:22px; color:#94a3b8; cursor:pointer; line-height:1; }
.order-modal-actions { display:flex; justify-content:flex-start; gap:8px; margin-top:16px; }
.order-form-actions { display:flex; justify-content:flex-start; gap:8px; margin-top:18px; }

/* 新建订单：左侧主表单 + 右侧客户与金额 */
.order-page .order-create-layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:16px; align-items:start; }
.order-page .order-create-main .order-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.order-page .order-create-side { position:sticky; top:16px; align-self:start; }
.order-page .order-create-side .order-grid { grid-template-columns:1fr; }
.order-page .order-create-side .order-subhead,
.order-page .order-create-side .order-subhead-half { grid-column:1 / -1; }
.order-page .order-create-side .order-field-wide { grid-column:auto; }
.order-page.biz-page .order-field > label { font-size:14px; font-weight:500; color:#475569; margin-bottom:6px; }
.order-page .order-field .form-control,
.order-page .order-field select.form-control { height:38px; padding:0 10px; font-size:14px; line-height:36px; }
.order-page .order-field textarea.form-control { height:auto; min-height:80px; padding:8px 10px; line-height:1.5; }
.order-page .order-field .drp-trigger { height:38px; font-size:14px; line-height:36px; }
.order-page .order-section-title { font-size:16px; }
.order-page .order-subhead { font-size:14px; }
.order-page .watermark { font-size:13px; line-height:1.5; }
.order-inline-select { min-width:130px; }
.order-note { padding:10px 12px; border-radius:4px; background:#f8fafc; border:1px solid #e5e7eb; color:#64748b; font-size:12px; line-height:1.6; }
.order-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.order-tab { padding:7px 13px; border-radius:8px; border:1px solid #dbe3ef; background:#fff; color:#475569; text-decoration:none; font-size:13px; }
.order-tab.is-active { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; }
.order-tab-panel { display:none; }
.order-tab-panel.is-active { display:block; }
.order-account-strip { display:flex; gap:10px; flex-wrap:wrap; padding:12px; border:1px solid #e5e7eb; border-radius:10px; background:#f8fafc; }
.order-account-card { min-width:150px; padding:10px 14px; border-radius:8px; background:#fff; border:1px solid #e2e8f0; }
.order-account-name { font-size:12px; color:#64748b; }
.order-account-balance { margin-top:4px; font-size:17px; font-weight:700; color:#0f172a; font-variant-numeric:tabular-nums; }
.order-inline-input { min-width:110px; width:110px; }
.order-picker { position:relative; }
.order-picker-results { position:absolute; z-index:30; left:0; right:0; top:calc(100% + 4px); background:#fff; border:1px solid #dbe3ef; border-radius:4px; box-shadow:0 12px 30px rgba(15,23,42,.16); max-height:260px; overflow:auto; display:none; }
.order-picker-results.is-open { display:block; }
.order-picker-item { display:block; width:100%; text-align:left; border:0; border-bottom:1px solid #f1f5f9; background:#fff; padding:9px 12px; cursor:pointer; }
.order-picker-item:hover { background:#f8fafc; }
.order-picker-item strong { display:block; font-size:13px; color:#1f2937; }
.order-picker-item span { display:block; margin-top:2px; font-size:11px; color:#94a3b8; }
.order-picker-empty { padding:10px 12px; color:#94a3b8; font-size:12px; }
.order-profit-split { gap:24px; }
.order-profit-split > div { flex:1; }
.order-profit-preview.order-profit-split > div { flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:2px; }
.order-profit-split span { display:block; color:#64748b; font-size:12px; margin-bottom:4px; }
.order-profit-split strong { display:block; font-size:20px; }
.order-progress { height:8px; border-radius:3px; background:#eef2f7; overflow:hidden; margin-bottom:5px; min-width:110px; }
.order-progress span { display:block; height:100%; background:#2563eb; }
.order-option-add { display:flex; gap:8px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.order-option-add .form-control { max-width:320px; }
.order-option-list { display:flex; gap:8px; flex-wrap:wrap; }
.order-option-chip { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border:1px solid #dbe3ef; border-radius:4px; background:#f8fafc; font-size:12px; color:#334155; }
.order-option-chip.is-disabled { opacity:.55; text-decoration:line-through; }
.order-option-chip form { margin:0; }
.order-chip-remove { border:0; background:transparent; color:#94a3b8; cursor:pointer; font-size:15px; line-height:1; padding:0 2px; }
.order-chip-remove:hover { color:#dc2626; }
.handover-tag { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:3px; background:#fff7ed; border:1px solid #fed7aa; color:#c2410c; font-size:11px; line-height:18px; font-weight:500; vertical-align:middle; white-space:nowrap; }
.handover-tag::before { content:"↪"; margin-right:3px; }
.handover-banner { display:flex; gap:8px; align-items:center; padding:10px 12px; margin-bottom:14px; border:1px solid #fed7aa; border-radius:8px; background:#fff7ed; color:#9a3412; font-size:13px; }
.handover-banner strong { color:#7c2d12; }
.handover-ratio-preview { display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
.handover-ratio-preview span { padding:4px 9px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:12px; }
.order-check { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; font-size:13px; color:#334155; cursor:pointer; }
.order-check input { width:16px; height:16px; }
.order-dup-alert { margin-bottom:18px; padding:16px 18px; border:1px solid #f0c36d; border-radius:8px; background:#fffbeb; }
.order-dup-head { margin-bottom:12px; }
.order-dup-title { font-size:16px; font-weight:600; color:#92400e; }
.order-dup-sub { margin-top:5px; font-size:13px; line-height:1.6; color:#a16207; }
.order-dup-table-wrap { overflow-x:auto; border:1px solid #fde68a; border-radius:6px; background:#fff; }
.order-dup-table { width:100%; min-width:920px; table-layout:fixed; border-collapse:collapse; font-size:13px; color:#334155; }
.order-dup-table th,
.order-dup-table td { padding:9px 10px; border-bottom:1px solid #f1f5f9; text-align:left; vertical-align:top; }
.order-dup-table th { background:#fef3c7; color:#78350f; font-weight:600; white-space:nowrap; }
.order-dup-table th:nth-child(1),
.order-dup-table td:nth-child(1) { width:150px; white-space:nowrap; }
.order-dup-table th:nth-child(2),
.order-dup-table td:nth-child(2) { width:78px; white-space:nowrap; }
.order-dup-table th:nth-child(3),
.order-dup-table td:nth-child(3) { width:190px; }
.order-dup-table th:nth-child(4),
.order-dup-table td:nth-child(4) { width:136px; }
.order-dup-table th:nth-child(5),
.order-dup-table td:nth-child(5) { width:220px; }
.order-dup-table th:nth-child(6),
.order-dup-table td:nth-child(6) { width:68px; white-space:nowrap; }
.order-dup-table th:nth-child(7),
.order-dup-table td:nth-child(7) { width:48px; white-space:nowrap; }
.order-dup-table tr:last-child td { border-bottom:0; }
.order-dup-table a { color:#1d4ed8; text-decoration:none; white-space:nowrap; }
.order-dup-table a:hover { text-decoration:underline; }
.order-dup-party { margin-top:2px; font-size:12px; color:#64748b; }
.order-dup-reason { display:inline-block; margin:0 4px 4px 0; padding:1px 6px; border-radius:3px; background:#fef3c7; color:#92400e; font-size:11px; line-height:18px; white-space:nowrap; }
.order-dup-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; }
.order-dup-check { background:#fff; border-color:#fde68a; }
.order-dup-actions .btn:disabled { opacity:.45; cursor:not-allowed; }

@media (min-width: 1500px) { .order-page .order-create-main .order-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 1180px) { .order-page .order-create-layout { grid-template-columns:1fr; } .order-page .order-create-side { display:block; position:static; } }
@media (max-width: 1100px) { .order-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .order-detail-grid { display:flex; flex-direction:column; align-items:stretch; } .order-detail-col { display:contents; } .order-area-info { order:1; } .order-area-amount { order:2; } .order-area-parties { order:3; } .order-area-balance { order:4; } .order-area-flow { order:5; grid-column:auto; grid-row:auto; } }
@media (max-width: 820px) { .order-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .order-field-wide { grid-column:span 2; } .order-date-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .order-model-box { grid-template-columns:1fr; } .order-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .order-page .order-create-main .order-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .order-grid { grid-template-columns:1fr; } .order-field-wide { grid-column:span 1; } .order-subhead-half { grid-column:1 / -1; } .order-date-grid { grid-template-columns:1fr; } .order-stat-grid { grid-template-columns:1fr; } .order-page .order-create-main .order-grid { grid-template-columns:1fr; } }
@media (max-width: 820px) { .order-grid.expense-form-grid { grid-template-columns:132px minmax(0,1fr); } .payroll-rule-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .order-grid.expense-form-grid { grid-template-columns:1fr; } }

/* ===== 订单 / 财务 / 人事 新页面统一视觉规范（.biz-page） =====
   字号：正文与表格 13 / 标签与说明 12 / 卡片标题 15 / 统计数字 22
   控件：输入框、下拉、日期、按钮 统一 34px 高；表格内小按钮 28px
   间距：筛选项 10px、按钮组 8px、表格单元格 10px 10px */
.biz-page { font-size: 13px; color: #1f2937; }
.biz-page .dashboard-card .card-title,
.biz-page .order-section-title,
.biz-page .order-modal-title { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.4; }
.biz-page .dashboard-card .card-header { padding: 14px 20px 10px; }
.biz-page .dashboard-card .card-body { padding: 14px 20px 18px; }
.biz-page .order-section { padding: 14px 16px; border-radius: 6px; }
.biz-page .order-section-head { margin-bottom: 12px; }

/* 标签 */
.biz-page .order-field > label,
.biz-page .order-stat-label,
.biz-page .order-profit-preview span,
.biz-page .order-profit-split span { font-size: 12px; font-weight: 600; color: #64748b; line-height: 1.5; margin-bottom: 6px; }
.biz-page .order-stat-label { font-weight: 500; margin-bottom: 0; }
.biz-page .order-section-sub,
.biz-page .order-muted,
.biz-page .order-note,
.biz-page .order-refund-tip,
.biz-page .order-kv .k { font-size: 12px; line-height: 1.6; }
.biz-page .order-kv { font-size: 14px; }
.biz-page .order-kv .k { font-size: 14px; color: #64748b; line-height: 1.65; }
.biz-page .order-table .order-muted { font-size: 13px; line-height: 1.5; color: #64748b; }
.biz-page .order-detail-side .order-area-parties .order-kv { grid-template-columns: 110px minmax(0, 1fr); }
.biz-page .order-empty { padding: 32px 16px; font-size: 13px; }

/* 输入控件：统一 34px */
.biz-page .form-control,
.biz-page select.form-control,
.biz-page input.form-control,
.biz-page textarea.form-control,
.biz-page .drp-trigger { min-height: 34px; height: 34px; padding: 0 10px; font-size: 13px; line-height: 32px; border-radius: 4px; }
.biz-page textarea.form-control { height: auto; min-height: 80px; line-height: 1.5; padding: 8px 10px; }
.biz-page .drp-trigger { line-height: 1; padding: 0 7px 0 10px; }
.biz-page .drp-display { font-size: 13px; }
.biz-page .drp-trigger-icon svg { width: 16px; height: 16px; }
.biz-page .order-inline-input,
.biz-page .payroll-rule-inline .form-control { width: 120px; flex: 0 0 120px; }

/* 按钮：统一 34px；表格内 28px */
.biz-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; line-height: 1; border-radius: 4px; white-space: nowrap; vertical-align: middle; }
.biz-page .btn:hover { text-decoration: none; }
.biz-page .btn-sm,
.biz-page .order-table .btn,
.biz-page .order-party-table .btn,
.biz-page .payroll-config-table .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.biz-page .order-actions { gap: 6px; }
.biz-page .order-actions .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.biz-page .order-tab { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; border-radius: 4px; line-height: 1; }
.biz-page .order-tabs { gap: 8px; margin-bottom: 14px; }
.biz-page .drp-link-btn { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 4px; }

/* 表单布局与间距 */
.biz-page .order-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 16px; }
.biz-page .order-filter .form-control { min-width: 140px; }
.biz-page .order-field:has(> .btn) { display: flex; align-items: center; gap: 8px; }
.biz-page .order-form-actions { gap: 8px; margin-top: 14px; }
.biz-page .order-modal-actions { gap: 8px; margin-top: 16px; }
.biz-page .order-grid { gap: 12px 14px; }
.biz-page .order-date-grid { gap: 12px 14px; }
.biz-page .order-subhead { font-size: 13px; padding-top: 12px; margin-top: 4px; }
.biz-page .payroll-rule-grid { gap: 14px; margin-bottom: 16px; }

/* 统计卡 */
.biz-page .order-stat-grid { gap: 12px; margin-bottom: 16px; }
.order-expiry-alert { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; padding:12px 16px; border:1px solid #fca5a5; border-left:4px solid #dc2626; border-radius:8px; background:#fff1f2; color:#991b1b; font-weight:600; }
.order-expiry-alert a { flex:0 0 auto; color:#ffffff; background:#dc2626; border-radius:6px; padding:6px 14px; font-weight:600; text-decoration:none; white-space:nowrap; }
.order-expiry-alert a:hover { background:#b91c1c; }
.biz-page .order-stat { padding: 14px 16px; border-radius: 6px; }
.biz-page .order-stat-value { font-size: 22px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.biz-page .order-stat-value.orange { color: #c2410c; }
.biz-page .order-profit-preview strong,
.biz-page .order-profit-split strong { font-size: 22px; }

/* 表格：统一 13px、统一单元格间距 */
.biz-page .table th,
.biz-page .table td,
.biz-page .order-party-table th,
.biz-page .order-party-table td,
.biz-page .payroll-preview-table th, .biz-page .payroll-preview-table td,
.biz-page .payroll-refund-table th, .biz-page .payroll-refund-table td,
.biz-page .payroll-bonus-table th, .biz-page .payroll-bonus-table td,
.biz-page .expense-table th, .biz-page .expense-table td,
.biz-page .order-flow-table th, .biz-page .order-flow-table td,
.biz-page .order-monthly-profit th, .biz-page .order-monthly-profit td { padding: 10px 10px; font-size: 13px; line-height: 1.5; }
.biz-page .payroll-preview-table th, .biz-page .payroll-preview-table td { padding-left: 6px; padding-right: 6px; }
.biz-page .payroll-batch-table th, .biz-page .payroll-batch-table td { padding: 8px 4px; font-size: 13px; line-height: 1.5; }
.biz-page .payroll-batch-list-table th, .biz-page .payroll-batch-list-table td { padding: 8px 6px; font-size: 13px; line-height: 1.5; }
.biz-page .table th,
.biz-page .order-party-table th { color: #64748b; font-weight: 600; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.biz-page .table tbody tr:hover > td { background: #f8fafc; }
.biz-page .order-badge { padding: 2px 8px; font-size: 12px; line-height: 18px; border-radius: 3px; font-weight: 500; }
.biz-page .handover-tag { font-size: 12px; line-height: 18px; }
.biz-page .order-option-chip { font-size: 12px; }
.biz-page .order-picker-item strong { font-size: 13px; }
.biz-page .order-picker-item span { font-size: 12px; }
.biz-page .order-model-option strong { font-size: 13px; }
.biz-page .order-model-option span { font-size: 12px; }
.biz-page .order-flow-table th:nth-child(1) { width: 14%; }
.biz-page .order-flow-table th:nth-child(2) { width: 21%; }
.biz-page .order-flow-table th:nth-child(3) { width: 13%; }
.biz-page .order-flow-table th:nth-child(4) { width: 10%; }
.biz-page .order-flow-table th:nth-child(5) { width: 15%; }
.biz-page .order-flow-table th:nth-child(6) { width: 27%; }
.biz-page .order-flow-table td:nth-child(1) { padding-left: 6px; padding-right: 4px; font-size: 12px; }
.biz-page .order-flow-table td:nth-child(2) { white-space: normal; }
.biz-page .order-flow-table td:nth-child(2) .order-flow-party { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.biz-page .order-flow-table td:nth-child(3),
.biz-page .order-flow-table td:nth-child(4) { padding-left: 4px; padding-right: 4px; font-size: 12px; }
.biz-page .order-flow-table td:nth-child(4) .order-badge { padding-left: 4px; padding-right: 4px; }
.biz-page .order-flow-table td:nth-child(6) { overflow: visible; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.biz-page .order-flow-table td:nth-child(6) .form-control { height: 28px; padding: 0 6px; font-size: 12px; }
.biz-page .order-flow-table td:nth-child(6) .btn { padding: 0 8px; }
.biz-page .order-cost-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.biz-page .order-cost-table th:nth-child(1) { width: 14%; }
.biz-page .order-cost-table th:nth-child(2) { width: 23%; }
.biz-page .order-cost-table th:nth-child(3) { width: 12%; }
.biz-page .order-cost-table th:nth-child(4) { width: 18%; }
.biz-page .order-cost-table th:nth-child(5) { width: 13%; }
.biz-page .order-cost-table th:nth-child(6) { width: 20%; }
.biz-page .order-cost-table td { font-size: 13px; padding: 10px 6px; vertical-align: middle; }
.biz-page .order-cost-table td:nth-child(1) .order-badge { margin-top: 4px; }
.biz-page .order-cost-table td:nth-child(2) { white-space: normal; word-break: break-all; }
.biz-page .order-cost-table td:nth-child(6) { white-space: nowrap; }
.order-advance-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-top: 1px solid #e5e7eb; background: #f8fafc; font-size: 13px; color: #64748b; }
.order-advance-summary strong { font-size: 15px; color: #b45309; }
.order-advance-summary.is-covered strong { color: #047857; }
.order-advance-tag { display: inline-block; padding: 1px 6px; font-size: 13px; line-height: 19px; border-radius: 3px; color: #b45309; background: #fffbeb; white-space: normal; word-break: keep-all; }
.order-advance-tag.is-warn { color: #b91c1c; background: #fef2f2; }
.order-advance-tag + .order-advance-tag { margin-left: 4px; }
.order-advance-alert { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #fcd34d; border-radius: 6px; background: #fffbeb; color: #92400e; font-size: 13px; line-height: 1.6; }
.biz-page .order-payee-select { margin-top: 8px; font-size: 13px; }
.biz-page .hr-archive-table { min-width: 0 !important; table-layout: fixed; }
.biz-page .hr-archive-table th:nth-child(1) { width: 76px; }
.biz-page .hr-archive-table th:nth-child(2) { width: 88px; }
.biz-page .hr-archive-table th:nth-child(3) { width: 92px; }
.biz-page .hr-archive-table th:nth-child(4) { width: 96px; }
.biz-page .hr-archive-table th:nth-child(5) { width: 90px; }
.biz-page .hr-archive-table th:nth-child(6) { width: 100px; }
.biz-page .hr-archive-table th:nth-child(7) { width: 48px; }
.biz-page .hr-archive-table th:nth-child(8) { width: 68px; }
.biz-page .hr-archive-table th, .biz-page .hr-archive-table td { padding-left: 6px; padding-right: 6px; }
.biz-page .hr-archive-table td { white-space: nowrap; }
.biz-page .hr-archive-table td:nth-child(3) { white-space: normal; line-height: 1.45; }
.biz-page .hr-archive-table td:nth-child(4) { white-space: normal; line-height: 1.45; }
.hr-account-name {
    display: block;
    color: #1f2d3d;
    font-weight: 600;
}
.hr-account-name.is-disabled {
    color: #8a97a3;
}
.hr-account-disabled {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.3;
    color: #e05252;
}
/* 财务流水 / 成本待支出：10 列、6 列铺满，不横向滚动 */
.biz-page .ledger-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.biz-page .ledger-table th:nth-child(1) { width: 10%; }
.biz-page .ledger-table th:nth-child(2) { width: 15%; }
.biz-page .ledger-table th:nth-child(3) { width: 7%; }
.biz-page .ledger-table th:nth-child(4) { width: 15%; }
.biz-page .ledger-table th:nth-child(5) { width: 11%; }
.biz-page .ledger-table th:nth-child(6) { width: 10%; }
.biz-page .ledger-table th:nth-child(7) { width: 21%; }
.biz-page .ledger-table th:nth-child(8) { width: 11%; }
.biz-page .ledger-table th, .biz-page .ledger-table td { padding-left: 8px; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; }
.biz-page .ledger-table td:nth-child(6), .biz-page .ledger-table td:nth-child(8) { white-space: nowrap; overflow: visible; text-overflow: clip; }
.biz-page .order-stat-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.biz-page .order-stat-grid.cols-5 .order-stat { padding: 14px 12px; }
.biz-page .ledger-table .ledger-party, .biz-page .ledger-table .ledger-notes { white-space: normal; line-height: 1.45; word-break: break-all; }
.biz-page .ledger-cost-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.biz-page .ledger-cost-table th:nth-child(1) { width: 9%; }
.biz-page .ledger-cost-table th:nth-child(2) { width: 15%; }
.biz-page .ledger-cost-table th:nth-child(3) { width: 14%; }
.biz-page .ledger-cost-table th:nth-child(4) { width: 32%; }
.biz-page .ledger-cost-table th:nth-child(5) { width: 12%; }
.biz-page .ledger-cost-table th:nth-child(6) { width: 18%; }
.biz-page .ledger-cost-table th, .biz-page .ledger-cost-table td { padding-left: 8px; padding-right: 8px; }
.biz-page .ledger-cost-table .ledger-notes { white-space: normal; line-height: 1.45; word-break: break-all; }
.biz-page .ledger-cost-table td:nth-child(3) { white-space: normal; line-height: 1.35; word-break: break-all; }
.cost-pay-amount { width: 88px; min-width: 88px; padding-left: 8px; padding-right: 8px; }
.cost-pay-amount::-webkit-inner-spin-button, .cost-pay-amount::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cost-pay-amount { -moz-appearance: textfield; appearance: textfield; }

/* 权限分配：按模块分组 */
.permission-groups { display: flex; flex-direction: column; gap: 10px; }
.permission-group { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; background: #fff; }
.permission-group-head { padding: 8px 12px; background: #f3f4f6; font-size: 13px; font-weight: 600; color: #374151; }
.permission-group .permission-grid { border: 0; padding: 10px 12px; background: #fff; }

/* 出纳整单审核：订单一行，收入/支出/已付/待付 */
.biz-page .finance-cashier-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.biz-page .finance-cashier-table th:nth-child(1) { width: 13%; }
.biz-page .finance-cashier-table th:nth-child(2) { width: 9%; }
.biz-page .finance-cashier-table th:nth-child(3) { width: 10%; }
.biz-page .finance-cashier-table th:nth-child(4) { width: 10%; }
.biz-page .finance-cashier-table th:nth-child(5) { width: 9%; }
.biz-page .finance-cashier-table th:nth-child(6) { width: 16%; }
.biz-page .finance-cashier-table th:nth-child(7) { width: 9%; }
.biz-page .finance-cashier-table th:nth-child(8) { width: 24%; }
.biz-page .finance-cashier-table th,
.biz-page .finance-cashier-table td { padding-left: 8px; padding-right: 8px; white-space: normal; vertical-align: middle; }
.biz-page .finance-cashier-table td:nth-child(1),
.biz-page .finance-cashier-table td:nth-child(2),
.biz-page .finance-cashier-table td:nth-child(4),
.biz-page .finance-cashier-table td:nth-child(5) { white-space: nowrap; }
.biz-page .finance-cashier-table .finance-income,
.biz-page .finance-cashier-table .finance-expense { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.biz-page .finance-cashier-table .finance-income { color: #047857; }
.biz-page .finance-cashier-table .finance-expense { color: #b42318; }
.biz-page .finance-cashier-table .cashier-item-list { display: flex; flex-direction: column; gap: 6px; }
.biz-page .finance-cashier-table .cashier-item { padding-bottom: 5px; border-bottom: 1px dashed #e5e7eb; }
.biz-page .finance-cashier-table .cashier-item:last-child { padding-bottom: 0; border-bottom: 0; }
.biz-page .finance-cashier-table .cashier-item .perf-muted { margin-top: 2px; line-height: 1.35; word-break: break-all; }
.biz-page .finance-cashier-table .cashier-actions { display: flex; flex-direction: column; gap: 5px; }
.biz-page .finance-cashier-table .cashier-inline-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.biz-page .finance-cashier-table .cashier-inline-form .form-control { width: 118px !important; height: 30px; padding: 4px 8px; font-size: 13px; }
.biz-page .finance-cashier-table .cashier-inline-form .btn { flex: 0 0 auto; height: 30px; padding: 4px 10px; font-size: 13px; }
.biz-page .cashier-receipt-table .cashier-inline-form { display: flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }
.biz-page .cashier-receipt-table .cashier-inline-form .form-control { width: 112px !important; height: 30px; padding: 4px 8px; font-size: 13px; }
.biz-page .cashier-receipt-table .cashier-inline-form .btn { flex: 0 0 auto; height: 30px; padding: 4px 10px; font-size: 13px; }

/* 订单必填标记与字段内联错误 */
.required-mark { color: #dc2626; font-weight: 600; margin-left: 2px; }
.required-label::after { content: '*'; color: #dc2626; font-weight: 600; margin-left: 2px; }
.order-field .form-control.is-invalid,
.order-field .drp.is-invalid .drp-trigger {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
    background-color: #fffafa;
}
.order-field .order-picker.is-invalid .form-control { border-color: #dc2626 !important; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12); }
.order-field-error { margin-top: 5px; color: #b42318; font-size: 13px; line-height: 1.45; }

/* 学历提升提成：重点标红 */
.commission-highlight label { color: #dc2626; font-weight: 700; }
.order-page.biz-page .commission-highlight > label { color: #dc2626; font-weight: 700; }
.commission-highlight .form-control { border: 2px solid #dc2626; background: #fff5f5; }
.commission-highlight .form-control:focus { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14); }


/* 工资结算单 */
.payroll-statement {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 34px 24px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    color: #1f2937;
    font-size: 13px;
    line-height: 1.6;
}
.payroll-statement .ps-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 3px double #cbd5e1;
}
.payroll-statement .ps-head h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 6px;
    color: #0f172a;
}
.payroll-statement .ps-sub {
    margin-top: 6px;
    color: #64748b;
}
.payroll-statement .ps-head-right {
    min-width: 230px;
    text-align: right;
    color: #475569;
    line-height: 1.9;
}
.payroll-statement .ps-status {
    display: inline-block;
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 600;
}
.payroll-statement .ps-status-preview { background: #f1f5f9; color: #475569; }
.payroll-statement .ps-status-draft { background: #fff7ed; color: #c2410c; }
.payroll-statement .ps-status-confirmed { background: #eff6ff; color: #1d4ed8; }
.payroll-statement .ps-status-paid { background: #ecfdf5; color: #047857; }
.payroll-statement .ps-info,
.payroll-statement .ps-summary,
.payroll-statement .ps-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.payroll-statement .ps-info th,
.payroll-statement .ps-info td {
    border: 1px solid #dfe5ee;
    padding: 7px 10px;
}
.payroll-statement .ps-info th {
    width: 82px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.payroll-statement .ps-summary td {
    width: 25%;
    border: 1px solid #dfe5ee;
    padding: 12px 14px;
    vertical-align: top;
}
.payroll-statement .ps-summary span,
.payroll-statement .ps-summary em {
    display: block;
    color: #64748b;
    font-style: normal;
    font-size: 12px;
}
.payroll-statement .ps-summary strong {
    display: block;
    margin: 3px 0;
    font-size: 21px;
    color: #0f172a;
}
.payroll-statement .ps-summary-net { background: #f0fdf4; }
.payroll-statement .ps-summary-net strong { color: #047857; }
.payroll-statement .ps-section-title {
    margin: 22px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #cbd5e1;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.payroll-statement .ps-section-title span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
    background: #1e3a8a;
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
}
.payroll-statement .ps-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    text-align: left;
}
.payroll-statement .ps-table th,
.payroll-statement .ps-table td {
    border: 1px solid #dfe5ee;
    padding: 7px 9px;
    vertical-align: middle;
}
.payroll-statement .ps-no { width: 42px; text-align: center; }
.payroll-statement .ps-amount { text-align: right; white-space: nowrap; }
.payroll-statement .ps-out { color: #b91c1c; }
.payroll-statement .ps-subtotal {
    background: #f8fafc;
    font-weight: 700;
}
.payroll-statement .ps-table-compact { font-size: 12px; }
.payroll-statement .ps-net-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 13px 16px;
    border: 2px solid #0f172a;
    background: #f8fafc;
}
.payroll-statement .ps-net-box span { display: block; font-size: 16px; font-weight: 700; }
.payroll-statement .ps-net-box small { color: #64748b; }
.payroll-statement .ps-net-box strong { font-size: 28px; color: #0f172a; }
.payroll-statement .ps-year-bonus {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px dashed #fdba74;
    background: #fffbf5;
}
.payroll-statement .ps-year-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}
.payroll-statement .ps-year-title { color: #9a3412; font-weight: 600; }
.payroll-statement .ps-year-range { margin-top: 2px; color: #9a3412; font-size: 11.5px; }
.payroll-statement .ps-year-total { text-align: right; }
.payroll-statement .ps-year-total span { display: block; color: #9a3412; font-size: 12px; }
.payroll-statement .ps-year-total strong { font-size: 18px; color: #c2410c; }
.payroll-statement .ps-year-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #fed7aa;
}
.payroll-statement .ps-year-item span { display: block; color: #9a3412; font-size: 12px; }
.payroll-statement .ps-year-item strong { font-size: 17px; color: #c2410c; }
.payroll-statement .ps-year-item em { font-size: 12px; font-style: normal; color: #ea580c; }
.payroll-statement .ps-year-detail { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #fed7aa; }
.payroll-statement .ps-year-detail-title { margin-bottom: 6px; color: #9a3412; font-size: 12px; font-weight: 600; }
.payroll-statement .ps-year-detail .ps-table { margin-top: 0; }
.payroll-statement .ps-year-detail .ps-table th { background: #fff7ed; color: #9a3412; }
.payroll-statement .ps-sign {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px 40px;
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid #cbd5e1;
}
.payroll-statement .ps-empty {
    padding: 10px 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #dfe5ee;
    text-align: center;
}
.payroll-statement .ps-generated {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 12px;
    border-top: 1px solid #cbd5e1;
    color: #475569;
}
.payroll-statement .ps-footnote {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}
.payroll-statement-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    max-width: 1120px;
    margin: 0 auto 10px;
}
.payroll-statement .ps-composition {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #dfe5ee;
    background: #f8fafc;
}
.payroll-statement .ps-comp-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 12.5px;
    line-height: 1.9;
    color: #475569;
}
.payroll-statement .ps-comp-line span { white-space: nowrap; }
.payroll-statement .ps-comp-line strong { color: #0f172a; }
.payroll-statement .ps-comp-line em { color: #94a3b8; font-style: normal; }
.payroll-statement .ps-comp-out strong { color: #b91c1c; }
.payroll-statement .ps-comp-total {
    margin-left: auto;
    padding-left: 12px;
    font-weight: 700;
    color: #0f172a;
}
.payroll-statement .ps-comp-total strong { color: #047857; font-size: 15px; }
.payroll-statement .ps-comp-note {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    color: #92400e;
    font-size: 11.5px;
}
@media print {
    .no-print,
    .sidebar,
    .admin-sidebar,
    .main-sidebar,
    .topbar,
    .navbar,
    .admin-header { display: none !important; }
    body { background: #fff !important; }
    .payroll-statement {
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
    .payroll-statement .ps-table-compact { font-size: 10.5px; }
    .payroll-statement .ps-table th,
    .payroll-statement .ps-table td { padding: 4px 6px; }
    @page { size: A4; margin: 12mm; }
}

/* 日报四卡：按参考图重做（在职圆环 / 今日状态 / 请假 / 外勤） */
.perf-hire-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
    align-items: stretch;
}
.perf-board-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    padding: 22px 24px 18px;
    border: 1px solid #edf2f5;
    border-radius: 20px;
    background: linear-gradient(160deg, #ffffff 0%, #fbfdfe 100%);
    box-shadow: 0 12px 30px rgba(21, 45, 65, 0.07);
    overflow: hidden;
}
.perf-hire-row > .perf-board-card {
    margin-top: 0;
}
.perf-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.perf-board-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.4px;
    color: #15212b;
}
.perf-board-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.perf-board-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #eafaf5;
}
.perf-board-icon svg {
    width: 20px;
    height: 20px;
}
.perf-board-meta {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f6f8;
    font-size: 12px;
    line-height: 1.3;
    color: #7d8b97;
    white-space: nowrap;
}
.perf-board-meta.is-ok {
    background: #e9f9f3;
    color: #169d78;
}
.perf-board-meta.is-warn {
    background: #fff7e8;
    color: #c47a18;
}
.perf-board-meta.is-muted {
    background: #f3f5f7;
    color: #8b98a4;
}
.perf-board-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f4f6;
    font-size: 13px;
    line-height: 1.5;
    color: #8a97a3;
    text-align: center;
}

/* 在职时长：圆环 */
.perf-tenure-visual {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.perf-tenure-ring {
    display: block;
    width: min(100%, 228px);
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(20, 160, 125, 0.1));
}
.perf-tenure-center {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.perf-tenure-number {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.perf-tenure-center strong {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    color: #173b34;
    font-variant-numeric: tabular-nums;
}
.perf-tenure-center span {
    font-size: 16px;
    font-weight: 600;
    color: #55776f;
}
.perf-tenure-commute {
    width: 98px;
    height: 42px;
    margin-top: 1px;
}
.perf-tenure-commute svg {
    display: block;
    width: 100%;
    height: auto;
}
.perf-commute-walker {
    transform-box: view-box;
    transform-origin: 38px 33px;
    animation: perfCommuteBob 1.5s ease-in-out infinite;
}
.perf-commute-leg-front {
    transform-box: view-box;
    transform-origin: 41px 33px;
    animation: perfCommuteLegFront 0.8s ease-in-out infinite alternate;
}
.perf-commute-leg-back {
    transform-box: view-box;
    transform-origin: 37px 33px;
    animation: perfCommuteLegBack 0.8s ease-in-out infinite alternate;
}
.perf-commute-bag {
    transform-box: view-box;
    transform-origin: 52px 28px;
    animation: perfCommuteBag 0.8s ease-in-out infinite alternate;
}
.perf-commute-motion {
    animation: perfCommuteMotion 1.4s ease-in-out infinite;
}
@keyframes perfCommuteBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.6px); }
}
@keyframes perfCommuteLegFront {
    from { transform: rotate(12deg); }
    to { transform: rotate(-13deg); }
}
@keyframes perfCommuteLegBack {
    from { transform: rotate(-11deg); }
    to { transform: rotate(12deg); }
}
@keyframes perfCommuteBag {
    from { transform: rotate(-3deg); }
    to { transform: rotate(4deg); }
}
@keyframes perfCommuteMotion {
    0%, 100% { transform: translateX(0); opacity: 0.65; }
    50% { transform: translateX(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .perf-commute-walker,
    .perf-commute-leg-front,
    .perf-commute-leg-back,
    .perf-commute-bag,
    .perf-commute-motion {
        animation: none;
    }
}

/* 今日日报 */
.perf-daily-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    padding: 8px 0 6px;
}
.perf-daily-status-wrap {
    min-width: 0;
    flex: 1;
}
.perf-daily-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(36px, 3vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
}
.perf-daily-status.is-ok { color: #0fa77f; }
.perf-daily-status.is-bad { color: #df4b4b; }
.perf-daily-status.is-muted { color: #53616c; }
.perf-daily-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e8f8f2;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
    color: #12a77f;
}
.perf-daily-status.is-bad .perf-daily-mark {
    background: #fdeeee;
    color: #df4b4b;
}
.perf-daily-status.is-muted .perf-daily-mark {
    background: #f2f5f7;
    color: #8895a0;
}
.perf-daily-caption {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #7d8a95;
}
.perf-daily-paper {
    flex: 0 0 82px;
    width: 82px;
    margin-top: 2px;
    opacity: 0.95;
}
.perf-daily-paper svg {
    display: block;
    width: 100%;
    height: auto;
}
.perf-daily-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
}
.perf-daily-metrics > div {
    padding: 11px 12px;
    border-radius: 12px;
    background: #f6fafb;
}
.perf-daily-metrics label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: #7f8d98;
}
.perf-daily-metrics strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #20303b;
    font-variant-numeric: tabular-nums;
}
.perf-daily-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #53616c;
}
.perf-daily-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #aab6c0;
}
.perf-daily-note.is-ok { color: #0e9b76; }
.perf-daily-note.is-ok .perf-daily-dot { background: #17b890; }
.perf-daily-note.is-bad { color: #d64545; }
.perf-daily-note.is-bad .perf-daily-dot { background: #df4b4b; }

/* 请假 / 外勤表单 */
.perf-board-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 9px;
    border: 1px solid #e4f3ee;
    border-radius: 8px;
    background: #f7fbfa;
}
.perf-board-inline-text {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    color: #4e6c63;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.perf-board-inline form {
    flex: 0 0 auto;
    margin: 0;
}
.perf-board-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 11px;
    margin: 0;
}
.perf-board-field {
    min-width: 0;
    margin: 0;
}
.perf-board-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    color: #5e6c78;
}
.perf-board-field .form-control,
.perf-board-field select.form-control {
    width: 100%;
    max-width: none;
    height: 40px;
    padding: 8px 10px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    color: #26343f;
    box-sizing: border-box;
}
.perf-board-field .drp,
.perf-board-field .drp--single {
    width: 100%;
}
.perf-board-field .drp-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}
.perf-board-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}
.perf-board-submit {
    align-self: flex-end;
    min-width: 104px;
    height: 38px;
    margin-top: auto;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.perf-board-form .btn-primary.perf-board-submit {
    background: #1f6fff;
    border-color: #1f6fff;
    color: #ffffff;
}
.perf-board-form .btn-primary.perf-board-submit:hover {
    background: #165fe0;
    border-color: #165fe0;
}

@media (max-width: 1500px) {
    .perf-hire-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .perf-board-card {
        min-height: 400px;
    }
}
@media (max-width: 720px) {
    .perf-hire-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .perf-board-card {
        min-height: auto;
        padding: 18px;
    }
    .perf-tenure-visual {
        min-height: 240px;
    }
    .perf-tenure-center strong {
        font-size: 48px;
    }
    .perf-daily-status {
        font-size: 40px;
    }
}

.perf-tenure-center strong.is-empty {
    font-size: 24px;
    letter-spacing: 0;
    color: #8fa1ab;
}

.perf-board-card {
    container-type: inline-size;
}
@container (max-width: 300px) {
    .perf-daily-paper {
        display: none;
    }
    .perf-board-head--icon .perf-board-meta {
        display: none;
    }
    .perf-board-title {
        font-size: 18px;
    }
    .perf-board-icon {
        width: 28px;
        height: 28px;
    }
    .perf-daily-status {
        font-size: 36px;
        letter-spacing: -1px;
    }
    .perf-daily-mark {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* ===== 我的日报：单屏总览布局 =====
   目标：1920×1080 / 1440×900 下不出现整页滚动，日报明细在卡片内滚动。 */
.perf-daily-page {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    overflow: hidden;
}

.perf-daily-page .perf-monthbar {
    flex: 0 0 auto;
    margin: 0;
}

.perf-daily-page .perf-summary {
    flex: 0 0 auto;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.perf-daily-page .perf-summary-item {
    min-width: 0;
    padding: 9px 11px;
    border-radius: 9px;
}

.perf-daily-page .perf-summary-item label {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perf-daily-page .perf-summary-item strong {
    margin-top: 3px;
    font-size: 17px;
    line-height: 1.2;
}

.perf-daily-middle {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 14px;
    min-height: 0;
}

.perf-daily-middle .perf-grid--compact {
    display: contents;
}

.perf-daily-middle .perf-grid--compact > .perf-card:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
}

.perf-daily-middle .perf-hire-row {
    grid-column: 2 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    align-items: stretch;
}

.perf-daily-middle .perf-hire-row > .perf-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.perf-daily-middle .perf-history-readonly {
    grid-column: 1;
    grid-row: 1;
}

.perf-daily-middle .perf-history-bar {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
}

.perf-daily-middle .perf-board-card {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(21, 45, 65, 0.05);
}

.perf-daily-middle .perf-board-head {
    margin-bottom: 10px;
}

.perf-daily-middle .perf-board-title {
    font-size: 16px;
    letter-spacing: 0;
}

.perf-daily-middle .perf-board-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.perf-daily-middle .perf-board-icon svg {
    width: 16px;
    height: 16px;
}

.perf-daily-middle .perf-board-foot {
    display: none;
}

.perf-daily-middle .perf-hire-card .perf-board-foot,
.perf-daily-middle .perf-today-report-card .perf-board-foot {
    display: block;
    margin-top: auto;
    padding-top: 10px;
    color: #8794a4;
    font-size: 12px;
}

.perf-daily-middle .perf-board-meta {
    padding: 4px 8px;
    font-size: 12px;
}

.perf-daily-middle .perf-board-head--icon .perf-board-meta {
    display: inline-block;
}

/* 在职时长：只保留小圆环和天数 */
.perf-daily-middle .perf-tenure-visual {
    flex: 1 1 auto;
    height: auto;
    min-height: 88px;
    align-items: center;
    justify-content: center;
}

.perf-daily-middle .perf-tenure-ring {
    width: 196px;
}

.perf-daily-middle .perf-tenure-center {
    top: 50%;
}

.perf-daily-middle .perf-tenure-center strong {
    font-size: 48px;
    letter-spacing: -1px;
}

.perf-daily-middle .perf-tenure-center strong.is-empty {
    font-size: 22px;
    letter-spacing: 0;
}

.perf-daily-middle .perf-tenure-center span {
    font-size: 15px;
}

.perf-daily-middle .perf-tenure-commute {
    display: block;
    width: 88px;
    height: 38px;
}

/* 今日日报：压缩成状态 + 两个指标 */
.perf-daily-middle .perf-daily-hero {
    flex: 1;
    padding: 0;
}

.perf-daily-middle .perf-daily-status {
    gap: 6px;
    font-size: 30px;
    letter-spacing: -1px;
}

.perf-daily-middle .perf-daily-mark {
    width: 26px;
    height: 26px;
    font-size: 16px;
}

.perf-daily-middle .perf-daily-caption {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.perf-daily-middle .perf-daily-paper {
    flex-basis: 44px;
    width: 44px;
}

.perf-daily-middle .perf-daily-metrics {
    gap: 8px;
    margin-top: 7px;
    padding-top: 0;
}

.perf-daily-middle .perf-daily-metrics > div {
    padding: 6px 9px;
    border-radius: 8px;
}

.perf-daily-middle .perf-daily-metrics label {
    margin-bottom: 2px;
    font-size: 11px;
}

.perf-daily-middle .perf-daily-metrics strong {
    font-size: 15px;
}

.perf-daily-middle .perf-daily-note {
    margin-top: 5px;
    font-size: 12px;
}

/* 请假 / 外勤：默认收起为一行，点开再填 */
.perf-board-details {
    margin-top: auto;
}

.perf-board-details > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #dfe8ef;
    border-radius: 7px;
    background: #fff;
    color: #1f6fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    list-style: none;
    cursor: pointer;
}

.perf-board-details > summary::-webkit-details-marker {
    display: none;
}

.perf-board-details[open] > summary {
    border-color: #bcd3ff;
    background: #eef4ff;
}

.perf-board-help {
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #f6f9fc;
    color: #6b7a8d;
    font-size: 12px;
    line-height: 1.55;
}

.perf-board-details[open] > .perf-board-help {
    animation: perf-board-reveal 0.24s ease both;
}

.perf-board-details[open] > .perf-board-form {
    animation: perf-board-reveal 0.24s ease 0.04s both;
}

@keyframes perf-board-reveal {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.perf-board-details[open] .perf-board-form {
    margin-top: 8px;
}

.perf-daily-middle .perf-board-form {
    gap: 8px;
}

.perf-daily-middle .perf-board-field label {
    margin-bottom: 3px;
    font-size: 12px;
}

.perf-daily-middle .perf-board-field .form-control,
.perf-daily-middle .perf-board-field .drp-trigger {
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
}

.perf-daily-middle .perf-board-row {
    gap: 8px;
}

.perf-daily-middle .perf-board-submit {
    min-width: 88px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

/* 今日填报：4 列压成两行 */
.perf-daily-middle .perf-grid--compact > .perf-card {
    min-height: 0;
    padding: 14px;
    border-radius: 12px;
}

.perf-daily-middle .perf-grid--compact .perf-card-head {
    margin-bottom: 8px;
}

.perf-daily-middle .perf-form-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 12px;
}

.perf-daily-middle .perf-form-grid > .perf-field:last-child {
    grid-column: span 2;
}

.perf-daily-middle .perf-field label {
    margin-bottom: 3px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perf-daily-middle .perf-field .form-control {
    height: 33px;
    padding: 4px 8px;
    font-size: 13px;
}

.perf-daily-middle .perf-wechat-hint {
    display: none;
}

.perf-daily-middle .perf-score-box {
    margin-top: 7px;
    padding: 7px 9px;
    font-size: 12px;
}

.perf-daily-middle .perf-form-actions {
    margin-top: 8px;
}

.perf-daily-middle .perf-form-actions .btn {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

.perf-daily-middle .perf-month-card {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 14px 16px;
}

.perf-daily-middle .perf-month-card .perf-month-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.perf-daily-middle .perf-month-card .perf-ring {
    flex: 0 0 110px;
    width: 110px;
    margin: 0 auto;
}

.perf-daily-middle .perf-month-card .perf-ring svg {
    width: 110px;
    height: 110px;
}

.perf-daily-middle .perf-month-card .perf-ring-center strong {
    font-size: 18px;
}

.perf-daily-middle .perf-month-card .perf-ring-center span {
    font-size: 11px;
}

.perf-daily-middle .perf-month-card .perf-ring-caption {
    display: none;
}

.perf-daily-middle .perf-month-card .perf-month-facts {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
}

.perf-daily-middle .perf-month-card .perf-month-facts > div {
    min-width: 0;
    padding: 7px 9px;
    border-radius: 8px;
    background: #f7f9fc;
}

.perf-daily-middle .perf-month-card .perf-month-facts span {
    display: block;
    overflow: hidden;
    color: #7b8798;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perf-daily-middle .perf-month-card .perf-month-facts strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perf-daily-middle .perf-month-card .perf-month-note {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 8px;
    color: #7b8798;
    font-size: 11px;
    line-height: 1.45;
}

/* 日报明细：卡片内部滚动，表头固定 */
.perf-daily-page .perf-daily-table {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 130px;
    padding: 11px 14px;
    margin: 0;
    overflow: hidden;
}

.perf-daily-page .perf-daily-table .perf-card-head {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.perf-daily-page .perf-daily-table .admin-list-scroll {
    flex: 1;
    min-height: 0;
}

.perf-daily-page .perf-daily-table .table th,
.perf-daily-page .perf-daily-table .table td {
    padding: 7px 9px;
    font-size: 13px;
}

.perf-daily-page .perf-daily-table .table th:last-child,
.perf-daily-page .perf-daily-table .table td:last-child {
    min-width: 56px;
    width: 56px;
    max-width: 56px;
}

.perf-daily-page .perf-daily-table .perf-note-line {
    flex: 0 0 auto;
    margin-top: 6px;
    font-size: 11px;
}

@media (max-width: 1500px) {
    .perf-daily-page .perf-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .perf-daily-middle {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .perf-daily-middle .perf-form-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-height: 820px) and (min-width: 1181px) {
    .perf-daily-page {
        gap: 10px;
    }

    .perf-daily-page .perf-summary {
        gap: 8px;
    }

    .perf-daily-middle {
        gap: 12px;
    }

    .perf-daily-middle .perf-board-card {
        padding: 12px 14px;
    }

    .perf-daily-middle .perf-grid--compact > .perf-card {
        padding: 12px;
    }

    .perf-daily-middle .perf-form-grid {
        gap: 8px 10px;
    }

    .perf-daily-page .perf-daily-table {
        min-height: 96px;
        padding: 9px 12px;
    }
}

@media (max-width: 1180px) {
    .perf-daily-page {
        overflow: auto;
    }

    .perf-daily-middle {
        grid-template-columns: minmax(0, 1fr);
    }

    .perf-daily-middle .perf-grid--compact > .perf-card:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .perf-daily-middle .perf-month-card {
        grid-column: 1;
        grid-row: 2;
        height: auto;
    }

    .perf-daily-middle .perf-hire-row {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .perf-daily-middle .perf-hire-row > .perf-card {
        height: auto;
    }

    .perf-daily-middle .perf-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .perf-daily-middle .perf-form-grid > .perf-field:last-child {
        grid-column: auto;
    }

    .perf-daily-page .perf-daily-table {
        flex: 0 0 auto;
        min-height: 420px;
    }
}

/* 我的日报：恢复参考图的四卡横排，只压缩中间卡片高度和内容字号 */
.perf-daily-page {
    display: block;
    flex: none;
    min-height: 0;
    gap: 0;
    overflow: visible;
}

.perf-daily-page .perf-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.perf-daily-page .perf-summary-item {
    padding: 10px 12px;
    border-radius: 9px;
}

.perf-daily-page .perf-summary-item label {
    font-size: 12px;
}

.perf-daily-page .perf-summary-item strong {
    margin-top: 3px;
    font-size: 18px;
}

.perf-daily-middle {
    display: block;
    min-height: 0;
}

.perf-daily-middle .perf-hire-row {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    align-items: stretch;
}

.perf-daily-middle .perf-hire-row > .perf-card {
    height: auto;
    display: flex;
    flex-direction: column;
}

.perf-daily-middle .perf-grid--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.perf-daily-middle .perf-grid--compact > .perf-card:first-child {
    grid-column: auto;
    grid-row: auto;
}

.perf-daily-middle .perf-month-card {
    grid-column: auto;
    grid-row: auto;
    height: auto;
}

.perf-daily-middle .perf-history-readonly,
.perf-daily-middle .perf-history-bar {
    grid-column: auto;
    grid-row: auto;
}

.perf-daily-middle .perf-board-card {
    min-height: 260px;
    padding: 12px 14px 14px;
    border-radius: 14px;
}

.perf-daily-middle .perf-board-head {
    margin-bottom: 6px;
}

.perf-daily-middle .perf-board-title {
    font-size: 16px;
    letter-spacing: -0.2px;
}

.perf-daily-middle .perf-board-icon {
    width: 24px;
    height: 24px;
}

.perf-daily-middle .perf-board-icon svg {
    width: 16px;
    height: 16px;
}

.perf-daily-middle .perf-board-meta {
    padding: 2px 7px;
    font-size: 10px;
}

.perf-daily-middle .perf-hire-card .perf-board-foot,
.perf-daily-middle .perf-today-report-card .perf-board-foot {
    padding-top: 6px;
    font-size: 10px;
}

.perf-daily-middle .perf-tenure-visual {
    min-height: 130px;
}

.perf-daily-middle .perf-tenure-ring {
    width: 136px;
}

.perf-daily-middle .perf-tenure-center strong {
    font-size: 36px;
    letter-spacing: -0.6px;
}

.perf-daily-middle .perf-tenure-center span {
    font-size: 12px;
}

.perf-daily-middle .perf-tenure-commute {
    width: 62px;
    height: 27px;
    margin-top: 0;
}

.perf-daily-middle .perf-daily-hero {
    padding: 0;
}

.perf-daily-middle .perf-daily-status {
    font-size: 28px;
    letter-spacing: -0.6px;
}

.perf-daily-middle .perf-daily-mark {
    width: 22px;
    height: 22px;
    font-size: 14px;
}

.perf-daily-middle .perf-daily-caption {
    margin-top: 3px;
    font-size: 11px;
}

.perf-daily-middle .perf-daily-paper {
    flex-basis: 46px;
    width: 46px;
}

.perf-daily-middle .perf-daily-metrics {
    margin-top: 5px;
    padding-top: 0;
}

.perf-daily-middle .perf-daily-metrics > div {
    padding: 5px 8px;
    border-radius: 7px;
}

.perf-daily-middle .perf-daily-metrics label {
    margin-bottom: 1px;
    font-size: 10px;
}

.perf-daily-middle .perf-daily-metrics strong {
    font-size: 15px;
}

.perf-daily-middle .perf-daily-note {
    margin-top: 3px;
    font-size: 10px;
}

.perf-daily-middle .perf-board-details > summary {
    height: 24px;
    padding: 0 10px;
    font-size: 11px;
}

.perf-daily-middle .perf-board-help {
    margin-top: 4px;
    padding: 5px 7px;
    font-size: 10px;
    line-height: 1.35;
}

.perf-daily-middle .perf-board-details[open] .perf-board-form {
    margin-top: 4px;
}

.perf-daily-middle .perf-board-form {
    gap: 4px;
}

.perf-daily-middle .perf-board-field label {
    margin-bottom: 1px;
    font-size: 10px;
}

.perf-daily-middle .perf-board-field .form-control,
.perf-daily-middle .perf-board-field .drp-trigger {
    height: 29px;
    padding: 2px 7px;
    font-size: 11px;
}

.perf-daily-middle .perf-board-row {
    gap: 6px;
}

.perf-daily-middle .perf-board-submit {
    height: 25px;
    min-width: 76px;
    padding: 0 9px;
    font-size: 11px;
}

.perf-daily-middle .perf-grid--compact > .perf-card {
    padding: 12px 14px;
}

.perf-daily-middle .perf-form-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 10px;
}

.perf-daily-middle .perf-field label {
    font-size: 11px;
}

.perf-daily-middle .perf-field .form-control {
    height: 31px;
    font-size: 12px;
}

.perf-daily-middle .perf-score-box {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 11px;
}

.perf-daily-middle .perf-form-actions {
    margin-top: 6px;
}

.perf-daily-middle .perf-form-actions .btn {
    height: 30px;
    font-size: 12px;
}

.perf-daily-page .perf-daily-table {
    display: block;
    flex: none;
    min-height: 150px;
}

.perf-daily-page .perf-daily-table .admin-list-scroll {
    max-height: 320px;
}

@media (max-width: 1500px) {
    .perf-daily-middle .perf-hire-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 1180px) {
    /* 中间四张卡必须保持一排四个，只让下方填报区改为单列 */
    .perf-daily-middle .perf-hire-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .perf-daily-middle .perf-grid--compact {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 合作提醒：操作列收窄，避免右侧固定列遮住提醒事项 */
.expiry-list-scroll .table th:last-child,
.expiry-list-scroll .table td:last-child {
    min-width: 92px !important;
    width: 92px !important;
    max-width: 92px !important;
    padding-left: 8px;
    padding-right: 8px;
}
