/* ==================== CSS Variables - Ocean Blue Theme ==================== */
/* ==================== CSS Variables - Ocean Blue Theme ==================== */
:root {
    /* Primary Ocean Blue Colors */
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --primary-lighter: #f0f9ff;

    /* Secondary Colors */
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    /* Background Colors */
    --bg-body: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 50%, #f1f5f9 100%);
    --bg-white: #ffffff;
    --bg-sidebar: #0f3484;
    /* Deep Blue from reference */
    --bg-sidebar-gradient: linear-gradient(180deg, #104193 0%, #0f2d6b 100%);
    --bg-sidebar-hover: rgba(255, 255, 255, 0.1);
    --bg-card: #ffffff;

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Layout */
    --sidebar-width: 240px;
    /* Widened sidebar */
    --header-height: 60px;
    --tabs-height: 44px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition: all 0.25s ease;
    --transition-fast: all 0.15s ease;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ==================== App Container ==================== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Decorative Wave Background */
.app-container::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

/* App Main - 右侧区域 */
.app-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* App Body - 下方内容区域 */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ==================== Sidebar ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar-gradient);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Changed from center to flex-start */
    padding: 24px 8px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    box-shadow: 4px 0 30px rgba(7, 89, 133, 0.3);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 80px;
    padding: 24px 8px;
    align-items: center;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .sidebar-footer {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed .logo {
    justify-content: center;
    align-items: center;
    padding: 8px;
    width: 66px;
    margin: 0 auto;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 14px;
    width: 56px;
    margin: 0 auto;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.sidebar.collapsed .nav-item.active {
    background: var(--primary-color);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.sidebar.collapsed .nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(0);
    transform: scale(1.05);
}

/* Remove old decorative wave */
.sidebar::after {
    display: none;
}

/* Sub-sidebar collapsed state */
.sub-sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.logo {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 8px 12px;
    /* Added padding to align with nav items */
    background: transparent;
    border-radius: 12px;
    backdrop-filter: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.15);
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:not(.collapsed) .logo-icon {
    animation: float 3s ease-in-out infinite;
}

/* 收缩状态下船图标居中并保持浮动动画 */
.sidebar.collapsed .logo-icon {
    animation: float 3s ease-in-out infinite;
    margin-left: 8px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
}

.nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Increased gap */
    padding: 0;
}

.nav-item {
    display: flex;
    flex-direction: row;
    /* Changed to row */
    align-items: center;
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 16px;
    margin: 0;
    width: 100%;
    text-decoration: none;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.nav-item.active {
    color: #fff;
    background: var(--primary-color);
    /* Solid Blue highlight */
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.3);
    font-weight: 500;
}

/* Active Highlight */
.nav-item.active::before {
    display: none;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 0;
    margin-right: 12px;
    filter: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-text {
    font-size: 15px;
    /* Increased font size */
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
}

.nav-item.active .nav-text {
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== Sub Sidebar ==================== */
.sub-sidebar {
    width: auto;
    min-width: 140px;
    max-width: 200px;
    /* Slightly wider sub-sidebar */
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    padding-top: 16px;
    transition: var(--transition);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
}

.sub-sidebar.show {
    display: flex;
}

.sub-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px 12px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    white-space: nowrap;
    gap: 8px;
}

.sub-nav-item>span:first-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sub-nav-item:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.sub-nav-item.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}

.sub-nav-item .arrow {
    color: transparent;
    font-size: 12px;
    font-weight: normal;
    transition: var(--transition);
    flex-shrink: 0;
}

.sub-nav-item.active .arrow {
    color: var(--primary-color);
    font-weight: 700;
}

/* Count Badge Styling */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    background: var(--primary-lighter);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    min-width: 16px;
    height: 16px;
    line-height: 1;
    transition: var(--transition);
    flex-shrink: 0;
}

.sub-nav-item:hover .count-badge {
    background: var(--primary-light);
}

.sub-nav-item.active .count-badge {
    background: var(--primary-color);
    color: white;
}

/* Hide empty count badges */
.count-badge:empty {
    display: none;
}

/* ==================== Main Content ==================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
}

/* ==================== Top Header ==================== */
.global-pagination-wrapper {
    position: fixed;
    bottom: 0;
    left: 240px;
    /* 主侧边栏宽度 */
    right: 0;
    height: 70px;
    background: var(--bg-white);
    border-top: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* 财务管理页面激活时隐藏全局分页栏 */
.global-pagination-wrapper.hide-for-finance {
    display: none !important;
}

.top-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 20px rgba(14, 165, 233, 0.05);
}

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

.menu-toggle {
    font-size: 22px;
    color: var(--primary-color);
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title .breadcrumb-sep {
    color: var(--text-muted);
    font-size: 12px;
}

.page-title .breadcrumb-current {
    font-weight: 600;
    color: var(--primary-color);
}

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

.current-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.current-time .time-icon {
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.current-time .time-text {
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.company-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    /* Capsule padding */
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-body);
    /* Light background */
    border-radius: 30px;
    /* Capsule shape */
    border: 1px solid transparent;
}

.company-selector:hover {
    background: #e6f7ff;
    /* Ant light blue */
    border-color: #bfa;
    /* Just a placeholder, actually unnecessary to change border if bg changes */
    border-color: #bae7ff;
}

.avatar {
    width: 32px;
    height: 32px;
    background: #ff4d4f;
    /* Red/Orange from reference */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.2);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.company-selector:hover .dropdown-arrow {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 16px;
    /* Increased gap between icons */
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Circular buttons */
    font-size: 18px;
    transition: var(--transition);
    background: transparent;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

/* ==================== Tabs Bar ==================== */
.tabs-bar {
    height: var(--tabs-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: none;
    align-items: flex-end;
    padding: 0 20px;
    gap: 4px;
    flex-shrink: 0;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
}

.tab:hover {
    background: var(--bg-white);
}

.tab.active {
    background: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--border-color);
    position: relative;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-close {
    font-size: 14px;
    color: var(--text-muted);
    padding: 2px;
    border-radius: 4px;
    line-height: 1;
}

.tab-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* ==================== Page Content ==================== */
.page-content {
    flex: 1;
    overflow: auto;
    padding: 24px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageIn 0.4s ease;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Home Page ==================== */
.home-layout {
    display: flex;
    gap: 24px;
}

.home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

/* New Business Request Layout */
.new-home-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.business-request-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.form-main-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 24px;
}

.business-request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: white;
    color: var(--text-primary);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9ca3af;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.quantity-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quantity-inputs input {
    padding: 11px 12px;
    text-align: center;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.char-count {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: -4px;
}

.form-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-submit-request,
.btn-save-draft {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit-request {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    flex: 1;
}

.btn-submit-request:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.btn-save-draft {
    background: white;
    color: #1e3a8a;
    border: 1.5px solid #d1d5db;
    flex: 1;
}

.btn-save-draft:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
}

/* Stats Sidebar */
.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-box .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-box.pending .stat-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.stat-box.processing .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-box.completed .stat-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.stat-box .stat-content {
    flex: 1;
}

.stat-box .stat-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-box .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

@media (max-width: 1200px) {
    .new-home-layout {
        grid-template-columns: 1fr;
    }

    .stats-sidebar {
        grid-template-columns: repeat(3, 1fr);
        flex-direction: row;
    }
}

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

    .stats-sidebar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .quantity-inputs {
        grid-template-columns: 1fr;
    }
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--primary-lighter);
    flex-shrink: 0;
}

.stat-card .stat-info {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

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

/* 利润卡片特殊样式 */
.stat-card.profit {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
}

.stat-card.profit .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-card.profit .stat-value,
.stat-card.profit .stat-label {
    color: white;
}

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

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

.stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.stat-dot.blue {
    background: var(--primary-color);
    color: var(--primary-color);
}

.stat-dot.orange {
    background: var(--warning-color);
    color: var(--warning-color);
}

.stat-dot.green {
    background: var(--success-color);
    color: var(--success-color);
}

.stat-dot.red {
    background: var(--error-color);
    color: var(--error-color);
}

.stat-value {
    font-size: 42px;
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.red {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chart Container */
.chart-container {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    min-height: 200px;
    max-height: 300px;
    box-shadow: var(--shadow-sm);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-title::before {
    content: '📊';
    font-size: 18px;
}

/* Todo Section */
.todo-section,
.news-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title .view-more {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--primary-lighter);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

.section-title .view-more:hover {
    background: var(--primary-light);
}

/* 红点提醒 */
.section-title .view-more .red-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 首页待办列表 */
.home-todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-todo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--primary-lighter);
    border-radius: 10px;
    border-left: 4px solid var(--border-color);
    transition: var(--transition);
}

.home-todo-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.home-todo-item.priority-urgent {
    border-left-color: var(--error-color);
    background: #fef2f2;
}

.home-todo-item.priority-high {
    border-left-color: var(--warning-color);
    background: #fffbeb;
}

.home-todo-item.priority-normal {
    border-left-color: var(--primary-color);
}

.home-todo-item.priority-low {
    border-left-color: var(--success-color);
}

.home-todo-item .todo-title {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-todo-item .todo-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 10px;
}

/* 首页公告列表 */
.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-news-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
}

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

.home-news-item.is-top {
    background: linear-gradient(90deg, #fffbeb 0%, transparent 100%);
    padding: 10px 12px;
    border-radius: 8px;
    margin: 0 -12px;
}

.home-news-item .news-index {
    color: var(--text-muted);
    font-size: 12px;
    width: 24px;
    flex-shrink: 0;
}

.home-news-item .news-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-news-item .news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 10px;
}

.empty-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 30px 0;
}

/* 详情弹窗 */
.detail-popup-modal {
    width: 500px;
    max-width: 95vw;
}

.detail-popup-modal .modal-body {
    padding: 24px;
}

.detail-popup-modal .detail-row {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}

.detail-popup-modal .detail-row:last-child {
    margin-bottom: 0;
}

.detail-popup-modal .detail-row label {
    width: 80px;
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}

.detail-popup-modal .detail-row span,
.detail-popup-modal .detail-row p {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.detail-popup-modal .detail-content {
    background: var(--primary-lighter);
    padding: 14px;
    border-radius: 10px;
    line-height: 1.7;
    max-height: 200px;
    overflow-y: auto;
}

.detail-popup-modal .status-completed {
    color: var(--success-color);
}

.detail-popup-modal .status-pending {
    color: var(--warning-color);
}

/* 详情弹窗底部按钮 */
.detail-popup-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

.detail-popup-modal .modal-footer button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.detail-popup-modal .btn-view-order-detail {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.detail-popup-modal .btn-view-order-detail:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.detail-popup-modal .btn-complete-todo {
    background: linear-gradient(135deg, var(--success-color) 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.detail-popup-modal .btn-complete-todo:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.detail-popup-modal .btn-cancel {
    background: #f3f4f6;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.detail-popup-modal .btn-cancel:hover {
    background: #e5e7eb;
    color: var(--text-primary);
}

.coming-soon {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
    padding: 40px 0;
}

/* News List */
.news-list {
    list-style: none;
}

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

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

.news-index {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.news-date {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

/* ==================== Forecast Page ==================== */
.forecast-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    max-width: 100%;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.form-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 右侧提交结果面板 */
.submit-result-panel {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    height: 100%;
}

.submit-result-panel .result-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 16px;
}

.submit-result-panel .result-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.submit-result-panel .result-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 16px;
}

.result-empty .result-icon {
    display: block;
    margin: 0 auto 12px;
}

.result-empty p {
    margin: 5px 0;
    font-size: 12px;
}

.result-empty .result-hint {
    font-size: 11px;
    color: var(--text-light);
}

/* 成功结果显示 */
.result-success {
    animation: successIn 0.4s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-success .success-icon {
    text-align: center;
    margin-bottom: 8px;
}

.result-success .success-icon i {
    font-size: 40px;
    color: var(--success-color);
}

.result-success .success-icon svg {
    width: 40px;
    height: 40px;
}

.result-success .success-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 12px;
}

.result-info {
    background: var(--primary-lighter);
    border-radius: 8px;
    padding: 10px 12px;
}

.result-info-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 11px;
}

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

.result-info-item .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.result-info-item .value {
    color: var(--text-primary);
    font-weight: 600;
    max-width: 180px;
    text-align: right;
    word-break: break-all;
}

.result-token {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.result-token .token-label {
    font-size: 10px;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-token .token-label::before {
    content: '📌';
    font-size: 11px;
}

.result-token .token-value {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    color: var(--primary-dark);
    word-break: break-all;
    background: white;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    line-height: 1.5;
}

.result-actions {
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-light);
}

.result-actions .btn-view {
    flex: 1;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.result-actions .btn-view:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.result-actions .btn-new {
    flex: 1;
    padding: 8px 14px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.result-actions .btn-new:hover {
    background: var(--primary-lighter);
    transform: translateY(-1px);
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: start;
}

.form-row>.form-group {
    min-width: 0;
}

/* 两列布局 */
.form-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 四列布局（服务选项行） */
.form-row.cols-service {
    grid-template-columns: minmax(400px, 1fr) auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: auto;
    text-align: left;
}

.form-group.full {
    grid-column: span 2;
}

.form-group.small {
    width: auto;
    flex-shrink: 0;
}

.form-group.small select {
    min-width: 100px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-white);
    font-size: 13px;
    box-sizing: border-box;
}

/* 日期输入框保持左侧内边距一致，右侧留出图标空间 */
.form-group input[type="date"] {
    padding: 10px 40px 10px 12px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* 占位符样式优化 */
.form-group input::placeholder {
    font-size: 11px;
    color: #999;
    opacity: 1;
}

.form-group input::-webkit-input-placeholder {
    font-size: 11px;
    color: #999;
}

.form-group input::-moz-placeholder {
    font-size: 11px;
    color: #999;
}

.form-group input:-ms-input-placeholder {
    font-size: 11px;
    color: #999;
}

/* 柜号输入框特殊处理 */
#containerNo::placeholder {
    font-size: 11px;
    letter-spacing: -0.3px;
}

/* 日期输入框特殊样式 - 确保整个区域可点击 */
.form-group input[type="date"] {
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 确保日期输入框的日历图标可见且可点击 */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 1;
    z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Firefox 日历图标 */
.form-group input[type="date"]::-moz-calendar-picker-indicator {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.form-group input.highlight-input {
    background: #fffbeb;
    border-color: var(--warning-color);
}

.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    min-height: 60px;
    resize: vertical;
    transition: var(--transition);
    font-size: 13px;
}

.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.select-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.select-wrapper select {
    width: 100%;
    box-sizing: border-box;
}

.service-input {
    flex: 1;
    min-width: 400px !important;
}

/* 服务选项多选框组 */
.service-checkbox-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    font-size: 13px;
    user-select: none;
    white-space: nowrap;
}

.checkbox-label:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked~span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.checkbox-label.checked {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* 运输方式单选组 */
.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
    font-size: 13px;
}

.radio-label input {
    display: none;
}

.radio-label:hover {
    border-color: var(--primary-color);
}

.radio-label.active,
.radio-label:has(input:checked) {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* 整柜直送地址区域 */
.fcl-address-section {
    background: var(--primary-lighter);
    border: 2px solid var(--primary-light);
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
}

.fcl-address-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--primary-light);
}

.address-type-group {
    display: flex;
    gap: 12px;
}

.address-type-group .radio-label {
    padding: 10px 22px;
}

.fba-warehouse-group {
    flex: 1;
    min-width: 300px;
}

.fba-select-wrapper {
    position: relative;
    flex: 1;
}

.fba-warehouse-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-white);
    transition: var(--transition);
}

.fba-warehouse-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.fba-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}

.fba-dropdown.show {
    display: block;
}

.fba-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.fba-dropdown-item:hover {
    background: var(--primary-lighter);
}

.fba-dropdown-item .fba-code {
    font-weight: 600;
    color: var(--text-primary);
}

.fba-dropdown-item .fba-location {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 10px;
}

.normal-address-form {
    margin-top: 18px;
}

.normal-address-form .form-row {
    margin-bottom: 14px;
}

.service-select {
    flex: 1;
    min-width: 400px !important;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.service-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.service-select option {
    padding: 12px;
}

/* 国家和港口选择 */
.country-select,
.port-select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: #fffbeb;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.country-select:focus,
.port-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.country-select option,
.port-select option {
    padding: 10px 14px;
    background: #fff;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.btn-submit {
    padding: 11px 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-reset {
    padding: 11px 35px;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-reset:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* 响应式适配 - 新建提单 */
@media (max-width: 1400px) {
    .forecast-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .submit-result-panel {
        max-height: 500px;
    }
}

@media (max-width: 1100px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row.cols-service {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 2;
    }
}

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

    .form-group.full {
        grid-column: span 1;
    }

    .form-container {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
    }
}

/* ==================== Inner Tabs ==================== */
.inner-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.inner-tab {
    padding: 14px 28px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
}

.inner-tab:hover {
    color: var(--primary-color);
    background: var(--primary-lighter);
}

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

.inner-tab .tab-close-x {
    margin-left: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.inner-tab .tab-close-x:hover {
    color: var(--error-color);
}

/* ==================== Orders Page ==================== */
.orders-container {
    background: var(--bg-white);
    border-radius: 0 0 16px 16px;
    padding: 12px 16px;
    padding-bottom: 60px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: none;
}

/* Sub Menu - deprecated, kept for reference */
.sub-menu {
    display: none;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sub-menu-item {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.sub-menu-item:hover {
    background: var(--primary-lighter);
}

.sub-menu-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 服务类型筛选 */
.service-type-filter {
    display: none;
}

.service-btn {
    padding: 8px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.service-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    color: #fff;
}

/* Status Filter Bar */
.status-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

/* Status Tabs */
.status-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.status-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.status-tab:hover {
    background: var(--primary-lighter);
}

.status-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Filter Toggle Button */
.filter-toggle-btn,
.column-settings-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-toggle-btn:hover,
.column-settings-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

/* 批量删除按钮 */
.btn-batch-delete {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

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

.btn-batch-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-batch-delete:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* 列设置弹窗 */
.column-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.column-settings-modal.active {
    display: flex;
}

.column-settings-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.column-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.column-settings-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.column-settings-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.column-settings-close:hover {
    background: var(--danger-color);
    color: white;
}

.column-settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.column-setting-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-light);
    transition: var(--transition);
}

.column-setting-item:hover {
    background: var(--primary-lighter);
}

.column-setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.column-setting-item label {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.column-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.column-settings-footer button {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.column-settings-reset {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.column-settings-reset:hover {
    background: var(--border-color);
}

.column-settings-confirm {
    background: var(--primary-color);
    color: white;
}

.column-settings-confirm:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.filter-toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.filter-toggle-btn svg {
    width: 14px;
    height: 14px;
}

/* Search Filters */
.search-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--primary-lighter);
    border-radius: 8px;
    border: 1px solid var(--primary-light);
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.search-filters.hidden {
    max-height: 0;
    padding: 0 16px;
    margin-bottom: 0;
    opacity: 0;
    border: none;
}

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

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 0 1 auto;
}

.filter-group.wide {
    flex: 1 1 300px;
    min-width: 300px;
}

.filter-group label {
    color: var(--text-secondary);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
    min-width: fit-content;
}

.filter-group input {
    padding: 5px 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    outline: none;
    width: 140px;
    min-width: 110px;
    background: var(--bg-white);
    transition: var(--transition);
    font-size: 12px;
}

.filter-group.wide input {
    width: 100%;
    min-width: 200px;
}

.filter-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.filter-group.wide input {
    width: 100%;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-range input {
    width: 120px;
    min-width: 100px;
}

.date-range span {
    color: var(--text-muted);
    font-size: 11px;
    flex-shrink: 0;
}

.filter-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    width: 100%;
    justify-content: flex-end;
}

.btn-confirm {
    padding: 5px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    white-space: nowrap;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

.btn-confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-reset {
    padding: 5px 16px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-white);
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
}

.btn-reset:hover {
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

/* Pagination - Enhanced Design */
/* 隐藏页面内的分页栏 */
.pagination-wrapper {
    display: none !important;
}

/* 全局分页栏 */
.global-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 20px;
    background: var(--bg-white);
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    right: 0;
    left: 260px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-total {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination-size {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-primary);
    background: var(--bg-white);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    height: 32px;
}

.pagination-size:hover {
    border-color: var(--primary-color);
}

.pagination-size:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    cursor: pointer;
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.ellipsis {
    border: none;
    cursor: default;
    pointer-events: none;
}

.page-btn.ellipsis:hover {
    background: transparent;
    border-color: transparent;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.jump-input {
    width: 50px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.jump-input:hover {
    border-color: var(--primary-color);
}

.jump-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Remove number input arrows */
.jump-input::-webkit-outer-spin-button,
.jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.jump-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Data Table */
.data-table-wrapper {
    position: relative;
}

.data-table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    margin-bottom: 4px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-light);
}

.data-table-scroll-top>div {
    height: 1px;
}

/* 美化顶部滚动条 */
.data-table-scroll-top::-webkit-scrollbar {
    height: 12px;
}

.data-table-scroll-top::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 6px;
}

.data-table-scroll-top::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 2px solid var(--bg-light);
}

.data-table-scroll-top::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.data-table {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
}

.data-table table {
    background: var(--bg-white);
    table-layout: fixed;
}

.data-table th {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, #f8fafc 100%);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    line-height: 1.2;
}

/* 所有列都固定宽度，不自动扩展 */
.data-table th:nth-child(1) {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}

/* 选择框 */
.data-table th:nth-child(3) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

/* 运输方式 */
.data-table th:nth-child(4) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* 起始港 */
.data-table th:nth-child(5) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* 客户名称 */
.data-table th:nth-child(6) {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}

/* ETD */
.data-table th:nth-child(7) {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}

/* ETA */
.data-table th:nth-child(8) {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

/* 服务类型&状态 */
.data-table th:nth-child(9) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

/* 报价 */
.data-table th:nth-child(10) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* 附件 */
.data-table th:nth-child(11) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* 备注 */
.data-table th:nth-child(12) {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

/* 创建时间 */

/* 子表格列宽 - 所有列固定宽度 */
/* 提单号 */
.sub-orders-table th:nth-child(1),
.sub-orders-table td:nth-child(1) {
    width: 160px;
    min-width: 160px;
}

/* 起始港 */
.sub-orders-table th:nth-child(2),
.sub-orders-table td:nth-child(2) {
    width: 140px;
    min-width: 140px;
}

/* 客户名称 */
.sub-orders-table th:nth-child(3),
.sub-orders-table td:nth-child(3) {
    width: 100px;
    min-width: 100px;
}

/* ETD */
.sub-orders-table th:nth-child(4),
.sub-orders-table td:nth-child(4) {
    width: 100px;
    min-width: 100px;
}

/* ETA */
.sub-orders-table th:nth-child(5),
.sub-orders-table td:nth-child(5) {
    width: 100px;
    min-width: 100px;
}

/* 服务类型&状态 */
.sub-orders-table th:nth-child(6),
.sub-orders-table td:nth-child(6) {
    width: 160px;
    min-width: 160px;
}

/* 附件 */
.sub-orders-table th:nth-child(7),
.sub-orders-table td:nth-child(7) {
    width: 80px;
    min-width: 80px;
}

/* 优化资料/派送地址 */

.data-table td {
    padding: 8px 10px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 服务类型&状态列需要允许内容换行和显示 */
.sub-orders-table td.col-status {
    white-space: normal;
    overflow: visible;
}

/* 客户名称列允许换行 */
.data-table td:nth-child(5),
.data-table th:nth-child(5) {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 150px;
    min-width: 80px;
}

/* ISF、清关、提派页面的客户名称列 */
.sub-orders-table .col-mark {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 120px;
    min-width: 80px;
}

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

.data-table tr:hover td {
    background: var(--primary-lighter);
}

.data-table .empty-row td {
    text-align: center;
    padding: 70px;
    color: var(--text-muted);
    white-space: normal;
}

/* 提单列表表格优化 */
.orders-table {
    overflow-x: auto;
    position: relative;
}

.orders-table table {
    border-collapse: separate;
    border-spacing: 0;
}

/* 固定列 - 复选框列 */
.orders-table th:first-child,
.orders-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-white);
}

.orders-table th:first-child {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, #f8fafc 100%);
    z-index: 3;
}

/* 固定列 - 提单号列 */
.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    position: sticky;
    left: 40px;
    z-index: 2;
    background: var(--bg-white);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-table th:nth-child(2) {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, #f8fafc 100%);
    z-index: 3;
}

/* 固定列 - 操作列 */
.orders-table th:last-child,
.orders-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--bg-white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
    white-space: normal;
    vertical-align: middle;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.orders-table th:last-child {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, #f8fafc 100%);
    z-index: 3;
}

/* 行悬停时固定列背景色同步 */
.orders-table tr:hover td:first-child,
.orders-table tr:hover td:nth-child(2),
.orders-table tr:hover td:last-child {
    background: var(--primary-lighter);
}

/* 子页面表格（ISF、清关、提派）- 无复选框列 */
.sub-orders-table {
    overflow-x: auto;
    position: relative;
}

.sub-orders-table table {
    border-collapse: separate;
    border-spacing: 0;
}

/* 固定列 - 提单号列（第一列） */
.sub-orders-table th:first-child,
.sub-orders-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-white);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-orders-table th:first-child {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, #f8fafc 100%);
    z-index: 3;
}

/* 固定列 - 操作列（最后一列） */
.sub-orders-table th:last-child,
.sub-orders-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--bg-white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
    white-space: normal;
    vertical-align: middle;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.sub-orders-table th:last-child {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, #f8fafc 100%);
    z-index: 3;
}

/* 行悬停时固定列背景色同步 */
.sub-orders-table tr:hover td:first-child,
.sub-orders-table tr:hover td:last-child {
    background: var(--primary-lighter);
}

/* 派送地址列 - 允许换行显示（提派提单表格倒数第二列） */
#delivery-page .sub-orders-table td:nth-last-child(2) {
    white-space: normal;
    word-break: break-all;
    max-width: 200px;
    min-width: 120px;
    line-height: 1.5;
}

/* 派送地址单元格样式 */
.delivery-address-cell {
    max-width: 180px;
    min-width: 120px;
}

.delivery-address-cell .addr-display {
    white-space: normal;
    word-break: break-all;
    line-height: 1.5;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.delivery-address-cell .addr-display:not(.addr-readonly):hover {
    background: var(--primary-lighter);
}

.delivery-address-cell .addr-display.addr-empty {
    color: var(--text-muted);
    font-style: italic;
}

.delivery-address-cell .addr-display.addr-readonly {
    cursor: default;
}

.delivery-address-cell .addr-item {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    white-space: normal;
    word-break: break-all;
}

.delivery-address-cell .addr-item:last-child {
    margin-bottom: 0;
}

.delivery-address-cell .addr-text {
    color: var(--text-primary);
}

.delivery-address-cell .addr-placeholder {
    color: var(--text-muted);
}

.delivery-address-cell .addr-edit-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.delivery-address-cell .addr-display:hover .addr-edit-icon {
    opacity: 1;
}

/* 包含派送地址单元格的 td 允许换行 */
.orders-table td:has(.delivery-address-cell),
.sub-orders-table td:has(.delivery-address-cell) {
    white-space: normal;
    max-width: 200px;
    min-width: 120px;
}

/* 派送地址编辑弹窗样式 */
.delivery-address-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.delivery-address-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-address-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.delivery-address-popup .popup-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    width: 450px;
    max-width: 95vw;
    box-shadow: var(--shadow-lg);
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.delivery-address-popup .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.delivery-address-popup .popup-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.delivery-address-popup .popup-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.delivery-address-popup .popup-close:hover {
    background: var(--error-color);
    color: white;
}

.delivery-address-popup .popup-body {
    padding: 24px;
}

.delivery-address-popup .popup-body .form-item {
    margin-bottom: 16px;
}

.delivery-address-popup .popup-body .form-item:last-child {
    margin-bottom: 0;
}

.delivery-address-popup .popup-body .form-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.delivery-address-popup .popup-body .form-item input,
.delivery-address-popup .popup-body .form-item textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.delivery-address-popup .popup-body .form-item input:focus,
.delivery-address-popup .popup-body .form-item textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.delivery-address-popup .popup-body .form-item textarea {
    resize: vertical;
    min-height: 80px;
}

.delivery-address-popup .popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--primary-lighter);
    border-radius: 0 0 16px 16px;
}

/* ==================== 备注列可编辑样式 ==================== */
.remark-cell {
    max-width: 150px;
    min-width: 80px;
    white-space: normal;
    word-break: break-all;
    line-height: 1.5;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.remark-cell:not(.remark-readonly):hover {
    background: var(--primary-lighter);
}

.remark-cell.remark-empty {
    color: var(--text-muted);
    font-style: italic;
}

.remark-cell.remark-readonly {
    cursor: default;
}

.remark-cell .remark-text {
    font-size: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.remark-cell .remark-placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.remark-cell .remark-edit-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.remark-cell:hover .remark-edit-icon {
    opacity: 1;
}

/* 包含备注单元格的 td 允许换行 */
.orders-table td:has(.remark-cell),
.sub-orders-table td:has(.remark-cell) {
    white-space: normal;
    max-width: 180px;
    min-width: 80px;
}

/* 备注编辑弹窗样式 */
.remark-edit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.remark-edit-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.remark-edit-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.remark-edit-popup .popup-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    width: 450px;
    max-width: 95vw;
    box-shadow: var(--shadow-lg);
    animation: popupIn 0.3s ease;
}

.remark-edit-popup .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.remark-edit-popup .popup-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.remark-edit-popup .popup-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.remark-edit-popup .popup-close:hover {
    background: var(--error-color);
    color: white;
}

.remark-edit-popup .popup-body {
    padding: 24px;
}

.remark-edit-popup .popup-body .form-item {
    margin-bottom: 0;
}

.remark-edit-popup .popup-body .form-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.remark-edit-popup .popup-body .form-item textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.remark-edit-popup .popup-body .form-item textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.remark-edit-popup .popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--primary-lighter);
    border-radius: 0 0 16px 16px;
}

/* 提单号列 */
.orders-table td:nth-child(2) {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-primary);
}

/* 起始港/目的港列 */
.orders-table .port-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
    white-space: normal;
    min-width: 100px;
}

.orders-table .port-cell .port-label {
    color: var(--text-muted);
    font-size: 11px;
}

.orders-table .port-cell .port-name {
    color: var(--text-primary);
    font-weight: 500;
}

/* 服务类型状态列 */
.orders-table .service-status-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    white-space: normal;
    min-width: 100px;
}

.orders-table .service-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 10px;
    background: var(--primary-lighter);
    color: var(--primary-color);
    margin-right: 4px;
    margin-bottom: 2px;
}

.orders-table .status-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.orders-table .status-tag.pending {
    color: var(--warning-color);
}

.orders-table .status-tag.completed {
    color: var(--success-color);
}

/* 日期列 */
.orders-table td:nth-child(5),
.orders-table td:nth-child(6),
.orders-table td:nth-child(12) {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 操作列 */
.orders-table .action-cell {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: 2px;
}

.sub-orders-table .action-cell {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: 2px;
}

.orders-table .action-btn {
    padding: 2px 4px;
    font-size: 11px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    line-height: 1.3;
    flex: 0 0 calc(50% - 1.5px);
    text-align: center;
    min-width: 45px;
}

/* 删除按钮独占一行 */
.orders-table .action-btn:last-child {
    flex: 0 0 100%;
}

.sub-orders-table .action-btn {
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    line-height: 1.4;
    flex: 0 0 calc(50% - 2px);
    text-align: center;
    min-width: 45px;
}

.orders-table .action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.orders-table .action-btn.danger:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background: #fef2f2;
}

/* 复选框列 */
.orders-table th:first-child,
.orders-table td:first-child {
    width: 40px;
    text-align: center;
}

.orders-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* 提单列表各列样式 */
.orders-table .col-order,
.sub-orders-table .col-order {
    min-width: 160px;
}

.orders-table .order-info,
.sub-orders-table .order-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.5;
}

