/* ops-sidebar-dashboard · 网点/出海侧栏 */
body.ops-sidebar-page {font-family: 'Inter', 'JetBrains Mono', sans-serif;
            background: #08080e;
            color: #e0e0e0;
            min-height: 100vh;
            min-height: 100dvh;
            padding: clamp(16px, 2vw, 32px);
            box-sizing: border-box;}

/* 基础样式（与之前保持一致） */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        .sidebar {
            width: 220px;
            min-height: 100vh;
            background: rgba(10, 10, 20, 0.95);
            border-right: 1px solid rgba(255, 255, 255, 0.04);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            overflow-y: auto;
            padding: 16px 0 20px 0;
            height: 100vh;
        }
        .sidebar::-webkit-scrollbar { width: 3px; }
        .sidebar::-webkit-scrollbar-thumb { background: #2a2a44; border-radius: 10px; }
        .sidebar .logo {
            padding: 0 18px 16px 18px;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sidebar .logo .icon { font-size: 22px; color: #00f0ff; }
        .sidebar .logo .text { font-size: 16px; font-weight: 700; color: #e0e0e0; }
        .sidebar .logo .sub { font-size: 10px; color: #4a6a7a; font-weight: 400; }
        .sidebar .nav-section {
            padding: 0 12px;
            margin-bottom: 4px;
        }
        .sidebar .nav-section .section-title {
            font-size: 10px;
            font-weight: 600;
            color: #3a5a6a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 6px 10px 4px 10px;
        }
        .sidebar .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px;
            border-radius: 8px;
            color: #6a8a9a;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            position: relative;
            margin-bottom: 1px;
        }
        .sidebar .nav-item:hover {
            background: rgba(255,255,255,0.03);
            color: #b0d0e0;
        }
        .sidebar .nav-item.active {
            background: rgba(0, 240, 255, 0.06);
            color: #00f0ff;
        }
        .sidebar .nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 4px;
            bottom: 4px;
            width: 3px;
            border-radius: 0 4px 4px 0;
            background: #00f0ff;
        }
        .sidebar .nav-item .icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
        .sidebar .nav-item .badge {
            margin-left: auto;
            font-size: 10px;
            font-weight: 600;
            padding: 1px 10px;
            border-radius: 30px;
            background: rgba(255,200,0,0.08);
            color: #ffb400;
        }
        .sidebar .nav-item .badge.success {
            background: rgba(0,255,200,0.08);
            color: #00ffc8;
        }
        .sidebar .nav-item.sub {
            padding-left: 38px;
            font-size: 12px;
            color: #5a7a8a;
        }
        .sidebar .nav-item.sub:hover { color: #8ab0c0; }
        .sidebar .nav-item.sub.active {
            background: rgba(0, 240, 255, 0.04);
            color: #00f0ff;
        }
        .sidebar .nav-item.sub .icon { font-size: 12px; width: 16px; }
        .sidebar .nav-item.expandable { cursor: pointer; }
        .sidebar .nav-item.expandable .arrow {
            margin-left: auto;
            font-size: 11px;
            color: #3a5a6a;
            transition: 0.25s;
        }
        .sidebar .nav-item.expandable.open .arrow { transform: rotate(90deg); }
        .sidebar .sub-menu {
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.3s ease;
        }
        .sidebar .sub-menu.open { max-height: 600px; }

        .main-content {
            flex: 1;
            padding: 16px 24px 24px 24px;
            overflow-y: auto;
            height: 100vh;
        }
        .main-content::-webkit-scrollbar { width: 4px; }
        .main-content::-webkit-scrollbar-thumb { background: #2a2a44; border-radius: 10px; }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            padding-bottom: clamp(12px, 1.5vh, 24px);
            border-bottom: 1px solid rgba(255,255,255,0.04);
            margin-bottom: clamp(16px, 2vh, 32px);
        }
        .page-header .title { font-size: 20px; font-weight: 700; color: #e0e0e0; }
        .page-header .title .highlight { color: #00f0ff; }
        .page-header .breadcrumb { font-size: 12px; color: #4a6a7a; }

        .page-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        .page-content.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

        .card {
            background: rgba(14, 14, 26, 0.85);
            border-radius: 12px;
            padding: var(--card-padding, 20px);
            border: 1px solid #1a1a30;
            margin-bottom: 14px;
        }
        .card .card-title {
            font-size: 13px;
            font-weight: 600;
            color: #6a8a9a;
            margin-bottom: clamp(8px, 1vw, 16px);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .card .card-title i { color: #00f0ff; }

        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 20px); }
        .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(10px, 1.2vw, 20px); }
        .grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: clamp(10px, 1.2vw, 20px); }

        .stat-card {
            background: rgba(14,14,26,0.6);
            border-radius: 10px;
            padding: 12px 16px;
            border: 1px solid #1a1a30;
        }
        .stat-card .num { font-size: clamp(20px, 2vw, 32px);
            font-weight: 700;
            color: #00f0ff;
            font-family: 'JetBrains Mono', monospace;
        }
        .stat-card .num.green { color: #00ffc8; }
        .stat-card .num.yellow { color: #ffb400; }
        .stat-card .num.red { color: #ff6b6b; }
        .stat-card .label { font-size: 11px; color: #4a6a7a; margin-top: 2px; }
        .stat-card .trend { font-size: 11px; color: #00ffc8; margin-left: 6px; }
        .stat-card .trend.down { color: #ff6b6b; }

        .search-bar {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 12px;
        }
        .search-bar input {
            flex: 1;
            min-width: 160px;
            background: #0a0a14;
            border: 1px solid #1a1a30;
            border-radius: 8px;
            padding: 8px 14px;
            color: #e0e0e0;
            font-size: 13px;
            font-family: 'Inter', sans-serif;
        }
        .search-bar input:focus { border-color: #00f0ff; outline: none; }
        .search-bar select {
            background: #0a0a14;
            border: 1px solid #1a1a30;
            border-radius: 8px;
            padding: 8px 14px;
            color: #b0b0d0;
            font-size: 13px;
            font-family: 'Inter', sans-serif;
        }
        .search-bar .btn {
            background: rgba(0,240,255,0.04);
            border: 1px solid rgba(0,240,255,0.06);
            border-radius: 8px;
            padding: 8px 18px;
            color: #8a9aaa;
            font-size: 13px;
            cursor: pointer;
            transition: 0.2s;
        }
        .search-bar .btn:hover { background: rgba(0,240,255,0.08); color: #00f0ff; }

        .table-wrap { overflow-x: auto; }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        table th {
            text-align: left;
            padding: 8px 10px;
            color: #4a6a7a;
            font-weight: 500;
            border-bottom: 1px solid #1a1a30;
        }
        table td {
            padding: 8px 10px;
            border-bottom: 1px solid rgba(255,255,255,0.02);
            color: #b0b0d0;
        }
        .clickable-row {
            cursor: pointer;
            transition: 0.15s;
        }
        .clickable-row:hover { background: rgba(0,240,255,0.02); }

        .badge {
            font-size: 10px;
            padding: 2px 12px;
            border-radius: 30px;
            font-weight: 600;
        }
        .badge.success { background: rgba(0,255,200,0.08); color: #00ffc8; }
        .badge.warning { background: rgba(255,200,0,0.08); color: #ffb400; }
        .badge.danger { background: rgba(255,100,100,0.08); color: #ff6b6b; }
        .badge.info { background: rgba(0,240,255,0.08); color: #00f0ff; }

        .link-btn {
            color: #00f0ff;
            cursor: pointer;
            text-decoration: underline;
        }
        .link-btn:hover { color: #00ffc8; }

        .chart-container canvas {
            width: 100% !important;
            height: auto !important;
            max-height: 200px;
        }

        .footer {
            font-size: 11px;
            color: #2a4a5a;
            text-align: center;
            padding-top: 14px;
            border-top: 1px solid rgba(255,255,255,0.02);
            margin-top: 10px;
        }

        /* 详情页特殊样式 */
        .detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            padding: 12px 20px;
            background: rgba(0,240,255,0.02);
            border-radius: 12px;
            border: 1px solid rgba(0,240,255,0.04);
            margin-bottom: 16px;
        }
        .detail-header .left .name {
            font-size: 22px;
            font-weight: 700;
            color: #e0e0e0;
        }
        .detail-header .left .code {
            font-size: 13px;
            color: #4a6a7a;
        }
        .detail-header .left .addr {
            font-size: 13px;
            color: #6a8a9a;
        }
        .detail-header .right {
            text-align: right;
        }
        .detail-header .right .status {
            font-size: 14px;
            font-weight: 600;
        }
        .detail-header .right .status .dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 6px;
        }
        .dot.green { background: #00ffc8; }
        .dot.yellow { background: #ffb400; }
        .dot.red { background: #ff6b6b; }

        @media (max-width: 900px) {
            .sidebar { width: 60px; padding: 12px 0; }
            .sidebar .logo .text, .sidebar .logo .sub,
            .sidebar .nav-item .label, .sidebar .nav-item .badge,
            .sidebar .nav-item .arrow, .sidebar .section-title,
            .sidebar .nav-item.sub .label { display: none; }
            .sidebar .nav-item { justify-content: center; padding: 10px 0; }
            .sidebar .nav-item .icon { font-size: 18px; }
            .sidebar .nav-item.sub { padding-left: 0; }
            .sidebar .nav-item.sub .icon { font-size: 16px; }
            .sidebar .nav-item.active::before { left: auto; right: 0; }
            .sidebar .sub-menu { max-height: none !important; }
            .sidebar .nav-item.expandable .arrow { display: none; }
            .main-content { padding: 12px 14px; }
            .grid-2 { grid-template-columns: 1fr; }
            .grid-3 { grid-template-columns: 1fr 1fr; }
            .grid-4 { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 500px) {
            .sidebar { width: 50px; }
            .grid-3 { grid-template-columns: 1fr; }
            .grid-4 { grid-template-columns: 1fr; }
            .detail-header { flex-direction: column; align-items: flex-start; }
            .detail-header .right { text-align: left; width: 100%; }
        }

/* 覆盖 Design v3 浅底（由 global.css 引入） */
body.ops-sidebar-page {
    background: #08080e !important;
    color: #e0e0e0 !important;
}
