/* ===== 全局变量 ===== */
:root {
    --primary: #1ab394;
    --primary-dark: #18a689;
    --header-bg: #1ab394;
    --sidebar-bg: #2f4050;
    --sidebar-hover: #293846;
    --sidebar-active: #19aa8d;
    --text-dark: #333;
    --text-muted: #888;
    --border: #e7eaec;
    --bg-light: #f3f3f4;
    --danger: #ed5565;
    --warning: #f8ac59;
    --info: #23c6c8;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== 登录页 ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    position: relative;
    overflow: hidden;
}

.dashou-join-page {
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 28px 0 48px;
}

.dashou-join-page.dashou-join-page--success {
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.dashou-join-page.dashou-join-page--success .dashou-join-box {
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.login-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 0 24px;
    text-align: center;
}

.login-box h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #81c995;
    letter-spacing: 0.5px;
}

.login-box .subtitle {
    font-size: 14px;
    color: #9aa0a6;
    margin-bottom: 36px;
}

.login-alt-link {
    margin-top: 20px;
    font-size: 13px;
}

.login-alt-link a {
    color: #81c995;
    text-decoration: none;
}

.login-alt-link a:hover {
    text-decoration: underline;
}

.dashou-join-box {
    max-width: 560px;
    width: 100%;
    padding: 24px 20px 40px;
    text-align: left;
}

.dashou-join-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 32px 28px 28px;
}

.dashou-join-card--success {
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashou-join-card--success #dashouJoinMain {
    display: none !important;
}

.dashou-join-head {
    text-align: center;
    margin-bottom: 8px;
}

.dashou-join-page .dashou-join-head h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.dashou-join-page .dashou-join-head .subtitle {
    font-size: 15px;
    margin-bottom: 0;
}

.dashou-join-tip {
    font-size: 14px;
    margin: 18px 0 24px;
    text-align: center;
    color: #80868b;
    line-height: 1.6;
}

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

.dashou-join-form .form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #3c4043;
}

.dashou-join-form .form-control {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 10px;
    color: #202124;
    font-size: 16px;
    padding: 14px 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.dashou-join-form .form-control:focus {
    border-color: #81c995;
    box-shadow: 0 0 0 3px rgba(129, 201, 149, 0.18);
}

.dashou-join-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6368' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.dashou-join-avatar-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dashou-join-avatar-preview {
    position: relative;
    width: 96px;
    height: 96px;
    padding: 0;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e8eaed;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
}

.dashou-join-avatar-preview:hover {
    box-shadow: 0 0 0 4px rgba(129, 201, 149, 0.22);
    transform: scale(1.02);
}

.dashou-join-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dashou-join-avatar-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 4px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.dashou-join-avatar-input {
    display: none;
}

.dashou-join-avatar-tip {
    margin: 0;
    font-size: 13px;
    color: #80868b;
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
}

.dashou-join-gender-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dashou-join-gender-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.dashou-join-gender-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashou-join-gender-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    background: #fff;
    color: #3c4043;
    font-size: 16px;
    font-weight: 500;
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}

.dashou-join-gender-option input:checked + span {
    border-color: #81c995;
    background: rgba(129, 201, 149, 0.12);
    color: #1e8e3e;
    box-shadow: 0 0 0 3px rgba(129, 201, 149, 0.18);
}

.dashou-join-file-btn {
    display: none;
}

.dashou-join-file-name {
    display: none;
}

.dashou-join-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px 20px;
    font-size: 17px;
    border-radius: 999px;
}

.dashou-join-page .login-alt-link {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
}

.dashou-join-success-panel {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.dashou-join-card--success .dashou-join-success-panel {
    display: flex;
}

.dashou-join-success-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 48px 20px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #7b6cff 0%, #6e6bfe 55%, #6458f5 100%);
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(88, 72, 230, 0.35);
}

.dashou-join-success-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dashou-join-success-confetti span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0.9;
    animation: dashouJoinConfettiFloat 2.8s ease-in-out infinite;
}