.orders-table .order-no-label,
.sub-orders-table .order-no-label {
    color: var(--text-secondary);
}

.orders-table .order-no-value,
.sub-orders-table .order-no-value {
    color: var(--text-primary);
    font-weight: 500;
}

.orders-table .order-no-code,
.sub-orders-table .order-no-code {
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--primary-color);
}

.orders-table .container-no,
.sub-orders-table .container-no {
    color: var(--text-muted);
}

.orders-table .col-transport {
    min-width: 70px;
    color: var(--text-secondary);
}

.orders-table .col-port,
.sub-orders-table .col-port {
    min-width: 140px;
}

.orders-table .port-info,
.sub-orders-table .port-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.4;
}

.orders-table .port-info div,
.sub-orders-table .port-info div {
    white-space: nowrap;
}

.orders-table .port-name,
.sub-orders-table .port-name {
    color: var(--text-primary);
    font-weight: 500;
}

.orders-table .col-mark,
.sub-orders-table .col-mark {
    min-width: 60px;
    color: var(--text-secondary);
}

.orders-table .col-date,
.sub-orders-table .col-date {
    min-width: 90px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.orders-table .col-status,
.sub-orders-table .col-status {
    min-width: 180px;
    white-space: normal;
    overflow: visible;
}

/* orders-table 服务状态列样式 */
.orders-table .col-status .service-status-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orders-table .col-status .status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.orders-table .col-status .status-name {
    color: var(--text-secondary);
    font-size: 12px;
}

.orders-table .col-status .status-tag {
    font-size: 11px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* sub-orders-table 服务状态列特殊处理 */
.sub-orders-table .col-status .service-status-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-orders-table .col-status .status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.sub-orders-table .col-status .status-name {
    color: var(--text-secondary);
    font-size: 11px;
}

.sub-orders-table .col-status .status-tag {
    font-size: 11px;
    padding: 1px 6px;
    white-space: nowrap;
}

.orders-table .col-quote {
    min-width: 80px;
}

.orders-table .quote-value {
    color: var(--text-muted);
}

.orders-table .quote-value.has-quote {
    color: var(--success-color);
    font-weight: 600;
}

.orders-table .col-attachments {
    min-width: 60px;
}

.orders-table .col-remark {
    min-width: 80px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-table .col-time {
    min-width: 100px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

/* 双行时间显示样式 */
.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
}

.time-display .time-date {
    font-weight: 500;
    color: var(--text-color);
}

.time-display .time-hour {
    font-size: 11px;
    color: var(--text-muted);
}

.orders-table .col-actions {
    min-width: 160px;
}

/* 操作链接样式 */
.orders-table .action-link,
.sub-orders-table .action-link {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.orders-table .action-link:hover,
.sub-orders-table .action-link:hover {
    background: var(--primary-lighter);
}

.orders-table .action-link.action-delete,
.sub-orders-table .action-link.action-delete {
    color: var(--error-color);
}

.orders-table .action-link.action-delete:hover,
.sub-orders-table .action-link.action-delete:hover {
    background: #fef2f2;
}

.orders-table .action-link.action-finance,
.sub-orders-table .action-link.action-finance {
    color: var(--success-color);
}

.orders-table .action-link.action-finance:hover,
.sub-orders-table .action-link.action-finance:hover {
    background: #dcfce7;
}

.orders-table .action-link.action-assign,
.sub-orders-table .action-link.action-assign {
    color: #8b5cf6;
}

.orders-table .action-link.action-assign:hover,
.sub-orders-table .action-link.action-assign:hover {
    background: #f3e8ff;
}

/* 附件显示 */
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.orders-table .attach-link,
.attachment-list .attach-link {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    background: var(--primary-lighter);
    white-space: nowrap;
}

.orders-table .attach-link:hover,
.attachment-list .attach-link:hover {
    background: var(--primary-light);
}

.attachment-list .attach-more {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
}

.attachment-list .attach-more:hover {
    color: var(--primary-color);
}

/* ISF待申报附件提示 */
.action-link-wrapper {
    position: relative;
    display: inline-block;
}

.upload-hint-text {
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    color: #d97706;
    font-size: 7px;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fbbf24;
    box-shadow: 0 2px 6px rgba(251, 146, 60, 0.3);
    z-index: 10;
    pointer-events: none;
}

.upload-hint-text::before {
    content: '↓';
    font-size: 11px;
    font-weight: bold;
    color: #f59e0b;
    animation: arrowSlide 1.8s ease-in-out infinite;
    display: inline-block;
    line-height: 1;
}

.upload-hint-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fbbf24;
}

@keyframes arrowSlide {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    20% {
        transform: translateY(3px);
        opacity: 0.5;
    }

    40% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateY(-3px);
        opacity: 0.5;
    }

    80% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ISF待申报状态闪烁动画 */
.status-tag.status-pending-alert {
    animation: statusBlink 2s ease-in-out infinite;
    position: relative;
}

.status-tag.status-pending-alert::after {
    content: '!';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes statusBlink {

    0%,
    100% {
        background: #fed7aa;
        box-shadow: 0 0 0 rgba(251, 146, 60, 0);
    }

    50% {
        background: #fb923c;
        box-shadow: 0 0 8px rgba(251, 146, 60, 0.6);
    }
}

/* 新的状态闪烁动画 - 更柔和 */
.status-blink {
    animation: statusBlinkSoft 2s ease-in-out infinite;
}

@keyframes statusBlinkSoft {

    0%,
    100% {
        background: #fed7aa;
        color: #c2410c;
        box-shadow: 0 0 0 rgba(251, 146, 60, 0);
    }

    50% {
        background: #fdba74;
        color: #9a3412;
        box-shadow: 0 0 6px rgba(251, 146, 60, 0.4);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ==================== Status Switcher Menu ==================== */
.status-switcher-menu {
    position: fixed;
    z-index: 9999;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    min-width: 150px;
    padding: 8px 0;
    animation: menuFadeIn 0.15s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-switcher-title {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
}

.status-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.status-switcher-item:hover {
    background: var(--primary-lighter);
}

.status-switcher-item.active {
    background: var(--primary-light);
}

.status-switcher-item .check-icon {
    color: var(--success-color);
    font-weight: bold;
}

/* 可点击的状态标签 */
.status-tag.clickable {
    cursor: pointer;
    transition: var(--transition);
}

.status-tag.clickable:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* ==================== Order Detail Modal ==================== */
.modal-overlay .modal-content.order-detail-modal,
.order-detail-modal {
    width: 900px !important;
    max-width: 95vw !important;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.order-detail-modal .modal-header {
    flex-shrink: 0;
}

.order-detail-modal .modal-body {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-height: calc(92vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 优化滚动条样式 */
.order-detail-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.order-detail-modal .modal-body::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.order-detail-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.order-detail-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.detail-section {
    background: var(--primary-lighter);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-light);
}

/* 让服务状态和其他信息区块跨两列 */
.detail-section:nth-child(3),
.detail-section:nth-child(5) {
    grid-column: 1 / -1;
}

.detail-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
}

.detail-grid.status-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ETD和ETA上下显示 */
#detailEtdItem,
#detailEtaItem,
#detailDateActions {
    grid-column: 1 / -1;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

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

.detail-item label {
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 70px;
    flex-shrink: 0;
}

.detail-item span {
    color: var(--text-primary);
    word-break: break-all;
}

/* 财务信息样式 */
.detail-item .finance-value {
    font-weight: 600;
}

.detail-item .finance-value.quote {
    color: var(--success-color);
}

.detail-item .finance-value.cost {
    color: var(--error-color);
}

.detail-item .finance-value.profit {
    color: var(--primary-color);
}

.btn-edit-finance-small {
    padding: 4px 12px;
    font-size: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit-finance-small:hover {
    background: var(--primary-hover);
}

/* 编辑备注按钮 */
.remark-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.remark-item label {
    flex-shrink: 0;
}

.remark-item #detailRemark {
    flex: 1;
    word-break: break-all;
}

.btn-edit-remark {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 12px;
    background: #f0f2f5;
    color: #606266;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* 编辑客户名称按钮 */
.customer-mark-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-mark-item label {
    flex-shrink: 0;
}

.customer-mark-item #detailCustomerMark {
    flex: 1;
}

.btn-edit-customer {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 12px;
    background: #f0f2f5;
    color: #606266;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* 日期输入框样式 */
.detail-date-input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    background: white;
    transition: var(--transition);
    width: 150px;
    cursor: pointer;
    position: relative;
}

.detail-date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* 确保详情页日期输入框的日历图标覆盖整个区域 */
.detail-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
}

.detail-date-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px 18px;
}

.detail-date-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-save-dates {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-save-dates:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-save-dates:active {
    transform: translateY(0);
}

.btn-cancel-dates {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    background: #f0f2f5;
    color: #606266;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel-dates:hover {
    background: #e4e7ed;
    color: #303133;
}

/* 服务状态项 */
.detail-grid .status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-grid .status-item .status-name {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 700px) {
    .order-detail-modal .modal-body {
        grid-template-columns: 1fr;
    }

    .detail-section:nth-child(3),
    .detail-section:nth-child(5) {
        grid-column: 1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid.status-grid {
        grid-template-columns: 1fr;
    }
}

/* 服务状态列表 */
.service-status-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-status-list .status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.service-status-list .status-name {
    color: var(--text-secondary);
    white-space: nowrap;
}

.service-status-list .status-tag {
    white-space: nowrap;
}

.service-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.service-status-item .service-name {
    color: var(--text-secondary);
}

/* 状态标签 */
.tag-orange {
    color: #d97706;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tag-blue {
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tag-green {
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tag-red {
    color: #dc2626;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tag-gray {
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 状态切换下拉框 */
.status-select {
    padding: 2px 6px;
    font-size: 11px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    cursor: pointer;
    min-width: 80px;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==================== User Dropdown ==================== */
.user-dropdown {
    position: fixed;
    top: 55px;
    right: 100px;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    display: none;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.user-dropdown.show {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .home-layout {
        flex-direction: column;
    }

    .home-sidebar {
        width: 100%;
        flex-direction: row;
    }

    .todo-section,
    .news-section {
        flex: 1;
    }
}

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

    .home-sidebar {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 70px;
    }

    .nav-text {
        display: none;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

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

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-lighter);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
}

/* ==================== Members Page ==================== */
.members-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}


/* 成员表格自适应布局 - 无横向滚动 */
.members-container .data-table {
    overflow-x: hidden;
    overflow-y: visible;
}

.members-container .data-table table {
    table-layout: auto;
    width: 100%;
}

.members-container .data-table td,
.members-container .data-table th {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    padding: 10px 16px;
    text-align: center;
}

/* 账号和姓名列左对齐 */
.members-container .data-table td:nth-child(1),
.members-container .data-table th:nth-child(1),
.members-container .data-table td:nth-child(2),
.members-container .data-table th:nth-child(2) {
    text-align: left;
}

/* 隐藏成员管理的顶部滚动条 */
.members-container .data-table-scroll-top {
    display: none;
}

/* 成员管理删除按钮与其他按钮一致 */
.members-container .btn-danger {
    padding: 6px 14px;
    border: 2px solid #dc2626;
    border-radius: 8px;
    background: white;
    color: #dc2626;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    margin-right: 6px;
    font-weight: 500;
    box-shadow: none;
    letter-spacing: normal;
}

.members-container .btn-danger:hover {
    border-color: #dc2626;
    color: white;
    background: #dc2626;
    transform: none;
    box-shadow: none;
}

.members-container .btn-danger:active {
    transform: none;
    box-shadow: none;
}

.page-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-hover));
    border-radius: 2px;
}

/* Role Tabs */
.role-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.role-tab {
    padding: 6px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 13px;
}

.role-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.role-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Members Toolbar */
.members-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 200px;
    outline: none;
    transition: var(--transition);
    font-size: 13px;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-search {
    padding: 6px 14px;
    background: var(--primary-lighter);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 13px;
}

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

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

.btn-add-member {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 13px;
}

.btn-add-member:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-export,
.btn-import {
    padding: 10px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.btn-export:hover {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-import:hover {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge.admin {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

.role-badge.staff {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--primary-color);
}

.role-badge.customer {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.active {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.status-badge.inactive {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* 权限标签样式 */
.perm-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
    color: var(--primary-color);
    border-radius: 15px;
    cursor: default;
    font-weight: 500;
}

.perm-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    background: var(--primary-lighter);
    color: var(--text-secondary);
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.no-action {
    color: var(--text-muted);
    font-size: 12px;
}

/* Action Buttons */
.btn-edit,
.btn-permission,
.btn-view {
    padding: 6px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    margin-right: 6px;
    font-weight: 500;
}

.btn-edit:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.btn-permission:hover {
    border-color: var(--warning-color);
    color: var(--warning-color);
    background: #fffbeb;
}

.btn-view:hover {
    border-color: var(--success-color);
    color: var(--success-color);
    background: #dcfce7;
}

/* Permission Info */
.permission-info {
    margin-top: 36px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.permission-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.permission-card {
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.permission-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.permission-header {
    padding: 14px 18px;
    font-weight: 600;
    text-align: center;
    font-size: 15px;
}

.permission-header.admin {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.permission-header.staff {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    border-left: 4px solid #0284c7;
}

.permission-header.customer {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.permission-list {
    list-style: none;
    padding: 16px;
    margin: 0;
    background: white;
}

.permission-list li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.permission-list li:last-child {
    border-bottom: none;
}

.permission-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fffbeb;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.permission-note p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
}

.permission-content {
    padding: 18px;
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.permission-icon {
    margin-right: 12px;
    font-size: 14px;
}

.permission-icon.allowed {
    color: var(--success-color);
}

.permission-icon.denied {
    color: var(--error-color);
}

/* 响应式 */
@media (max-width: 900px) {
    .permission-grid {
        grid-template-columns: 1fr;
    }
}

.permission-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== Modal ==================== */
/* Modal Overlay (新版弹窗) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 旧版独立 Modal 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal .modal-content,
.modal-overlay .modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

/* 小型模态框 */
.modal .modal-content.modal-small,
.modal-overlay .modal-content.modal-small {
    width: 400px;
}

/* 指派订单弹窗 */
.modal-overlay .modal-content.assign-modal {
    width: 500px;
}

.assign-modal .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: all 0.3s ease;
}

.assign-modal .form-select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.assign-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.assign-modal textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* 指派弹窗底部按钮布局 */
.assign-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.btn-remove-assign {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    letter-spacing: 0.5px;
}

.btn-remove-assign:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
}

.btn-remove-assign:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* 只读输入框样式优化 */
.assign-modal .readonly-input {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
    border: 2px solid #e2e8f0;
}

/* 危险操作按钮（红色） */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    letter-spacing: 0.5px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* 权限设置模态框 */
.modal .modal-content.permission-modal-content,
.modal-overlay .permission-modal-content {
    width: 800px;
    max-width: 95vw;
}

.permission-modal-content .modal-body {
    padding: 20px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 快捷权限模板 */
.permission-templates {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--primary-lighter);
    border-radius: 10px;
    margin-bottom: 20px;
}

.permission-templates .template-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.permission-templates .perm-tpl-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.permission-templates .perm-tpl-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.permission-templates .perm-tpl-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* 权限分组 */
.permission-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.permission-group {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.permission-group .group-header {
    padding: 14px 18px;
    background: var(--primary-lighter);
    border-bottom: 1px solid var(--border-color);
}

.permission-group .group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.permission-group .group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.permission-group .group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px;
}

.permission-group .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 120px;
}

.permission-group .checkbox-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
}

.permission-group .checkbox-item:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.permission-group .checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.permission-group .checkbox-item input[type="checkbox"]:disabled {
    opacity: 0.5;
}

/* 分组复选框半选状态 */
.permission-group .group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* 表单项样式 */
.form-item {
    margin-bottom: 18px;
}

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

.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

.form-item input[readonly] {
    background: var(--primary-lighter);
    color: var(--text-muted);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--bg-white) 100%);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error-color);
    color: white;
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 2px solid var(--border-color);
    background: var(--primary-lighter);
}

.btn-cancel {
    padding: 12px 32px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-cancel:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}

.btn-cancel:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-save:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* Modal Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.modal-form .form-group label {
    text-align: left;
    min-width: auto;
    font-weight: 500;
    color: var(--text-secondary);
}

.modal-form .form-group input,
.modal-form .form-group select {
    width: 100%;
    min-width: auto;
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: 14px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: toastIn 0.4s ease;
    border: 2px solid var(--border-color);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-color: var(--success-color);
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error {
    border-color: var(--error-color);
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast.warning {
    border-color: var(--warning-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast-icon {
    font-size: 22px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== Finance Page ==================== */
.finance-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

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

/* 财务服务类型筛选标签 */
.finance-service-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.finance-service-tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.finance-service-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.finance-service-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 财务工具栏 */
.finance-toolbar {
    margin-bottom: 20px;
    position: relative;
}

.finance-toolbar .filter-group-basic {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.finance-toolbar .filter-group-advanced {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.finance-toolbar .search-input {
    width: 220px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    transition: var(--transition-fast);
}

.finance-toolbar .search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.finance-toolbar .filter-select {
    min-width: 120px;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-toolbar .filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.finance-toolbar .date-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    transition: var(--transition-fast);
}

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

.finance-toolbar .date-separator {
    color: var(--text-muted);
    font-size: 13px;
}

.finance-toolbar .btn-search {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-toolbar .btn-search:hover {
    background: var(--primary-lighter);
}

.finance-toolbar .btn-reset {
    padding: 10px 20px;
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-toolbar .btn-reset:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.finance-toolbar .btn-advanced-filter {
    padding: 10px 20px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-toolbar .btn-advanced-filter:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.finance-toolbar .btn-column-settings {
    padding: 10px 20px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-toolbar .btn-column-settings:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 列设置包装器 */
.column-settings-wrapper {
    position: relative;
    display: inline-block;
}

/* 列设置下拉菜单 */
.column-settings-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 200px;
    z-index: 100;
}

/* 日期筛选组 */
.date-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.date-filter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    min-width: 70px;
}

/* 高级筛选的日期组 */
.filter-date-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.filter-date-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}

.filter-date-group span {
    font-size: 13px;
    color: var(--text-muted);
}

.filter-date-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background: white;
    transition: var(--transition-fast);
    cursor: pointer;
}

.filter-date-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.column-settings-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.column-setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.column-setting-item:hover {
    background: var(--primary-lighter);
}

.column-setting-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.column-setting-item label {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.finance-toolbar .btn-export {
    padding: 10px 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-toolbar .btn-export:hover {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.finance-toolbar .btn-export-selected {
    background: var(--primary-color);
}

.finance-toolbar .btn-export-selected:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* 财务表格顶部滚动条 */
.finance-table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    margin-bottom: 0;
}

.finance-table-scroll-top::-webkit-scrollbar {
    height: 8px;
}

.finance-table-scroll-top::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.finance-table-scroll-top::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.finance-table-scroll-content {
    height: 1px;
}

/* ==================== 财务管理专用分页栏 ==================== */
.finance-pagination-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

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

.finance-total-records {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
}

.finance-page-size {
    min-width: 100px;
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-page-size:focus {
    border-color: var(--primary-color);
    outline: none;
}

.finance-pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.finance-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.finance-page-btn:hover:not(:disabled):not(.finance-active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.finance-page-btn.finance-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.finance-page-btn.finance-prev,
.finance-page-btn.finance-next {
    font-size: 18px;
    font-weight: 600;
}

.finance-page-btn.finance-ellipsis {
    border: none;
    background: transparent;
    cursor: default;
}

.finance-pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}

.finance-pagination-jump span {
    font-size: 13px;
    color: var(--text-secondary);
}

.finance-jump-input {
    width: 50px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    text-align: center;
    transition: var(--transition-fast);
}

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

/* 财务表格 */
.finance-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    position: relative;
}

.finance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 2400px;
    /* 增加最小宽度以确保所有列都有足够空间 */
}

.finance-table th,
.finance-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    white-space: nowrap;
    /* 不换行，防止文字重叠 */
}

.finance-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

/* 冻结左侧列 - 复选框、订单号、提单号、柜号 */
/* 第1列：复选框 - 宽度50px */
.finance-table th:nth-child(1),
.finance-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 12;
    min-width: 50px;
    width: 50px;
    max-width: 50px;
    background: #f8fafc;
}

.finance-table td:nth-child(1) {
    background: white;
}

/* 第2列：订单号 - 宽度160px */
.finance-table th:nth-child(2),
.finance-table td:nth-child(2) {
    position: sticky;
    left: 50px;
    z-index: 11;
    min-width: 160px;
    width: 160px;
    background: #f8fafc;
}

.finance-table td:nth-child(2) {
    background: white;
}

/* 第3列：提单号 - 宽度130px */
.finance-table th:nth-child(3),
.finance-table td:nth-child(3) {
    position: sticky;
    left: 210px;
    z-index: 10;
    min-width: 130px;
    width: 130px;
    background: #f8fafc;
}

.finance-table td:nth-child(3) {
    background: white;
}

/* 第4列：柜号 - 宽度140px，添加阴影 */
.finance-table th:nth-child(4),
.finance-table td:nth-child(4) {
    position: sticky;
    left: 340px;
    z-index: 9;
    min-width: 140px;
    width: 140px;
    background: #f8fafc;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
}

.finance-table td:nth-child(4) {
    background: white;
}

/* 固定列hover样式 */
.finance-table tbody tr:hover td:nth-child(1),
.finance-table tbody tr:hover td:nth-child(2),
.finance-table tbody tr:hover td:nth-child(3),
.finance-table tbody tr:hover td:nth-child(4) {
    background: var(--primary-lighter);
}

/* 冻结右侧列 - 操作 */
.finance-table th:last-child,
.finance-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 11;
    background: #f8fafc;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

.finance-table td:last-child {
    background: white;
}

.finance-table tbody tr:hover td:last-child {
    background: var(--primary-lighter);
}

.finance-table tbody tr:hover {
    background: var(--primary-lighter);
}

.finance-table .owner-link {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
}

.finance-table .owner-link:hover {
    text-decoration: underline;
}

.finance-table .amount-cost {
    color: var(--error-color);
    font-weight: 500;
}

.finance-table .amount-profit {
    color: var(--success-color);
    font-weight: 500;
}

.finance-table .amount-profit.negative {
    color: var(--error-color);
}

/* 财务状态标签 */
.finance-status {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.finance-status.pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.finance-status.quoted {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.finance-status.costed {
    background: #f3e8ff;
    color: #9333ea;
    border: 1px solid #d8b4fe;
}

.finance-status.completed {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.finance-table .btn-edit-finance {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: var(--transition-fast);
}

.finance-table .btn-edit-finance:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.finance-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.finance-stat-card {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg-white) 100%);
    border-radius: 14px;
    padding: 24px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    min-width: 180px;
    flex: 1;
}

.finance-stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.finance-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.finance-stat-card .stat-value {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-primary);
}

.finance-stat-card .stat-value.income {
    color: var(--success-color);
}

.finance-stat-card .stat-value.expense {
    color: var(--error-color);
}

/* Finance Metrics Bar - Horizontal Layout */
.finance-metrics-bar {
    display: flex;
    gap: 32px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 100px;
}

.metric-label {
    font-size: 13px;
    color: #8c8c8c;
    font-weight: 400;
    line-height: 1.4;
}

.metric-value {
    font-size: 22px;
    font-weight: 600;
    color: #262626;
    cursor: default;
    position: relative;
    line-height: 1.2;
}

.metric-value.green {
    color: #52c41a;
}

.metric-value.orange {
    color: #fa8c16;
}

.metric-value.blue {
    color: #1890ff;
}

.metric-value.primary {
    color: #1890ff;
}

.metric-count {
    font-size: 12px;
    color: #8c8c8c;
    font-weight: 400;
    margin-left: 4px;
}

/* Hover effect for amounts with currency */
.metric-value[data-currency] {
    cursor: help;
    transition: opacity 0.2s;
}

.metric-value[data-currency]:hover {
    opacity: 0.75;
}

/* Currency Tooltip */
.currency-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==================== Settings Page ==================== */
.settings-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

/* 系统设置区块 */
.settings-section {
    margin-bottom: 20px;
    background: #fafbfc;
    border-radius: var(--border-radius);
    padding: 18px 22px;
    border: 1px solid var(--border-light);
}

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

.settings-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h3::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.settings-item-info {
    flex: 1;
}

.settings-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: block;
}

.settings-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.settings-item-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-input {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    background: white;
    transition: var(--transition-fast);
}

.settings-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.settings-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.settings-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.settings-item.readonly .settings-value {
    color: var(--text-secondary);
}

/* 保存设置按钮 */
.btn-save-settings {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 20px;
}

.btn-save-settings:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

/* 备份按钮 */
.btn-backup {
    padding: 10px 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
}

.btn-backup:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.btn-backup:active {
    transform: translateY(0);
}

.btn-backup:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 设置页面操作按钮区域 */
.settings-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.settings-item .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-item .value {
    color: var(--text-primary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    transition: var(--transition);
    border-radius: 28px;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

/* ==================== Ports Page ==================== */
.ports-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* 港口管理标签切换 */
.port-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.port-tab {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 13px;
}

.port-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.port-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* 港口工具栏 */
.ports-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

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

.btn-add-country,
.btn-add-port {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-country:hover,
.btn-add-port:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* 标签页内容 */
.port-tab-content {
    display: none;
}

.port-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.port-card {
    display: flex;
    align-items: center;
    padding: 18px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 14px;
    transition: var(--transition);
}

.port-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.port-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 18px;
}

.port-info {
    flex: 1;
}

.port-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

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

.port-country {
    padding: 6px 14px;
    background: var(--primary-lighter);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* 港口表格样式 */
.ports-container .data-table {
    margin-top: 8px;
}

/* 港口管理不需要顶部滚动条 */
.ports-container .data-table-scroll-top {
    display: none;
}

.ports-container .data-table th,
.ports-container .data-table td {
    padding: 10px 12px;
}

/* 港口操作按钮 */
.ports-container .action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 6px;
}

.ports-container .action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.ports-container .action-btn.danger:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background: #fef2f2;
}

/* 国家筛选下拉框 */
.country-filter {
    min-width: 180px;
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: var(--transition);
}

.country-filter:hover {
    border-color: var(--primary-color);
}

.country-filter:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* 港口管理搜索框区域 */
.ports-toolbar .search-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 港口类型标签 */
.port-type-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 12px;
    font-weight: 500;
}

.port-type-tag.sea {
    background: #e0f2fe;
    color: #0284c7;
}

.port-type-tag.air {
    background: #fef3c7;
    color: #d97706;
}

.port-type-tag.land {
    background: #dcfce7;
    color: #16a34a;
}

/* 排序数字样式 */
.sort-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-lighter);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* 港口/国家弹窗优化 */
#portModal .modal-content,
#countryModal .modal-content {
    width: 520px;
    max-width: 95vw;
}

#portModal .modal-body,
#countryModal .modal-body {
    padding: 24px;
}

#portModal .form-item,
#countryModal .form-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

#portModal .form-item:last-child,
#countryModal .form-item:last-child {
    margin-bottom: 0;
}

#portModal .form-item label,
#countryModal .form-item label {
    width: 90px;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 12px;
}

#portModal .form-item label .required,
#countryModal .form-item label .required {
    color: var(--error-color);
    margin-left: 2px;
}

#portModal .form-item input,
#portModal .form-item select,
#countryModal .form-item input,
#countryModal .form-item select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

#portModal .form-item input:focus,
#portModal .form-item select:focus,
#countryModal .form-item input:focus,
#countryModal .form-item select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

#portModal .form-item select,
#countryModal .form-item select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

#portModal .form-item input::placeholder,
#countryModal .form-item input::placeholder {
    color: var(--text-light);
}

/* ==================== Message Center ==================== */
.message-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.message-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
}

.msg-tab {
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.msg-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.msg-tab:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.msg-tab:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

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

/* 消息区域 */
.msg-section {
    display: none;
}

.msg-section.active {
    display: block;
}

/* 消息工具栏 */
.msg-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.msg-toolbar .filter-select {
    min-width: 120px;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.msg-toolbar .filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.msg-toolbar .btn-add {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.msg-toolbar .btn-add:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* 消息列表 */
.msg-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 待办/公告项 */
.todo-item,
.announcement-item {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.todo-item:hover,
.announcement-item:hover {
    box-shadow: var(--shadow-md);
}

.todo-item .todo-header,
.announcement-item .announcement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.todo-item .todo-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-item .todo-title,
.announcement-item .announcement-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.todo-item .todo-priority {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 500;
}

.todo-item .todo-priority.urgent {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.todo-item .todo-priority.high {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.todo-item .todo-priority.normal {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.todo-item .todo-priority.low {
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.todo-item .todo-meta,
.announcement-item .announcement-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

.todo-item .todo-content,
.announcement-item .announcement-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 12px 0;
}

.todo-item .todo-footer,
.announcement-item .announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.todo-item .todo-assignee {
    font-size: 13px;
    color: var(--text-muted);
}

.todo-item .todo-assignee a,
.todo-item .todo-assignee span.assignee-name {
    color: var(--primary-color);
    font-weight: 500;
}

.todo-item .todo-actions,
.announcement-item .announcement-actions {
    display: flex;
    gap: 10px;
}

.todo-item .todo-actions button,
.announcement-item .announcement-actions button {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.todo-item .btn-complete {
    background: var(--success-color);
    color: white;
    border: none;
}

.todo-item .btn-complete:hover {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.todo-item .btn-edit,
.announcement-item .btn-edit {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.todo-item .btn-edit:hover,
.announcement-item .btn-edit:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.todo-item .btn-delete,
.announcement-item .btn-delete {
    background: white;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.todo-item .btn-delete:hover,
.announcement-item .btn-delete:hover {
    background: #fef2f2;
    border-color: var(--error-color);
}

/* 已完成状态 */
.todo-item.completed {
    opacity: 0.6;
    border-left-color: var(--success-color);
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ==================== Message Item (JS渲染结构) ==================== */
.msg-item {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.msg-item:hover {
    box-shadow: var(--shadow-md);
}

.msg-item.priority-urgent {
    border-left-color: #dc2626;
}

.msg-item.priority-high {
    border-left-color: #d97706;
}

.msg-item.priority-normal {
    border-left-color: var(--primary-color);
}

.msg-item.priority-low {
    border-left-color: var(--text-muted);
}

.msg-item.completed {
    opacity: 0.6;
    border-left-color: var(--success-color);
}

.msg-item.completed .msg-item-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.msg-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.msg-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.priority-badge {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 500;
}

.priority-badge.urgent {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.priority-badge.high {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.priority-badge.normal {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.priority-badge.low {
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.msg-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.msg-item-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 12px 0;
}

.msg-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.msg-item-target {
    font-size: 13px;
    color: var(--text-muted);
}

.msg-item-target .target-user {
    color: var(--primary-color);
    font-weight: 500;
}

.msg-item-actions {
    display: flex;
    gap: 10px;
}

.msg-item-actions button {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.msg-item-actions .btn-complete {
    background: var(--success-color);
    color: white;
    border: none;
}

.msg-item-actions .btn-complete:hover {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.msg-item-actions .btn-edit {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.msg-item-actions .btn-edit:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.msg-item-actions .btn-delete {
    background: white;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.msg-item-actions .btn-delete:hover {
    background: #fef2f2;
    border-color: var(--error-color);
}

.msg-item-actions .btn-view-order {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.msg-item-actions .btn-view-order:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

/* 空状态 */
.msg-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.msg-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.msg-empty-text {
    font-size: 14px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message-item {
    display: flex;
    padding: 18px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.message-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
}

.message-item.unread {
    border-left: 4px solid var(--primary-color);
    background: var(--primary-lighter);
}

.message-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 18px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.message-preview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.message-time {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* ==================== Loading States ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==================== Empty States ==================== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state .empty-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== Date Range Panel ==================== */
.date-range-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.date-range-panel.show {
    display: flex;
}

.date-panel-shortcuts {
    width: 120px;
    padding: 12px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shortcut-item {
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.shortcut-item:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.shortcut-item.active {
    background: var(--primary-color);
    color: white;
}

.date-panel-calendars {
    display: flex;
    padding: 16px;
    gap: 20px;
}

.calendar-container {
    width: 260px;
}

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

.calendar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.cal-nav {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--primary-lighter);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
    transition: var(--transition);
}

.cal-nav:hover {
    background: var(--primary-light);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.calendar-weekdays span {
    padding: 6px;
}

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

.calendar-days .day {
    padding: 8px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.calendar-days .day:hover {
    background: var(--primary-lighter);
}

.calendar-days .day.today {
    border: 2px solid var(--primary-color);
}

.calendar-days .day.selected {
    background: var(--primary-color);
    color: white;
}

.calendar-days .day.in-range {
    background: var(--primary-lighter);
}

.calendar-days .day.other-month {
    color: var(--text-light);
}

/* ==================== Confirm Dialog ==================== */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.confirm-dialog.show {
    display: flex;
}

.confirm-dialog-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: dialogIn 0.3s ease;
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-dialog-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.confirm-dialog-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-dialog-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.confirm-dialog-btn {
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-dialog-btn.cancel {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.confirm-dialog-btn.cancel:hover {
    border-color: var(--text-muted);
}

.confirm-dialog-btn.confirm {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    color: white;
}

.confirm-dialog-btn.confirm:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.confirm-dialog-btn.confirm.danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
}

.confirm-dialog-btn.confirm.danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* ==================== Message Toast ==================== */
.message-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-white);
    border-radius: 12px;
    padding: 14px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.message-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.message-toast.success {
    border-color: var(--success-color);
}

.message-toast.success .toast-icon {
    color: var(--success-color);
    background: #dcfce7;
}

.message-toast.error {
    border-color: var(--error-color);
}

.message-toast.error .toast-icon {
    color: var(--error-color);
    background: #fef2f2;
}

.message-toast.warning {
    border-color: var(--warning-color);
}

.message-toast.warning .toast-icon {
    color: var(--warning-color);
    background: #fffbeb;
}

.message-toast.info {
    border-color: var(--info-color);
}

.message-toast.info .toast-icon {
    color: var(--info-color);
    background: #dbeafe;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.toast-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== Utility Classes ==================== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-error {
    color: var(--error-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.bg-success {
    background: var(--success-color) !important;
}

.bg-warning {
    background: var(--warning-color) !important;
}

.bg-error {
    background: var(--error-color) !important;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Admin only elements */
.admin-only {
    display: none;
}

body.role-admin .admin-only {
    display: flex;
}

/* ==================== Attachment List Modal ==================== */
.modal-overlay .modal-content.attachment-list-modal,
.attachment-list-modal {
    width: 1200px !important;
    max-width: 95vw !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.attachment-list-modal .modal-body {
    padding: 24px;
    flex: 1;
    overflow: auto;
    max-height: 75vh;
}

/* ==================== Finance Modal Enhanced ==================== */
#financeModal.modal-overlay {
    z-index: 1100 !important;
}

.modal-overlay .modal-content.finance-modal-enhanced,
.finance-modal-enhanced {
    width: 900px !important;
    max-width: 95vw !important;
}

.finance-modal-enhanced .modal-body {
    padding: 20px 24px;
}

.finance-modal-enhanced form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 订单信息简化 */
.finance-order-brief {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-lighter);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.finance-order-brief .sep {
    color: var(--text-muted);
}

/* 汇率设置 - 左列 */
.rate-setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rate-setting-row>label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.rate-setting-row input[type="number"] {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.rate-lock-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.rate-lock-label:hover {
    background: var(--primary-lighter);
}

.rate-lock-label input[type="checkbox"] {
    cursor: pointer;
}

.rate-lock-label input[type="checkbox"]:checked+span {
    color: var(--primary-color);
    font-weight: 500;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.btn-refresh-rate {
    background: var(--primary-lighter);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.btn-refresh-rate:hover {
    background: var(--primary-light);
}

/* 报价和成本并排容器 */
.finance-sections-row {
    display: flex;
    gap: 20px;
}

/* 报价/成本区域 */
.finance-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finance-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.finance-section .section-header label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-add-item {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--primary-color);
    background: var(--primary-lighter);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-item:hover {
    background: var(--primary-light);
}

.finance-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

/* 费用项样式 */
.finance-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.finance-item .item-name {
    flex: 1;
    min-width: 80px;
}

.finance-item .item-name input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
}

.finance-item .item-currency {
    flex-shrink: 0;
}

.finance-item .item-currency select {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.finance-item .item-amount {
    flex-shrink: 0;
}

.finance-item .item-amount input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
}

.finance-item .item-usd {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
}

.finance-item .item-remove {
    flex-shrink: 0;
}

.finance-item .item-remove button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fef2f2;
    color: var(--error-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.finance-item .item-remove button:hover {
    background: #fee2e2;
}

.finance-total-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--primary-lighter);
    border-radius: 6px;
    font-size: 13px;
}

.finance-total-row .total-amount {
    font-weight: 600;
    color: var(--success-color);
}

.finance-total-row .total-amount.cost {
    color: var(--error-color);
}

.finance-total-row .total-cny {
    color: var(--text-muted);
    font-size: 12px;
}

/* 利润区域 */
.finance-profit-section {
    padding: 12px 16px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 10px;
    border: 1px solid #86efac;
}

.profit-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profit-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.profit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
}

.profit-cny {
    font-size: 14px;
    color: #22c55e;
}

.profit-rate {
    font-size: 13px;
    color: var(--text-secondary);
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 结算金额区域 */
.finance-settlement-section {
    padding: 16px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 10px;
    border: 1px solid #7dd3fc;
    margin-top: 16px;
}

.settlement-sections-row {
    display: flex;
    gap: 16px;
}

.settlement-detail-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #cbd5e1;
}

.settlement-detail-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settlement-detail-section .section-header label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.settlement-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.settlement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.settlement-item .item-name {
    flex: 2;
}

.settlement-item .item-name input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
}

.settlement-item .item-currency {
    flex: 0 0 80px;
}

.settlement-item .item-currency select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
}

.settlement-item .item-amount {
    flex: 1;
}

.settlement-item .item-amount input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    text-align: right;
}

.settlement-item .btn-remove-item {
    flex: 0 0 28px;
    height: 28px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
}

.settlement-item .btn-remove-item:hover {
    background: #fecaca;
}

.settlement-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--primary-lighter);
    border-radius: 6px;
    font-size: 13px;
}

.settlement-total-row .total-amount {
    font-weight: 600;
    font-size: 14px;
}

.settlement-total-row .total-amount.settled {
    color: var(--success-color);
}

.settlement-total-row .total-amount.unsettled {
    color: #0284c7;
}

.settlement-total-row .total-cny {
    color: var(--text-muted);
    font-size: 12px;
}

.settlement-validation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.settlement-validation.warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.settlement-validation.error {
    background: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
}

.settlement-validation .validation-icon {
    font-size: 16px;
}

.settlement-validation .validation-text {
    flex: 1;
}

/* 备注区域 */
.finance-remark-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.finance-remark-row>label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-top: 8px;
}

.finance-remark-row textarea {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
}

.finance-remark-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 响应式 */
@media (max-width: 700px) {
    .finance-sections-row {
        flex-direction: column;
    }

    .settlement-sections-row {
        flex-direction: column;
    }

    .settlement-row {
        flex-direction: column;
        gap: 16px;
    }

    .finance-remark-row {
        flex-direction: column;
        gap: 8px;
    }

    .finance-remark-row>label {
        padding-top: 0;
    }

    .settlement-item {
        flex-wrap: wrap;
    }

    .settlement-item .item-name {
        flex: 1 1 100%;
    }
}

.attachment-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.attachment-table th {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, #f8fafc 100%);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.attachment-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.attachment-table tr:last-child td {
    border-bottom: none;
}

.attachment-table tr:hover td {
    background: var(--primary-lighter);
}

.attachment-table .file-name-cell {
    max-width: 300px;
    word-break: break-all;
}

.attachment-table .action-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.attachment-table .action-links a,
.attachment-table .action-links span {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: var(--transition);
}

.attachment-table .action-links a:hover,
.attachment-table .action-links span:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.attachment-table .action-links .delete-link {
    color: var(--error-color);
}

.attachment-table .action-links .delete-link:hover {
    color: #dc2626;
}

/* 空状态 */
.attachment-table .empty-row td {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ==================== Upload Attachment Modal ==================== */
.attachment-modal {
    width: 650px;
    max-width: 95vw;
}

.upload-form-layout {
    display: flex;
    gap: 24px;
}

.upload-form-left {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-form-right {
    flex: 1;
    min-width: 0;
}

.upload-form-left .form-group,
.upload-form-right .form-group {
    margin-bottom: 0;
}

.upload-form-left .form-group label,
.upload-form-right .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-form-left .form-group input,
.upload-form-left .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.upload-form-left .form-group input:focus,
.upload-form-left .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.upload-form-left .readonly-input {
    background: var(--primary-lighter);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.attachment-type-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
}

.upload-area-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.upload-dropzone {
    flex: 1;
    min-height: 180px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-lighter);
}

.upload-dropzone:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-dropzone.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-icon {
    margin-bottom: 12px;
}

.upload-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.upload-link {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
}

.upload-link:hover {
    text-decoration: underline;
}

.uploaded-files {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
}

.uploaded-file-item .file-icon {
    font-size: 16px;
}

.uploaded-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.uploaded-file-item .file-name {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploaded-file-item .file-size {
    font-size: 11px;
    color: var(--text-muted);
}

.uploaded-file-item .file-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.uploaded-file-item .file-remove:hover {
    color: var(--error-color);
    background: #fef2f2;
}

/* 响应式 - 小屏幕时改为上下布局 */
@media (max-width: 600px) {
    .upload-form-layout {
        flex-direction: column;
    }

    .upload-form-left {
        flex: none;
    }

    .upload-dropzone {
        min-height: 150px;
    }
}

/* ==================== Print Styles ==================== */
/* ==================== 附件预览弹窗样式 ==================== */
.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.preview-modal-content {
    width: 90vw;
    height: 90vh;
    max-width: 1400px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

.preview-filename {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #404040;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.preview-btn:hover {
    background: #505050;
}

.zoom-level {
    color: #aaa;
    font-size: 13px;
    min-width: 50px;
    text-align: center;
}

.preview-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #e74c3c;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    transition: background 0.2s;
}

.preview-close:hover {
    background: #c0392b;
}

.preview-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #1a1a1a;
    padding: 20px;
}

.preview-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.preview-pdf {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    border-radius: 4px;
}

.preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    padding: 40px;
}

.preview-error svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.preview-error p {
    margin: 8px 0;
    font-size: 15px;
}

.preview-error .filename {
    color: #666;
    font-size: 13px;
    word-break: break-all;
    max-width: 400px;
}

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

.preview-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #404040;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Excel 预览样式 */
.excel-preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.excel-sheet-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 10px;
    gap: 4px;
    overflow-x: auto;
}

.sheet-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.sheet-tab:hover {
    background: #e8e8e8;
    color: #333;
}

.sheet-tab.active {
    color: #217346;
    border-bottom-color: #217346;
    font-weight: 500;
}

.excel-table-wrapper {
    flex: 1;
    overflow: auto;
    padding: 10px;
}

.excel-table-wrapper table {
    border-collapse: collapse;
    font-size: 13px;
    min-width: 100%;
}

.excel-table-wrapper th,
.excel-table-wrapper td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
}

.excel-table-wrapper th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 1;
}

.excel-table-wrapper tr:nth-child(even) td {
    background: #fafafa;
}

.excel-table-wrapper tr:hover td {
    background: #e8f4ec;
}

/* 预览侧边栏（PDF缩略图） */
.preview-sidebar {
    display: none;
    width: 120px;
    background: #2d2d2d;
    border-left: 1px solid #404040;
    overflow-y: auto;
    padding: 10px;
}

@media print {

    .sidebar,
    .top-header,
    .sub-sidebar {
        display: none !important;
    }

    .main-content {
        margin: 0;
        padding: 20px;
    }

    .page-content {
        padding: 0;
    }
}

/* ==================== 分页样式 ==================== */
/* 已在上方统一定义为固定定位 */

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pagination-info span {
    font-weight: 600;
    color: var(--text-primary);
}

.pagination-size-selector {
    flex-shrink: 0;
}

.pagination-size-selector select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background: white;
    transition: var(--transition-fast);
}

.pagination-size-selector select:hover {
    border-color: var(--primary-color);
}

.pagination-size-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-page-prev,
.btn-page-next {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-page-prev:hover:not(:disabled),
.btn-page-next:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.btn-page-prev:disabled,
.btn-page-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.btn-page {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-page:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-lighter);
}

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

.page-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 分页跳转输入 */
.pagination-wrapper .pagination-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-wrapper .jump-input {
    width: 50px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    background: white;
    transition: var(--transition-fast);
}

.pagination-wrapper .jump-input:hover {
    border-color: var(--primary-color);
}

.pagination-wrapper .jump-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.pagination-wrapper .jump-input::-webkit-outer-spin-button,
.pagination-wrapper .jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination-wrapper .jump-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ==================== Date Inputs Group ==================== */
.date-inputs-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input-field {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    color: #606266;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
    min-width: 120px;
    font-family: inherit;
}

.date-input-field:hover {
    border-color: #c0c4cc;
}

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

.date-input-field::-webkit-calendar-picker-indicator {
    cursor: pointer;
    color: #c0c4cc;
}

.date-inputs-group .date-separator {
    color: #c0c4cc;
    font-size: 12px;
    margin: 0 4px;
    flex-shrink: 0;
}

/* ==================== Date Range Picker ==================== */
.date-range-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Single Date Picker */
.single-date-picker {
    position: relative;
    width: 100%;
}

.single-date-input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.single-date-input:hover {
    border-color: var(--primary-color);
}

.single-date-input.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.single-date-input .calendar-icon {
    font-size: 13px;
    flex-shrink: 0;
    line-height: 1;
}

.single-date-input .date-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.single-date-input .date-input::placeholder {
    color: #c0c4cc;
}

.date-range-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 36px;
}

.date-range-input:hover {
    border-color: #c0c4cc;
}

.date-range-input.active {
    border-color: var(--primary-color);
}

.date-range-input .calendar-icon {
    font-size: 14px;
    color: #c0c4cc;
    flex-shrink: 0;
}

.date-range-input .date-range-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.date-range-input .date-range-text.selected {
    color: var(--text-primary);
    font-weight: 500;
}

.date-range-input .date-separator {
    color: #c0c4cc;
    font-size: 12px;
    margin: 0 4px;
}

.date-range-input .date-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #606266;
    outline: none;
    cursor: pointer;
    padding: 0;
    min-width: 80px;
}

.date-range-input .date-input::placeholder {
    color: #c0c4cc;
}

.date-range-input .date-input:focus {
    outline: none;
}

/* Calendar Dropdown */
.calendar-dropdown {
    position: fixed;
    background: white;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 16px;
    z-index: 10001;
    display: none;
    min-width: 680px;
    max-width: 680px;
}

.calendar-dropdown.show {
    display: block;
    animation: calendarSlideIn 0.2s ease;
}

@keyframes calendarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Container */
.calendar-container {
    display: flex;
    gap: 12px;
    width: 100%;
}

.calendar-month {
    flex: 1;
    min-width: 300px;
    padding: 12px;
    background: white;
}

.calendar-month:first-child {
    border-right: none;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0;
    border-bottom: none;
}

.calendar-header-title {
    font-size: 14px;
    font-weight: 500;
    color: #606266;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.calendar-nav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
    color: #606266;
    font-size: 16px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.calendar-nav-btn:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-nav-btn:disabled:hover {
    background: transparent;
    color: #606266;
}

/* Calendar Grid */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #606266;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #606266;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    background: transparent;
    padding: 8px 0;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: #f5f7fa;
    color: #606266;
}

.calendar-day.other-month {
    color: #c0c4cc;
    cursor: default;
}

.calendar-day.disabled {
    color: #c0c4cc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.today {
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    border-radius: 4px;
}

.calendar-day.in-range {
    background: #f0f9ff;
    color: var(--primary-color);
}

.calendar-day.range-start,
.calendar-day.range-end {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    border-radius: 4px;
}

.calendar-day.range-start:not(.range-end) {
    border-radius: 4px;
}

.calendar-day.range-end:not(.range-start) {
    border-radius: 4px;
}

.calendar-day.range-start.range-end {
    border-radius: 4px;
}

/* Calendar Footer */
.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4e7ed;
}

.calendar-shortcuts {
    display: flex;
    gap: 8px;
}

.calendar-shortcut-btn {
    padding: 5px 12px;
    font-size: 12px;
    color: #606266;
    background: transparent;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-shortcut-btn:hover {
    background: #f5f7fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.calendar-btn-clear,
.calendar-btn-confirm {
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid;
}

.calendar-btn-clear {
    color: #606266;
    background: white;
    border-color: #dcdfe6;
}

.calendar-btn-clear:hover {
    background: #f5f7fa;
    border-color: #c0c4cc;
    color: #606266;
}

.calendar-btn-confirm {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.calendar-btn-confirm:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ==================== 公告编辑弹窗优化 ==================== */
.announcement-modal {
    width: 600px;
    max-width: 90vw;
}

.announcement-modal .modal-body {
    padding: 28px;
}

.announcement-modal .form-group {
    margin-bottom: 24px;
}

.announcement-modal .form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.announcement-modal .label-text {
    color: var(--text-primary);
}

.announcement-modal .required {
    color: var(--error-color);
    font-size: 14px;
}

.announcement-modal .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
}

.announcement-modal .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

.announcement-modal .form-input::placeholder {
    color: var(--text-muted);
}

.announcement-modal .form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    resize: vertical;
    min-height: 150px;
}

.announcement-modal .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

.announcement-modal .form-textarea::placeholder {
    color: var(--text-muted);
}

.announcement-modal .form-row-inline {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.announcement-modal .form-group-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-modal .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    cursor: pointer;
}

.announcement-modal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* 开关按钮优化 */
.announcement-modal .switch-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 56px;
    height: 32px;
}

.announcement-modal .switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.announcement-modal .switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 34px;
    transition: var(--transition);
    cursor: pointer;
}

.announcement-modal .switch-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.announcement-modal .switch-input:checked+.switch-slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.announcement-modal .switch-input:checked+.switch-slider:before {
    transform: translateX(24px);
}

.announcement-modal .switch-input:focus+.switch-slider {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* 弹窗底部按钮 */
.announcement-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-body);
}

.announcement-modal .btn-cancel {
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.announcement-modal .btn-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: var(--bg-body);
}

.announcement-modal .btn-save {
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.announcement-modal .btn-save:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.announcement-modal .btn-save:active {
    transform: translateY(0);
}

/* 响应式优化 */
@media (max-width: 640px) {
    .announcement-modal {
        width: 95vw;
    }

    .announcement-modal .modal-body {
        padding: 20px;
    }

    .announcement-modal .form-row-inline {
        flex-direction: column;
        gap: 16px;
    }

    .announcement-modal .modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }

    .announcement-modal .btn-cancel,
    .announcement-modal .btn-save {
        width: 100%;
    }
}

/* ==================== 自定义弹窗样式 ==================== */
#customAlertModal {
    z-index: 10001;
}

#customAlertModal .modal-content.modal-small {
    max-width: 400px;
}

#customAlertModal .modal-body {
    text-align: center;
    padding: 30px 20px;
}

#customAlertMessage {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
}

#customAlertModal .modal-footer {
    justify-content: center;
}

#confirmCustomAlert {
    min-width: 100px;
}

/* ========== 全部提单表格列宽优化 ========== */
/* 优化各列宽度，确保所有列都能在可见区域内显示 */
.orders-table th,
.orders-table td {
    white-space: nowrap;
    padding: 8px 6px;
}

/* 复选框列 */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}

/* 提单号列 - 已在上面定义为固定列 */
.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* 运输方式 */
.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* 起始港 */
.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

/* 客户名称 */
.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* ETD */
.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

/* ETA */
.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

/* 服务类型&状态 */
.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

/* 报价 */
.orders-table th:nth-child(9),
.orders-table td:nth-child(9) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* 附件 */
.orders-table th:nth-child(10),
.orders-table td:nth-child(10) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

/* 派送地址 */
.orders-table th:nth-child(11),
.orders-table td:nth-child(11) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space: normal;
    word-break: break-all;
}

/* 备注 */
.orders-table th:nth-child(12),
.orders-table td:nth-child(12) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

/* 操作人 */
.orders-table th:nth-child(13),
.orders-table td:nth-child(13) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* 创建时间 */
.orders-table th:nth-child(14),
.orders-table td:nth-child(14) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* 操作列 - 已在上面定义为固定列 */
.orders-table th:nth-child(15),
.orders-table td:nth-child(15) {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}