.dashou-join-success-confetti span:nth-child(1) { top: 12%; left: 8%; background: #ffd54f; transform: rotate(18deg); animation-delay: 0s; }
.dashou-join-success-confetti span:nth-child(2) { top: 18%; left: 22%; background: #ff8a80; width: 6px; height: 10px; animation-delay: .2s; }
.dashou-join-success-confetti span:nth-child(3) { top: 8%; left: 38%; background: #81d4fa; animation-delay: .4s; }
.dashou-join-success-confetti span:nth-child(4) { top: 14%; left: 56%; background: #fff176; width: 10px; height: 6px; animation-delay: .1s; }
.dashou-join-success-confetti span:nth-child(5) { top: 10%; left: 72%; background: #f48fb1; animation-delay: .5s; }
.dashou-join-success-confetti span:nth-child(6) { top: 20%; left: 86%; background: #80cbc4; animation-delay: .3s; }
.dashou-join-success-confetti span:nth-child(7) { top: 28%; left: 14%; background: #ce93d8; width: 6px; height: 6px; border-radius: 50%; animation-delay: .6s; }
.dashou-join-success-confetti span:nth-child(8) { top: 24%; left: 48%; background: #ffab91; animation-delay: .15s; }
.dashou-join-success-confetti span:nth-child(9) { top: 30%; left: 64%; background: #fff59d; animation-delay: .45s; }
.dashou-join-success-confetti span:nth-child(10) { top: 26%; left: 80%; background: #90caf9; width: 7px; height: 7px; border-radius: 50%; animation-delay: .25s; }
.dashou-join-success-confetti span:nth-child(11) { top: 34%; left: 30%; background: #ef9a9a; animation-delay: .55s; }
.dashou-join-success-confetti span:nth-child(12) { top: 32%; left: 92%; background: #aed581; animation-delay: .35s; }

@keyframes dashouJoinConfettiFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
    50% { transform: translateY(-6px) rotate(12deg); opacity: 1; }
}

.dashou-join-success-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 20px;
}

.dashou-join-success-hands {
    width: 120px;
    height: 80px;
    margin: 0 auto 8px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.dashou-join-success-hands svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dashou-join-success-title {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #ffe566;
    text-shadow:
        3px 3px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        0 4px 0 rgba(255, 255, 255, 0.85),
        0 6px 14px rgba(74, 58, 200, 0.35);
}

.dashou-join-success-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: 36px 24px 28px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(58, 46, 160, 0.12);
}

.dashou-join-success-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe566 0%, #ffd028 100%);
    color: #3c2f00;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 0 #e6b800, 0 10px 24px rgba(255, 208, 40, 0.45);
    transition: transform .15s, box-shadow .15s;
}

.dashou-join-success-login:hover {
    color: #2a2100;
    transform: translateY(-1px);
    box-shadow: 0 7px 0 #e6b800, 0 12px 28px rgba(255, 208, 40, 0.5);
}

.dashou-join-success-login:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #e6b800, 0 6px 16px rgba(255, 208, 40, 0.35);
}

@media (max-width: 600px) {
    .dashou-join-card {
        padding: 24px 18px 22px;
        border-radius: 12px;
    }

    .dashou-join-page .dashou-join-head h2 {
        font-size: 28px;
    }

    .dashou-join-success-title {
        font-size: 34px;
    }

    .dashou-join-success-wrap {
        padding: 40px 16px 24px;
    }
}

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

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    padding: 12px 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #81c995;
    box-shadow: 0 0 0 2px rgba(129, 201, 149, 0.2);
}

.login-form input::placeholder { color: #bdc1c6; }

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5f6368;
    cursor: pointer;
    margin: 8px 0 24px;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #81c995;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    background: #81c995;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.btn-login:hover {
    background: #6ab87d;
}

.btn-login:disabled,
.btn-login.is-loading {
    cursor: wait;
    opacity: 0.92;
}

.btn-login.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-login.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authLoadingSpin .7s linear infinite;
}

.auth-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(245, 246, 248, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.auth-loading-overlay.is-show {
    opacity: 1;
    visibility: visible;
}

.auth-loading-card {
    text-align: center;
    padding: 30px 36px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    min-width: 168px;
    transform: translateY(8px) scale(0.98);
    transition: transform .28s ease;
}

.auth-loading-overlay.is-show .auth-loading-card {
    transform: translateY(0) scale(1);
}

.auth-loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 3px solid rgba(129, 201, 149, 0.22);
    border-top-color: #81c995;
    border-radius: 50%;
    animation: authLoadingSpin .75s linear infinite;
}

.auth-loading-text {
    margin: 0;
    font-size: 15px;
    color: #5f6368;
    letter-spacing: 0.2px;
}

@keyframes authLoadingSpin {
    to { transform: rotate(360deg); }
}

.login-error {
    background: #fce8e6;
    border: 1px solid #f5c6c2;
    color: #c5221f;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: left;
}

/* ===== 后台布局 ===== */
.admin-body { background: var(--bg-light); }

.admin-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--header-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.system-title {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
}

.logout-link {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    transition: all .2s;
}

.logout-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ===== 侧边栏 ===== */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 220px;
    height: calc(100vh - 56px);
    min-height: calc(100vh - 56px);
    background: var(--sidebar-bg);
    overflow-y: auto;
    transition: transform .3s;
    z-index: 900;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #a7b1c2;
    font-size: 14px;
    transition: all .2s;
    border-left: 3px solid transparent;
}

.nav-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.nav-item-icon-wrap {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-dot {
    position: absolute;
    top: -3px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #ff4d4f;
    border-radius: 50%;
    border: 1.5px solid #2f4050;
    box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.35);
    pointer-events: none;
}

.nav-dot.is-hidden {
    display: none;
}

.nav-item.active .nav-dot,
.nav-item:hover .nav-dot {
    border-color: #293846;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-item.active {
    background: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--sidebar-active);
}

.nav-group { border-left: 3px solid transparent; }
.nav-group.is-open { border-left-color: transparent; }
.nav-group-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.nav-group-chevron {
    margin-left: auto;
    transition: transform .2s;
    opacity: .75;
}
.nav-group.is-open .nav-group-chevron { transform: rotate(180deg); }
.nav-submenu {
    display: none;
    padding: 4px 0 8px;
    background: rgba(0, 0, 0, .12);
}
.nav-group.is-open .nav-submenu { display: block; }
.nav-subitem {
    display: block;
    padding: 10px 20px 10px 48px;
    color: #a7b1c2;
    font-size: 13px;
    transition: all .2s;
}
.nav-subitem:hover,
.nav-subitem.active {
    color: #fff;
    background: var(--sidebar-hover);
}

/* ===== 主内容区 ===== */
.main-content {
    margin-left: 220px;
    margin-top: 56px;
    padding: 20px;
    min-height: calc(100vh - 56px);
}

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 500;
}

.card-body { padding: 20px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    line-height: 1.4;
    text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #da4453; }
.btn-default { background: #fff; color: var(--text-dark); border: 1px solid var(--border); }
.btn-default:hover { background: var(--bg-light); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px 8px; }

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ===== 表格 ===== */
.table-wrap {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table th {
    background: #f5f5f6;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table .col-no { width: 115px; }
.data-table .col-check { width: 42px; }
.data-table .col-action { width: 100px; }
.data-table .col-action-wide { width: 130px; }
.data-table .col-money { width: 105px; }
.data-table .col-date { width: 95px; }
.data-table .col-name { width: 100px; }
.data-table .col-remark { white-space: normal; word-break: break-word; }

/* 仓库管理表格列宽 */
.data-table-warehouses {
    table-layout: fixed;
}

.data-table-warehouses col.col-check { width: 4%; }
.data-table-warehouses col.col-name { width: 24%; }
.data-table-warehouses col.col-qty { width: 11%; }
.data-table-warehouses col.col-warn { width: 12%; }
.data-table-warehouses col.col-action { width: 14%; }

.data-table-warehouses th,
.data-table-warehouses td {
    padding: 12px 18px;
}

.data-table-warehouses th.col-qty,
.data-table-warehouses td.col-qty-cell,
.data-table-warehouses td.text-right {
    padding-right: 24px;
}

.data-table-warehouses th.col-warn,
.data-table-warehouses td.col-warn-cell {
    padding-left: 20px;
    padding-right: 20px;
}

.data-table-warehouses th.col-action,
.data-table-warehouses td.actions {
    padding-left: 16px;
    padding-right: 16px;
}

.data-table-warehouses .warn-check-select {
    width: 80px;
    margin: 0 auto;
    display: block;
}

/* 库存列表：15 列等宽铺满，字段间距均匀 */
.data-table.data-table-inventory {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.data-table-inventory col.w-col {
    width: calc(100% / 15);
}

.data-table-inventory th,
.data-table-inventory td {
    width: calc(100% / 15);
    padding: 10px 6px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.data-table-inventory th.w-code,
.data-table-inventory td.w-code,
.data-table-inventory th.w-name,
.data-table-inventory td.w-name,
.data-table-inventory th.w-wh,
.data-table-inventory td.w-wh,
.data-table-inventory th.w-category,
.data-table-inventory td.w-category,
.data-table-inventory th.w-spec,
.data-table-inventory td.w-spec,
.data-table-inventory th.w-remark,
.data-table-inventory td.w-remark {
    text-align: left;
}

.data-table-inventory th.w-price,
.data-table-inventory td.w-price,
.data-table-inventory th.w-stock,
.data-table-inventory td.w-stock,
.data-table-inventory th.w-in-qty,
.data-table-inventory td.w-in-qty,
.data-table-inventory th.w-out-qty,
.data-table-inventory td.w-out-qty {
    text-align: right;
}

.data-table-inventory th.w-in-qty,
.data-table-inventory td.w-in-qty,
.data-table-inventory th.w-out-qty,
.data-table-inventory td.w-out-qty {
    padding-right: 12px;
}

.data-table-inventory th.w-out-qty,
.data-table-inventory td.w-out-qty {
    padding-right: 18px;
}

.data-table-inventory th.w-remark,
.data-table-inventory td.w-remark {
    padding-left: 18px;
}

.data-table-inventory .stock-qty-highlight {
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
}

.data-table-inventory .stock-qty-link.stock-qty-highlight {
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
}

.data-table-inventory .cell-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table-inventory td.actions,
.data-table-inventory th.w-action {
    overflow: visible;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

.data-table-inventory td.w-image,
.data-table-inventory th.w-image {
    text-align: center;
    vertical-align: middle;
    padding: 6px 4px;
}

.data-table-inventory td.w-image .product-thumb {
    display: block;
    margin: 0 auto;
}

/* 窄屏时横向滚动 */
@media (max-width: 1280px) {
    .table-wrap-inventory {
        overflow-x: auto;
    }
    .data-table.data-table-inventory {
        min-width: 1200px;
    }
}

/* 产品详情页 */
.page-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--primary);
}

.page-breadcrumb .sep {
    margin: 0 8px;
}

.product-detail-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.product-detail-main {
    flex: 1;
    min-width: 0;
}

.product-detail-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.product-detail-noimg {
    width: 120px;
    height: 120px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.product-detail-title {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--text-dark);
}

.product-detail-code {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 32px;
}

.product-detail-grid .label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-detail-grid .value {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.product-detail-grid .detail-full {
    grid-column: 1 / -1;
}

.product-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.filter-bar-inline {
    margin-bottom: 16px;
    padding: 18px 20px;
    border-top: none;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.product-detail-filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

a.btn-action {
    text-decoration: none;
}

@media (max-width: 1200px) {
    .product-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-detail-header {
        flex-direction: column;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

.product-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn .form-control {
    flex: 1;
}

.product-info-box {
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.product-info-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.product-info-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.product-info-noimg {
    width: 72px;
    height: 72px;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 20px;
    flex: 1;
}

.product-info-grid .label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.product-info-grid .value {
    font-size: 14px;
    color: var(--text);
}

.product-info-grid .stock-highlight {
    color: var(--primary);
    font-weight: 600;
}

.product-autocomplete {
    position: relative;
}

.product-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: 280px;
    overflow-y: auto;
}

.product-ac-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

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

.product-ac-item:hover,
.product-ac-item.active {
    background: #f0f7ff;
}

.product-ac-code {
    font-weight: 600;
    color: var(--text);
}

.product-ac-name {
    color: var(--text);
}

.product-ac-meta {
    font-size: 12px;
    color: var(--text-muted);
    width: 100%;
}

.product-ac-empty {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.stock-io-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stock-io-add-row {
    align-items: flex-end;
    margin-bottom: 16px;
}

.stock-io-add-row .form-group-btn {
    flex: 0 0 auto;
}

.stock-batch-empty {
    padding: 24px 0;
}

.stock-batch-table {
    margin-bottom: 16px;
}

.stock-batch-table-out {
    table-layout: fixed;
    width: 100%;
}

.stock-batch-table-out col.w-col {
    width: calc(100% / 11);
}

.stock-batch-table-in {
    table-layout: fixed;
    width: 100%;
}

.stock-batch-table-in col.w-col {
    width: calc(100% / 9);
}

.stock-batch-table .cell-editable {
    cursor: pointer;
}

.stock-batch-table .cell-editable:hover {
    background: #e8f5f1;
}

.stock-batch-table .cell-edit-input {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 6px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 13px;
}

.stock-batch-table .cell-edit-input.text-right {
    text-align: right;
}

.stock-batch-foot .stock-batch-summary td {
    background: #f5f5f6;
    font-weight: 600;
    border-top: 2px solid var(--border);
    padding: 12px 8px;
}

.stock-warn-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stock-warn-tip {
    font-size: 13px;
    white-space: nowrap;
}

.stock-warn-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.warn-check-select {
    width: 72px;
    min-height: 32px;
    padding: 4px 8px;
}

.form-control-inline {
    width: 96px;
    min-height: 32px;
    padding: 4px 8px;
}

.data-table-stock-history {
    table-layout: fixed;
}

.data-table-stock-history .cell-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
}

/* 历史结算列表 */
.table-wrap-settlement-history {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table-settlement-history {
    table-layout: fixed;
    width: 100%;
    min-width: 960px;
    font-size: 12px;
}

.data-table-settlement-history col.w-check { width: 34px; }
.data-table-settlement-history col.w-batch { width: 168px; }
.data-table-settlement-history col.w-nickname { width: 96px; }
.data-table-settlement-history col.w-count { width: 64px; }
.data-table-settlement-history col.w-duration { width: 96px; }
.data-table-settlement-history col.w-money { width: 88px; }
.data-table-settlement-history col.w-operator { width: 88px; }
.data-table-settlement-history col.w-remark { width: 120px; }
.data-table-settlement-history col.w-time { width: 148px; }
.data-table-settlement-history col.w-action { width: 108px; }

.data-table-settlement-history th,
.data-table-settlement-history td {
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.data-table-settlement-history th {
    font-size: 12px;
    font-weight: 600;
    padding: 9px 6px;
}

.data-table-settlement-history .batch-no {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
}

.data-table-settlement-history .batch-no.order-no-link {
    color: var(--primary);
}

.data-table-settlement-history .batch-no.order-no-link:hover {
    color: var(--primary);
}

.data-table-settlement-history .settlement-remark-cell {
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
    text-align: left;
    font-size: 12px;
}

.data-table-settlement-history .settlement-actual-amount {
    color: var(--danger);
    font-weight: 600;
}

.data-table-settlement-history td.actions {
    white-space: nowrap;
    overflow: visible;
}

.data-table-settlement-history td.actions .btn-action {
    padding: 4px;
}

.data-table-settlement-history td.actions .btn-action + .btn-action {
    margin-left: 2px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-in {
    background: #e8f8ef;
    color: #27ae60;
}

.badge-out {
    background: #fdecea;
    color: #e74c3c;
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

.status-badge-default {
    background: #f0f0f0;
    color: #666;
}

.status-badge-success {
    background: #e8f8ef;
    color: #27ae60;
}

.status-badge-danger {
    background: #fdecea;
    color: #e74c3c;
}

.status-badge-warning {
    background: #fef5e7;
    color: #e67e22;
}

.status-badge-info {
    background: #e8f4fd;
    color: #3498db;
}

.status-badge-primary {
    background: #eefaf7;
    color: #1ab394;
}

/* 双人/单人：深色标签 */
.report-mode-badge {
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 3px;
}

.report-mode-badge-single {
    background: #0d47a1;
    color: #fff;
}

.report-mode-badge-double {
    background: #e65100;
    color: #fff;
}

.report-mode-badge-triple {
    background: #00695c;
    color: #fff;
}

.report-mode-badge-quad,
.report-mode-badge-multi {
    background: #ad1457;
    color: #fff;
}

.report-mode-badge-other {
    background: #455a64;
    color: #fff;
}

.settings-levels-tip {
    margin: 0;
    flex: 1;
}

.dashou-level-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dashou-level-color-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashou-level-color-preview-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 14px;
    min-height: 36px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.btn-action-default-active {
    color: #f0ad4e;
    cursor: default;
}

.table-wrap-dashou:hover::-webkit-scrollbar {
    height: 12px;
}

.dashou-level-color-picker {
    width: 42px;
    height: 36px;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.dashou-level-plaque {
    --dl-light: #b8f0e4;
    --dl-mid: #1ab394;
    --dl-border: #7ad8c5;
    --dl-text: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    max-width: 140px;
    padding: 4px 14px;
    border-radius: 8px;
    border: 2px solid var(--dl-border);
    background: linear-gradient(180deg, var(--dl-light) 0%, var(--dl-mid) 78%);
    color: var(--dl-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -2px 5px rgba(0, 0, 0, 0.16),
        0 1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
    vertical-align: middle;
}

.status-switch {
    position: relative;
    display: inline-block;
}

.status-switch-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.status-switch-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 120px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 120;
    padding: 4px 0;
    text-align: left;
}

.status-switch.is-open .status-switch-menu:not(.is-fixed) {
    display: block;
}

.status-switch-menu.is-fixed {
    display: block;
}

.status-switch-option {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.status-switch-option:hover,
.status-switch-option.is-active {
    background: #1890ff;
    color: #fff;
}

.status-switch-option.status-option-warning { color: #e67e22; }
.status-switch-option.status-option-info { color: #3498db; }
.status-switch-option.status-option-success { color: #27ae60; }
.status-switch-option.status-option-danger { color: #e74c3c; }
.status-switch-option.status-option-default { color: #666; }

.status-switch-option.status-option-warning:hover,
.status-switch-option.status-option-info:hover,
.status-switch-option.status-option-success:hover,
.status-switch-option.status-option-danger:hover,
.status-switch-option.status-option-default:hover,
.status-switch-option.is-active {
    color: #fff;
}

.btn-link-qr {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link-qr:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .product-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 支出明细表（保留兼容） */
.data-table-expenses {
    table-layout: fixed;
}

.data-table-expenses .w-check { width: 42px; }
.data-table-expenses .w-no { width: 108px; }
.data-table-expenses .w-date { width: 88px; }
.data-table-expenses .w-summary { width: 16%; }
.data-table-expenses .w-type { width: 72px; }
.data-table-expenses .w-money { width: 96px; }
.data-table-expenses .w-dept { width: 72px; }
.data-table-expenses .w-budget-month { width: 80px; }
.data-table-expenses .w-account { width: 72px; }
.data-table-expenses .w-handler { width: 64px; }
.data-table-expenses .w-voucher { width: 72px; }
.data-table-expenses .w-remark { width: 12%; }
.data-table-expenses .w-action { width: 72px; }

.data-table-expenses th,
.data-table-expenses td {
    white-space: nowrap;
}

.data-table-expenses .cell-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
}

.data-table-expenses .expense-amount {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.table-wrap-dashou {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.data-table.data-table-dashou {
    width: 100%;
    min-width: 1180px;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table-dashou th,
.data-table-dashou td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table-dashou th.dashou-col-actions,
.data-table-dashou td.dashou-col-actions {
    position: sticky;
    right: 0;
    z-index: 6;
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
    background: #fff;
    box-shadow: -8px 0 12px rgba(0, 0, 0, 0.08);
}

.data-table-dashou thead th.dashou-col-actions {
    z-index: 8;
    background: #f5f5f6;
}

.data-table-dashou tbody tr:nth-child(even) td.dashou-col-actions {
    background: #fafafa;
}

.data-table-dashou tbody tr:hover td.dashou-col-actions {
    background: #f0f9f7;
}

.data-table-dashou td.dashou-actions {
    overflow: visible;
    white-space: nowrap;
}

.data-table-dashou td.dashou-col-actions .btn-action + .btn-action {
    margin-left: 4px;
}

.dashou-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.dashou-actions .btn-action {
    margin: 0;
    flex: 0 0 auto;
}
.btn-link-avatar {
    background: none;
    border: none;
    color: var(--primary, #1ab394);
    cursor: pointer;
    padding: 0;
    font-size: inherit;
}
.btn-link-avatar:hover { text-decoration: underline; }

.dashou-avatar-thumb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    vertical-align: middle;
}

.dashou-avatar-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.dashou-avatar-thumb-btn:hover .dashou-avatar-thumb {
    box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.25);
}

.commission-amount {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.order-no-link {
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.order-no-link:hover {
    text-decoration: underline;
}

.table-row-clickable {
    cursor: pointer;
}

.table-row-clickable:hover td {
    background: #f8fafc;
}

.table-row-clickable td.actions,
.table-row-clickable td.actions * {
    cursor: default;
}

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

.detail-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-list-item:first-child {
    padding-top: 0;
}

.detail-list-item .label {
    flex: 0 0 80px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-list-item .value {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    word-break: break-word;
}

.designer-stats-readonly {
    margin-bottom: 8px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.designer-stats-readonly .designer-stats-tip {
    margin: 0 0 12px;
    font-size: 12px;
}

.form-control-static {
    min-height: 38px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.data-table th.text-right,
.data-table td.text-right {
    text-align: right;
}

.data-table th.text-center,
.data-table td.text-center {
    text-align: center;
}

.data-table tbody tr:nth-child(even) { background: #fafafa; }
.data-table tbody tr:hover { background: #f0f9f7; }

/* 操作列勿对 td 使用 flex，否则会与行高错位出现多余横线 */
.data-table td.actions {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

.data-table td.actions .btn-action {
    display: inline-flex;
    vertical-align: middle;
}

.data-table td.actions .btn-action + .btn-action {
    margin-left: 6px;
}

.btn-action {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color .2s;
}

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

.btn-action.btn-action-danger:hover {
    color: var(--danger);
}

.btn-action.btn-action-warning:hover {
    color: #e67e22;
}

.system-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h4 {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    background: #fafafa;
}

.tab-nav-item {
    padding: 14px 24px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .2s;
}

.tab-nav-item:hover {
    color: var(--primary);
}

.tab-nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
    background: #fff;
}

.tab-panel {
    display: none;
}

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

.tab-panel-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.settings-block {
    margin-top: 8px;
    margin-bottom: 8px;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.form-stack .form-group {
    max-width: 520px;
}

.settings-block-title i {
    margin-right: 6px;
    color: #6b7280;
}

.quick-dashou-result-tip {
    margin-bottom: 10px;
}

.quick-dashou-result-text {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    resize: none;
    background: #f9fafb;
    color: #1f2937;
}

.settings-block-danger {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.settings-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.settings-block-danger.is-locked .data-maint-actions,
.settings-block-danger.is-locked .settings-tips {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.settings-desc-locked {
    color: #b45309;
}

.data-maint-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.data-maint-restore {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.data-maint-restore .form-control {
    width: 220px;
}

.settings-tips {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.btn-warning {
    background: #f0ad4e;
    border-color: #eea236;
    color: #fff;
}

.btn-warning:hover {
    background: #ec971f;
    border-color: #d58512;
    color: #fff;
}

.settings-block-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.settings-page-card .settings-page-header {
    padding-bottom: 0;
    border-bottom: none;
}

.settings-page-tabs {
    margin-bottom: 0;
}

.settings-log-filter {
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 16px;
    justify-content: flex-start;
}

.settings-log-filter-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.settings-log-filter-field label {
    margin: 0;
    white-space: nowrap;
}

.settings-log-filter-field .form-control {
    width: auto;
    min-width: 0;
    flex-shrink: 0;
}

.settings-log-filter-field input[type="text"].form-control {
    width: 180px;
    min-width: 180px;
    flex: 0 0 180px;
}

.settings-log-filter-field select.form-control {
    width: 110px;
    min-width: 110px;
}

.settings-log-filter-field input[type="date"].form-control {
    width: 148px;
    min-width: 148px;
}

.settings-log-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.data-table-system-logs td.system-log-summary {
    min-width: 240px;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 6px;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.logo-preview {
    margin-top: 10px;
}

.logo-preview img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px;
    background: #fff;
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--primary); }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    color: var(--text-dark);
    background: #fff;
}

.pagination a:hover { background: var(--bg-light); border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: 0.5; pointer-events: none; }

/* ===== 表单 ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group label .required { color: var(--danger); }

.dispatch-order-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    transition: border-color .2s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,179,148,.15);
}

.form-control-readonly,
.form-control[readonly] {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

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

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

/* ===== 模态框 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.modal-wide {
    max-width: 720px;
}

.modal-lg,
.modal-review-approve {
    max-width: 860px;
}

.review-approve-section {
    margin-bottom: 18px;
}

.review-approve-section:last-child {
    margin-bottom: 0;
}

.review-approve-section .dispatch-order-section-title {
    margin-bottom: 10px;
}

.review-approve-section .order-review-image-grid {
    margin-top: 0;
}

.modal-review-approve .modal-body {
    max-height: min(72vh, 720px);
    overflow-y: auto;
}

.table-wrap-dispatch-review {
    width: 100%;
}

.data-table-dispatch-review {
    width: 100% !important;
    min-width: 100% !important;
}

.budget-adjust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 16px;
}

@media (max-width: 640px) {
    .budget-adjust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.modal-header h3 { font-size: 16px; font-weight: 500; }

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-body { padding: 20px; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ===== 提示 ===== */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-success { background: #dff0d8; color: #3c763d; border: 1px solid #d6e9c6; }
.alert-error { background: #f2dede; color: #a94442; border: 1px solid #ebccd1; }
.alert-warning { background: #fcf8e3; color: #8a6d3b; border: 1px solid #faebcc; }

.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    max-width: min(360px, calc(100vw - 40px));
    align-items: flex-end;
    pointer-events: none;
}

.toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
    white-space: nowrap;
}

.toast.is-show {
    transform: translateX(0);
    opacity: 1;
}

.toast.is-hide {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
}

.toast-success { background: #19aa8d; }
.toast-error { background: #ed5565; }
.toast-warning { background: #f8ac59; color: #fff; }
.toast-info { background: #1ab394; }

@media (max-width: 768px) {
    .dashou-portal .toast-container {
        top: 62px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        align-items: center;
    }

    .dashou-portal .toast.is-show {
        transform: translateX(0);
    }

    .dashou-portal .toast.is-hide {
        transform: translateX(120%);
    }
}

.input-with-btn {
    display: flex;
    gap: 8px;
    align-items: center;
}
.input-with-btn .form-control { flex: 1; }
.dispatch-center-assign-mode { margin-top: 8px; }
.dispatch-center-dashou-box { margin-bottom: 16px; }
.dispatch-center-form .form-group {
    max-width: 480px;
    margin-bottom: 16px;
}
.dispatch-center-form .dispatch-multi-form-group {
    max-width: none;
    width: 100%;
}
.dispatch-center-form .form-actions {
    max-width: 480px;
}

.table-wrap-dispatch-hall {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.data-table-dispatch-hall {
    table-layout: auto;
    width: 100%;
    min-width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table-dispatch-hall.data-table-dispatch-review {
    width: 100%;
    min-width: 100%;
}

.data-table-dispatch-hall th,
.data-table-dispatch-hall td {
    padding: 11px 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    background: #fff;
}

.data-table-dispatch-hall th {
    font-size: 13px;
    font-weight: 600;
    padding: 12px 10px;
    background: #f5f5f6;
}

.data-table-dispatch-hall tbody tr:nth-child(even) td {
    background: #fafafa;
}

.data-table-dispatch-hall tbody tr:hover td {
    background: #f3f7ff;
}

.data-table-dispatch-hall td.col-players {
    white-space: normal;
    text-align: left;
    min-width: 140px;
    max-width: 280px;
    word-break: break-word;
    line-height: 1.45;
}

.data-table-dispatch-hall td.col-players.is-single {
    text-align: center;
}

.data-table-dispatch-hall td.col-time {
    white-space: nowrap;
    min-width: 168px;
}

.data-table-dispatch-hall td.col-money,
.data-table-dispatch-hall td.col-received,
.data-table-dispatch-hall td.col-commission {
    white-space: nowrap;
    min-width: 88px;
    font-variant-numeric: tabular-nums;
}

.hall-tip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.45);
    color: inherit;
}

.hall-tip-panel {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 160px;
    max-width: 320px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #212529;
    color: #fff;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.hall-tip-panel.is-open {
    opacity: 1;
    visibility: visible;
}

.hall-tip-line {
    display: block;
}

.data-table-dispatch-hall td.col-commission {
    overflow: visible;
}

.data-table-dispatch-hall td.col-received {
    overflow: visible;
    color: #e11d48;
    font-weight: 700;
}

.data-table-dispatch-hall td.col-received .hall-tip {
    color: #e11d48;
    font-weight: 700;
    border-bottom-color: rgba(225, 29, 72, 0.55);
}

.data-table-dispatch-hall td.text-right {
    text-align: right;
}

.data-table-dispatch-hall th.hall-col-actions,
.data-table-dispatch-hall td.hall-col-actions {
    position: sticky;
    right: 0;
    z-index: 6;
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
    background: #fff;
    box-shadow: -8px 0 12px rgba(0, 0, 0, 0.08);
}

.data-table-dispatch-hall thead th.hall-col-actions {
    z-index: 8;
    background: #f5f5f6;
}

.data-table-dispatch-hall tbody tr:nth-child(even) td.hall-col-actions {
    background: #fafafa;
}

.data-table-dispatch-hall tbody tr:hover td.hall-col-actions {
    background: #f3f7ff;
}

.data-table-dispatch-hall td.hall-col-actions .btn-action + .btn-action {
    margin-left: 4px;
}

.data-table-dispatch-hall .status-badge {
    display: inline-block;
    min-width: 56px;
    text-align: center;
}

.card-header-desc {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: normal;
}


/* ===== 首页/报表 统计卡片 ===== */
.metric-card-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    background: #fff;
    border: none;
    border-radius: 4px;
    padding: 18px 16px;
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
    box-shadow: none;
}

.metric-card-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #e67e22;
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.metric-card-sub {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-card-grid-home .metric-card-label {
    font-size: 12px;
}

.metric-card-grid-home .metric-card-value {
    font-size: 28px;
}

@media (max-width: 1200px) {
    .metric-card-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .metric-card {
        flex: 0 0 140px;
    }
    .metric-card-label,
    .metric-card-sub {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .metric-card-value {
        font-size: 24px;
    }
    .metric-card-grid-home .metric-card-value {
        font-size: 22px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-card.primary .stat-value { color: var(--primary); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.info .stat-value { color: var(--info); }
.stat-card.warning .stat-value { color: var(--warning); }

.stats-grid-home {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-grid-home-admin {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 12px;
}

.stats-grid-home-admin .stat-card {
    padding: 14px 10px;
}

.stats-grid-home-admin .stat-label {
    font-size: 12px;
    margin-bottom: 6px;
    white-space: nowrap;
}

.stats-grid-home-admin .stat-value {
    font-size: 20px;
}

@media (max-width: 1400px) {
    .stats-grid-home-admin {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .stats-grid-home-admin .stat-card {
        flex: 1 0 120px;
        min-width: 120px;
    }
}

@media (max-width: 1200px) {
    .stats-grid-home {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats-grid-home-admin .stat-card {
        flex: 0 0 110px;
        min-width: 110px;
    }
    .stats-grid-home-admin .stat-value {
        font-size: 18px;
    }
}

/* 首页公告 */
.admin-page-home .main-content {
    display: flex;
    flex-direction: column;
}

.admin-page-home .admin-home-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.admin-page-home .metric-card-grid-home {
    flex-shrink: 0;
}

.home-notice-single {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.admin-page-home .home-notice-single {
    flex: 0 1 auto;
    margin-bottom: 0;
    min-height: 180px;
    max-height: 320px;
}

.home-project-mgmt {
    margin-top: 16px;
    flex-shrink: 0;
}

.home-project-mgmt .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-bar-home-project {
    flex-wrap: wrap;
}

.home-project-remark {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table-home-project th,
.data-table-home-project td {
    white-space: nowrap;
}

.home-notice-single-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.home-notice-single-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.home-notice-single-body {
    padding: 16px;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.admin-page-home .home-notice-single-body {
    flex: 1;
}

.home-notice-single-foot {
    padding: 10px 16px 14px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.home-notice-merged {
    display: flex;
    flex-direction: column;
}

.home-notice-merged-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.home-notice-merged-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.home-notice-merged-body {
    padding: 8px 0;
}

.home-notice-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
}

.home-notice-section:last-child {
    border-bottom: none;
}

.home-notice-section[title] {
    cursor: pointer;
}

.home-notice-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-notice-section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.home-notice-merged-foot {
    padding: 12px 20px 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.home-notice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-notice-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    cursor: default;
    transition: box-shadow .2s;
}

.home-notice-card[title] {
    cursor: pointer;
}

.home-notice-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.home-notice-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.home-notice-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.home-notice-edit-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    opacity: .7;
}

.home-notice-edit-btn:hover {
    opacity: 1;
}

.home-notice-card-body {
    flex: 1;
    padding: 16px;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.home-notice-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.home-notice-content {
    white-space: normal;
    word-break: break-word;
}

.home-notice-card-foot {
    padding: 10px 16px 14px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    min-height: 38px;
}

@media (max-width: 992px) {
    .home-notice-grid {
        grid-template-columns: 1fr;
    }
}

.chart-panel {
    padding: 16px 20px 8px;
    background: #fff;
    min-height: 220px;
}

.hbar-chart {
    display: block;
    width: 100%;
    min-height: 180px;
    background: #fff;
}

.chart-year-tag {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-muted);
}

/* ===== 财务报表页 ===== */
.report-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    background: #fff;
    padding: 18px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-bottom: 3px solid #2c3e50;
    overflow: visible;
}

.report-top-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.report-top-title .report-icon {
    font-size: 24px;
    line-height: 1;
    color: #2c3e50;
}

.report-top-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.report-header {
    background: #fff;
    padding: 24px 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-bottom: 3px solid #2c3e50;
}

.report-header .report-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.report-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.report-header .report-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.report-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
}

.report-layout-full {
    grid-template-columns: 1fr;
}

.finance-report-detail-card {
    margin-top: 0;
}

.finance-report-detail-filter {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

.finance-report-detail-filter .filter-bar-report {
    width: 100%;
    justify-content: flex-start;
}

.finance-report-detail-head {
    padding: 10px 20px 0;
    border-bottom: none;
}

.finance-report-detail-card .card-body {
    padding-top: 12px;
}

.finance-report-detail-tabs {
    border-bottom: none;
    margin-bottom: 0;
}

.finance-report-flow-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.finance-report-flow-item {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finance-report-flow-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.finance-report-flow-item strong {
    font-size: 18px;
    color: var(--text-dark);
}

.finance-report-subtitle {
    margin: 18px 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .finance-report-flow-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.report-page .metric-card-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.report-page .metric-card-grid .metric-card {
    flex: 1 1 0;
    min-width: 0;
}

.dashou-detail-order-stats {
    margin-bottom: 20px;
}

.finance-chart-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 12px 4px;
    min-height: 360px;
}

.finance-line-chart {
    width: 100%;
    height: 360px;
}

.finance-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    color: #999;
    font-size: 14px;
}

.report-main { min-width: 0; }

.type-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.type-summary-grid-finance {
    grid-template-columns: repeat(6, 1fr);
}

.finance-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.finance-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 8px 12px;
    min-width: 0;
}

.finance-stat-card-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.finance-stat-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.finance-stat-metric {
    text-align: center;
    min-width: 0;
}

.finance-stat-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    word-break: break-all;
}

.finance-stat-value.is-money {
    font-size: 16px;
}

.type-summary-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 8px;
    text-align: center;
}

.type-summary-item .type-name {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.type-summary-item .type-amount {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-box {
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.chart-box h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
}

.chart-canvas { width: 100%; height: 200px; }

.report-sidebar .sidebar-stat {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.sidebar-stat .stat-label-bar {
    background: #5b7a9d;
    color: #fff;
    padding: 8px 14px;
    font-size: 12px;
    text-align: center;
}

.sidebar-stat .stat-value-box {
    padding: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.sidebar-stat .stat-value-box-sm {
    font-size: 14px;
    padding: 12px 10px;
}

.expense-detail-table .data-table th {
    background: #5b7a9d;
    color: #fff;
    border-bottom: none;
}

.filter-bar {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.filter-bar-report {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: thin;
}

.filter-bar-report label {
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

.filter-bar-report .form-control {
    width: auto;
    min-width: 0;
    flex-shrink: 0;
    height: 38px;
}

.filter-bar-report input[type="date"].form-control {
    width: 132px;
}

.filter-bar-report input[type="text"].form-control {
    width: 150px;
}

.filter-bar-report select.form-control {
    width: 96px;
}

.filter-bar-report .btn {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
}

.filter-bar-report .period-filters .btn {
    min-height: 38px;
    padding: 0 14px;
}

.period-filters {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    flex-shrink: 0;
}

.filter-bar label {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.filter-bar .form-control {
    width: auto;
    min-width: 160px;
    height: 38px;
    font-size: 14px;
}

.filter-bar input[name="keyword"],
.filter-bar input[type="search"],
.filter-bar input[type="text"]:not([type="date"]) {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: none;
}

.filter-bar select.form-control {
    min-width: 140px;
}

.filter-bar .btn {
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
}

.order-list-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.order-list-bar .filter-bar {
    margin-bottom: 0;
    padding: 0;
    box-shadow: none;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 12px;
}

.order-list-bar .filter-bar .form-control,
.order-list-bar .filter-bar .btn {
    height: 38px;
}

.order-list-bar .filter-bar-orders .form-control,
.order-list-bar .filter-bar-dashou .form-control,
.order-list-bar .filter-bar-dispatch-hall .form-control,
.order-list-bar .filter-bar-designers .form-control {
    min-width: 120px;
}

.order-list-bar .filter-bar-orders input[name="keyword"],
.order-list-bar .filter-bar-dashou input[name="keyword"],
.order-list-bar .filter-bar-dispatch-hall input[name="keyword"],
.order-list-bar .filter-bar-designers input[name="keyword"] {
    min-width: 280px;
    max-width: none;
    flex: 1 1 360px;
}

.order-list-bar .filter-bar-settlement-history .form-control {
    min-width: 140px;
}

.order-list-bar .filter-bar-settlement-history input[name="keyword"] {
    min-width: 220px;
    max-width: none;
    flex: 1 1 280px;
}

.order-list-bar .filter-bar-settlement-center input[name="keyword"] {
    min-width: 280px;
    max-width: none;
    flex: 1 1 360px;
}

.settlement-order-batch-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.settlement-order-batch-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.data-table-settlement th,
.data-table-settlement td {
    vertical-align: middle;
}

.data-table-settlement .settlement-actual-amount {
    color: #e74c3c;
    font-weight: 600;
}

.order-list-bar .filter-bar label {
    white-space: nowrap;
    flex-shrink: 0;
}

.order-list-bar .filter-bar .btn {
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
    flex-shrink: 0;
}

.order-list-bar .toolbar {
    margin-bottom: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.order-list-bar .toolbar .btn {
    min-height: 38px;
    padding: 0 20px;
    font-size: 14px;
}

.toolbar-inline .btn {
    white-space: nowrap;
}

.voucher-link {
    color: var(--info);
    font-size: 12px;
}

.voucher-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    margin-top: 8px;
}

/* ===== 数据报表 ===== */
.data-report-card { margin-bottom: 20px; }

.data-report-card .tab-nav-item {
    display: inline-block;
    text-decoration: none;
}

.data-report-table th,
.data-report-table td {
    white-space: nowrap;
}

.data-report-total-row {
    background: #f8fafb;
}

.data-report-filter {
    padding: 16px 20px 0;
    margin-bottom: 0;
}

.data-report-product-filter .form-control[name="keyword"] {
    width: 160px;
    min-width: 140px;
}

.budget-section-head .data-report-product-filter {
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ===== 预算管理（遗留样式） ===== */
.budget-section { margin-bottom: 20px; }

.budget-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.budget-section-head h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.budget-section-head h3 small {
    font-weight: normal;
}

.budget-filter-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.budget-filter-form .form-control {
    width: auto;
    min-width: 120px;
}

.budget-filter-form .btn,
.budget-filter-form a.btn {
    white-space: nowrap;
}

.import-budget-tips {
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.import-budget-tips p {
    margin: 0 0 6px;
}

.import-budget-tips code {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 11px;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: auto;
}

.budget-table th,
.budget-table td {
    border: 1px solid #e4e4e4;
    padding: 8px 6px;
    text-align: center;
    white-space: nowrap;
}

.budget-table thead th {
    background: #f7f7f7;
    font-weight: 600;
    color: #555;
}

.budget-row-label {
    background: #fafafa;
    font-weight: 600;
    text-align: left !important;
    padding-left: 12px !important;
    min-width: 64px;
}

.budget-num { font-weight: 500; }
.budget-expense { color: #e74c3c; }
.budget-income { color: #3498db; }
.budget-remain { color: #3498db; }
.budget-over { color: #e74c3c; font-weight: 600; }

.budget-input {
    width: 72px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
}

.budget-input:focus {
    outline: none;
    border-color: var(--primary);
}

.budget-footnote {
    font-size: 11px;
    color: var(--text-muted);
    padding: 10px 0 4px;
    line-height: 1.5;
}

.annual-budget-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.annual-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 480px;
}

.annual-input-row .form-control {
    flex: 1;
}

.budget-day-table th,
.budget-day-table td {
    min-width: 48px;
    font-size: 11px;
    padding: 6px 4px;
}

.budget-month-table .budget-input {
    width: 64px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .type-summary-grid { grid-template-columns: repeat(3, 1fr); }
    .type-summary-grid-finance { grid-template-columns: repeat(3, 1fr); }
    .finance-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .charts-row { grid-template-columns: 1fr; }
    .report-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .type-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .type-summary-grid-finance { grid-template-columns: repeat(2, 1fr); }
    .finance-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-row { grid-template-columns: 1fr; }
}

/* ===== 出入库单据打印 ===== */
.stock-slip-body {
    background: #eef1f4;
    min-height: 100vh;
}

.stock-slip-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.stock-slip-sheet {
    position: relative;
    background: #fff;
    border: 1px solid #d9dee3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 36px 40px 48px;
    overflow: hidden;
}

.stock-slip-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
    transform: rotate(-24deg);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.stock-slip-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: 2px;
}

.stock-slip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 12px 0 18px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #ddd;
    margin-bottom: 18px;
    font-size: 13px;
}

.stock-slip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 18px;
}

.stock-slip-table th,
.stock-slip-table td {
    border: 1px solid #bbb;
    padding: 8px 10px;
}

.stock-slip-table thead th {
    background: #f3f3f3;
    font-weight: 600;
}

.stock-slip-remark {
    font-size: 13px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.stock-slip-signatures {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    font-size: 13px;
}

.stock-slip-sign-item {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.stock-slip-sign-line {
    flex: 1;
    border-bottom: 1px solid #333;
    min-width: 120px;
    height: 18px;
}

.stock-slip-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    body.stock-slip-body {
        background: #fff;
    }

    .stock-slip-page {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .stock-slip-sheet {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }
}

/* ===== 用户管理权限 ===== */
.user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 16px;
}

.permission-panel {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    max-height: 360px;
    overflow: auto;
}

.permission-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.permission-preset-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.permission-preset-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 4px;
}

.permission-group {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 4px;
}

.permission-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.permission-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 12px;
    padding-left: 22px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: normal;
}

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

.data-table-users {
    table-layout: fixed;
    width: 100%;
}

.data-table-users col.w-check { width: 42px; }
.data-table-users col.w-user { width: 14%; }
.data-table-users col.w-name { width: 12%; }
.data-table-users col.w-role { width: 12%; }
.data-table-users col.w-status { width: 8%; }
.data-table-users col.w-perm { width: 8%; }
.data-table-users col.w-date { width: 16%; }
.data-table-users col.w-action { width: 120px; }

.data-table-users th,
.data-table-users td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table-users td.actions {
    overflow: visible;
    white-space: nowrap;
}

.profile-card {
    margin-bottom: 20px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.inv-qty-tip {
    font-size: 12px;
    margin: -4px 0 12px;
}

.profile-form-stack {
    max-width: 480px;
}

.stock-qty-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(181, 74, 69, 0.35);
    position: relative;
    z-index: 1;
}

.stock-qty-link:hover {
    opacity: 0.85;
}

.stock-breakdown-summary {
    margin: 0 0 12px;
    font-size: 13px;
}

.stock-breakdown-total td {
    background: #fafafa;
}

.stock-transfer-warehouses {
    align-items: flex-end;
    margin-bottom: 8px;
}

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

.stock-transfer-arrow {
    flex: 0 0 auto;
    width: auto;
}

.transfer-arrow-icon {
    height: 38px;
    line-height: 38px;
    font-size: 22px;
    color: var(--primary);
    text-align: center;
    padding: 0 8px;
}

.stock-transfer-tip {
    display: block;
    margin: 0 0 16px;
}

.slip-watermark-preview {
    margin-top: 12px;
    height: 120px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.slip-watermark-preview-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.06);
    transform: rotate(-24deg);
    white-space: nowrap;
    user-select: none;
}

.modal-settlement {
    max-width: 960px;
}

.modal-settlement-detail {
    max-width: 1080px;
}

.data-table-settlement-orders {
    table-layout: fixed;
    width: 100%;
}

.data-table-settlement-orders col.w-order-no { width: 130px; }
.data-table-settlement-orders col.w-project { width: 140px; }
.data-table-settlement-orders col.w-duration { width: 96px; }
.data-table-settlement-orders col.w-shop { width: 100px; }
.data-table-settlement-orders col.w-time { width: 130px; }
.data-table-settlement-orders col.w-type { width: 88px; }
.data-table-settlement-orders col.w-money { width: 72px; }
.data-table-settlement-orders col.w-cs { width: 72px; }
.data-table-settlement-orders col.w-status { width: 88px; }
.data-table-settlement-orders col.w-remark { width: 100px; }

.data-table-settlement-orders th,
.data-table-settlement-orders td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settlement-confirm-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settlement-confirm-main {
    width: 100%;
}

.settlement-orders-table {
    max-height: 280px;
    overflow: auto;
}

.settlement-confirm-side {
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    background: transparent;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.settlement-confirm-inline-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.75fr) minmax(280px, 1.25fr);
    gap: 20px;
    align-items: start;
}

.settlement-confirm-inline-col {
    min-width: 0;
}

.settlement-confirm-fields-col .form-group + .form-group {
    margin-top: 16px;
}

.settlement-confirm-inline-col .form-group {
    margin-bottom: 0;
}

.settlement-confirm-qrcode-col .settlement-qr-box {
    margin-bottom: 0;
}

.settlement-confirm-remark {
    margin-top: 16px;
    margin-bottom: 0;
}

.settlement-confirm-side .settlement-qr-panel {
    margin-bottom: 16px;
}

.settlement-side-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.settlement-qr-box {
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.settlement-qr-box img {
    max-width: 160px;
    max-height: 160px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
}

.settlement-amount-input {
    font-size: 18px;
    font-weight: 600;
    color: var(--danger);
    background: #f8f9fb;
    cursor: default;
}

.settlement-commission-cell {
    padding: 6px 8px !important;
    overflow: visible !important;
}

.settlement-commission-display {
    display: inline-block;
    min-width: 72px;
    max-width: 100%;
    padding: 4px 6px;
    font-size: 13px;
    text-align: right;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.settlement-commission-cell:hover .settlement-commission-display {
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px #c7d9f7;
}

.settlement-commission-input {
    width: 100%;
    min-width: 72px;
    max-width: 96px;
    margin-left: auto;
    padding: 4px 6px;
    font-size: 13px;
    text-align: right;
}

.settlement-batch-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settlement-batch-info {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 16px;
    background: #fff;
}

.settlement-batch-info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.settlement-batch-info-row:last-child {
    border-bottom: none;
}

.settlement-batch-info-row .label {
    flex: 0 0 72px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.settlement-batch-info-row .value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    word-break: break-word;
}

.batch-no-inline {
    font-size: 13px;
    word-break: break-all;
}

.settlement-batch-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.settlement-batch-orders {
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.modal-voucher {
    max-width: 720px;
}

.settlement-voucher-modal-body {
    text-align: center;
}

.settlement-voucher-view {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settlement-voucher-full {
    max-width: 100%;
    max-height: 70vh;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.settlement-voucher-thumb {
    max-width: 240px;
    max-height: 240px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.settlement-voucher-preview {
    margin-top: 8px;
}

.settlement-voucher-preview img {
    max-width: 100%;
    max-height: 120px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.btn-action-settle:hover {
    color: var(--success);
}

@media (max-width: 768px) {
    .settlement-confirm-inline-row {
        grid-template-columns: 1fr;
    }
}

.login-switch-link {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.login-switch-link a {
    color: var(--primary);
}

/* ===== 打手中心 ===== */
.dashou-portal .dashou-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    vertical-align: middle;
}

.dashou-balance-pill {
    background: rgba(255,255,255,.95);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
}

.dashou-main,
.designer-main {
    padding: 20px;
}

.designer-alert-banner {
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #8a6d3b;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
}

.designer-alert-banner a {
    color: var(--primary);
    font-weight: 600;
}

.designer-qr-hint {
    display: block;
    margin: 4px 0 8px;
}

.designer-qr-empty {
    margin: 8px 0 0;
    font-size: 13px;
}

.designer-home-card {
    overflow: hidden;
    margin-bottom: 20px;
}

.designer-home-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(90deg, #1c84c6, #1a7bb9);
    color: #fff;
}

.designer-home-card-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.designer-home-card-actions {
    display: flex;
    gap: 8px;
}

.designer-home-card-actions .btn-default {
    background: rgba(255,255,255,.9);
    border-color: transparent;
}

.designer-home-card-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px;
    align-items: center;
}

.designer-home-profile {
    text-align: center;
    border-right: 1px solid var(--border);
    padding-right: 24px;
}

.designer-home-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eef2f5;
    margin-bottom: 12px;
}

.designer-home-welcome {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.designer-home-meta {
    list-style: none;
    text-align: left;
}

.designer-home-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

.designer-home-meta li span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.designer-home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.designer-home-stats-plain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    align-self: center;
    width: 100%;
    gap: 24px 16px;
    padding: 8px 0;
}

.designer-stat-plain {
    text-align: center;
    min-width: 80px;
}

.designer-home-stats-plain .designer-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.designer-home-stats-plain .designer-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.designer-stat-item {
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 12px;
    text-align: center;
}

.designer-stat-item.highlight {
    background: #eefaf7;
    border-color: #b8e6dc;
}

.designer-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 6px;
}

.designer-stat-item.highlight .designer-stat-value {
    color: var(--primary);
    font-size: 22px;
}

.designer-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.designer-notice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.designer-notice-card .card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.designer-notice-card .card-header h3 {
    font-size: 15px;
    font-weight: 500;
}

.designer-notice-text p {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.designer-recent-list {
    list-style: none;
}

.designer-recent-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.designer-recent-list .order-no {
    font-weight: 600;
    grid-column: 1;
}

.designer-recent-list .order-meta {
    color: var(--text-muted);
    grid-column: 1;
}

.designer-recent-list .order-status {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--primary);
    font-size: 12px;
}

.designer-more-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
}

.designer-finance-summary {
    margin-bottom: 16px;
}

.finance-stat-grid-designer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.designer-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.designer-tab {
    padding: 10px 20px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
}

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

.designer-qr-preview {
    margin-top: 8px;
}

.designer-qr-preview img {
    max-width: 160px;
    max-height: 160px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.designer-view-modal .designer-view-basic {
    grid-template-columns: repeat(4, 1fr);
}

.designer-view-stats-block {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.designer-view-stats-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.designer-view-modal .designer-view-stats {
    grid-template-columns: repeat(5, 1fr);
}

.designer-view-extra {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.designer-view-row {
    margin-bottom: 16px;
}

.designer-view-row:last-child {
    margin-bottom: 0;
}

.designer-view-row .label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.designer-view-row .value {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .designer-view-modal .designer-view-basic {
        grid-template-columns: repeat(2, 1fr);
    }
    .designer-view-modal .designer-view-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.radio-inline-group label {
    margin-right: 16px;
    font-weight: normal;
}

@media (max-width: 992px) {
    .designer-home-card-body {
        grid-template-columns: 1fr;
    }
    .designer-home-profile {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
    }
    .designer-home-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .designer-home-stats-plain {
        justify-content: flex-start;
        gap: 20px 12px;
    }
    .designer-home-stats-plain .designer-stat-value {
        font-size: 22px;
    }
    .designer-notice-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 打手端移动端 ===== */
.dashou-header-mobile { display: none; }
.dashou-header-desktop { display: inline; }

.dashou-mobile-section {
    margin-bottom: 18px;
}

.dashou-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px;
    padding-left: 2px;
}

.dashou-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashou-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 100px;
    padding: 14px 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    text-decoration: none;
    color: var(--text-dark);
}

.dashou-quick-fa {
    font-size: 28px;
    line-height: 1;
}

.dashou-quick-fa-orange { color: #f5a623; }
.dashou-quick-fa-purple { color: #8e44ad; }
.dashou-quick-fa-gold { color: #f5a623; }
.dashou-quick-fa-blue { color: #3498db; }

.dashou-quick-fa-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.dashou-quick-fa-circle.dashou-quick-fa-purple { background: #8e44ad; }
.dashou-quick-fa-circle.dashou-quick-fa-cyan { background: #17a2b8; }
.dashou-quick-fa-circle.dashou-quick-fa-orange { background: #f5a623; }

.dashou-quick-label {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.35;
}

.dashou-quick-icon-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.dashou-home-notice-section {
    margin-top: -4px;
}

.dashou-home-notice-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.dashou-home-notice-head {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.dashou-home-notice-text {
    font-size: 13px;
    line-height: 1.75;
    color: #4b5563;
    word-break: break-word;
}

.dashou-home-stats-panel {
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.dashou-home-stats-filter {
    margin-bottom: 14px;
}

.dashou-home-period-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.dashou-home-period-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    padding: 0 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
}

.dashou-home-period-btn.is-active {
    border-color: var(--primary);
    background: #eefaf7;
    color: var(--primary);
    font-weight: 600;
}

.dashou-home-date-range {
    display: none;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.dashou-home-date-range.is-visible {
    display: flex;
}

.dashou-home-date-trigger,
.dashou-date-trigger.dashou-home-date-trigger {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #374151;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.dashou-home-date-trigger.is-empty,
.dashou-date-trigger.is-empty {
    color: #9ca3af;
}

.dashou-home-date-trigger svg,
.dashou-date-trigger svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.dashou-home-date-input {
    flex: 1 1 120px;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dark);
    background: #fff;
}

.dashou-home-date-sep {
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-home-date-submit {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dashou-date-sheet-body {
    height: 220px;
}

.dashou-date-mask .dashou-datetime-column {
    flex: 1;
}

.dashou-home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.dashou-home-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.dashou-home-stat-item strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.dashou-home-stat-item span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.dashou-home-stat-item em {
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    color: #e74c3c;
    line-height: 1.2;
}

.dashou-report-page {
    max-width: 640px;
    margin: 0 auto;
}

.dashou-body-report .dashou-profile-edit-card {
    margin-bottom: 18px;
    padding-bottom: 22px;
}

.dashou-body-report .dashou-profile-edit-card .profile-form > .btn-block {
    margin-top: 24px;
    margin-bottom: 4px;
}

.dashou-report-estimate-group {
    margin-top: 4px;
}

.dashou-report-estimate-plain {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: 40px;
}

.dashou-report-estimate-value {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.dashou-report-estimate-meta {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.dashou-report-confirm-sheet {
    max-height: min(86vh, 640px);
    border-radius: 16px 16px 0 0;
}

.dashou-report-confirm-body {
    padding: 14px 16px 8px;
    overflow-y: auto;
    max-height: calc(86vh - 150px);
}

.dashou-report-confirm-hint {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f5f8ff;
    color: #4a6280;
    font-size: 13px;
    line-height: 1.45;
}

.dashou-report-confirm-rows {
    border: 1px solid #eef0f3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.dashou-report-confirm-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid #f1f3f6;
    font-size: 14px;
}

.dashou-report-confirm-row:last-child {
    border-bottom: none;
}

.dashou-report-confirm-row .label {
    flex: 0 0 auto;
    color: #888;
    white-space: nowrap;
}

.dashou-report-confirm-row .value {
    flex: 1 1 auto;
    text-align: right;
    color: #222;
    word-break: break-word;
    font-weight: 500;
}

.dashou-report-confirm-row.is-estimate .value {
    color: #e74c3c;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dashou-report-confirm-images-wrap {
    margin-top: 12px;
}

.dashou-report-confirm-images-label {
    margin-bottom: 8px;
    font-size: 13px;
    color: #888;
}

.dashou-report-confirm-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashou-report-confirm-images img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    background: #f7f8fa;
}

.dashou-report-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eef0f3;
    background: #fff;
    flex-shrink: 0;
}

.dashou-report-confirm-actions .btn {
    min-height: 42px;
}

.dashou-datetime-trigger {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #dce0e6;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.dashou-datetime-trigger.is-empty {
    color: #999;
}

.dashou-datetime-trigger svg {
    flex-shrink: 0;
    color: #999;
}

.dashou-datetime-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.dashou-datetime-mask.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dashou-datetime-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1201;
    background: #fff;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.dashou-datetime-mask.is-open .dashou-datetime-sheet {
    transform: translateY(0);
}

.dashou-action-sheet-mask {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.dashou-action-sheet-mask.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dashou-action-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1301;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0));
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.dashou-action-sheet-mask.is-open .dashou-action-sheet {
    transform: translateY(0);
}

.dashou-action-sheet-group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dashou-action-sheet-item {
    display: block;
    width: 100%;
    border: none;
    background: #fff;
    color: #111;
    font-size: 16px;
    line-height: 1.4;
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
}

.dashou-action-sheet-group .dashou-action-sheet-item + .dashou-action-sheet-item {
    border-top: 1px solid #f0f0f0;
}

.dashou-action-sheet-cancel {
    border-radius: 12px;
    font-weight: 500;
}

.dashou-profile-avatar-preview-btn,
.dashou-profile-qrcode-preview-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: block;
}

.dashou-profile-qrcode-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dashou-profile-qrcode-tip {
    display: block;
    text-align: center;
    margin-top: 8px;
}

.dashou-datetime-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f3;
}

.dashou-datetime-sheet-head button {
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 4px 0;
    cursor: pointer;
}

.dashou-datetime-sheet-cancel {
    color: #666;
}

.dashou-datetime-sheet-confirm {
    color: var(--primary);
    font-weight: 600;
}

.dashou-datetime-sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashou-datetime-sheet-body {
    position: relative;
    display: flex;
    height: 220px;
    overflow: hidden;
}

.dashou-datetime-sheet-body::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    height: 40px;
    margin-top: -20px;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
    pointer-events: none;
    z-index: 1;
}

.dashou-datetime-column {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dashou-datetime-column::-webkit-scrollbar {
    display: none;
}

.dashou-datetime-column-spacer {
    flex-shrink: 0;
    scroll-snap-align: none;
    height: 90px;
}

.dashou-datetime-column-item {
    height: 40px;
    line-height: 40px;
    text-align: center;
    scroll-snap-align: center;
    font-size: 16px;
    color: #666;
}

.dashou-datetime-column-item.is-active {
    color: var(--text-dark);
    font-weight: 600;
}

.dashou-report-picker-sheet .dashou-report-picker-body {
    padding: 0 8px;
}

.dashou-report-picker-column {
    padding: 0 12px;
}

.dashou-report-picker-item {
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

.dashou-body-report .dashou-datetime-trigger {
    min-height: 44px;
}

.dashou-body-report .dashou-datetime-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f7f8fa;
}

.dashou-info-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #eef0f3;
}

.dashou-body-home .dashou-info-card,
.dashou-body-home .dashou-notice-item.card {
    box-shadow: none;
}

.dashou-info-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dashou-info-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef2f5;
}

.dashou-info-brief { flex: 1; min-width: 0; }

.dashou-info-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashou-info-no {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-info-edit {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff8e6;
    color: #f39c12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dashou-info-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashou-info-stats li {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashou-info-stats li span {
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-info-stats li strong {
    font-size: 16px;
    color: var(--text-dark);
}

.dashou-info-stats li strong.is-money {
    color: #e74c3c;
}

.dashou-tip-banner {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eefaf7;
    color: #1ab394;
    font-size: 13px;
}

.dashou-tip-banner a {
    color: #148f76;
    font-weight: 600;
    text-decoration: none;
}

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

.dashou-notice-item {
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashou-notice-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.dashou-notice-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.dashou-hall-page {
    max-width: 720px;
    margin: 0 auto;
}

.dashou-page-hall {
    padding-bottom: 8px;
}

.dashou-portal .dashou-page-hall,
.dashou-portal .dashou-hall-page {
    background: transparent;
}

.dashou-hall-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.dashou-hall-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceff1;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.dashou-hall-tab-label {
    flex: 1;
    min-width: 0;
}

.dashou-hall-tab.is-active {
    color: #222;
    border-color: rgba(26, 179, 148, 0.35);
    box-shadow: 0 0 0 1px rgba(26, 179, 148, 0.12);
}

.dashou-hall-tab-meta {
    color: #1ab394;
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
}

.dashou-header-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background .2s ease;
}

.dashou-header-filter-btn.is-active::after {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(26, 179, 148, 0.35);
}

.dashou-header-filter-wrap {
    position: relative;
    margin-right: 4px;
}

.dashou-header-filter-wrap.is-open .dashou-header-filter-btn {
    background: rgba(255, 255, 255, 0.16);
}

.dashou-hall-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.dashou-hall-filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dashou-hall-filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    z-index: 1002;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity .24s cubic-bezier(0.4, 0, 0.2, 1),
        transform .24s cubic-bezier(0.4, 0, 0.2, 1),
        visibility .24s;
}

.dashou-header-filter-wrap.is-open .dashou-hall-filter-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.dashou-hall-filter-dropdown-head {
    padding: 14px 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.dashou-hall-filter-dropdown-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 4px;
}

.dashou-hall-filter-dropdown-body .form-group {
    margin-bottom: 0;
}

.dashou-hall-filter-dropdown-body .form-control {
    border-radius: 8px;
    border-color: #e8eaed;
}

.dashou-hall-filter-dropdown-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px 16px;
}

.dashou-hall-filter-dropdown-foot .btn {
    min-width: 76px;
}

.dashou-order-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashou-order-empty {
    padding: 48px 16px;
    text-align: center;
    color: #999;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceff1;
}

.dashou-grab-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 14px 12px;
    border: 1px solid #eceff1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.dashou-grab-no-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.dashou-order-type-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: #2f3542;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.dashou-grab-no {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    padding: 0;
    color: #b0b5bb;
    font-size: 12px;
    cursor: pointer;
    flex: 0 0 auto;
    max-width: none;
}

.dashou-grab-no span {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.dashou-grab-status {
    flex-shrink: 0;
    color: #1ab394;
    font-size: 14px;
    font-weight: 600;
}

.dashou-grab-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    word-break: break-word;
}

.dashou-grab-tags {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #e74c3c;
    font-weight: 500;
}

.dashou-grab-time {
    font-size: 12px;
    color: #b0b5bb;
    margin-bottom: 14px;
}

.dashou-grab-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.dashou-grab-earn {
    flex: 1;
    min-width: 0;
}

.dashou-grab-earn-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
    white-space: nowrap;
}

.dashou-grab-earn-value {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: #e74c3c;
    font-weight: 700;
    white-space: nowrap;
}

.dashou-grab-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dashou-grab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
}

.dashou-grab-btn-primary {
    border: none;
    background: #1ab394;
    color: #fff;
}

.dashou-grab-btn-outline {
    background: #fff;
    color: #1ab394;
    border: 1px solid #1ab394;
}

.dashou-grab-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-accept,
.dashou-grab-btn-primary {
    border: none;
    background: #1ab394;
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
}

.btn-view-order,
.dashou-grab-btn-outline {
    background: #fff;
    color: #1ab394;
    border: 1px solid #1ab394;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
}

.dashou-hall-detail-modal {
    max-width: 520px;
}

.dashou-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #eceff1;
    z-index: 1100;
    padding-bottom: env(safe-area-inset-bottom);
}

.dashou-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #9aa0a6;
    font-size: 11px;
}

.dashou-bottom-nav-item.is-active {
    color: #1ab394;
}

.dashou-portal.dashou-body-hall .top-header.dashou-header {
    overflow: visible;
}

.dashou-header-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 2;
}

.dashou-portal.dashou-body-order-detail .dashou-header .header-left {
    justify-content: flex-start;
    gap: 8px;
}

.dashou-portal.dashou-body-order-detail .dashou-header .system-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 120px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .dashou-portal .dashou-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .dashou-portal .dashou-sidebar.open {
        transform: translateX(0);
    }

    .dashou-portal .top-header.dashou-header {
        padding: 0 12px;
        justify-content: center;
    }

    .dashou-portal .dashou-header .header-left {
        flex: 1;
        justify-content: center;
    }

    .dashou-portal .dashou-header .sidebar-toggle,
    .dashou-portal .dashou-header .header-right {
        display: none !important;
    }

    .dashou-portal.dashou-body-hall .dashou-header .header-right {
        display: flex !important;
        position: absolute;
        right: 12px;
        top: 0;
        height: 56px;
        align-items: center;
        gap: 0;
    }

    .dashou-portal.dashou-body-hall .dashou-header .dashou-balance-pill,
    .dashou-portal.dashou-body-hall .dashou-header .user-info,
    .dashou-portal.dashou-body-hall .dashou-header .logout-link {
        display: none !important;
    }

    .dashou-portal.dashou-body-order-detail .dashou-header .header-right {
        display: none !important;
    }

    .dashou-portal.dashou-body-order-detail .dashou-header .header-left {
        display: flex !important;
        flex: 1;
        justify-content: flex-start;
        position: relative;
    }

    .dashou-portal.dashou-body-order-detail .dashou-header .system-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 120px);
        pointer-events: none;
    }

    .dashou-portal.dashou-body-finance .dashou-header .header-right,
    .dashou-portal.dashou-body-finance-detail .dashou-header .header-right {
        display: none !important;
    }

    .dashou-portal.dashou-body-finance .main-content {
        padding: 0 !important;
        min-height: calc(100dvh - 56px);
        height: calc(100dvh - 56px);
        display: flex;
        flex-direction: column;
        background: #fff;
        box-sizing: border-box;
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .dashou-portal.dashou-body-finance .dashou-finance-page {
        max-width: none;
        margin: 0;
        padding: 0;
        flex: 1;
        min-height: 0;
        height: auto;
    }

    .dashou-portal.dashou-body-finance-detail .dashou-header .header-left {
        display: flex !important;
        flex: 1;
        justify-content: flex-start;
        position: relative;
    }

    .dashou-portal.dashou-body-finance-detail .dashou-header .system-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 120px);
        pointer-events: none;
    }

    .dashou-portal.dashou-body-finance-detail .dashou-header-back {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .dashou-portal.dashou-body-profile .dashou-header .header-right,
    .dashou-portal.dashou-body-profile-edit .dashou-header .header-right,
    .dashou-portal.dashou-body-profile-settings .dashou-header .header-right {
        display: none !important;
    }

    .dashou-portal.dashou-body-profile .dashou-header .header-left,
    .dashou-portal.dashou-body-profile-edit .dashou-header .header-left,
    .dashou-portal.dashou-body-profile-settings .dashou-header .header-left {
        display: flex !important;
        flex: 1;
        justify-content: center;
        position: relative;
    }

    .dashou-portal.dashou-body-profile .dashou-header .system-title,
    .dashou-portal.dashou-body-profile-edit .dashou-header .system-title,
    .dashou-portal.dashou-body-profile-settings .dashou-header .system-title {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        justify-content: center;
        pointer-events: auto;
    }

    .dashou-portal.dashou-body-profile-edit .dashou-header-back,
    .dashou-portal.dashou-body-profile-settings .dashou-header-back {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .dashou-portal .dashou-header-desktop {
        display: none !important;
    }

    .dashou-portal .dashou-header-mobile {
        display: inline;
        font-size: 17px;
        font-weight: 600;
    }

    .dashou-portal .dashou-header .system-title {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .dashou-portal .main-content {
        margin-left: 0 !important;
        margin-top: 56px !important;
        padding: 10px 10px 76px !important;
        min-height: calc(100vh - 56px);
        background: #eef1f4;
    }

    .dashou-portal .dashou-main {
        padding: 0;
        background: #eef1f4;
    }

    .dashou-portal .dashou-sidebar {
        top: 56px;
        height: calc(100vh - 56px);
        min-height: calc(100vh - 56px);
        z-index: 1200;
    }

    .dashou-bottom-nav {
        display: flex;
    }

    .dashou-page-hall .dashou-grab-foot {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .dashou-page-hall .dashou-grab-btns {
        flex-direction: row;
        flex-shrink: 0;
    }

    .dashou-page-hall .dashou-grab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .dashou-hall-page,
    .dashou-mobile-section,
    .dashou-orders-page {
        max-width: 960px;
    }

    .dashou-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== 打手端我的订单 ===== */
.dashou-orders-page {
    max-width: 720px;
    margin: 0 auto;
}

.dashou-orders-desktop-only {
    display: block;
}

.dashou-my-order-card .dashou-grab-card-head {
    align-items: center;
    gap: 8px;
}

.dashou-my-order-card .dashou-grab-no-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.dashou-my-order-card .dashou-grab-status {
    margin-left: auto;
    flex-shrink: 0;
}

.dashou-order-select-wrap {
    display: inline-flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.dashou-order-select-wrap input {
    width: 16px;
    height: 16px;
    accent-color: #1ab394;
}

.dashou-my-order-foot {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    flex-wrap: nowrap;
}

.dashou-my-order-foot .dashou-grab-time {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashou-my-order-foot-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
}

.dashou-my-order-foot .dashou-grab-earn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    text-align: right;
    white-space: nowrap;
    min-width: 0;
}

.dashou-my-order-foot .dashou-grab-earn-label {
    display: inline;
    margin-bottom: 0;
    font-size: 12px;
    color: #999;
}

.dashou-my-order-foot .dashou-grab-earn-value {
    display: inline;
    font-size: 18px;
    line-height: 1.2;
    color: #e74c3c;
    font-weight: 700;
}

.dashou-grab-btns .dashou-grab-btn {
    text-decoration: none;
}

.dashou-my-order-foot .dashou-grab-btns {
    flex: 0 0 auto;
}

.dashou-order-detail-page {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 88px;
}

.dashou-order-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    box-shadow: none;
}

.dashou-order-summary-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.dashou-order-summary-main {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.dashou-order-summary-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.dashou-order-summary-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-order-summary-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 2px;
}

.dashou-order-summary-price {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: #e74c3c;
}

.dashou-order-summary-qty {
    font-size: 12px;
    line-height: 1;
    color: #999;
}

.dashou-order-detail-panel {
    margin-top: 0;
    background: #fff;
    border-radius: 10px;
    padding: 2px 14px;
    border: none;
    box-shadow: none;
}

.dashou-order-review-panel {
    margin-top: 10px;
    padding: 12px 14px 14px;
}

.dashou-order-review-head {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.dashou-order-review-block {
    margin-top: 12px;
}

.dashou-order-review-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dashou-order-review-remark {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    word-break: break-word;
}

.dashou-order-review-panel .order-review-image-grid {
    margin-top: 0;
}

.dashou-detail-rows {
    display: flex;
    flex-direction: column;
}

.dashou-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #f2f2f2;
}

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

.dashou-detail-label {
    flex-shrink: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.dashou-detail-value {
    flex: 1;
    font-size: 14px;
    color: #999;
    line-height: 1.5;
    text-align: right;
    word-break: break-word;
}

.dashou-detail-price {
    color: #e74c3c;
    font-weight: 600;
}

.dashou-detail-reject-reason {
    color: #e74c3c;
    font-weight: 700;
    font-size: 15px;
}

.dispatch-order-reject-reason {
    color: #e74c3c;
    font-weight: 700;
}

.dashou-order-detail-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 56px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: none;
}

.dashou-order-detail-status {
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.dashou-order-detail-status.is-pending {
    color: #e74c3c;
}

.dashou-order-detail-status.is-success {
    color: #1ab394;
}

.dashou-order-detail-status.is-danger {
    color: #ed5565;
}

.dashou-order-detail-status.is-default {
    color: #666;
}

.dashou-order-detail-foot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dashou-order-detail-foot-tip {
    flex: 1 1 auto;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    text-align: right;
}

.dashou-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.dashou-detail-btn-primary {
    background: #1ab394;
    border-color: #1ab394;
    color: #fff;
}

.dashou-detail-btn-outline {
    background: #fff;
    border-color: #e74c3c;
    color: #e74c3c;
}

.dashou-detail-btn-pay {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    min-width: 100px;
    padding: 9px 20px;
}

@media (min-width: 769px) {
    .dashou-order-detail-foot {
        bottom: 0;
    }
}

.dashou-order-detail-title {
    margin: 0 0 12px;
    font-size: 16px;
    color: #333;
}

.dashou-order-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.dashou-order-detail-actions .dashou-grab-btn {
    flex: 1;
}

.dashou-order-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eceff1;
}

.dashou-order-tabs::-webkit-scrollbar {
    display: none;
}

.dashou-order-tab {
    flex: 1 0 auto;
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 13px 10px 11px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}

.dashou-order-tab.is-active {
    color: #1ab394;
    border-bottom-color: #1ab394;
    font-weight: 600;
}

.dashou-order-tab-count {
    font-size: 13px;
    color: inherit;
    opacity: 0.85;
}

.dashou-orders-filter {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashou-orders-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dashou-orders-filter-actions {
    display: flex;
    gap: 8px;
}

.dashou-orders-filter-actions .btn {
    flex: 1;
}

.dashou-orders-batch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dashou-orders-check-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.dashou-orders-batch-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashou-my-order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashou-my-order-card {
    cursor: pointer;
}

.dashou-my-order-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dashou-my-order-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.dashou-my-order-check input {
    width: 18px;
    height: 18px;
    accent-color: #1ab394;
}

.dashou-my-order-top .dashou-order-no {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #f3f5f7;
    padding: 6px 10px;
    border-radius: 6px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    max-width: 100%;
}

.dashou-my-order-top .dashou-order-no span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashou-my-order-top .dashou-order-no svg {
    flex-shrink: 0;
    color: #9aa0a6;
}

.dashou-my-order-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.dashou-my-order-badges .status-badge {
    font-size: 11px;
    padding: 2px 8px;
}

.dashou-my-order-title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.dashou-my-order-remark {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashou-my-order-time {
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 12px;
}

.dashou-my-order-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dashou-orders-pagination {
    margin-top: 16px;
}

.dashou-orders-pagination .pagination-bar {
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .dashou-portal.dashou-body-orders .main-content {
        padding-top: 0 !important;
    }

    .dashou-portal.dashou-body-orders .dashou-orders-page {
        margin-left: -10px;
        margin-right: -10px;
    }

    .dashou-portal.dashou-body-orders .dashou-order-tabs {
        border-radius: 0;
        margin-bottom: 10px;
        border: none;
        border-bottom: 1px solid #eef1f4;
        box-shadow: none;
    }

    .dashou-portal.dashou-body-orders .dashou-order-tab {
        flex: 1;
        min-width: 0;
        padding: 12px 4px 10px;
        font-size: 13px;
    }

    .dashou-portal.dashou-body-orders .dashou-order-card-list,
    .dashou-portal.dashou-body-orders .dashou-orders-pagination {
        padding-left: 10px;
        padding-right: 10px;
    }

    .dashou-portal.dashou-body-orders .dashou-my-order-foot {
        flex-wrap: nowrap;
        align-items: center;
        row-gap: 0;
    }

    .dashou-portal.dashou-body-orders .dashou-my-order-foot .dashou-grab-time {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
        order: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashou-portal.dashou-body-orders .dashou-my-order-foot-right {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
        order: 0;
        margin-left: auto;
    }

    .dashou-portal.dashou-body-orders .dashou-my-order-foot .dashou-grab-earn {
        margin-left: 0;
        text-align: right;
    }

    .dashou-portal.dashou-body-orders .dashou-grab-card-head {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .dashou-portal.dashou-body-orders .dashou-grab-no-wrap {
        flex-wrap: nowrap;
        overflow: visible;
    }

    .dashou-portal.dashou-body-orders .dashou-grab-no {
        flex: 0 0 auto;
    }

    .dashou-portal.dashou-body-orders .dashou-grab-no span {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    .dashou-portal .dashou-orders-desktop-only {
        display: none !important;
    }

    .dashou-portal.dashou-body-order-detail .main-content {
        padding-top: 10px !important;
    }

    .dashou-portal.dashou-body-order-detail .dashou-order-detail-page {
        padding: 0 10px 88px;
    }

    .dashou-portal.dashou-body-order-detail .dashou-order-detail-foot {
        bottom: 56px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .dashou-orders-filter-row {
        grid-template-columns: 1fr;
    }

    .dashou-orders-batch-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashou-orders-batch-actions {
        justify-content: stretch;
    }

    .dashou-orders-batch-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .dashou-my-order-actions {
        flex-direction: row;
        flex-shrink: 0;
    }

    .dashou-my-order-actions .btn-accept,
    .dashou-my-order-actions .btn-view-order {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
    }
}

.nav-subitem-badge,
.nav-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 999px;
    background: #ed5565;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.order-review-image-grid,
.order-review-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.order-review-image-item {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eceff1;
    background: #f8f9fa;
}

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

.dashou-review-submit-modal {
    max-width: 520px;
}

.dashou-portal .dashou-review-modal-overlay .modal {
    width: calc(100% - 24px);
    max-width: 520px;
}

.dashou-notice-item.card {
    box-shadow: 0 8px 24px rgba(26, 179, 148, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== 打手端我的页 ===== */
.dashou-profile-page {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 20px;
    color: var(--text-dark);
}

.dashou-profile-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 4px 18px;
}

.dashou-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef0f3;
    flex-shrink: 0;
}

.dashou-profile-user-main {
    flex: 1;
    min-width: 0;
}

.dashou-profile-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.dashou-profile-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.dashou-profile-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
}

.dashou-profile-edit-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eef0f3;
    color: #6b7280;
    text-decoration: none;
    flex-shrink: 0;
}

.dashou-profile-finance {
    margin-bottom: 14px;
}

.dashou-profile-finance-bar {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    background: linear-gradient(180deg, #f3fbf8 0%, #eaf7f2 100%);
    padding: 14px 0;
}

.dashou-profile-finance-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 6px;
    text-decoration: none;
    border-right: 1px solid rgba(26, 179, 148, 0.14);
}

.dashou-profile-finance-item:last-child {
    border-right: none;
}

.dashou-profile-finance-item strong {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.dashou-profile-finance-item span {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.2;
}

.dashou-profile-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.dashou-profile-notice-tag {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 6px;
    background: #ff4d6d;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
}

.dashou-profile-notice-text {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.dashou-profile-panel {
    margin-bottom: 14px;
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.dashou-profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dashou-profile-panel-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashou-profile-panel-head a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.dashou-profile-order-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dashou-profile-order-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4b5563;
    font-size: 12px;
    text-align: center;
}

.dashou-profile-order-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.dashou-profile-order-icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dashou-profile-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
}

.dashou-profile-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4b5563;
    font-size: 12px;
    text-align: center;
}

.dashou-profile-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.dashou-profile-feature-icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dashou-profile-footer {
    padding: 28px 0 10px;
    text-align: center;
}

.dashou-profile-footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.dashou-profile-footer-tip {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-profile-edit-page {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.dashou-profile-edit-card {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0f3;
    color: var(--text-dark);
}

.dashou-profile-edit-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashou-profile-edit-card .form-group label {
    color: #4b5563;
}

.dashou-profile-edit-card .form-control {
    background: #fff;
    border-color: #d1d5db;
    color: var(--text-dark);
}

.dashou-profile-edit-card .form-control:disabled {
    background: #f9fafb;
    color: #9ca3af;
}

.dashou-profile-avatar-preview img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 10px;
}

.dashou-profile-edit-card .btn-block {
    width: 100%;
}

.dashou-body-profile-settings .dashou-profile-edit-card .form-group {
    margin-bottom: 18px;
}

.dashou-body-profile-settings .dashou-profile-edit-card .form-group:last-of-type {
    margin-bottom: 0;
}

.dashou-profile-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 4px;
}

.dashou-body-profile-settings .dashou-profile-edit-card .dashou-profile-save-btn {
    width: auto;
    min-width: 140px;
    padding: 10px 32px;
    justify-content: center;
    text-align: center;
}

.dashou-body-profile-settings {
    background: #f5f6f8;
}

.dashou-body-profile-settings .admin-main,
.dashou-body-profile-settings .main-content {
    background: #f5f6f8;
}

.dashou-profile-settings-page {
    max-width: 720px;
    margin: 0 auto;
}

.dashou-profile-settings-list {
    background: #fff;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.dashou-profile-settings-item.is-readonly {
    cursor: default;
}

.dashou-profile-settings-item.is-readonly .dashou-profile-settings-value {
    padding-right: 0;
}

.dashou-profile-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    text-decoration: none;
    color: #1f2937;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    cursor: pointer;
}

button.dashou-profile-settings-item {
    border: none;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.dashou-profile-settings-item:last-child {
    border-bottom: none;
}

.dashou-profile-settings-label {
    flex-shrink: 0;
    font-size: 15px;
    color: #1f2937;
}

.dashou-profile-settings-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.dashou-profile-settings-text {
    font-size: 14px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashou-profile-settings-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dashou-profile-settings-qrcode {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eef0f3;
}

.dashou-profile-qrcode-current {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.dashou-profile-qrcode-current img {
    max-width: 220px;
    max-height: 220px;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    object-fit: contain;
    background: #fff;
}

.dashou-profile-qrcode-current.is-empty {
    min-height: 120px;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.dashou-report-image-preview {
    margin-top: 10px;
}

.dashou-image-upload-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.dashou-image-upload-list {
    display: contents;
}

.dashou-image-upload-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    background: #fafafa;
    color: #bfbfbf;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: border-color .2s, color .2s, background .2s;
}

.dashou-image-upload-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f6fffb;
}

.dashou-image-upload-input {
    display: none;
}

.dashou-image-upload-item {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eceff1;
    background: #f8f9fa;
}

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

.dashou-image-upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}

.dashou-profile-settings-avatar-lg {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

.dashou-profile-settings-chevron {
    flex-shrink: 0;
    color: #d1d5db;
}

.dashou-profile-avatar-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 16px;
}

.dashou-profile-avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
}

.dashou-profile-readonly-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.dashou-profile-readonly-field p {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.dashou-body-profile-settings .dashou-profile-edit-card {
    margin: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef0f3;
}

/* ===== 打手端财务对账 ===== */
.dashou-body-finance {
    background: #fff;
}

.dashou-body-finance .admin-main {
    background: #fff;
}

.dashou-body-finance .main-content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    background: #fff;
}

.dashou-finance-page,
.dashou-finance-detail-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 12px 16px;
}

.dashou-body-finance .dashou-finance-page {
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.dashou-wallet-hero {
    margin-bottom: 0;
    padding: 20px 16px 18px;
    border-radius: 0;
    background: #1ab394;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.dashou-wallet-hero-withdraw-btn {
    flex-shrink: 0;
    margin-top: 0;
    padding: 8px 18px;
    border: none;
    border-radius: 0;
    background: #fff;
    color: #148f76;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    align-self: flex-end;
}

.dashou-wallet-panel {
    border-radius: 0;
    background: #fff;
    border: none;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dashou-wallet-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.dashou-wallet-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.92;
}

.dashou-wallet-eye-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    position: relative;
}

.dashou-wallet-eye-btn svg {
    display: block;
}

.dashou-wallet-eye-btn svg[hidden] {
    display: none !important;
}

.dashou-wallet-hero-balance {
    margin-top: 8px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashou-wallet-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.dashou-wallet-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.dashou-wallet-hero-stat span {
    font-size: 11px;
    opacity: 0.88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashou-wallet-hero-stat strong {
    font-size: 16px;
    font-weight: 700;
}

.dashou-wallet-panel-tabs {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #eef0f3;
    flex-shrink: 0;
}

.dashou-wallet-panel-tabs::-webkit-scrollbar {
    display: none;
}

.dashou-wallet-panel-tab {
    flex: 1 0 auto;
    min-width: 72px;
    padding: 14px 10px 12px;
    text-align: center;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}

.dashou-wallet-panel-tab.is-active {
    color: #1ab394;
    border-bottom-color: #1ab394;
    font-weight: 600;
}

.dashou-wallet-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashou-wallet-panel-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dashou-wallet-list-footer {
    padding: 14px 16px 18px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.dashou-wallet-panel-body .dashou-finance-empty {
    border: none;
    border-radius: 0;
}

.dashou-wallet-panel-body .pagination-bar {
    padding: 0 14px 14px;
}

.dashou-finance-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashou-finance-log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f5f8;
}

.dashou-finance-log-item:last-child {
    border-bottom: none;
}

.dashou-finance-log-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.dashou-finance-icon-img,
.dashou-finance-chevron {
    display: block;
    object-fit: contain;
}

.dashou-finance-log-icon.is-income {
    color: #1ab394;
}

.dashou-finance-log-icon.is-expense {
    color: #666;
}

.dashou-finance-log-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashou-finance-log-main strong {
    font-size: 14px;
    color: var(--text-dark);
}

.dashou-finance-log-main span {
    font-size: 12px;
    color: #999;
}

.dashou-finance-log-side {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #ccc;
}

.dashou-finance-log-side strong.is-income {
    color: #e74c3c;
    font-size: 15px;
}

.dashou-finance-log-side strong.is-expense {
    color: #333;
    font-size: 15px;
}

.dashou-finance-order-cards {
    display: flex;
    flex-direction: column;
}

.dashou-finance-settlement-cards {
    display: flex;
    flex-direction: column;
}

.dashou-finance-settlement-card {
    border-bottom: 1px solid #f3f5f8;
}

.dashou-finance-settlement-card:last-child {
    border-bottom: none;
}

.dashou-finance-settlement-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.dashou-finance-settlement-voucher-btn,
.dashou-finance-settlement-voucher-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px 14px 52px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1ab394;
    font-size: 13px;
    cursor: pointer;
}

.dashou-finance-settlement-voucher-inline {
    margin: 0;
}

.dashou-settlement-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 16px 16px;
}

.dashou-settlement-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.dashou-settlement-info-row > span {
    flex-shrink: 0;
    color: #999;
}

.dashou-settlement-info-row > strong {
    text-align: right;
    color: var(--text-dark);
    font-weight: 600;
}

.dashou-settlement-order-section {
    border-top: 8px solid #f5f7fa;
    padding: 12px 0 16px;
}

.dashou-settlement-order-section-title {
    padding: 0 16px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashou-settlement-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashou-settlement-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f5f8;
}

.dashou-settlement-order-item:last-child {
    border-bottom: none;
}

.dashou-settlement-order-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashou-settlement-order-main strong {
    font-size: 14px;
    color: var(--text-dark);
}

.dashou-settlement-order-main span {
    font-size: 12px;
    color: #999;
}

.dashou-settlement-voucher-open {
    display: block;
    width: calc(100% - 32px);
    margin: 12px 16px 16px;
    text-align: center;
}

.dashou-finance-order-card {
    border-bottom: 1px solid #f3f5f8;
}

.dashou-finance-order-card:last-child {
    border-bottom: none;
}

.dashou-finance-order-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

.dashou-finance-order-card-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashou-finance-order-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.dashou-finance-order-card-main strong {
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashou-finance-order-card-main span {
    font-size: 12px;
    color: #999;
}

.dashou-finance-order-card-side {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #ccc;
}

.dashou-finance-order-card-side strong.is-income {
    color: #e74c3c;
    font-size: 15px;
}

.dashou-order-progress {
    position: relative;
    padding: 4px 0 0;
}

.dashou-order-progress-track {
    position: absolute;
    left: calc(100% / 6);
    right: calc(100% / 6);
    top: 11px;
    height: 3px;
    border-radius: 0;
    background: #eef0f3;
    overflow: hidden;
}

.dashou-order-progress-fill {
    height: 100%;
    border-radius: 0;
    background: #1ab394;
    transition: width .25s ease;
}

.dashou-order-progress-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.dashou-order-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dashou-order-progress-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d9dde3;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease;
}

.dashou-order-progress-label {
    font-size: 12px;
    color: #999;
    transition: color .2s ease;
}

.dashou-order-progress-step.is-done .dashou-order-progress-dot {
    border-color: #1ab394;
    background: #1ab394;
}

.dashou-order-progress-step.is-done .dashou-order-progress-label {
    color: #1ab394;
    font-weight: 600;
}

.dashou-order-progress-step.is-active .dashou-order-progress-dot {
    border-color: #1ab394;
    background: #fff;
    box-shadow: none;
}

.dashou-order-progress-step.is-active .dashou-order-progress-label {
    color: #1ab394;
    font-weight: 600;
}

.dashou-order-progress-panel {
    margin-bottom: 12px;
    padding: 16px 14px 12px;
}

.dashou-order-progress-head {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.dashou-order-progress-two .dashou-order-progress-track {
    left: 25%;
    right: 25%;
}

.dashou-order-progress-two .dashou-order-progress-steps {
    grid-template-columns: repeat(2, 1fr);
}

.dashou-order-progress-two.is-cancelled .dashou-order-progress-fill {
    background: #c0c4cc;
}

.dashou-order-progress-two.is-cancelled .dashou-order-progress-step.is-done:last-child .dashou-order-progress-dot {
    border-color: #c0c4cc;
    background: #c0c4cc;
}

.dashou-order-progress-two.is-cancelled .dashou-order-progress-step.is-done:last-child .dashou-order-progress-label {
    color: #909399;
}

.dashou-order-timeline-panel {
    margin-bottom: 12px;
    padding: 16px 14px 12px;
}

.dashou-order-timeline-head {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.dashou-order-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashou-order-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0 0 20px 0;
}

.dashou-order-timeline-item:last-child {
    padding-bottom: 0;
}

.dashou-order-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: #eef0f3;
}

.dashou-order-timeline-item.is-done:not(:last-child)::before {
    background: #1ab394;
}

.dashou-order-timeline-dot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid #d9dde3;
    background: #fff;
    box-sizing: border-box;
}

.dashou-order-timeline-item.is-done .dashou-order-timeline-dot {
    border-color: #1ab394;
    background: #1ab394;
}

.dashou-order-timeline-item.is-done .dashou-order-timeline-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.dashou-order-timeline-item.is-active .dashou-order-timeline-dot {
    border-color: #1ab394;
    box-shadow: 0 0 0 4px rgba(26, 179, 148, 0.15);
}

.dashou-order-timeline-body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.dashou-order-timeline-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashou-order-timeline-row strong {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.dashou-order-timeline-row time {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.dashou-order-timeline-body p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.dashou-order-timeline-item.is-active .dashou-order-timeline-row strong {
    color: #1ab394;
}

.dashou-wallet-card {
    margin-bottom: 12px;
    padding: 22px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1ab394 0%, #148f76 100%);
    color: #fff;
    text-align: center;
}

.dashou-wallet-label {
    font-size: 14px;
    opacity: 0.92;
}

.dashou-wallet-balance {
    margin-top: 10px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashou-wallet-tip {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.88;
}

.dashou-wallet-withdraw-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    border: none;
    border-radius: 0;
    background: #fff;
    color: #148f76;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

.dashou-finance-tabs {
    margin-bottom: 12px;
}

.dashou-finance-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
}

.dashou-finance-status-tag.is-pending {
    background: #fff3e0;
    color: #e67e22;
}

.dashou-withdraw-sheet-lg {
    width: 100%;
    max-width: 720px;
    max-height: min(88dvh, 88vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0;
}

.dashou-withdraw-submit-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 18px 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.dashou-withdraw-submit-wrap .btn {
    min-width: 200px;
    min-height: 44px;
    padding: 10px 48px;
    font-size: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
}

.dashou-withdraw-modal-section {
    margin-bottom: 16px;
}

.dashou-withdraw-modal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dashou-withdraw-modal-summary {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.dashou-withdraw-modal-section .dashou-withdraw-order-list {
    max-height: none;
    overflow: visible;
    border: 1px solid #eef0f3;
    border-radius: 0;
}

.dashou-body-finance .dashou-main {
    padding: 0;
}

.dashou-body-finance .btn,
.dashou-body-finance .form-control {
    box-shadow: none;
    border-radius: 0;
}

.dashou-wallet-detail-panel {
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0f3;
    overflow: hidden;
}

.dashou-wallet-detail-head {
    padding: 14px 14px 0;
}

.dashou-wallet-detail-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashou-wallet-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashou-wallet-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #f0f2f5;
}

.dashou-wallet-log-item:last-child {
    border-bottom: none;
}

.dashou-wallet-log-main,
.dashou-wallet-log-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashou-wallet-log-main {
    min-width: 0;
}

.dashou-wallet-log-main strong {
    font-size: 14px;
    color: var(--text-dark);
}

.dashou-wallet-log-main span,
.dashou-wallet-log-side span {
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-wallet-log-side {
    align-items: flex-end;
    flex-shrink: 0;
}

.dashou-wallet-log-side .is-income {
    color: #e74c3c;
    font-size: 16px;
}

.dashou-wallet-log-side .is-expense {
    color: #333;
    font-size: 16px;
}

.dashou-withdraw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashou-withdraw-select-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.dashou-withdraw-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashou-withdraw-order-item {
    border-bottom: 1px solid #f0f2f5;
}

.dashou-withdraw-order-item:last-child {
    border-bottom: none;
}

.dashou-withdraw-order-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
}

.dashou-withdraw-order-label input {
    flex-shrink: 0;
}

.dashou-withdraw-order-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashou-withdraw-order-meta {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashou-withdraw-order-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashou-withdraw-order-body strong {
    font-size: 15px;
    color: var(--text-dark);
}

.dashou-withdraw-order-body span {
    font-size: 12px;
    color: #999;
}

.dashou-withdraw-order-amount {
    flex-shrink: 0;
    color: #e74c3c;
    font-size: 16px;
}

.dashou-withdraw-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #eef0f3;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.dashou-withdraw-bar-info {
    font-size: 13px;
    color: #666;
}

.dashou-withdraw-bar-info strong {
    color: var(--text-dark);
}

.dashou-withdraw-mask {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dashou-withdraw-mask.is-open {
    opacity: 1;
    visibility: visible;
}

.dashou-withdraw-sheet {
    width: 100%;
    max-width: 720px;
    overflow: hidden;
    background: #fff;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.dashou-withdraw-mask.is-open .dashou-withdraw-sheet {
    transform: translateY(0);
}

.dashou-withdraw-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef0f3;
    flex-shrink: 0;
}

.dashou-withdraw-sheet-head h3 {
    margin: 0;
    font-size: 17px;
}

.dashou-withdraw-sheet-close {
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.dashou-withdraw-sheet-body {
    padding: 16px 18px 24px;
}

.dashou-withdraw-sheet-summary {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}

.dashou-withdraw-qrcode-current {
    margin-bottom: 10px;
    text-align: center;
}

.dashou-withdraw-sheet-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashou-withdraw-sheet-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashou-withdraw-sheet-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dashou-withdraw-qrcode-current img,
.dashou-withdraw-qrcode-preview img {
    display: block;
    max-width: 120px;
    max-height: 120px;
    margin: 0 auto 8px;
    border-radius: 0;
    border: 1px solid #eef0f3;
}

.dashou-withdraw-qrcode-current span {
    display: block;
    font-size: 12px;
    color: #999;
}

.dashou-wallet-detail-panel .dashou-finance-empty {
    border: none;
    border-radius: 0;
}

.dashou-wallet-detail-panel .pagination-bar {
    padding: 0 14px 14px;
}

.link-order-no {
    color: #1ab394;
    text-decoration: none;
}

.link-order-no:hover {
    text-decoration: underline;
}

.dispatch-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dispatch-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dispatch-order-detail-card .card-body {
    padding: 20px 24px 24px;
}

.dispatch-order-detail-page {
    width: 100%;
}

.dashou-detail-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef0f3;
}

.dashou-detail-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eef0f3;
}

.dashou-detail-profile-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.dashou-detail-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.dispatch-order-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 0;
    border-radius: 10px;
    background: #f8f9fb;
    border: 1px solid #eef0f3;
}

.dispatch-order-summary-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.dispatch-order-summary-main {
    flex: 1;
    min-width: 0;
}

.dispatch-order-summary-main h4 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

.dispatch-order-summary-main p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.dispatch-order-summary-side {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.dispatch-order-summary-price {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1.2;
}

.dispatch-order-summary-qty {
    font-size: 13px;
    color: var(--text-muted);
}

.dispatch-order-summary-status {
    margin-top: 2px;
}

.dispatch-order-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 4px;
}

.review-detail-inline-actions {
    flex-wrap: wrap;
    margin-top: 16px;
}

.review-detail-action-panel .form-group {
    max-width: 480px;
}

.dispatch-order-review-images {
    margin-top: 16px;
}

.dispatch-order-review-images .dispatch-order-section-title {
    margin-bottom: 10px;
}

.data-table-dispatch-hall .order-no-link {
    color: var(--primary);
    text-decoration: none;
}

.data-table-dispatch-hall .order-no-link:hover {
    text-decoration: underline;
}

.dispatch-order-tabs {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border: 1px solid #eef0f3;
    border-bottom: none;
    background: #fafbfc;
}

.dispatch-order-tabs .tab-nav-item {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
}

.dispatch-order-tab-panel {
    display: none;
    padding-top: 0;
}

.dispatch-order-tab-panel.active {
    display: block;
}

.dispatch-order-tab-panel .dispatch-order-panel {
    border-radius: 0 0 10px 10px;
    border-top: none;
}

.dispatch-order-panel {
    width: 100%;
    margin-bottom: 16px;
    padding: 20px 24px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
    box-sizing: border-box;
}

.dispatch-order-info-rows {
    display: flex;
    flex-direction: column;
}

.dispatch-order-info-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.dispatch-order-info-row:first-child {
    padding-top: 0;
}

.dispatch-order-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dispatch-order-info-row .dispatch-order-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.dispatch-order-info-row .dispatch-order-value {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    word-break: break-word;
    text-align: left;
}

.dispatch-order-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.dispatch-order-field-wide {
    grid-column: 1 / -1;
}

.dispatch-order-field-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.dispatch-order-rows {
    display: flex;
    flex-direction: column;
}

.dispatch-order-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

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

.dispatch-order-label {
    font-size: 13px;
    color: var(--text-muted);
}

.dispatch-order-value {
    font-size: 14px;
    color: var(--text-dark);
    word-break: break-word;
}

.dispatch-order-row .dispatch-order-label {
    flex-shrink: 0;
    width: 88px;
}

.dispatch-order-row .dispatch-order-value {
    flex: 1;
    text-align: right;
}

.dispatch-order-price {
    color: #e74c3c;
    font-weight: 600;
}

.dispatch-order-price-lg {
    font-size: 20px;
    font-weight: 700;
}

.dispatch-order-review-inline {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
    padding: 14px 0 0;
}

.dispatch-order-review-remark-inline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    word-break: break-word;
}

.dispatch-order-no-screenshot {
    font-size: 13px;
    white-space: nowrap;
}

.dispatch-order-section-title {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.dispatch-order-review-panel {
    padding-bottom: 20px;
}

.dispatch-order-review-block {
    margin-top: 4px;
}

.dispatch-order-review-label {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.dispatch-order-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    word-break: break-word;
}

.dispatch-order-review-panel .order-review-image-grid {
    margin-top: 0;
}

.dispatch-income-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 8px;
    background: #f8f9fb;
}

.dispatch-income-summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dispatch-income-summary-item strong {
    font-size: 20px;
    color: var(--text-dark);
}

.dispatch-income-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: #f8f9fb;
    border-radius: 8px;
}

.dashou-finance-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.dashou-finance-month-form {
    margin: 0;
}

.dashou-finance-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eef0f3;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    position: relative;
}

.dashou-finance-month-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dashou-finance-notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #fff8e6;
    color: #e67e22;
    font-size: 12px;
    line-height: 1.5;
}

.dashou-finance-month-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.dashou-finance-month-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashou-finance-month-tag {
    padding: 4px 10px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #666;
    font-size: 12px;
}

.dashou-finance-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef0f3;
}

.dashou-finance-day-card {
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
    overflow: hidden;
}

.dashou-finance-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.dashou-finance-day-body {
    padding: 0 14px 14px;
}

.dashou-finance-day-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.dashou-finance-metric-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.dashou-finance-metric-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.dashou-finance-metric-value.is-income {
    color: var(--text-dark);
}

.dashou-finance-metric-value.is-expense {
    color: var(--text-dark);
}

.dashou-finance-day-btn {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border-radius: 22px;
    background: #3498db;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

.dashou-finance-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
}

.dashou-finance-detail-hero {
    margin: -10px -10px 0;
    padding: 18px 16px 42px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.dashou-finance-detail-hero-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.dashou-finance-detail-card {
    margin: -28px 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.dashou-finance-detail-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #fff8e6;
    color: #e67e22;
    font-size: 12px;
    line-height: 1.5;
}

.dashou-finance-detail-generated {
    font-size: 13px;
    color: var(--text-muted);
}

.dashou-finance-detail-section {
    margin-bottom: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
    overflow: hidden;
}

.dashou-finance-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 15px;
    font-weight: 600;
}

.dashou-finance-detail-section-head .is-income {
    color: #e74c3c;
    font-size: 16px;
}

.dashou-finance-detail-section-head .is-expense {
    color: var(--text-dark);
    font-size: 16px;
}

.dashou-finance-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashou-finance-detail-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f6f8;
    font-size: 14px;
}

.dashou-finance-detail-list li:last-child {
    border-bottom: none;
}

.dashou-finance-detail-item-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.dashou-finance-detail-item-amount.is-income {
    color: #e74c3c;
    font-weight: 600;
}

.dashou-finance-detail-item-amount.is-expense {
    color: var(--text-dark);
    font-weight: 600;
}

.dashou-finance-detail-empty {
    padding: 16px 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.dashou-finance-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashou-finance-order-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f6f8;
}

.dashou-finance-order-list li:last-child {
    border-bottom: none;
}

.dashou-finance-order-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashou-finance-order-main strong {
    font-size: 14px;
    color: var(--text-dark);
}

.dashou-finance-order-main span {
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-finance-order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.dashou-finance-order-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.dashou-finance-order-meta strong.is-income {
    color: #e74c3c;
}

.dashou-finance-order-meta strong.is-expense {
    color: var(--text-dark);
}

/* ===== 老板列表 ===== */
.boss-list-tip {
    margin: 0 0 12px;
    font-size: 13px;
}

.table-wrap-boss {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap-projects {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table-projects {
    table-layout: fixed;
    width: 100%;
    font-size: 13px;
}

.data-table-projects col.w-project-type { width: 12%; }
.data-table-projects col.w-project-name { width: 28%; }
.data-table-projects col.w-project-amount { width: 12%; }
.data-table-projects col.w-project-remark { width: 24%; }
.data-table-projects col.w-project-status { width: 12%; }
.data-table-projects col.w-project-actions { width: 12%; }

.data-table-projects th,
.data-table-projects td {
    padding: 12px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table-projects td.project-remark-cell {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .data-table-projects {
        min-width: 760px;
    }

    .data-table-projects col.w-project-type { width: 100px; }
    .data-table-projects col.w-project-name { width: 220px; }
    .data-table-projects col.w-project-amount { width: 100px; }
    .data-table-projects col.w-project-remark { width: 160px; }
    .data-table-projects col.w-project-status { width: 90px; }
    .data-table-projects col.w-project-actions { width: 90px; }
}

.data-table-boss {
    table-layout: fixed;
    width: 100%;
    font-size: 13px;
}

.data-table-boss col.w-boss-avatar { width: 72px; }
.data-table-boss col.w-boss-no { width: 9%; }
.data-table-boss col.w-boss-nickname { width: 12%; }
.data-table-boss col.w-boss-balance { width: 11%; }
.data-table-boss col.w-boss-contact { width: 16%; }
.data-table-boss col.w-boss-time { width: 14%; }
.data-table-boss col.w-boss-actions { width: auto; }

.data-table-boss th,
.data-table-boss td {
    padding: 12px 14px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table-boss th {
    white-space: nowrap;
}

.data-table-boss td {
    white-space: nowrap;
}

.data-table-boss td.boss-actions {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

.data-table-boss td.boss-avatar-cell {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    width: 72px;
    min-width: 72px;
    padding-left: 12px;
    padding-right: 12px;
}

.boss-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    border: 1px solid var(--border-color, #e8e8e8);
}

.boss-name-link {
    color: var(--text-dark, #333);
    text-decoration: none;
}

.boss-name-link:hover {
    color: var(--primary, #13a89e);
    text-decoration: underline;
}

.boss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.boss-actions .btn,
.boss-action-btn {
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 1200px) {
    .data-table-boss col.w-boss-no { width: 72px; }
    .data-table-boss col.w-boss-nickname { width: 88px; }
    .data-table-boss col.w-boss-balance { width: 88px; }
    .data-table-boss col.w-boss-contact { width: 120px; }
    .data-table-boss col.w-boss-time { width: 128px; }
    .data-table-boss col.w-boss-actions { width: auto; }

    .data-table-boss {
        table-layout: auto;
        min-width: 760px;
    }
}

@media (max-width: 768px) {
    .order-list-bar .filter-bar-boss {
        flex-wrap: wrap;
    }

    .order-list-bar .filter-bar-boss input[name="keyword"] {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }
}

.boss-balance-cell {
    font-weight: 600;
    color: #e74c3c;
}

.data-table-boss-logs th,
.data-table-boss-logs td {
    font-size: 13px;
    padding: 8px 10px;
}

.filter-bar-boss .form-control {
    min-width: 0;
    flex: 1 1 220px;
}

.order-list-bar .filter-bar-boss input[name="keyword"] {
    min-width: 0;
    flex: 1 1 260px;
    max-width: 100%;
}

.boss-form-tip {
    margin: 0;
    font-size: 12px;
}

#bossLogsPager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

#bossLogsPager .pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashou-boss-search-sheet {
    max-height: 78vh;
}

.dashou-boss-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.dashou-boss-id-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.dashou-boss-id-wrap .form-control {
    flex: 1;
    min-width: 0;
}

.dashou-boss-id-wrap .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.dashou-boss-search-bar .form-control {
    flex: 1;
    min-width: 0;
}

.dashou-boss-search-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    max-height: 42vh;
    overflow-y: auto;
}

.dashou-boss-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #fff;
}

.dashou-boss-search-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color, #eee);
}

.dashou-boss-search-item:hover {
    border-color: var(--primary, #17a589);
    background: rgba(23, 165, 137, 0.04);
}

.dashou-boss-search-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.dashou-boss-search-item-main strong {
    font-size: 15px;
    color: var(--text-color, #333);
}

.dashou-boss-search-item-main span {
    font-size: 12px;
    color: var(--text-muted, #888);
}

.dashou-boss-search-tip {
    padding: 16px 8px;
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 13px;
}

.dashou-teammate-field {
    width: 100%;
}

.dashou-teammate-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.dashou-teammate-list {
    display: contents;
}

.dashou-teammate-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    max-width: calc(50% - 5px);
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    box-sizing: border-box;
}

.dashou-teammate-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eceff1;
    background: #fff;
    flex-shrink: 0;
}

.dashou-teammate-row-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #3c4043;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashou-teammate-row-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #80868b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dashou-teammate-row-remove:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #5f6368;
}

.dashou-teammate-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    max-width: calc(50% - 5px);
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px dashed #c5c9ce;
    background: #fff;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .2s, background .2s, color .2s;
}

.dashou-teammate-add-card:hover {
    border-color: #81c995;
    background: rgba(129, 201, 149, 0.06);
    color: #1e8e3e;
}

@media (min-width: 480px) {
    .dashou-teammate-row,
    .dashou-teammate-add-card {
        flex: 1 1 calc(33.333% - 7px);
        max-width: calc(33.333% - 7px);
    }
}

.dashou-boss-order-card .dashou-boss-order-rows {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, #eee);
}

.dashou-boss-order-card .dashou-detail-row {
    padding: 6px 0;
    font-size: 13px;
}

.dashou-boss-order-card .dashou-detail-label {
    color: var(--text-muted, #888);
}

.dashou-boss-order-card .dashou-detail-value {
    color: var(--text-color, #333);
}

.delete-order-modal-tip {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.delete-order-modal-warn {
    margin: -8px 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7e6;
    border: 1px solid #ffe7ba;
    color: #ad6800;
    font-size: 13px;
    line-height: 1.5;
}

.delete-order-backup-option {
    margin-top: 0;
}

.delete-order-wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delete-order-wallet-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
}

.delete-order-wallet-option input {
    margin-top: 3px;
}

.delete-order-wallet-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delete-order-wallet-option-text strong {
    font-size: 14px;
    color: var(--text-dark);
}

.delete-order-wallet-option-text small {
    font-size: 12px;
    color: var(--text-muted);
}
