:root {
            --glass-bg: rgba(15, 23, 42, 0.6); 
            --glass-border: rgba(51, 65, 85, 0.5);
            --glass-hover: rgba(30, 41, 59, 0.5);
            --text-main: #e2e8f0;
            --text-muted: #94a3b8;
            --accent-color: #38bdf8;
            --table-header-bg: rgba(15, 23, 42, 0.9);
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
            text-rendering: geometricPrecision;
            height: 100vh;
            color: var(--text-main);
            overflow: hidden;
            background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .glass-app {
            width: 95vw;
            height: 90vh;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            display: flex;
            overflow: hidden;
        }

        /* 侧边栏 */
        .sidebar {
            width: 240px;
            background: rgba(0, 0, 0, 0.3);
            border-right: 1px solid var(--glass-border);
            padding: 20px 0;
            display: flex;
            flex-direction: column;
        }

        .nav-group { margin-bottom: 10px; }
        .nav-title {
            width: 100%;
            border: 0;
            background: transparent;
            padding: 10px 20px;
            font-size: 13px;
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 600;
            cursor: default;
            transition: all 0.2s ease;
            text-align: left;
        }

        .nav-title:hover { background: transparent; }

        .nav-label {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-arrow {
            display: none;
        }

        .nav-group.collapsed .nav-arrow { transform: rotate(-90deg); }

        .nav-children {
            margin-left: 14px;
            border-left: 1px solid rgba(148, 163, 184, 0.22);
            overflow: hidden;
        }

        .nav-group.collapsed .nav-children {
            display: none;
        }

        .nav-item {
            padding: 10px 20px 10px 26px;
            cursor: pointer;
            font-size: 14px;
            color: var(--text-main);
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .nav-item:hover { background: var(--glass-hover); }
        .nav-item.active {
            background: rgba(56, 189, 248, 0.1);
            border-left: 3px solid var(--accent-color);
            color: var(--accent-color);
        }

        /* 右侧主区 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden; 
        }

        /* 顶栏与搜索框 */
        .top-bar {
            height: 72px; 
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            padding: 0 24px;
            background: transparent;
        }
        
        .search-container {
            width: 100%;
        }

        .search-container input {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: var(--text-main);
            padding: 12px 24px;
            border-radius: 24px;
            font-size: 15px;
            width: 450px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
        }
        
        .search-container input:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
            width: 550px; 
        }
        
        .search-container input::placeholder { color: var(--text-muted); }

        /* 表格区 */
        .table-container {
            flex: 1;
            overflow-y: auto;
            overflow-x: auto;
        }

        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.3); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.5); }

        table {
            width: 100%;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 0;
            text-align: left;
        }

        th, td { white-space: nowrap; }

        .col-select { width: 44px; }
        .col-audit { width: 112px; }
        .col-invoice { width: 76px; }
        .col-summary { width: 280px; }
        .col-client { width: 230px; }
        .col-code { width: 128px; }
        .col-owner { width: 88px; }
        .col-coworker { width: 96px; }
        .col-attachment { width: 128px; }

        .truncate {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        th {
            position: sticky;
            top: 0;
            background: var(--table-header-bg);
            backdrop-filter: blur(12px);
            color: var(--text-muted);
            font-weight: 500;
            font-size: 13px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--glass-border);
            z-index: 10;
        }

        td {
            padding: 14px 16px;
            font-size: 13px;
            color: var(--text-main);
            border-bottom: 1px solid rgba(255,255,255,0.03);
            transition: background 0.2s;
        }

        .empty-row {
            text-align: center;
            color: var(--text-muted);
            padding: 34px 16px;
            font-weight: 700;
        }

        tr:nth-child(even) td { background: rgba(255, 255, 255, 0.01); }
        tr:hover td { background: var(--glass-hover); }

        .case-row {
            cursor: pointer;
        }

        .case-row.expanded td {
            background: rgba(56, 189, 248, 0.06);
            border-bottom-color: rgba(56, 189, 248, 0.18);
        }

        .case-row.selected td {
            background: rgba(56, 189, 248, 0.04);
        }

        .select-cell,
        .select-header {
            text-align: center;
            padding-left: 8px;
            padding-right: 8px;
        }

        .case-select-checkbox {
            width: 15px;
            height: 15px;
            accent-color: var(--accent-color);
            cursor: pointer;
        }

        .case-row td.expand-cell {
            position: relative;
        }

        .case-row td.expand-cell::before {
            content: "›";
            position: absolute;
            left: 6px;
            color: var(--text-muted);
            transition: transform 0.2s ease;
        }

        .case-row.expanded td.expand-cell::before {
            transform: rotate(90deg);
            color: var(--accent-color);
        }

        .detail-row td {
            padding: 0;
            background: rgba(2, 6, 23, 0.34);
            white-space: normal;
        }

        .case-row,
        .detail-row {
            position: relative;
        }

        .case-row {
            z-index: 1;
        }

        .case-row.expanded,
        .detail-row {
            z-index: 90;
        }

        .case-detail {
            display: grid;
            grid-template-columns: 150px minmax(0, 1fr);
            border-bottom: 1px solid rgba(56, 189, 248, 0.16);
        }

        .detail-tabs {
            padding: 12px;
            border-right: 1px solid var(--glass-border);
            background: rgba(2, 6, 23, 0.2);
        }

        .detail-tab {
            width: 100%;
            border: 0;
            border-left: 3px solid transparent;
            background: transparent;
            color: var(--text-main);
            padding: 10px 12px;
            text-align: left;
            cursor: pointer;
            border-radius: 4px;
            font-size: 13px;
        }

        .detail-tab:hover {
            background: var(--glass-hover);
        }

        .detail-tab.active {
            border-left-color: var(--accent-color);
            color: var(--accent-color);
            background: rgba(56, 189, 248, 0.1);
        }

        .detail-panel {
            padding: 16px 18px 18px;
            min-height: 148px;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(160px, 1fr));
            gap: 14px;
        }

        .detail-field label,
        .edit-field label {
            display: block;
            color: var(--text-muted);
            font-size: 12px;
            margin-bottom: 7px;
        }

        .detail-value {
            color: var(--text-main);
            line-height: 1.6;
            word-break: break-word;
        }

        .edit-grid {
            display: grid;
            grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) minmax(140px, 180px);
            gap: 14px;
            align-items: end;
        }

        .edit-field textarea,
        .edit-field input {
            width: 100%;
            border: 1px solid var(--glass-border);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-main);
            padding: 9px 10px;
            outline: none;
            font: inherit;
        }

        .date-input-wrap {
            position: relative;
        }

        .date-input-wrap input {
            cursor: pointer;
        }

        .date-wheel {
            position: absolute;
            left: 0;
            bottom: calc(100% + 6px);
            z-index: 40;
            width: 252px;
            border: 1px solid rgba(56, 189, 248, 0.28);
            border-radius: 10px;
            background: rgba(248, 252, 255, 0.96);
            box-shadow: 0 14px 32px rgba(37, 54, 92, 0.18);
            padding: 10px;
            display: none;
        }

        .date-wheel.open {
            display: block;
        }

        .date-calendar-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            margin-bottom: 6px;
        }

        .date-wheel-title {
            color: var(--text-muted);
            font-size: 11px;
            margin-bottom: 2px;
        }

        .date-calendar-month {
            color: var(--text-main);
            font-size: 13px;
            font-weight: 820;
            line-height: 1.1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
        }

        .date-calendar-number {
            width: 48px;
            height: 24px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 7px;
            background: rgba(255,255,255,0.78);
            color: var(--text-main);
            font: inherit;
            font-size: 13px;
            font-weight: 820;
            text-align: center;
            outline: none;
            padding: 0 3px;
        }

        .date-calendar-number.month {
            width: 36px;
        }

        .date-calendar-number::-webkit-outer-spin-button,
        .date-calendar-number::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .date-calendar-number {
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .date-calendar-number:focus {
            border-color: rgba(22,119,255,0.44);
            box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
        }

        .date-calendar-nav {
            width: 26px;
            height: 26px;
            border: 1px solid var(--glass-border);
            border-radius: 7px;
            background: rgba(255,255,255,0.72);
            color: var(--text-main);
            font-size: 17px;
            line-height: 1;
            cursor: pointer;
        }

        .date-calendar-weekdays,
        .date-calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }

        .date-calendar-weekdays {
            margin: 6px 0 3px;
        }

        .date-calendar-weekdays span {
            color: var(--text-muted);
            font-size: 10px;
            font-weight: 750;
            text-align: center;
        }

        .date-calendar-day {
            height: 26px;
            border: 1px solid transparent;
            border-radius: 7px;
            background: transparent;
            color: var(--text-main);
            font: inherit;
            font-size: 12px;
            font-weight: 760;
            cursor: pointer;
        }

        .date-calendar-day:hover {
            background: rgba(56, 189, 248, 0.12);
            border-color: rgba(56, 189, 248, 0.22);
        }

        .date-calendar-day.muted {
            color: rgba(148, 163, 184, 0.45);
        }

        .date-calendar-day.today {
            color: #1677ff;
            border-color: rgba(22, 119, 255, 0.18);
        }

        .date-calendar-day.selected {
            color: #0f172a;
            background: linear-gradient(180deg, #dbeafe, #bfdbfe);
            border-color: rgba(22, 119, 255, 0.38);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
        }

        .date-wheel-actions {
            display: flex;
            justify-content: flex-end;
            gap: 6px;
            margin-top: 8px;
        }

        .date-wheel-actions .detail-btn {
            padding: 5px 12px;
            font-size: 12px;
        }

        .edit-field textarea {
            min-height: 78px;
            resize: vertical;
            line-height: 1.6;
        }

        .detail-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 14px;
        }

        .detail-btn {
            border: 1px solid rgba(56, 189, 248, 0.32);
            background: rgba(56, 189, 248, 0.1);
            color: var(--accent-color);
            padding: 7px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
        }

        .detail-btn:hover:not(:disabled) {
            background: rgba(56, 189, 248, 0.18);
        }

        .detail-btn.secondary {
            border-color: var(--glass-border);
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-muted);
        }

        .detail-btn.secondary:hover:not(:disabled) {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.07);
        }

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

        .invoice-slide-area {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 14px;
        }

        .invoice-slide-track {
            position: relative;
            width: min(360px, 100%);
            height: 44px;
            border: 1px solid rgba(56, 189, 248, 0.28);
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.72));
            overflow: hidden;
            cursor: grab;
            user-select: none;
            touch-action: none;
        }

        .invoice-slide-track::before {
            content: "";
            position: absolute;
            inset: 3px;
            border-radius: inherit;
            background: rgba(255, 255, 255, 0.03);
        }

        .invoice-slide-track.ready {
            border-color: rgba(34, 197, 94, 0.55);
        }

        .invoice-slide-track.reverse {
            background: linear-gradient(90deg, rgba(76, 29, 29, 0.62), rgba(15, 23, 42, 0.92));
            border-color: rgba(251, 113, 133, 0.28);
        }

        .invoice-slide-track.reverse.ready {
            border-color: rgba(251, 113, 133, 0.62);
        }

        .invoice-slide-track.loading {
            cursor: wait;
            opacity: 0.72;
        }

        .invoice-slide-label {
            position: absolute;
            inset: 0 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 13px;
            pointer-events: none;
        }

        .invoice-slide-knob {
            position: absolute;
            left: 4px;
            top: 4px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(56, 189, 248, 0.16);
            border: 1px solid rgba(56, 189, 248, 0.48);
            color: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            line-height: 1;
            transition: transform 0.18s ease;
        }

        .invoice-slide-track.reverse .invoice-slide-knob {
            left: auto;
            right: 4px;
            border-color: rgba(251, 113, 133, 0.42);
            background: rgba(251, 113, 133, 0.14);
            color: #fb7185;
        }

        .attachment-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .attachment-link {
            color: var(--text-main);
            border: 1px solid var(--glass-border);
            border-radius: 6px;
            padding: 6px 10px;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.04);
        }

        .attachment-link:hover {
            color: var(--accent-color);
            border-color: rgba(56, 189, 248, 0.4);
        }

        .attachment-file-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }

        .attachment-file-chip,
        .attachment-file-empty {
            display: inline-flex;
            align-items: center;
            min-height: 34px;
            border: 1px solid rgba(255,255,255,0.64);
            border-radius: 6px;
            background: rgba(255,255,255,0.38);
            color: var(--text-main);
            padding: 7px 12px;
            font-size: 13px;
            font-weight: 700;
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.86),
                0 8px 20px rgba(37,54,92,0.08);
        }

        .attachment-file-empty {
            color: var(--text-muted);
        }

        .attachment-count {
            display: inline-block;
            min-width: 86px;
            border: 1px solid rgba(56, 189, 248, 0.22);
            background: rgba(56, 189, 248, 0.06);
            color: var(--accent-color);
            padding: 5px 8px;
            border-radius: 6px;
            font-size: 12px;
            text-align: center;
        }

        /* 状态 UI */
        .badge {
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            display: inline-block;
            text-align: center;
        }
        .badge.pending { background: rgba(217, 119, 6, 0.15); color: #fbbf24; border: 1px solid rgba(217, 119, 6, 0.3); }
        .badge.reject { background: rgba(225, 29, 72, 0.15); color: #fb7185; border: 1px solid rgba(225, 29, 72, 0.3); }
        
        .status-passed-container {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .status-time { color: var(--text-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
        .status-icon { color: #10b981; font-size: 14px; font-weight: bold; }
        .status-icon.reject { color: #fb7185; }

        /* 分页区 */
        .pagination {
            height: 50px;
            border-top: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0 24px;
            gap: 12px;
            background: rgba(15, 23, 42, 0.4);
        }
        .page-info { font-size: 13px; color: var(--text-muted); margin-right: 10px; }
        .batch-audit-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-right: 14px;
        }
        .batch-selected-count {
            color: var(--text-muted);
            font-size: 13px;
        }
        .page-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: var(--text-main);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .page-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); }
        .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .page-btn.danger {
            border-color: rgba(225, 29, 72, 0.35);
            color: #fb7185;
            margin-right: auto;
        }
        .page-btn.danger:hover:not(:disabled) {
            background: rgba(225, 29, 72, 0.14);
        }
        .page-btn.approve {
            border-color: rgba(16, 185, 129, 0.36);
            color: #34d399;
        }
        .page-btn.approve:hover:not(:disabled) {
            background: rgba(16, 185, 129, 0.14);
        }
        .page-btn.download {
            border-color: rgba(44, 125, 246, 0.36);
            color: #2c7df6;
        }
        .page-btn.download:hover:not(:disabled) {
            background: rgba(44, 125, 246, 0.12);
        }
        .page-btn.reject {
            border-color: rgba(251, 113, 133, 0.36);
            color: #fb7185;
        }
        .page-btn.reject:hover:not(:disabled) {
            background: rgba(251, 113, 133, 0.14);
        }
        .page-btn.hidden { display: none; }
        .hidden { display: none !important; }

        .attachment-btn {
            width: 86px;
            border: 1px solid rgba(56, 189, 248, 0.28);
            background: rgba(56, 189, 248, 0.08);
            color: var(--accent-color);
            padding: 5px 8px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s ease;
        }

        .attachment-btn:hover:not(:disabled) {
            background: rgba(56, 189, 248, 0.16);
            border-color: rgba(56, 189, 248, 0.48);
        }

        .attachment-btn:disabled {
            opacity: 0.55;
            cursor: wait;
        }

        .file-input {
            display: none;
        }

        .hide-case-code .case-code-column {
            display: none;
        }

        /* 视觉升级层：企业法务工作台 */
        :root {
            --page-bg: #090a0f;
            --panel-bg: #11131b;
            --panel-elevated: #171a23;
            --panel-soft: #1d212b;
            --line-strong: rgba(185, 190, 205, 0.18);
            --line-soft: rgba(185, 190, 205, 0.08);
            --text-main: #f3f4f1;
            --text-muted: #a7adba;
            --text-faint: #6f7785;
            --accent-color: #5ec8a8;
            --accent-2: #d7b56d;
            --danger: #ee6f83;
            --warning: #f0b45b;
            --success: #6fd6a4;
            --glass-bg: var(--panel-bg);
            --glass-border: var(--line-strong);
            --glass-hover: rgba(255, 255, 255, 0.045);
            --table-header-bg: #151820;
        }

        body {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
                linear-gradient(135deg, #07080c 0%, #101219 50%, #0b0d12 100%);
            color: var(--text-main);
            letter-spacing: 0;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
            background-size: 44px 44px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.75), transparent 70%);
        }

        .glass-app {
            width: min(1760px, calc(100vw - 28px));
            height: calc(100vh - 28px);
            border-radius: 8px;
            background: var(--panel-bg);
            border: 1px solid var(--line-strong);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
        }

        .sidebar {
            width: 258px;
            background: #0c0e14;
            border-right: 1px solid var(--line-strong);
            padding: 22px 12px;
        }

        .nav-group {
            margin-bottom: 18px;
        }

        .nav-title {
            padding: 8px 12px 9px;
            color: #f4efe4;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .nav-title::before {
            content: "";
            width: 7px;
            height: 7px;
            margin-right: 9px;
            border-radius: 50%;
            background: var(--accent-2);
            box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.12);
        }

        .nav-children {
            margin-left: 13px;
            padding: 4px 0 4px 10px;
            border-left: 1px solid rgba(215, 181, 109, 0.16);
        }

        .nav-item {
            margin: 3px 0;
            padding: 10px 12px 10px 16px;
            border-left: 0;
            border-radius: 6px;
            color: #c8cdd6;
            font-size: 14px;
            font-weight: 600;
        }

        .nav-item:hover {
            background: rgba(255, 255, 255, 0.055);
            color: #fff;
        }

        .nav-item.active {
            background: linear-gradient(90deg, rgba(94, 200, 168, 0.18), rgba(94, 200, 168, 0.06));
            color: #94f0d0;
            border-left: 0;
            box-shadow: inset 3px 0 0 var(--accent-color);
        }

        .main-content {
            background: #11131b;
        }

        .top-bar {
            height: 86px;
            padding: 0 28px;
            gap: 28px;
            background: #11131b;
            border-bottom: 1px solid var(--line-strong);
        }

        .workspace-title {
            min-width: 226px;
        }

        .workspace-kicker {
            color: var(--accent-2);
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.08em;
            margin-bottom: 6px;
        }

        .workspace-name {
            color: #faf8f1;
            font-size: 20px;
            font-weight: 750;
            line-height: 1;
        }

        .search-container {
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .search-container input {
            width: min(620px, 48vw);
            height: 42px;
            border-radius: 6px;
            background: #1a1d27;
            border: 1px solid var(--line-strong);
            padding: 0 16px;
            font-size: 14px;
            color: var(--text-main);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }

        .search-container input:focus {
            width: min(680px, 52vw);
            background: #20242f;
            border-color: rgba(94, 200, 168, 0.55);
            box-shadow: 0 0 0 3px rgba(94, 200, 168, 0.12);
        }

        .table-container {
            background: #11131b;
        }

        table {
            min-width: 1180px;
        }

        .col-select { width: 42px; }
        .col-audit { width: 126px; }
        .col-invoice { width: 92px; }
        .col-summary { width: 300px; }
        .col-client { width: 258px; }
        .col-code { width: 136px; }
        .col-owner { width: 96px; }
        .col-coworker { width: 104px; }
        .col-attachment { width: 132px; }

        th {
            background: #161922;
            color: #9aa2b2;
            font-size: 12px;
            font-weight: 700;
            padding: 15px 14px;
            border-bottom: 1px solid var(--line-strong);
            box-shadow: inset 0 -1px 0 rgba(255,255,255,0.02);
        }

        td {
            padding: 15px 14px;
            border-bottom: 1px solid var(--line-soft);
            color: #dfe3ea;
            font-size: 13px;
            font-weight: 550;
        }

        tr:nth-child(even) td {
            background: rgba(255,255,255,0.012);
        }

        tr:hover td {
            background: rgba(255,255,255,0.042);
        }

        .case-row {
            cursor: default;
        }

        .case-row.expanded td {
            background: rgba(94, 200, 168, 0.075);
            border-bottom-color: rgba(94, 200, 168, 0.26);
        }

        .case-row.selected td {
            background: rgba(215, 181, 109, 0.06);
        }

        .case-row td.expand-cell::before {
            left: 5px;
            color: #8e96a5;
        }

        .case-select-checkbox {
            width: 16px;
            height: 16px;
            accent-color: var(--accent-color);
            vertical-align: middle;
        }

        .badge,
        .attachment-count {
            border-radius: 6px;
            font-weight: 750;
        }

        .badge.pending {
            background: rgba(240, 180, 91, 0.16);
            color: #ffd189;
            border-color: rgba(240, 180, 91, 0.34);
        }

        .badge.reject {
            background: rgba(238, 111, 131, 0.14);
            color: #ff9aaa;
            border-color: rgba(238, 111, 131, 0.34);
        }

        .status-time {
            color: #aeb5c0;
            font-size: 12px;
            font-weight: 650;
        }

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

        .status-icon.reject {
            color: var(--danger);
        }

        .attachment-count {
            min-width: 92px;
            border-color: rgba(94, 200, 168, 0.28);
            background: rgba(94, 200, 168, 0.09);
            color: #85e4c3;
            padding: 7px 10px;
        }

        .case-detail {
            grid-template-columns: 174px minmax(0, 1fr);
            background: #151821;
            border-top: 1px solid rgba(94, 200, 168, 0.16);
            border-bottom: 1px solid rgba(94, 200, 168, 0.22);
        }

        .detail-tabs {
            padding: 16px 12px;
            background: #11141c;
            border-right: 1px solid var(--line-strong);
        }

        .detail-tab {
            border-radius: 6px;
            padding: 11px 14px;
            color: #b9c0cd;
            font-weight: 700;
        }

        .detail-tab.active {
            color: #9cf0d1;
            background: rgba(94, 200, 168, 0.12);
            border-left-color: var(--accent-color);
        }

        .detail-panel {
            padding: 20px 22px 24px;
            background: #151821;
        }

        .edit-field label {
            color: #aab1bd;
            font-weight: 700;
            margin-bottom: 9px;
        }

        .edit-field textarea,
        .edit-field input,
        .date-wheel select {
            border-radius: 6px;
            background: #1d212b;
            border-color: rgba(185, 190, 205, 0.2);
            color: #f2f4f7;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
        }

        .edit-field textarea:focus,
        .edit-field input:focus {
            border-color: rgba(94, 200, 168, 0.55);
            box-shadow: 0 0 0 3px rgba(94, 200, 168, 0.1);
        }

        .date-wheel {
            border-radius: 8px;
            background: #171a23;
            border-color: rgba(94, 200, 168, 0.34);
            box-shadow: 0 18px 56px rgba(0,0,0,0.5);
        }

        .detail-btn,
        .page-btn {
            min-height: 34px;
            border-radius: 6px;
            border-color: rgba(185, 190, 205, 0.2);
            background: #1c202a;
            color: #f1f3f5;
            font-weight: 750;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }

        .detail-btn:hover:not(:disabled),
        .page-btn:hover:not(:disabled) {
            background: #252a35;
            transform: translateY(-1px);
        }

        .detail-btn:not(.secondary) {
            border-color: rgba(94, 200, 168, 0.34);
            color: #8ce8c9;
            background: rgba(94, 200, 168, 0.1);
        }

        .detail-btn.secondary {
            color: #abb3c0;
            background: rgba(255,255,255,0.035);
        }

        .page-btn.approve {
            color: #8ce8c9;
            border-color: rgba(94, 200, 168, 0.34);
            background: rgba(94, 200, 168, 0.1);
        }

        .page-btn.approve:hover:not(:disabled) {
            background: rgba(94, 200, 168, 0.16);
        }

        .page-btn.reject,
        .page-btn.danger {
            color: #ff9aaa;
            border-color: rgba(238, 111, 131, 0.34);
            background: rgba(238, 111, 131, 0.1);
        }

        .page-btn.reject:hover:not(:disabled),
        .page-btn.danger:hover:not(:disabled) {
            background: rgba(238, 111, 131, 0.16);
        }

        .pagination {
            height: 64px;
            padding: 0 28px;
            background: #11131b;
            border-top: 1px solid var(--line-strong);
            gap: 12px;
        }

        .page-info,
        .batch-selected-count,
        .detail-muted {
            color: #9ca4b2;
            font-weight: 650;
        }

        .invoice-slide-track {
            height: 42px;
            border-radius: 999px;
            background: linear-gradient(90deg, #171a23, rgba(94, 200, 168, 0.18));
            border-color: rgba(94, 200, 168, 0.28);
        }

        .invoice-slide-knob {
            width: 34px;
            height: 34px;
            background: rgba(94, 200, 168, 0.18);
            border-color: rgba(94, 200, 168, 0.48);
            color: #9cf0d1;
        }

        .invoice-slide-track.reverse {
            background: linear-gradient(90deg, rgba(238, 111, 131, 0.16), #171a23);
            border-color: rgba(238, 111, 131, 0.28);
        }

        ::-webkit-scrollbar {
            width: 9px;
            height: 9px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(215, 181, 109, 0.34);
            border-radius: 999px;
            border: 2px solid #11131b;
        }

        @media (max-width: 980px) {
            .glass-app {
                width: 100vw;
                height: 100vh;
                border-radius: 0;
            }

            .sidebar {
                width: 208px;
            }

            .top-bar {
                padding: 0 18px;
                gap: 16px;
            }

            .workspace-title {
                min-width: 166px;
            }

            .workspace-name {
                font-size: 17px;
            }
        }

        /* 明亮清晰主题 */
        :root {
            --page-bg: #eef3f8;
            --panel-bg: #ffffff;
            --panel-elevated: #ffffff;
            --panel-soft: #f7f9fc;
            --line-strong: rgba(30, 41, 59, 0.14);
            --line-soft: rgba(30, 41, 59, 0.08);
            --text-main: #1f2937;
            --text-muted: #64748b;
            --text-faint: #94a3b8;
            --accent-color: #1677ff;
            --accent-2: #14b8a6;
            --danger: #e11d48;
            --warning: #d97706;
            --success: #059669;
            --glass-bg: var(--panel-bg);
            --glass-border: var(--line-strong);
            --glass-hover: #f1f5f9;
            --table-header-bg: #f8fafc;
        }

        body {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.9), rgba(238,243,248,0.88)),
                linear-gradient(135deg, #e8f3ff 0%, #f6f8fb 48%, #eef7f4 100%);
            color: var(--text-main);
        }

        body::before {
            background-image:
                linear-gradient(rgba(30,41,59,0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(30,41,59,0.03) 1px, transparent 1px);
            background-size: 36px 36px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.42), transparent 74%);
        }

        .glass-app {
            background: #ffffff;
            border-color: rgba(30,41,59,0.13);
            box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
        }

        .sidebar {
            background: #f8fafc;
            border-right-color: rgba(30,41,59,0.12);
        }

        .nav-title {
            color: #334155;
        }

        .nav-title::before {
            background: var(--accent-2);
            box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
        }

        .nav-children {
            border-left-color: rgba(20, 184, 166, 0.22);
        }

        .nav-item {
            color: #475569;
        }

        .nav-item:hover {
            background: #edf4ff;
            color: #0f172a;
        }

        .nav-item.active {
            background: linear-gradient(90deg, rgba(22,119,255,0.12), rgba(22,119,255,0.04));
            color: #0f5fd7;
            box-shadow: inset 3px 0 0 var(--accent-color);
        }

        .main-content,
        .top-bar,
        .table-container,
        .pagination {
            background: #ffffff;
        }

        .top-bar {
            border-bottom-color: rgba(30,41,59,0.12);
        }

        .workspace-kicker {
            color: #0d9488;
        }

        .workspace-name {
            color: #0f172a;
        }

        .search-container input {
            background: #f8fafc;
            color: #0f172a;
            border-color: rgba(30,41,59,0.14);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(15,23,42,0.04);
        }

        .search-container input:focus {
            background: #ffffff;
            border-color: rgba(22,119,255,0.48);
            box-shadow: 0 0 0 3px rgba(22,119,255,0.12);
        }

        .search-container input::placeholder {
            color: #94a3b8;
        }

        th {
            background: #f8fafc;
            color: #64748b;
            border-bottom-color: rgba(30,41,59,0.13);
            box-shadow: inset 0 -1px 0 rgba(255,255,255,0.8);
        }

        td {
            color: #1e293b;
            border-bottom-color: rgba(30,41,59,0.075);
        }

        tr:nth-child(even) td {
            background: #fbfdff;
        }

        tr:hover td {
            background: #f1f7ff;
        }

        .case-row.expanded td {
            background: #eaf4ff;
            border-bottom-color: rgba(22,119,255,0.2);
        }

        .case-row.selected td {
            background: #eefcf8;
        }

        .case-row td.expand-cell::before {
            color: #94a3b8;
        }

        .case-row.expanded td.expand-cell::before {
            color: var(--accent-color);
        }

        .badge.pending {
            background: #fff7ed;
            color: #b45309;
            border-color: #fed7aa;
        }

        .badge.reject {
            background: #fff1f2;
            color: #be123c;
            border-color: #fecdd3;
        }

        .status-time {
            color: #64748b;
        }

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

        .status-icon.reject {
            color: var(--danger);
        }

        .attachment-count {
            color: #0f5fd7;
            background: #eff6ff;
            border-color: #bfdbfe;
        }

        .case-detail {
            background: #f8fbff;
            border-top-color: rgba(22,119,255,0.16);
            border-bottom-color: rgba(22,119,255,0.18);
        }

        .detail-tabs {
            background: #f3f6fa;
            border-right-color: rgba(30,41,59,0.12);
        }

        .detail-tab {
            color: #475569;
        }

        .detail-tab:hover {
            background: #eaf2ff;
        }

        .detail-tab.active {
            color: #0f5fd7;
            background: #e8f2ff;
            border-left-color: var(--accent-color);
        }

        .detail-panel {
            background: #f8fbff;
        }

        .edit-field label,
        .detail-field label {
            color: #64748b;
        }

        .edit-field textarea,
        .edit-field input,
        .date-wheel select {
            background: #ffffff;
            color: #0f172a;
            border-color: rgba(30,41,59,0.16);
            box-shadow: 0 1px 2px rgba(15,23,42,0.04);
        }

        .edit-field textarea:focus,
        .edit-field input:focus {
            border-color: rgba(22,119,255,0.52);
            box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
        }

        .date-wheel {
            background: #ffffff;
            border-color: rgba(22,119,255,0.22);
            box-shadow: 0 18px 42px rgba(15,23,42,0.16);
        }

        .date-wheel-title {
            color: #64748b;
        }

        .date-wheel option {
            background: #ffffff;
            color: #0f172a;
        }

        .detail-btn,
        .page-btn {
            background: #ffffff;
            color: #334155;
            border-color: rgba(30,41,59,0.16);
            box-shadow: 0 1px 2px rgba(15,23,42,0.06);
        }

        .detail-btn:hover:not(:disabled),
        .page-btn:hover:not(:disabled) {
            background: #f8fafc;
            box-shadow: 0 6px 14px rgba(15,23,42,0.08);
        }

        .detail-btn:not(.secondary),
        .page-btn.approve {
            background: #ecfdf5;
            color: #047857;
            border-color: #a7f3d0;
        }

        .detail-btn:not(.secondary):hover:not(:disabled),
        .page-btn.approve:hover:not(:disabled) {
            background: #dffbf0;
        }

        .page-btn.reject,
        .page-btn.danger {
            background: #fff1f2;
            color: #be123c;
            border-color: #fecdd3;
        }

        .page-btn.reject:hover:not(:disabled),
        .page-btn.danger:hover:not(:disabled) {
            background: #ffe4e6;
        }

        .detail-btn.secondary {
            background: #f8fafc;
            color: #64748b;
        }

        .page-info,
        .batch-selected-count,
        .detail-muted {
            color: #64748b;
        }

        .invoice-slide-track {
            background: linear-gradient(90deg, #ffffff, #e6f8f3);
            border-color: #99f6e4;
        }

        .invoice-slide-label {
            color: #64748b;
        }

        .invoice-slide-knob {
            background: #ccfbf1;
            border-color: #5eead4;
            color: #0f766e;
        }

        .invoice-slide-track.reverse {
            background: linear-gradient(90deg, #fff1f2, #ffffff);
            border-color: #fecdd3;
        }

        .invoice-slide-track.reverse .invoice-slide-knob {
            background: #ffe4e6;
            border-color: #fda4af;
            color: #be123c;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(100, 116, 139, 0.32);
            border: 2px solid #ffffff;
        }

        /* iOS 液态玻璃强化层 */
        body {
            background:
                radial-gradient(circle at 16% 12%, rgba(94, 200, 255, 0.28), transparent 30%),
                radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.22), transparent 32%),
                radial-gradient(circle at 50% 90%, rgba(125, 92, 255, 0.12), transparent 38%),
                linear-gradient(135deg, #eef7ff 0%, #f8fbff 48%, #edf8f5 100%);
        }

        body::before {
            opacity: 0.45;
        }

        .glass-app {
            background: rgba(255, 255, 255, 0.58);
            backdrop-filter: blur(28px) saturate(1.45);
            -webkit-backdrop-filter: blur(28px) saturate(1.45);
            border: 1px solid rgba(255, 255, 255, 0.72);
            box-shadow:
                0 26px 80px rgba(15, 23, 42, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.88),
                inset 0 -1px 0 rgba(15, 23, 42, 0.06);
        }

        .glass-app::before {
            content: "";
            position: absolute;
            inset: 1px;
            pointer-events: none;
            border-radius: 7px;
            background: linear-gradient(135deg, rgba(255,255,255,0.68), transparent 24%, rgba(255,255,255,0.28) 56%, transparent 100%);
            opacity: 0.7;
        }

        .sidebar,
        .top-bar,
        .pagination {
            background: rgba(255, 255, 255, 0.48);
            backdrop-filter: blur(22px) saturate(1.28);
            -webkit-backdrop-filter: blur(22px) saturate(1.28);
        }

        .main-content,
        .table-container {
            background: rgba(255,255,255,0.36);
        }

        .brand-card {
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 76px;
            margin: 0 2px 22px;
            padding: 12px;
            border-radius: 10px;
            background: rgba(255,255,255,0.62);
            border: 1px solid rgba(255,255,255,0.78);
            box-shadow:
                0 12px 34px rgba(15,23,42,0.08),
                inset 0 1px 0 rgba(255,255,255,0.95);
        }

        .brand-mark {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
            flex: 0 0 auto;
        }

        .brand-text {
            min-width: 0;
        }

        .brand-name {
            color: #0f172a;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.15;
            white-space: nowrap;
        }

        .brand-subtitle {
            margin-top: 4px;
            color: #64748b;
            font-size: 12px;
            font-weight: 700;
        }

        .nav-item,
        .search-container input,
        th,
        td,
        .detail-panel,
        .detail-tabs,
        .pagination,
        .date-wheel,
        .invoice-slide-track {
            backdrop-filter: blur(16px) saturate(1.18);
            -webkit-backdrop-filter: blur(16px) saturate(1.18);
        }

        th {
            background: rgba(248, 250, 252, 0.76);
        }

        tr:nth-child(even) td {
            background: rgba(255,255,255,0.3);
        }

        tr:hover td {
            background: rgba(235, 246, 255, 0.76);
        }

        .case-detail,
        .detail-panel {
            background: rgba(248, 251, 255, 0.72);
        }

        .detail-tabs {
            background: rgba(244, 248, 252, 0.74);
        }

        .search-container input,
        .edit-field textarea,
        .edit-field input,
        .date-wheel select,
        .detail-btn,
        .page-btn,
        .attachment-count {
            background: rgba(255,255,255,0.72);
            border-color: rgba(148, 163, 184, 0.22);
        }

        .nav-item.active,
        .detail-tab.active {
            background: rgba(22, 119, 255, 0.12);
            box-shadow: inset 3px 0 0 var(--accent-color), 0 8px 20px rgba(22,119,255,0.06);
        }

        /* 真正的 Liquid Glass 质感：透明、折射、柔暗背景 */
        :root {
            --liquid-text: rgba(15, 23, 42, 0.88);
            --liquid-muted: rgba(71, 85, 105, 0.72);
            --liquid-glass: rgba(255, 255, 255, 0.34);
            --liquid-glass-strong: rgba(255, 255, 255, 0.46);
            --liquid-line: rgba(255, 255, 255, 0.58);
            --liquid-shadow: rgba(15, 23, 42, 0.18);
            --text-main: #172033;
            --text-muted: #66758a;
            --glass-hover: rgba(255,255,255,0.35);
        }

        body {
            background:
                radial-gradient(circle at 12% 18%, rgba(67, 126, 255, 0.55), transparent 25%),
                radial-gradient(circle at 78% 10%, rgba(20, 184, 166, 0.44), transparent 28%),
                radial-gradient(circle at 66% 82%, rgba(125, 92, 255, 0.36), transparent 32%),
                linear-gradient(135deg, #c8d9f4 0%, #eaf2fb 36%, #cbe8e2 72%, #d9d5f4 100%);
        }

        body::before {
            opacity: 0.18;
            background-image:
                linear-gradient(rgba(255,255,255,0.42) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.24) 1px, transparent 1px);
        }

        body::after {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(120deg, rgba(255,255,255,0.34), transparent 18%, rgba(255,255,255,0.16) 46%, transparent 72%),
                radial-gradient(circle at 50% -10%, rgba(255,255,255,0.65), transparent 34%);
            mix-blend-mode: screen;
            opacity: 0.78;
        }

        .glass-app {
            position: relative;
            background: rgba(255, 255, 255, 0.28);
            backdrop-filter: blur(46px) saturate(1.75) contrast(1.04);
            -webkit-backdrop-filter: blur(46px) saturate(1.75) contrast(1.04);
            border-color: rgba(255,255,255,0.68);
            box-shadow:
                0 34px 90px rgba(37, 54, 92, 0.24),
                inset 0 1px 1px rgba(255,255,255,0.98),
                inset 0 -1px 0 rgba(255,255,255,0.42),
                inset 1px 0 0 rgba(255,255,255,0.36);
        }

        .glass-app::before {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.86), transparent 18%, rgba(255,255,255,0.18) 54%, rgba(255,255,255,0.52) 100%);
            opacity: 0.92;
        }

        .sidebar,
        .top-bar,
        .pagination,
        .brand-card,
        .case-detail,
        .detail-tabs,
        .detail-panel,
        .date-wheel {
            background: var(--liquid-glass);
            border-color: var(--liquid-line);
            backdrop-filter: blur(34px) saturate(1.7);
            -webkit-backdrop-filter: blur(34px) saturate(1.7);
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.9),
                inset 0 -1px 0 rgba(255,255,255,0.24);
        }

        .sidebar {
            background: rgba(255,255,255,0.24);
        }

        .main-content,
        .table-container {
            background: rgba(255,255,255,0.16);
        }

        .brand-card {
            background: rgba(255,255,255,0.42);
            box-shadow:
                0 14px 40px rgba(37, 54, 92, 0.12),
                inset 0 1px 1px rgba(255,255,255,0.96),
                inset 0 -1px 0 rgba(255,255,255,0.3);
        }

        .brand-name,
        .workspace-name {
            color: rgba(15,23,42,0.9);
        }

        .brand-subtitle,
        .workspace-kicker,
        .nav-title,
        th,
        .page-info,
        .batch-selected-count,
        .detail-muted {
            color: var(--liquid-muted);
        }

        .nav-item {
            background: transparent;
            color: rgba(30,41,59,0.76);
        }

        .nav-item:hover {
            background: rgba(255,255,255,0.28);
            color: rgba(15,23,42,0.92);
        }

        .nav-item.active {
            background: rgba(255,255,255,0.38);
            color: #075ec9;
            border: 1px solid rgba(255,255,255,0.52);
            box-shadow:
                inset 3px 0 0 rgba(22,119,255,0.78),
                inset 0 1px 0 rgba(255,255,255,0.72),
                0 12px 26px rgba(22,119,255,0.1);
        }

        .search-container input,
        .edit-field textarea,
        .edit-field input,
        .date-wheel select,
        .detail-btn,
        .page-btn,
        .attachment-count,
        .invoice-slide-track {
            background: rgba(255,255,255,0.38);
            backdrop-filter: blur(24px) saturate(1.55);
            -webkit-backdrop-filter: blur(24px) saturate(1.55);
            border-color: rgba(255,255,255,0.64);
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.86),
                inset 0 -1px 0 rgba(255,255,255,0.2),
                0 8px 20px rgba(37,54,92,0.08);
        }

        .search-container input:focus,
        .edit-field textarea:focus,
        .edit-field input:focus {
            background: rgba(255,255,255,0.5);
            border-color: rgba(22,119,255,0.44);
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.9),
                0 0 0 4px rgba(22,119,255,0.12),
                0 12px 28px rgba(37,54,92,0.12);
        }

        th {
            background: rgba(255,255,255,0.26);
        }

        td {
            color: var(--liquid-text);
            background: rgba(255,255,255,0.16);
            border-bottom-color: rgba(255,255,255,0.28);
        }

        tr:nth-child(even) td {
            background: rgba(255,255,255,0.22);
        }

        tr:hover td {
            background: rgba(255,255,255,0.34);
        }

        .case-row.expanded td {
            background: rgba(214, 236, 255, 0.42);
            border-bottom-color: rgba(255,255,255,0.5);
        }

        .case-row.selected td {
            background: rgba(211, 250, 239, 0.44);
        }

        .detail-panel,
        .detail-tabs {
            background: rgba(255,255,255,0.28);
        }

        .detail-tab.active {
            background: rgba(255,255,255,0.42);
            border: 1px solid rgba(255,255,255,0.54);
            border-left-color: rgba(22,119,255,0.76);
            box-shadow: inset 3px 0 0 rgba(22,119,255,0.72), inset 0 1px 0 rgba(255,255,255,0.78);
        }

        .badge,
        .attachment-count {
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
        }

        .badge.pending {
            background: rgba(255, 247, 237, 0.58);
        }

        .badge.reject {
            background: rgba(255, 241, 242, 0.58);
        }

        .detail-btn:not(.secondary),
        .page-btn.approve {
            background: rgba(236, 253, 245, 0.48);
        }

        .page-btn.reject,
        .page-btn.danger {
            background: rgba(255, 241, 242, 0.5);
        }

        .invoice-slide-track {
            background: rgba(255,255,255,0.34);
        }

        .invoice-slide-track::before {
            background: linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.08));
        }

        .invoice-slide-knob {
            background: rgba(255,255,255,0.54);
            box-shadow:
                0 10px 24px rgba(37,54,92,0.16),
                inset 0 1px 1px rgba(255,255,255,0.92);
        }

        /* 修正展开区旧主题残留的灰底，让详情区保持通透玻璃感 */
        .detail-row > td {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.1)),
                radial-gradient(circle at 18% 10%, rgba(255,255,255,0.36), transparent 28%),
                radial-gradient(circle at 82% 12%, rgba(103, 177, 255, 0.18), transparent 34%) !important;
            border-top: 1px solid rgba(255,255,255,0.68);
            border-bottom: 1px solid rgba(255,255,255,0.44);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
        }

        .case-detail {
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.12)),
                radial-gradient(circle at 0% 0%, rgba(255,255,255,0.42), transparent 30%),
                radial-gradient(circle at 100% 0%, rgba(41, 151, 255, 0.14), transparent 34%);
            border-top-color: rgba(255,255,255,0.76);
            border-bottom-color: rgba(255,255,255,0.5);
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.92),
                inset 0 -1px 0 rgba(255,255,255,0.28);
        }

        .detail-tabs {
            background: rgba(255,255,255,0.18);
            border-right-color: rgba(255,255,255,0.48);
            box-shadow: inset -1px 0 0 rgba(255,255,255,0.22);
        }

        .detail-panel {
            background: rgba(255,255,255,0.1);
        }

        .detail-tab {
            border-color: transparent;
        }

        .detail-tab:hover {
            background: rgba(255,255,255,0.24);
        }

        .detail-tab.active {
            background: rgba(255,255,255,0.36);
            border-color: rgba(255,255,255,0.62);
            border-left-color: rgba(22,119,255,0.76);
        }

        .case-row {
            position: relative;
            user-select: none;
            -webkit-user-select: none;
        }

        .case-detail,
        .case-detail input,
        .case-detail textarea {
            user-select: text;
            -webkit-user-select: text;
        }

        /* 字体与配色舒适化：降低硬黑对比，强化清透层级 */
        :root {
            --liquid-text: rgba(28, 39, 58, 0.82);
            --liquid-strong: rgba(18, 27, 43, 0.9);
            --liquid-muted: rgba(83, 99, 122, 0.68);
            --liquid-faint: rgba(104, 119, 141, 0.52);
            --accent-color: #2f7df4;
            --accent-soft: #5ac8fa;
            --accent-quiet: rgba(47, 125, 244, 0.12);
            --mint-accent: #13a995;
            --amber-accent: #c47a22;
            --rose-accent: #d94d6a;
            color: var(--liquid-text);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
            color: var(--liquid-text);
            text-rendering: optimizeLegibility;
            font-variant-numeric: tabular-nums;
        }

        .workspace-kicker {
            color: rgba(47, 125, 244, 0.68);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0;
        }

        .workspace-name {
            color: var(--liquid-strong);
            font-size: 24px;
            font-weight: 720;
            letter-spacing: 0;
        }

        .brand-name {
            color: var(--liquid-strong);
            font-weight: 720;
            letter-spacing: 0;
        }

        .brand-subtitle,
        .nav-title,
        .page-info,
        .batch-selected-count,
        .detail-muted {
            color: var(--liquid-muted);
            font-weight: 560;
        }

        .nav-item {
            color: rgba(48, 63, 86, 0.76);
            font-weight: 560;
        }

        .nav-item.active {
            color: #1f6fd7;
            background: rgba(255,255,255,0.34);
            box-shadow:
                inset 3px 0 0 rgba(47,125,244,0.68),
                inset 0 1px 0 rgba(255,255,255,0.76),
                0 10px 24px rgba(47,125,244,0.08);
        }

        .search-container input {
            color: rgba(30, 42, 62, 0.82);
            font-size: 15px;
            font-weight: 520;
        }

        .search-container input::placeholder {
            color: rgba(94, 111, 136, 0.5);
            font-weight: 520;
        }

        th {
            color: rgba(82, 99, 123, 0.66);
            font-size: 13px;
            font-weight: 650;
        }

        td {
            color: var(--liquid-text);
            font-size: 14px;
            font-weight: 520;
            line-height: 1.45;
        }

        td.truncate {
            color: rgba(31, 43, 64, 0.84);
            font-weight: 560;
        }

        .case-code-column {
            color: var(--liquid-faint) !important;
            font-weight: 520;
        }

        .case-row td.expand-cell::before {
            color: rgba(79, 98, 124, 0.44);
        }

        .case-row.expanded td.expand-cell::before {
            color: rgba(47, 125, 244, 0.74);
        }

        .badge,
        .attachment-count {
            font-size: 13px;
            font-weight: 650;
        }

        .badge.pending {
            color: var(--amber-accent);
            background: rgba(255, 248, 236, 0.52);
            border-color: rgba(196, 122, 34, 0.22);
        }

        .badge.reject {
            color: var(--rose-accent);
            background: rgba(255, 242, 245, 0.5);
            border-color: rgba(217, 77, 106, 0.22);
        }

        .status-time {
            color: rgba(69, 84, 108, 0.62);
            font-size: 12px;
            font-weight: 560;
        }

        .status-icon {
            color: #10a37f;
            font-weight: 700;
        }

        .status-icon.reject {
            color: var(--rose-accent);
        }

        .attachment-count {
            color: #1f6fd7;
            background: rgba(255,255,255,0.32);
            border-color: rgba(47, 125, 244, 0.18);
        }

        .detail-tab {
            color: rgba(45, 60, 84, 0.74);
            font-weight: 570;
        }

        .detail-tab.active {
            color: #1f6fd7;
            background: rgba(255,255,255,0.34);
            border-left-color: rgba(47,125,244,0.68);
            box-shadow: inset 3px 0 0 rgba(47,125,244,0.62), inset 0 1px 0 rgba(255,255,255,0.76);
        }

        .detail-field label,
        .edit-field label {
            color: rgba(72, 88, 112, 0.68);
            font-size: 13px;
            font-weight: 620;
        }

        .edit-field input,
        .edit-field textarea,
        .detail-value {
            color: rgba(24, 34, 52, 0.84);
            font-weight: 530;
        }

        .detail-btn,
        .page-btn {
            color: rgba(35, 49, 72, 0.78);
            font-weight: 620;
        }

        .detail-btn:not(.secondary),
        .page-btn.approve {
            color: #087e70;
            background: rgba(232, 255, 249, 0.44);
            border-color: rgba(19, 169, 149, 0.22);
        }

        .page-btn.reject,
        .page-btn.danger {
            color: var(--rose-accent);
            background: rgba(255, 242, 245, 0.45);
            border-color: rgba(217, 77, 106, 0.22);
        }

        .detail-btn.secondary {
            color: rgba(82, 99, 123, 0.66);
        }

        .invoice-slide-label {
            color: rgba(58, 74, 98, 0.64);
            font-weight: 560;
        }

        .invoice-slide-knob {
            color: #1f6fd7;
        }

        /* 轻微降亮并提升玻璃通透度 */
        body {
            background:
                radial-gradient(circle at 12% 18%, rgba(67, 126, 255, 0.46), transparent 25%),
                radial-gradient(circle at 78% 10%, rgba(20, 184, 166, 0.36), transparent 28%),
                radial-gradient(circle at 66% 82%, rgba(125, 92, 255, 0.3), transparent 32%),
                linear-gradient(135deg, #b9cdea 0%, #dfeaf5 36%, #beddd8 72%, #cbc7eb 100%);
        }

        body::after {
            background:
                linear-gradient(120deg, rgba(255,255,255,0.24), transparent 20%, rgba(255,255,255,0.1) 48%, transparent 74%),
                radial-gradient(circle at 50% -10%, rgba(255,255,255,0.46), transparent 34%),
                linear-gradient(180deg, rgba(49, 67, 102, 0.06), rgba(28, 43, 74, 0.1));
            opacity: 0.74;
        }

        .glass-app {
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(52px) saturate(1.95) contrast(1.03);
            -webkit-backdrop-filter: blur(52px) saturate(1.95) contrast(1.03);
            border-color: rgba(255,255,255,0.58);
            box-shadow:
                0 38px 96px rgba(37, 54, 92, 0.28),
                inset 0 1px 1px rgba(255,255,255,0.88),
                inset 0 -1px 0 rgba(255,255,255,0.28),
                inset 1px 0 0 rgba(255,255,255,0.26);
        }

        .glass-app::before {
            opacity: 0.72;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.58), transparent 18%, rgba(255,255,255,0.08) 52%, rgba(255,255,255,0.34) 100%);
        }

        .sidebar,
        .top-bar,
        .pagination,
        .brand-card,
        .case-detail,
        .detail-tabs,
        .detail-panel,
        .date-wheel {
            background: rgba(255,255,255,0.24);
            border-color: rgba(255,255,255,0.48);
            backdrop-filter: blur(42px) saturate(1.9);
            -webkit-backdrop-filter: blur(42px) saturate(1.9);
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.76),
                inset 0 -1px 0 rgba(255,255,255,0.16);
        }

        .sidebar,
        .main-content,
        .table-container {
            background: rgba(255,255,255,0.1);
        }

        .top-bar {
            background: rgba(255,255,255,0.18);
        }

        .brand-card,
        .search-container input,
        .edit-field textarea,
        .edit-field input,
        .date-wheel select,
        .detail-btn,
        .page-btn,
        .attachment-count,
        .invoice-slide-track {
            background: rgba(255,255,255,0.3);
            border-color: rgba(255,255,255,0.5);
            backdrop-filter: blur(32px) saturate(1.8);
            -webkit-backdrop-filter: blur(32px) saturate(1.8);
        }

        th {
            background: rgba(255,255,255,0.18);
        }

        td {
            background: rgba(255,255,255,0.1);
            border-bottom-color: rgba(255,255,255,0.2);
        }

        tr:nth-child(even) td {
            background: rgba(255,255,255,0.14);
        }

        tr:hover td {
            background: rgba(255,255,255,0.25);
        }

        .case-row.expanded td {
            background: rgba(182, 218, 250, 0.32);
        }

        .case-row.selected td {
            background: rgba(185, 239, 226, 0.32);
        }

        .detail-row > td {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)),
                radial-gradient(circle at 18% 10%, rgba(255,255,255,0.24), transparent 28%),
                radial-gradient(circle at 82% 12%, rgba(103, 177, 255, 0.16), transparent 34%) !important;
        }

        .case-detail {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08)),
                radial-gradient(circle at 0% 0%, rgba(255,255,255,0.28), transparent 30%),
                radial-gradient(circle at 100% 0%, rgba(41, 151, 255, 0.13), transparent 34%);
        }

        .detail-tabs {
            background: rgba(255,255,255,0.12);
        }

        .detail-panel {
            background: rgba(255,255,255,0.06);
        }

        /* 柔和动态环境光：统一冷色，慢速漂移，避免块状杂色 */
        body {
            background:
                linear-gradient(135deg, #b9cce5 0%, #d7e6f3 45%, #bfdcd9 100%);
            overflow: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: -22%;
            z-index: -2;
            pointer-events: none;
            opacity: 0.82;
            background:
                radial-gradient(ellipse at 18% 22%, rgba(78, 142, 226, 0.34), transparent 48%),
                radial-gradient(ellipse at 76% 24%, rgba(82, 197, 187, 0.24), transparent 52%),
                radial-gradient(ellipse at 58% 88%, rgba(116, 145, 215, 0.18), transparent 56%),
                linear-gradient(135deg, #b7cce7 0%, #dbe8f3 48%, #bddbd8 100%);
            background-size: 155% 155%;
            animation: liquidAmbientDrift 32s ease-in-out infinite alternate;
            filter: blur(2px) saturate(1.04);
            transform: translate3d(0, 0, 0);
        }

        body::after {
            z-index: -1;
            background:
                linear-gradient(120deg, rgba(255,255,255,0.18), transparent 22%, rgba(255,255,255,0.08) 52%, transparent 76%),
                radial-gradient(circle at 52% -8%, rgba(255,255,255,0.36), transparent 38%),
                linear-gradient(180deg, rgba(38, 56, 88, 0.05), rgba(26, 42, 72, 0.1));
            opacity: 0.68;
            animation: liquidSheenDrift 38s ease-in-out infinite alternate;
        }

        @keyframes liquidAmbientDrift {
            0% {
                background-position: 0% 42%;
                transform: translate3d(-1.4%, -0.8%, 0) scale(1.02);
            }
            50% {
                background-position: 56% 48%;
                transform: translate3d(1.2%, 0.9%, 0) scale(1.035);
            }
            100% {
                background-position: 100% 58%;
                transform: translate3d(-0.4%, 1.4%, 0) scale(1.025);
            }
        }

        @keyframes liquidSheenDrift {
            0% {
                transform: translate3d(-1%, 0, 0);
                opacity: 0.62;
            }
            100% {
                transform: translate3d(1%, -0.8%, 0);
                opacity: 0.72;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            body::before,
            body::after {
                animation: none;
            }
        }

        /* 顶部标题柔化：减少方硬感，贴合玻璃界面的轻盈气质 */
        .workspace-title {
            gap: 4px;
        }

        .workspace-kicker {
            color: rgba(47, 125, 244, 0.58);
            font-size: 10.5px;
            font-weight: 650;
        }

        .workspace-name {
            color: rgba(26, 38, 58, 0.82);
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
            font-size: 22px;
            font-weight: 610;
            line-height: 1.12;
            text-shadow: 0 1px 0 rgba(255,255,255,0.42);
        }

        /* 绿色解锁进度 + 中性低彩背景 */
        body {
            background:
                linear-gradient(135deg, #d5dde6 0%, #eef2f5 48%, #d9e4e2 100%);
        }

        body::before {
            opacity: 0.58;
            background:
                radial-gradient(ellipse at 18% 18%, rgba(255,255,255,0.58), transparent 52%),
                radial-gradient(ellipse at 78% 18%, rgba(95, 184, 166, 0.12), transparent 56%),
                radial-gradient(ellipse at 52% 88%, rgba(124, 139, 164, 0.12), transparent 58%),
                linear-gradient(135deg, #d3dce6 0%, #eef2f5 52%, #dce5e3 100%);
        }

        body::after {
            opacity: 0.46;
            background:
                linear-gradient(120deg, rgba(255,255,255,0.14), transparent 28%, rgba(255,255,255,0.06) 58%, transparent 80%),
                linear-gradient(180deg, rgba(45, 60, 82, 0.04), rgba(31, 44, 64, 0.08));
        }

        /* 进一步收敛背景蓝度 */
        body {
            background:
                linear-gradient(135deg, #d9dee3 0%, #f0f2f3 50%, #dde4e1 100%);
        }

        body::before {
            opacity: 0.44;
            background:
                radial-gradient(ellipse at 18% 18%, rgba(255,255,255,0.62), transparent 54%),
                radial-gradient(ellipse at 78% 18%, rgba(120, 181, 166, 0.08), transparent 58%),
                radial-gradient(ellipse at 54% 88%, rgba(120, 132, 148, 0.07), transparent 60%),
                linear-gradient(135deg, #d8dee4 0%, #f0f2f3 54%, #dfe5e2 100%);
        }

        body::after {
            opacity: 0.34;
            background:
                linear-gradient(120deg, rgba(255,255,255,0.12), transparent 30%, rgba(255,255,255,0.05) 60%, transparent 82%),
                linear-gradient(180deg, rgba(45, 55, 70, 0.03), rgba(36, 45, 58, 0.06));
        }

        /* 本轮收束：降低整体亮度，同时让面板更像透亮玻璃 */
        body {
            background:
                linear-gradient(135deg, #cfd6de 0%, #e5e9ed 48%, #d3ddd9 100%);
        }

        body::before {
            opacity: 0.5;
            filter: blur(5px) saturate(0.96);
            background:
                radial-gradient(ellipse at 18% 16%, rgba(255,255,255,0.5), transparent 56%),
                radial-gradient(ellipse at 82% 22%, rgba(117, 175, 162, 0.08), transparent 60%),
                radial-gradient(ellipse at 58% 88%, rgba(98, 111, 130, 0.08), transparent 62%),
                linear-gradient(135deg, #ced6de 0%, #e7eaed 54%, #d5ddd9 100%);
        }

        body::after {
            opacity: 0.28;
            background:
                linear-gradient(120deg, rgba(255,255,255,0.1), transparent 32%, rgba(255,255,255,0.04) 62%, transparent 84%),
                linear-gradient(180deg, rgba(30, 42, 58, 0.04), rgba(28, 39, 54, 0.08));
        }

        .glass-app {
            background: rgba(246, 250, 252, 0.38);
            border-color: rgba(255,255,255,0.56);
            backdrop-filter: blur(46px) saturate(1.75);
            -webkit-backdrop-filter: blur(46px) saturate(1.75);
            box-shadow:
                0 22px 70px rgba(53, 69, 88, 0.22),
                inset 0 1px 1px rgba(255,255,255,0.82),
                inset 0 -1px 0 rgba(255,255,255,0.22);
        }

        .sidebar,
        .main-content,
        .table-container,
        .top-bar,
        .pagination {
            background: rgba(245, 249, 252, 0.22);
        }

        .brand-card,
        .search-container input,
        .detail-btn,
        .page-btn,
        .attachment-count,
        .edit-field input,
        .edit-field textarea,
        .date-wheel select {
            background: rgba(255,255,255,0.34);
            border-color: rgba(255,255,255,0.62);
        }

        th {
            background: rgba(243, 248, 251, 0.42);
        }

        td {
            background: rgba(249, 252, 253, 0.2);
        }

        tr:nth-child(even) td {
            background: rgba(249, 252, 253, 0.24);
        }

        tr:hover td {
            background: rgba(230, 240, 246, 0.34);
        }

        .case-row.expanded td {
            background: rgba(209, 226, 236, 0.42);
        }

        .case-detail,
        .detail-row > td {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.24), rgba(237, 244, 247, 0.12)),
                radial-gradient(circle at 100% 0%, rgba(84, 160, 205, 0.1), transparent 36%) !important;
        }

        .sort-header {
            appearance: none;
            border: 0;
            background: transparent;
            color: inherit;
            font: inherit;
            font-weight: 680;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            padding: 4px 0;
        }

        .sort-header:hover {
            color: rgba(31, 111, 215, 0.9);
        }

        .sort-mark {
            width: 12px;
            color: rgba(31, 111, 215, 0.86);
            font-size: 12px;
        }

        .table-container.no-audit-selection .col-select,
        .table-container.no-audit-selection .select-header,
        .table-container.no-audit-selection .select-cell {
            display: none;
        }

        .date-wheel-current {
            margin-top: -2px;
            margin-bottom: 8px;
            color: rgba(31, 111, 215, 0.86);
            font-size: 11px;
            font-weight: 680;
            letter-spacing: 0;
        }

        .date-wheel option:checked,
        .date-wheel option.wheel-selected {
            color: #0f172a;
            font-weight: 760;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.58), rgba(222, 238, 255, 0.48)),
                linear-gradient(90deg, rgba(47,125,244,0.2), rgba(22,163,184,0.12)) !important;
            box-shadow:
                inset 0 0 0 1px rgba(47,125,244,0.42),
                inset 0 1px 0 rgba(255,255,255,0.82);
        }

        body.auth-locked .glass-app {
            filter: blur(10px) saturate(0.95);
            transform: scale(0.992);
            pointer-events: none;
        }

        .boot-loader {
            position: fixed;
            inset: 0;
            z-index: 1200;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background:
                radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.18), transparent 34%),
                linear-gradient(135deg, #eef5f8 0%, #f8fbfd 54%, #e8f5fb 100%);
        }

        body.booting .boot-loader {
            display: flex;
        }

        body.booting .auth-overlay {
            display: none !important;
        }

        .boot-card {
            width: min(420px, 90vw);
            display: grid;
            gap: 14px;
            padding: 28px;
            border: 1px solid rgba(255,255,255,0.72);
            border-radius: 18px;
            background: rgba(255,255,255,0.42);
            box-shadow:
                0 24px 70px rgba(42, 58, 83, 0.18),
                inset 0 1px 1px rgba(255,255,255,0.86);
            color: rgba(26, 38, 58, 0.88);
        }

        .boot-title {
            font-size: 22px;
            font-weight: 820;
        }

        .boot-track {
            height: 8px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.18);
            box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
        }

        .boot-bar {
            width: 8%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #2f7de1, #14b8a6);
            transition: width 0.28s ease;
        }

        .boot-text {
            color: rgba(100, 116, 139, 0.8);
            font-size: 13px;
            font-weight: 760;
        }

        .auth-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(218, 226, 232, 0.24);
            backdrop-filter: blur(18px) saturate(1.35);
            -webkit-backdrop-filter: blur(18px) saturate(1.35);
        }

        body.auth-locked .auth-overlay {
            display: flex;
        }

        .auth-card {
            width: min(420px, 100%);
            border: 1px solid rgba(255,255,255,0.62);
            border-radius: 24px;
            background: rgba(255,255,255,0.34);
            box-shadow:
                0 28px 80px rgba(42, 58, 83, 0.22),
                inset 0 1px 1px rgba(255,255,255,0.86),
                inset 0 -1px 0 rgba(255,255,255,0.22);
            padding: 28px;
            color: rgba(26, 38, 58, 0.86);
        }

        .auth-title {
            font-size: 24px;
            font-weight: 620;
            margin-bottom: 6px;
        }

        .auth-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 18px;
        }

        .auth-tab {
            border: 1px solid rgba(255,255,255,0.46);
            background: rgba(255,255,255,0.22);
            color: rgba(48, 63, 86, 0.72);
            border-radius: 14px;
            padding: 10px 12px;
            font-weight: 620;
            cursor: pointer;
        }

        .auth-tab.active {
            color: #087e70;
            background: rgba(232, 255, 249, 0.46);
            border-color: rgba(19, 169, 149, 0.26);
        }

        .auth-field {
            display: flex;
            flex-direction: column;
            gap: 7px;
            margin-bottom: 14px;
        }

        .auth-field label {
            color: rgba(72, 88, 112, 0.68);
            font-size: 13px;
            font-weight: 620;
        }

        .auth-field input {
            height: 44px;
            border: 1px solid rgba(255,255,255,0.56);
            border-radius: 14px;
            outline: none;
            padding: 0 14px;
            background: rgba(255,255,255,0.38);
            color: rgba(24, 34, 52, 0.86);
            font-size: 14px;
        }

        .auth-field input:focus {
            border-color: rgba(19, 169, 149, 0.32);
            box-shadow: 0 0 0 4px rgba(19, 169, 149, 0.1);
        }

        .auth-submit {
            width: 100%;
            height: 46px;
            border: 1px solid rgba(19, 169, 149, 0.28);
            border-radius: 14px;
            background: rgba(232, 255, 249, 0.52);
            color: #087e70;
            font-weight: 680;
            cursor: pointer;
            margin-top: 4px;
        }

        .auth-message {
            min-height: 20px;
            margin-top: 12px;
            color: rgba(217, 77, 106, 0.9);
            font-size: 13px;
            line-height: 1.5;
        }

        .auth-userbar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
            color: rgba(83, 99, 122, 0.72);
            font-size: 13px;
            white-space: nowrap;
        }

        .auth-logout {
            border: 1px solid rgba(255,255,255,0.5);
            background: rgba(255,255,255,0.26);
            color: rgba(35, 49, 72, 0.72);
            border-radius: 12px;
            padding: 8px 12px;
            cursor: pointer;
            font-weight: 620;
        }

        /* Compact case table for small desktop displays. */
        .main-content {
            min-width: 0;
        }

        .table-container {
            width: 100%;
            min-width: 0;
            overflow-x: auto;
            overscroll-behavior: contain;
        }

        table {
            min-width: 940px;
        }

        .col-submit-date { width: 102px; }
        .col-audit { width: 64px; }
        .col-invoice { width: 62px; }
        .col-summary { width: 204px; }
        .col-client { width: 184px; }
        .col-code { width: 96px; }
        .col-owner { width: 70px; }
        .col-coworker { width: 74px; }
        .col-attachment { width: 84px; }

        th,
        td {
            padding-left: 8px;
            padding-right: 8px;
        }

        .attachment-count {
            min-width: 78px;
            max-width: 100%;
            white-space: nowrap;
        }

        .submit-date-cell,
        .status-time {
            color: var(--text-muted);
            font-family: "SFMono-Regular", Consolas, monospace;
            font-size: 12px;
            font-weight: 650;
        }

        .status-passed-container {
            justify-content: flex-start;
        }

        .case-detail,
        .detail-row > td,
        .detail-panel,
        .date-input-wrap {
            overflow: visible;
        }

.date-wheel.open {
    position: absolute;
    left: 0;
    top: auto;
    bottom: calc(100% + 6px);
            z-index: 1000;
            width: min(252px, calc(100vw - 64px));
    margin-top: 0;
    transform: none;
}

.date-wheel.open.drop-up {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
}

.date-wheel.open.drop-down {
    top: calc(100% + 8px) !important;
    bottom: auto !important;
}

        .edit-grid:has(.date-wheel.open) {
            align-items: end;
        }

        @media (max-width: 1500px) {
            .glass-app {
                width: calc(100vw - 16px);
                height: calc(100vh - 16px);
            }

            .sidebar {
                width: 220px;
                padding-left: 10px;
                padding-right: 10px;
            }

            .brand-card {
                padding: 14px;
            }

            .brand-mark {
                width: 52px;
                height: 52px;
            }

            .top-bar {
                height: 72px;
                padding: 0 18px;
                gap: 18px;
            }

            .workspace-title {
                min-width: 190px;
            }

            .workspace-name {
                font-size: 22px;
            }

            .search-container input,
            .search-container input:focus {
                width: min(520px, 42vw);
            }
        }

        /* Slightly smaller outer console panel only. */
        .glass-app {
            width: min(1680px, calc(100vw - 72px));
            height: calc(100vh - 72px);
            border-radius: 10px;
        }

        /* Small-screen polish: keep the logo complete, remove audit expand marker, tighten first columns. */
        .brand-card {
            min-width: 0;
            overflow: visible;
            gap: 10px;
        }

        .brand-text {
            min-width: 0;
            flex: 1 1 auto;
            overflow: visible;
        }

        .brand-name {
            overflow: visible;
            text-overflow: clip;
            white-space: normal;
            overflow-wrap: normal;
            font-size: clamp(13px, 0.9vw, 15px);
            line-height: 1.12;
        }

        .brand-subtitle {
            overflow: visible;
            text-overflow: clip;
            white-space: nowrap;
            font-size: 12px;
        }

        .brand-mark {
            flex: 0 0 clamp(40px, 24%, 52px);
            width: clamp(40px, 24%, 52px);
            max-width: clamp(40px, 24%, 52px);
            height: clamp(40px, 24%, 52px);
            aspect-ratio: 1;
        }

        .detail-row > td {
            padding: 0 !important;
            box-sizing: border-box;
        }

        .detail-row .case-detail {
            width: 100%;
            min-width: 100%;
            box-sizing: border-box;
        }

        .detail-row .detail-panel {
            min-width: 0;
            box-sizing: border-box;
        }

        .detail-row .edit-field,
        .detail-row .date-input-wrap,
        .detail-row .edit-field input,
        .detail-row .edit-field textarea {
            min-width: 0;
            box-sizing: border-box;
        }

        @media (max-width: 1280px) {
            .detail-row .case-detail {
                grid-template-columns: 128px minmax(0, 1fr);
            }

            .detail-row .detail-tabs {
                padding-left: 10px;
                padding-right: 10px;
            }

            .detail-row .detail-tab {
                padding-left: 10px;
                padding-right: 10px;
            }

            .detail-row .detail-panel {
                padding-left: 14px;
                padding-right: 14px;
            }

            .detail-row .edit-grid {
                grid-template-columns: minmax(0, 1.2fr) minmax(138px, 0.78fr) minmax(150px, 0.86fr);
                gap: 10px;
            }
        }

        .case-row td.expand-cell::before,
        .case-row.expanded td.expand-cell::before {
            content: none !important;
            display: none !important;
        }

        .col-submit-date { width: 88px; }
        .col-audit { width: 58px; }

        th,
        td {
            padding-left: 7px;
            padding-right: 7px;
        }

        .page-btn.reopen {
            border-color: rgba(20, 184, 166, 0.46);
            background: rgba(20, 184, 166, 0.14);
            color: #0f9488;
            font-weight: 760;
        }

        .page-btn.reopen:hover:not(:disabled) {
            background: rgba(20, 184, 166, 0.24);
            border-color: rgba(20, 184, 166, 0.68);
        }

        .page-btn.danger {
            border-color: rgba(244, 63, 94, 0.46);
            background: rgba(244, 63, 94, 0.12);
            color: #e11d48;
            font-weight: 760;
        }

        .page-btn.danger:hover:not(:disabled) {
            background: rgba(244, 63, 94, 0.2);
            border-color: rgba(244, 63, 94, 0.68);
        }

        .page-btn:disabled {
            opacity: 0.42;
            filter: grayscale(0.35);
        }

        .sidebar-action-panel {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin: 18px 12px 0;
            padding-top: 14px;
            border-top: 1px solid rgba(148, 163, 184, 0.16);
        }

        .sidebar-action-btn {
            display: grid;
            grid-template-columns: 44px minmax(0, 1fr);
            align-items: center;
            gap: 12px;
            min-height: 72px;
            padding: 12px;
            border: 1px solid rgba(255,255,255,0.58);
            border-radius: 12px;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.48), rgba(255,255,255,0.2)),
                radial-gradient(circle at 10% 0%, rgba(255,255,255,0.56), transparent 32%);
            color: rgba(30, 41, 59, 0.86);
            box-shadow:
                0 12px 28px rgba(37, 54, 92, 0.1),
                inset 0 1px 1px rgba(255,255,255,0.92);
            cursor: pointer;
            text-align: left;
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .sidebar-action-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(96, 165, 250, 0.46);
            background:
                linear-gradient(135deg, rgba(255,255,255,0.6), rgba(231, 244, 255, 0.34)),
                radial-gradient(circle at 12% 0%, rgba(111, 188, 255, 0.22), transparent 36%);
            box-shadow:
                0 16px 34px rgba(37, 54, 92, 0.14),
                inset 0 1px 1px rgba(255,255,255,0.96);
        }

        .sidebar-action-btn:active {
            transform: translateY(0);
        }

        .sidebar-action-icon {
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(255,255,255,0.58);
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.95),
                0 8px 18px rgba(37, 54, 92, 0.12);
        }

        .sidebar-action-icon svg {
            width: 25px;
            height: 25px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.9;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .sidebar-action-btn strong {
            display: block;
            font-size: 16px;
            line-height: 1.15;
            letter-spacing: 0;
        }

        .sidebar-action-btn small {
            display: block;
            margin-top: 4px;
            color: rgba(100, 116, 139, 0.74);
            font-size: 12px;
            font-weight: 760;
            letter-spacing: 0;
        }

        .sidebar-action-btn.submitted {
            color: #0f766e;
        }

        .sidebar-action-btn.download {
            color: #1d4ed8;
        }

        .invoice-slide-track {
            --slide-progress: 0;
            isolation: isolate;
        }

        .invoice-slide-track::after {
            content: "";
            position: absolute;
            inset: 4px;
            width: calc((100% - 8px) * var(--slide-progress));
            border-radius: inherit;
            background: linear-gradient(90deg, rgba(20, 184, 166, 0.36), rgba(59, 130, 246, 0.22));
            opacity: 0.95;
            pointer-events: none;
            z-index: 1;
        }

        .invoice-slide-track.reverse::after {
            left: auto;
            right: 4px;
            background: linear-gradient(270deg, rgba(244, 63, 94, 0.34), rgba(251, 146, 60, 0.18));
        }

        .invoice-slide-label,
        .invoice-slide-knob {
            z-index: 2;
        }

        .invoice-slide-track.dragging {
            cursor: grabbing;
        }

        .invoice-slide-track.dragging .invoice-slide-knob {
            transition: none !important;
        }

        .invoice-slide-knob {
            will-change: transform;
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
        }

        /* Premium glass refinement pass: denser hierarchy, safer sidebar actions, calmer colors. */
        :root {
            --premium-ink: #172033;
            --premium-ink-soft: rgba(44, 58, 82, 0.78);
            --premium-muted: rgba(100, 116, 139, 0.72);
            --premium-blue: #2f7de1;
            --premium-teal: #0f9f92;
            --premium-border: rgba(255,255,255,0.72);
            --premium-border-soft: rgba(148, 163, 184, 0.18);
            --premium-glass: rgba(255,255,255,0.34);
            --premium-glass-strong: rgba(255,255,255,0.56);
        }

        body {
            color: var(--premium-ink);
            background:
                radial-gradient(circle at 11% 14%, rgba(255,255,255,0.7), transparent 28%),
                radial-gradient(circle at 88% 12%, rgba(187, 222, 255, 0.42), transparent 32%),
                radial-gradient(circle at 78% 88%, rgba(141, 226, 213, 0.24), transparent 34%),
                linear-gradient(135deg, #cfdce6 0%, #edf5f8 42%, #d7e5e3 100%);
        }

        .glass-app {
            border: 1px solid rgba(255,255,255,0.86);
            background:
                linear-gradient(135deg, rgba(255,255,255,0.38), rgba(255,255,255,0.16)),
                radial-gradient(circle at 0% 0%, rgba(255,255,255,0.72), transparent 34%),
                radial-gradient(circle at 100% 6%, rgba(125, 190, 255, 0.18), transparent 36%);
            box-shadow:
                0 26px 70px rgba(38, 54, 77, 0.2),
                0 1px 0 rgba(255,255,255,0.9) inset,
                0 -1px 0 rgba(255,255,255,0.28) inset;
            backdrop-filter: blur(30px) saturate(1.18);
        }

        .sidebar {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.16)),
                radial-gradient(circle at 26% 0%, rgba(255,255,255,0.68), transparent 34%);
            border-right-color: rgba(255,255,255,0.68);
            box-shadow: inset -1px 0 0 rgba(255,255,255,0.38);
            min-width: 0;
        }

        .main-content {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08)),
                radial-gradient(circle at 70% 0%, rgba(201, 231, 255, 0.2), transparent 36%);
        }

        .brand-card,
        .top-bar,
        .table-container,
        .pagination {
            border-color: rgba(255,255,255,0.74);
            background:
                linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2)),
                radial-gradient(circle at 8% 0%, rgba(255,255,255,0.6), transparent 32%);
            box-shadow:
                0 14px 34px rgba(38, 54, 77, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.94);
        }

        .brand-card {
            flex: 0 0 auto;
        }

        .brand-name,
        .workspace-name,
        td {
            color: var(--premium-ink);
            font-weight: 760;
            letter-spacing: 0;
        }

        .workspace-kicker,
        .nav-title,
        th,
        .page-info,
        .batch-selected-count,
        .brand-subtitle,
        .auth-userbar {
            color: var(--premium-muted);
        }

        .workspace-name {
            text-shadow: 0 1px 0 rgba(255,255,255,0.72);
        }

        .search-container input {
            color: var(--premium-ink);
            background: rgba(255,255,255,0.58);
            border-color: rgba(255,255,255,0.74);
            box-shadow:
                0 12px 28px rgba(38, 54, 77, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.95);
        }

        .search-container input::placeholder {
            color: rgba(100, 116, 139, 0.58);
            font-weight: 680;
        }

        .nav-item {
            color: rgba(45, 59, 82, 0.78);
            font-weight: 760;
            border-radius: 8px;
            margin-right: 2px;
        }

        .nav-item:hover {
            background: rgba(255,255,255,0.44);
            color: var(--premium-blue);
        }

        .nav-item.active {
            color: #0f6bdc;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.66), rgba(225, 241, 255, 0.34));
            border-left-color: #63a8ff;
            box-shadow:
                inset 0 1px 1px rgba(255,255,255,0.96),
                0 10px 24px rgba(47, 125, 225, 0.1);
        }

        th {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.42), rgba(236, 246, 250, 0.24));
            font-weight: 780;
        }

        td {
            border-bottom-color: rgba(148, 163, 184, 0.1);
        }

        tr:nth-child(even) td {
            background: rgba(255,255,255,0.12);
        }

        tr:hover td {
            background: rgba(255,255,255,0.32);
        }

        .case-row.expanded td,
        .case-row.selected td {
            background: rgba(217, 242, 238, 0.48);
        }

        .status-icon {
            color: #029a74;
            font-weight: 860;
        }

        .status-icon.reject {
            color: #db3157;
        }

        .status-pending {
            color: #b66d00;
            background: rgba(255, 249, 235, 0.66);
            border-color: rgba(245, 158, 11, 0.24);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
        }

        .attachment-count,
        .page-btn,
        .auth-logout {
            border-color: rgba(255,255,255,0.68);
            background: rgba(255,255,255,0.42);
            box-shadow:
                0 8px 20px rgba(38, 54, 77, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.9);
        }

        .attachment-count {
            color: #0f6bdc;
            font-weight: 820;
        }

        .page-btn {
            color: var(--premium-ink-soft);
            font-weight: 760;
            border-radius: 8px;
            padding: 7px 14px;
        }

        .page-btn:hover:not(:disabled) {
            background: rgba(255,255,255,0.62);
            border-color: rgba(96, 165, 250, 0.46);
            color: #0f6bdc;
        }

        .sidebar-action-panel {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            overscroll-behavior: contain;
            margin-top: auto;
            padding-bottom: 12px;
            scrollbar-width: thin;
        }

        .sidebar-action-btn {
            grid-template-columns: 38px minmax(0, 1fr);
            min-height: 62px;
            padding: 10px;
            gap: 10px;
            border-radius: 11px;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.26)),
                radial-gradient(circle at 0% 0%, rgba(255,255,255,0.62), transparent 34%);
            border-color: rgba(255,255,255,0.76);
        }

        .sidebar-action-icon {
            width: 38px;
            height: 38px;
            min-width: 38px;
            border-radius: 11px;
            overflow: hidden;
        }

        .sidebar-action-icon svg {
            width: 22px;
            height: 22px;
            display: block;
        }

        .sidebar-action-btn strong,
        .sidebar-action-btn small {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-action-btn strong {
            font-size: 15px;
        }

        @media (max-height: 760px) {
            .sidebar-action-panel {
                gap: 8px;
                margin-left: 8px;
                margin-right: 8px;
                padding-top: 10px;
            }

            .sidebar-action-btn {
                min-height: 48px;
                grid-template-columns: 32px minmax(0, 1fr);
                padding: 8px;
                gap: 8px;
            }

            .sidebar-action-icon {
                width: 32px;
                height: 32px;
                min-width: 32px;
                border-radius: 9px;
            }

            .sidebar-action-icon svg {
                width: 19px;
                height: 19px;
            }

            .sidebar-action-btn strong {
                font-size: 14px;
            }

            .sidebar-action-btn small {
                margin-top: 2px;
                font-size: 11px;
            }
        }

        /* Clean sidebar quick actions: no gray scroll troughs, no clipped-looking icon wells. */
        .sidebar-action-panel {
            flex: 0 0 auto !important;
            display: grid !important;
            grid-template-columns: 1fr;
            gap: 14px !important;
            margin: auto 12px 20px !important;
            padding: 0 !important;
            overflow: visible !important;
            background: transparent !important;
            box-shadow: none !important;
            border: 0 !important;
            scrollbar-width: none;
        }

        .sidebar-action-panel::-webkit-scrollbar {
            width: 0;
            height: 0;
        }

        .sidebar-action-btn {
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.72), rgba(243, 249, 255, 0.48)) !important;
            border: 1px solid rgba(255,255,255,0.9);
            box-shadow:
                0 10px 24px rgba(38, 54, 77, 0.08),
                inset 0 1px 0 rgba(255,255,255,0.98) !important;
        }

        .sidebar-action-btn::before {
            content: "";
            position: absolute;
            inset: 1px;
            border-radius: inherit;
            pointer-events: none;
            border: 1px solid rgba(255,255,255,0.36);
        }

        .sidebar-action-btn:hover {
            box-shadow:
                0 12px 26px rgba(38, 54, 77, 0.12),
                inset 0 1px 0 rgba(255,255,255,1) !important;
        }

        .sidebar-action-icon {
            background: rgba(255,255,255,0.74) !important;
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.98),
                0 6px 14px rgba(38, 54, 77, 0.08) !important;
        }

        .sidebar-action-btn.download {
            color: #1d4ed8;
        }

        .sidebar-action-btn.download .sidebar-action-icon {
            position: relative;
        }

        .sidebar-action-btn.download.has-packages .sidebar-action-icon::after {
            content: "";
            position: absolute;
            inset: -5px;
            border-radius: 999px;
            background:
                radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 62%);
            animation: downloadPulse 1.8s ease-in-out infinite;
            pointer-events: none;
        }

        .sidebar-action-btn.download.has-packages {
            color: #1d4ed8;
            border-color: rgba(37, 99, 235, 0.32);
        }

        @keyframes downloadPulse {
            0%, 100% { opacity: 0.35; transform: scale(0.94); }
            50% { opacity: 1; transform: scale(1.12); }
        }

        .download-row > td {
            padding: 0 !important;
            white-space: normal;
        }

        .user-management-row > td {
            padding: 0 !important;
            white-space: normal;
        }

        .submit-row > td {
            padding: 0 !important;
            white-space: normal;
        }

        .table-container.download-mode thead,
        .table-container.download-mode colgroup,
        .table-container.user-mode thead,
        .table-container.user-mode colgroup,
        .table-container.submit-mode thead,
        .table-container.submit-mode colgroup,
        .table-container.system-mode thead,
        .table-container.system-mode colgroup {
            display: none;
        }

        .table-container.download-mode table,
        .table-container.user-mode table,
        .table-container.submit-mode table,
        .table-container.system-mode table {
            min-width: 0;
            width: 100%;
        }

        .download-board {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
            gap: 16px;
            padding: 22px;
        }

        .download-section {
            min-width: 0;
            border: 1px solid rgba(255,255,255,0.78);
            border-radius: 14px;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.68), rgba(239, 247, 255, 0.32)),
                radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.1), transparent 38%);
            box-shadow:
                0 16px 38px rgba(38, 54, 77, 0.1),
                inset 0 1px 1px rgba(255,255,255,0.94);
            overflow: hidden;
        }

        .download-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 18px 18px 12px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        }

        .download-section-kicker {
            color: #6aa1df;
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .download-section-title {
            color: var(--premium-ink);
            font-size: 20px;
            line-height: 1.2;
            font-weight: 880;
        }

        .download-section-meta {
            flex: 0 0 auto;
            color: var(--premium-muted);
            font-size: 13px;
            font-weight: 760;
        }

        .download-section-body {
            display: grid;
            gap: 12px;
            padding: 16px;
        }

        .user-management-board {
            display: grid;
            gap: 10px;
            padding: 14px;
        }

        .user-management-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border: 1px solid rgba(255,255,255,0.78);
            border-radius: 10px;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.7), rgba(239, 247, 255, 0.34)),
                radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.12), transparent 38%);
            box-shadow:
                0 10px 24px rgba(38, 54, 77, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.94);
        }

        .user-search-panel {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 12px 14px;
            border: 1px solid rgba(255,255,255,0.74);
            border-radius: 14px;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.62), rgba(239, 247, 255, 0.26));
            box-shadow:
                0 12px 28px rgba(38, 54, 77, 0.08),
                inset 0 1px 0 rgba(255,255,255,0.92);
        }

        .user-search-wrap {
            display: grid;
            grid-template-columns: 22px minmax(180px, 360px) auto;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1;
        }

        .user-search-icon {
            display: grid;
            place-items: center;
            color: #2563eb;
        }

        .user-search-icon svg {
            width: 19px;
            height: 19px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .user-search-wrap input {
            width: 100%;
            min-height: 42px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 12px;
            padding: 0 13px;
            color: var(--premium-ink);
            background: rgba(255,255,255,0.7);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
            font-size: 14px;
            font-weight: 760;
            outline: none;
        }

        .user-search-wrap input:focus {
            border-color: rgba(37, 99, 235, 0.36);
            box-shadow:
                0 0 0 3px rgba(37, 99, 235, 0.08),
                inset 0 1px 0 rgba(255,255,255,0.98);
        }

        .user-search-clear {
            min-height: 38px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 10px;
            padding: 0 12px;
            color: var(--premium-muted);
            background: rgba(255,255,255,0.52);
            font-size: 13px;
            font-weight: 780;
            cursor: pointer;
        }

        .user-search-count {
            flex: 0 0 auto;
            color: var(--premium-muted);
            font-size: 13px;
            font-weight: 820;
            white-space: nowrap;
        }

        .user-card-grid {
            display: grid;
            gap: 6px;
            border: 1px solid rgba(255,255,255,0.72);
            border-radius: 10px;
            background: rgba(255,255,255,0.34);
            box-shadow:
                0 10px 26px rgba(38, 54, 77, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.9);
            overflow-x: auto;
            overflow-y: hidden;
        }

        .user-list-head,
        .user-card {
            display: grid;
            grid-template-columns: minmax(84px, 0.7fr) minmax(150px, 1fr) 86px minmax(360px, 1.8fr) minmax(360px, 1.75fr) 86px;
            align-items: center;
            gap: 10px;
        }

        .user-list-head {
            min-height: 38px;
            padding: 0 14px;
            color: var(--premium-muted);
            background: rgba(248, 251, 255, 0.78);
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            font-size: 12px;
            font-weight: 820;
        }

        .user-card {
            min-height: 58px;
            padding: 8px 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            background: linear-gradient(135deg, rgba(255,255,255,0.66), rgba(248, 251, 255, 0.34));
        }

        .user-card:last-child {
            border-bottom: 0;
        }

        .user-card:hover {
            background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(239, 247, 255, 0.46));
        }

        .user-card-top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 92px;
            gap: 14px;
            align-items: start;
        }

        .user-account {
            color: #2563eb;
            font-family: "SFMono-Regular", Consolas, monospace;
            font-size: 13px;
            font-weight: 860;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-name-input,
        .user-level-select,
        .user-reset-row input {
            width: 100%;
            min-height: 34px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 8px;
            padding: 0 10px;
            color: var(--premium-ink);
            background: rgba(255,255,255,0.58);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
            font-size: 13px;
            font-weight: 760;
            outline: none;
        }

        .user-permission-grid {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }

        .user-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            min-height: 30px;
            padding: 5px 8px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 8px;
            background: rgba(255,255,255,0.48);
            color: var(--premium-ink-soft);
            font-size: 12px;
            font-weight: 760;
            white-space: nowrap;
        }

        .user-toggle input {
            width: 15px;
            height: 15px;
            accent-color: #14b8a6;
        }

        .user-toggle.locked {
            color: rgba(100, 116, 139, 0.62);
            background: rgba(226, 232, 240, 0.42);
            border-color: rgba(148, 163, 184, 0.16);
            cursor: not-allowed;
        }

        .user-toggle.locked input {
            cursor: not-allowed;
            filter: grayscale(1);
            opacity: 0.68;
        }

        .user-reset-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            gap: 8px;
            align-items: center;
        }

        .detail-btn.danger {
            color: #e11d48;
            border-color: rgba(244, 63, 94, 0.22);
            background: rgba(255, 241, 242, 0.68);
        }

        .user-card-status {
            min-height: 16px;
            color: var(--premium-muted);
            font-size: 12px;
            font-weight: 760;
            white-space: nowrap;
        }

        .submit-board {
            display: grid;
            gap: 12px;
            max-width: 1120px;
            margin: 0 auto;
            padding: 16px;
        }

        .submit-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 14px 16px;
            border: 1px solid rgba(255,255,255,0.78);
            border-radius: 10px;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.72), rgba(239, 247, 255, 0.34)),
                radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.12), transparent 38%);
            box-shadow:
                0 10px 26px rgba(38, 54, 77, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.94);
        }

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

        .submit-field {
            display: grid;
            gap: 8px;
            padding: 12px;
            border: 1px solid rgba(255,255,255,0.76);
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(255,255,255,0.66), rgba(248, 251, 255, 0.34));
            box-shadow:
                0 10px 24px rgba(38, 54, 77, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.9);
            color: var(--premium-ink);
            font-size: 13px;
            font-weight: 820;
        }

        .submit-field.summary,
        .submit-field.collaborators,
        .submit-field.attachment {
            grid-column: 1 / -1;
        }

        .submit-field input,
        .submit-field textarea,
        .submit-user-search {
            width: 100%;
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 8px;
            padding: 10px 11px;
            color: var(--premium-ink);
            background: rgba(255,255,255,0.62);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
            font-size: 14px;
            font-weight: 720;
            outline: none;
        }

        .submit-field input:disabled {
            color: var(--premium-ink-soft);
            background: rgba(255,255,255,0.38);
        }

        .submit-field textarea {
            min-height: 104px;
            resize: vertical;
            line-height: 1.5;
        }

        .ios-switch-row {
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 42px;
            color: var(--premium-ink-soft);
            cursor: pointer;
            user-select: none;
        }

        .ios-switch-row input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .ios-switch {
            position: relative;
            width: 56px;
            height: 32px;
            border-radius: 999px;
            background: #d1d5db;
            box-shadow:
                inset 0 1px 3px rgba(15, 23, 42, 0.18),
                0 1px 0 rgba(255,255,255,0.82);
            transition: background 0.2s ease, box-shadow 0.2s ease;
            flex: 0 0 auto;
        }

        .ios-switch::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: #fff;
            box-shadow:
                0 2px 6px rgba(15, 23, 42, 0.22),
                inset 0 1px 0 rgba(255,255,255,0.96);
            transition: transform 0.2s ease;
        }

        .ios-switch-row input:checked + .ios-switch {
            background: #34c759;
            box-shadow:
                inset 0 1px 3px rgba(15, 23, 42, 0.12),
                0 0 0 4px rgba(52, 199, 89, 0.12);
        }

        .ios-switch-row input:checked + .ios-switch::after {
            transform: translateX(24px);
        }

        .invoice-switch-area {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            width: fit-content;
            min-height: 32px;
            margin-top: 12px;
            padding: 5px 8px 5px 10px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 999px;
            background: rgba(255,255,255,0.28);
            backdrop-filter: blur(18px) saturate(1.35);
            -webkit-backdrop-filter: blur(18px) saturate(1.35);
            box-shadow: inset 0 1px 1px rgba(255,255,255,0.72);
        }

        .invoice-switch-title {
            color: var(--premium-muted);
            font-size: 12px;
            font-weight: 780;
            line-height: 1;
        }

        .invoice-request-switch {
            width: fit-content;
            gap: 8px;
            min-height: 26px;
        }

        .invoice-request-switch .ios-switch {
            width: 46px;
            height: 26px;
        }

        .invoice-request-switch .ios-switch::after {
            top: 2px;
            left: 2px;
            width: 22px;
            height: 22px;
            box-shadow:
                0 1px 4px rgba(15, 23, 42, 0.18),
                inset 0 1px 0 rgba(255,255,255,0.96);
        }

        .invoice-request-switch input:checked + .ios-switch::after {
            transform: translateX(20px);
        }

        .invoice-request-switch strong {
            color: var(--premium-ink-soft);
            font-size: 13px;
            font-weight: 780;
            min-width: 56px;
        }

        .invoice-request-switch input:disabled + .ios-switch {
            opacity: 0.62;
            cursor: wait;
        }

        .date-wheel {
            background: rgba(248, 252, 255, 0.96) !important;
            border-color: rgba(148, 163, 184, 0.28) !important;
            box-shadow:
                0 18px 42px rgba(37, 54, 92, 0.2),
                inset 0 1px 0 rgba(255,255,255,0.9) !important;
        }

        .submit-collaborator-box {
            display: grid;
            gap: 8px;
        }

        .team-collaboration-panel {
            display: grid;
            gap: 12px;
            max-width: 100%;
        }

        .team-user-list {
            min-height: 70px;
        }

        .submit-user-list {
            display: flex;
            align-items: stretch;
            gap: 8px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 4px 4px 10px;
            scroll-snap-type: x proximity;
            scrollbar-color: rgba(20, 184, 166, 0.55) rgba(148, 163, 184, 0.16);
        }

        .owner-search-box {
            position: relative;
        }

        .owner-suggest-list {
            position: absolute;
            z-index: 500;
            left: 0;
            right: 0;
            top: auto;
            bottom: calc(100% + 8px);
            max-height: 214px;
            overflow-y: auto;
            display: grid;
            gap: 6px;
            padding: 8px;
            border: 1px solid rgba(255,255,255,0.64);
            border-radius: 8px;
            background: rgba(248, 251, 255, 0.9);
            backdrop-filter: blur(24px) saturate(1.4);
            -webkit-backdrop-filter: blur(24px) saturate(1.4);
            box-shadow: 0 18px 46px rgba(37,54,92,0.18);
        }

        .owner-suggest-list:empty {
            display: none;
        }

        .owner-suggest-option {
            width: 100%;
            min-height: 38px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 6px;
            background: rgba(255,255,255,0.62);
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 8px 10px;
            font: inherit;
            font-weight: 750;
            text-align: left;
            cursor: pointer;
        }

        .owner-suggest-option:hover {
            border-color: rgba(22,119,255,0.32);
            background: rgba(235,246,255,0.86);
        }

        .owner-suggest-option em {
            color: var(--text-muted);
            font-size: 12px;
            font-style: normal;
            font-weight: 700;
        }

        .submit-user-option {
            display: grid;
            grid-template-columns: 18px minmax(0, 1fr);
            grid-template-areas:
                "check name"
                "check account";
            align-items: center;
            column-gap: 8px;
            flex: 0 0 168px;
            min-height: 54px;
            padding: 8px 10px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 8px;
            background: rgba(255,255,255,0.48);
            color: var(--premium-ink);
            cursor: pointer;
            scroll-snap-align: start;
            transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .submit-user-option:hover,
        .submit-user-option.search-match {
            border-color: rgba(20, 184, 166, 0.32);
            background: rgba(240, 253, 250, 0.68);
        }

        .submit-user-option.selected {
            border-color: rgba(20, 184, 166, 0.42);
            background: rgba(204, 251, 241, 0.58);
            box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
        }

        .submit-user-option input {
            grid-area: check;
            width: 16px;
            height: 16px;
            accent-color: #14b8a6;
        }

        .submit-user-option span {
            grid-area: name;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 13px;
            font-weight: 820;
        }

        .submit-user-option em {
            grid-area: account;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--premium-muted);
            font-size: 11px;
            font-style: normal;
            font-weight: 720;
        }

        .submit-user-empty,
        .submit-selected-users,
        .submit-status {
            color: var(--premium-muted);
            font-size: 12px;
            font-weight: 760;
        }

        .submit-upload-row,
        .submit-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .submit-upload-row strong {
            color: var(--premium-muted);
            font-size: 13px;
            font-weight: 760;
        }

        .submit-actions {
            justify-content: flex-end;
            padding: 2px 2px 0;
        }

        .submit-status {
            margin-right: auto;
            min-height: 18px;
        }

        .detail-btn.submit-primary {
            min-width: 96px;
        }

        .download-empty {
            display: grid;
            place-items: center;
            min-height: 280px;
            text-align: center;
            color: var(--premium-muted);
        }

        .download-empty.compact {
            min-height: 180px;
            padding: 18px;
        }

        .download-empty-title {
            color: var(--premium-ink);
            font-size: 20px;
            font-weight: 820;
            margin-bottom: 8px;
        }

        .download-empty-subtitle {
            font-size: 13px;
            font-weight: 680;
        }

        .download-package-card {
            position: relative;
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) auto;
            align-items: center;
            gap: 18px;
            min-height: 92px;
            padding: 18px;
            border: 1px solid rgba(255,255,255,0.78);
            border-radius: 12px;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28)),
                radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.14), transparent 34%);
            box-shadow:
                0 14px 34px rgba(38, 54, 77, 0.1),
                inset 0 1px 1px rgba(255,255,255,0.94);
            overflow: hidden;
        }

        .download-package-card.warning {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28)),
                radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.16), transparent 34%);
        }

        .download-package-card.danger {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28)),
                radial-gradient(circle at 0% 0%, rgba(244, 63, 94, 0.16), transparent 34%);
        }

        .download-package-meter {
            --package-progress: 1;
            width: 42px;
            height: 42px;
            border-radius: 999px;
            background:
                conic-gradient(#10b981 calc(var(--package-progress) * 1turn), rgba(148, 163, 184, 0.18) 0);
            box-shadow: inset 0 0 0 7px rgba(255,255,255,0.64);
        }

        .download-package-card.warning .download-package-meter {
            background:
                conic-gradient(#f59e0b calc(var(--package-progress) * 1turn), rgba(148, 163, 184, 0.18) 0);
        }

        .download-package-card.danger .download-package-meter {
            background:
                conic-gradient(#f43f5e calc(var(--package-progress) * 1turn), rgba(148, 163, 184, 0.18) 0);
        }

        .download-package-main {
            min-width: 0;
        }

        .download-package-name {
            color: var(--premium-ink);
            font-size: 17px;
            font-weight: 840;
            margin-bottom: 6px;
        }

        .download-package-codes {
            color: var(--premium-muted);
            font-size: 13px;
            line-height: 1.5;
            font-weight: 680;
            white-space: normal;
            word-break: break-word;
        }

        .download-package-side {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .download-package-time {
            min-width: 54px;
            color: var(--premium-ink-soft);
            font-family: "SFMono-Regular", Consolas, monospace;
            font-weight: 800;
        }

        .backup-panel {
            padding: 16px 18px 20px;
        }

        .backup-note {
            margin-bottom: 16px;
            color: var(--premium-muted);
            font-size: 13px;
            line-height: 1.55;
            font-weight: 700;
        }

        .backup-picker {
            display: grid;
            gap: 18px;
        }

        .backup-picker-title {
            margin-bottom: 10px;
            color: var(--premium-ink-soft);
            font-size: 13px;
            font-weight: 840;
        }

        .backup-chip-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .backup-year-strip {
            display: flex;
            flex-wrap: nowrap;
            gap: 10px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 2px 2px 10px;
            scrollbar-width: thin;
            scrollbar-color: rgba(37, 99, 235, 0.32) transparent;
        }

        .backup-year-strip .backup-chip {
            flex: 0 0 auto;
        }

        .backup-month-scroll {
            display: grid;
            gap: 14px;
            max-height: 260px;
            overflow-y: auto;
            padding: 2px 8px 2px 2px;
            scrollbar-width: thin;
            scrollbar-color: rgba(20, 184, 166, 0.36) transparent;
        }

        .backup-month-group {
            display: grid;
            gap: 9px;
            padding: 12px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 12px;
            background: rgba(255,255,255,0.34);
        }

        .backup-month-year {
            color: #2563eb;
            font-size: 12px;
            font-weight: 860;
        }

        .backup-chip-grid.month-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
        }

        .backup-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 38px;
            padding: 8px 11px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 10px;
            color: var(--premium-ink);
            background: rgba(255,255,255,0.52);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
            cursor: pointer;
            font-size: 13px;
            font-weight: 780;
            transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
        }

        .backup-chip:hover {
            transform: translateY(-1px);
            border-color: rgba(96, 165, 250, 0.44);
        }

        .backup-chip.selected {
            color: #0f766e;
            border-color: rgba(20, 184, 166, 0.34);
            background:
                linear-gradient(135deg, rgba(240, 253, 250, 0.86), rgba(255,255,255,0.62));
        }

        .backup-chip input {
            width: 16px;
            height: 16px;
            accent-color: #14b8a6;
        }

        .backup-chip em {
            min-width: 22px;
            padding: 2px 6px;
            border-radius: 999px;
            color: #1d4ed8;
            background: rgba(37, 99, 235, 0.08);
            font-style: normal;
            text-align: center;
        }

        .backup-summary {
            margin-top: 16px;
            padding: 12px 14px;
            border: 1px solid rgba(20, 184, 166, 0.22);
            border-radius: 12px;
            color: #0f766e;
            background: rgba(240, 253, 250, 0.58);
            font-size: 13px;
            line-height: 1.55;
            font-weight: 760;
            word-break: break-word;
        }

        .backup-summary.empty {
            color: var(--premium-muted);
            border-color: rgba(148, 163, 184, 0.16);
            background: rgba(255,255,255,0.38);
        }

        @media (max-width: 1180px) {
            .download-board {
                grid-template-columns: 1fr;
            }

            .download-package-card {
                grid-template-columns: 42px minmax(0, 1fr);
            }

            .download-package-side {
                grid-column: 1 / -1;
                justify-content: flex-end;
            }
        }

        /* Final responsive behavior map: wide / medium / compact. */
        .glass-app,
        .sidebar,
        .main-content,
        .top-bar,
        .table-container,
        .download-board,
        .submit-board,
        .user-card-grid,
        .sidebar-action-panel {
            min-width: 0;
        }

        .table-container:not(.download-mode):not(.user-mode) table {
            min-width: 1080px;
        }

        @media (max-width: 1500px) {
            .glass-app {
                width: 97vw;
                height: 92vh;
            }

            .sidebar {
                width: 230px;
            }

            .workspace-name {
                font-size: 26px;
            }

            .search-container {
                max-width: 640px;
            }

            .table-container:not(.download-mode):not(.user-mode) table {
                min-width: 980px;
            }

            .col-summary { width: 230px; }
            .col-client { width: 210px; }
        }

        @media (max-width: 1280px) {
            .glass-app {
                width: 98vw;
                height: 94vh;
            }

            .sidebar {
                width: 214px;
            }

            .brand-card {
                padding: 14px;
            }

            .brand-name {
                font-size: 15px;
            }

            .nav-item {
                padding: 10px 12px;
                font-size: 14px;
            }

            .sidebar-action-btn {
                grid-template-columns: 34px minmax(0, 1fr) !important;
                min-height: 56px !important;
                padding: 9px !important;
            }

            .sidebar-action-icon {
                width: 34px !important;
                height: 34px !important;
                min-width: 34px !important;
            }

            .sidebar-action-btn strong {
                font-size: 14px !important;
            }

            .sidebar-action-btn small {
                font-size: 11px !important;
            }

            .top-bar {
                grid-template-columns: minmax(210px, auto) minmax(260px, 1fr) auto;
                gap: 16px;
            }

            .table-container:not(.download-mode):not(.user-mode) table {
                min-width: 900px;
            }

            .table-container:not(.download-mode):not(.user-mode) .col-code,
            .table-container:not(.download-mode):not(.user-mode) th:nth-child(7),
            .table-container:not(.download-mode):not(.user-mode) td:nth-child(7) {
                display: none;
            }

            .download-board {
                grid-template-columns: 1fr;
            }

            .user-list-head,
            .user-card {
                grid-template-columns: 78px 128px 78px minmax(280px, 1.55fr) minmax(310px, 1.55fr) 70px;
            }
        }

        @media (max-width: 980px) {
            body {
                align-items: stretch;
                justify-content: stretch;
                padding: 10px;
            }

            .glass-app {
                width: 100%;
                height: calc(100vh - 20px);
                flex-direction: column;
                border-radius: 12px;
            }

            .sidebar {
                width: 100% !important;
                height: auto;
                max-height: 258px;
                flex: 0 0 auto;
                display: grid;
                grid-template-columns: 240px minmax(0, 1fr);
                grid-template-rows: auto auto;
                gap: 10px 14px;
                padding: 12px !important;
                overflow-x: hidden;
                overflow-y: auto;
                border-right: 0;
                border-bottom: 1px solid rgba(255,255,255,0.58);
            }

            .brand-card {
                grid-row: 1 / 3;
                margin: 0 !important;
                width: 100%;
            }

            .nav-group {
                margin: 0;
            }

            .nav-title {
                padding: 0 4px 6px;
            }

            .nav-children {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }

            .nav-item {
                margin: 0;
                border-left: 0;
                border-radius: 10px;
                padding: 9px 12px;
                white-space: nowrap;
            }

            .sidebar-action-panel {
                grid-column: 2;
                display: flex !important;
                flex-direction: row;
                gap: 10px !important;
                margin: 0 !important;
                overflow-x: auto !important;
                overflow-y: hidden !important;
                padding-bottom: 2px !important;
            }

            .sidebar-action-btn {
                flex: 0 0 190px;
            }

            .main-content {
                min-height: 0;
            }

            .top-bar {
                grid-template-columns: minmax(0, 1fr) auto;
                grid-template-areas:
                    "title user"
                    "search search";
                padding: 14px;
            }

            .workspace-title {
                grid-area: title;
            }

            .search-container {
                grid-area: search;
                max-width: none;
            }

            .auth-userbar {
                grid-area: user;
            }

            .workspace-name {
                font-size: 24px;
            }

            .table-container:not(.download-mode):not(.user-mode) table {
                min-width: 650px;
            }

            .table-container:not(.download-mode):not(.user-mode) .col-invoice,
            .table-container:not(.download-mode):not(.user-mode) .col-owner,
            .table-container:not(.download-mode):not(.user-mode) th:nth-child(4),
            .table-container:not(.download-mode):not(.user-mode) td:nth-child(4),
            .table-container:not(.download-mode):not(.user-mode) th:nth-child(8),
            .table-container:not(.download-mode):not(.user-mode) td:nth-child(8) {
                display: none;
            }

            .user-list-head {
                display: none;
            }

            .user-card {
                grid-template-columns: 1fr;
                align-items: stretch;
                gap: 8px;
                padding: 12px;
            }

            .download-package-card,
            .user-card-top,
            .user-reset-row {
                grid-template-columns: 1fr;
            }

            .download-package-meter {
                display: none;
            }

            .download-package-side {
                justify-content: flex-start;
            }
        }

        @media (max-width: 720px) {
            body {
                padding: 0;
            }

            .glass-app {
                height: 100vh;
                border-radius: 0;
                border-left: 0;
                border-right: 0;
            }

            .sidebar {
                max-height: 310px;
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .brand-card {
                grid-row: auto;
            }

            .sidebar-action-panel {
                grid-column: 1;
            }

            .sidebar-action-btn {
                flex-basis: 168px;
            }

            .top-bar {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "title"
                    "search"
                    "user";
                gap: 12px;
            }

            .auth-userbar {
                justify-self: start;
            }

            .workspace-name {
                font-size: 22px;
            }

            .table-container {
                border-radius: 0;
            }

            .table-container:not(.download-mode):not(.user-mode) table {
                min-width: 520px;
            }

            .table-container:not(.download-mode):not(.user-mode) .col-client,
            .table-container:not(.download-mode):not(.user-mode) th:nth-child(6),
            .table-container:not(.download-mode):not(.user-mode) td:nth-child(6) {
                display: none;
            }

            .download-board,
            .user-management-board {
                padding: 14px;
            }

            .download-section-head,
            .user-management-head,
            .submit-head,
            .pagination {
                align-items: flex-start;
                flex-direction: column;
            }

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

            .submit-user-list {
                max-height: none;
            }

            .submit-user-option {
                flex-basis: 154px;
            }

            .submit-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .submit-status {
                margin-right: 0;
            }

            .user-search-panel {
                align-items: stretch;
                flex-direction: column;
            }

            .user-search-wrap {
                grid-template-columns: 22px minmax(0, 1fr) auto;
            }

            .backup-chip-grid.month-grid,
            .user-permission-grid {
                grid-template-columns: 1fr;
            }

            .backup-month-scroll {
                max-height: 220px;
            }
        }

        @media (max-height: 760px) and (min-width: 981px) {
            .glass-app {
                height: 96vh;
            }

            .sidebar {
                padding-top: 12px !important;
            }

            .brand-card {
                padding: 12px;
            }

            .nav-item {
                padding-top: 8px;
                padding-bottom: 8px;
            }

            .sidebar-action-btn {
                min-height: 50px !important;
            }
        }

        /* Preserve the pending badge on small desktop widths. */
        .table-container:not(.download-mode):not(.user-mode) .col-audit {
            width: 96px !important;
            min-width: 96px !important;
        }

        .table-container:not(.download-mode):not(.user-mode) th:nth-child(3),
        .table-container:not(.download-mode):not(.user-mode) td:nth-child(3) {
            min-width: 96px;
            overflow: visible;
        }

        .badge.pending {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 74px;
            white-space: nowrap;
        }

        .page-jump {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--premium-muted);
            font-weight: 760;
            margin-left: 8px;
        }

        .page-jump.hidden {
            display: none;
        }

        .page-jump input {
            width: 76px;
            height: 42px;
            border: 1px solid rgba(255,255,255,0.74);
            border-radius: 12px;
            background: rgba(255,255,255,0.58);
            color: var(--premium-ink);
            font-size: 15px;
            font-weight: 800;
            text-align: center;
            outline: none;
            box-shadow: inset 0 1px 1px rgba(255,255,255,0.95);
        }

        .settings-board {
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding: 26px 28px 30px;
        }

/* ============================================================
   iOS Liquid Glass 全面升级层 (refined · light)
   末层覆盖，统一玻璃材质 / 高光镜面 / 连续大圆角 / 分层景深
   ============================================================ */
:root {
    --lg-ink: #1c2740;
    --lg-ink-soft: rgba(38, 51, 77, 0.78);
    --lg-muted: rgba(96, 112, 138, 0.74);
    --lg-faint: rgba(118, 132, 156, 0.56);
    --lg-blue: #2f7df1;
    --lg-blue-deep: #0f63d6;
    --lg-mint: #10a896;
    --lg-amber: #c2790f;
    --lg-rose: #db3a5d;

    /* 玻璃材质 */
    --lg-glass: rgba(255, 255, 255, 0.30);
    --lg-glass-soft: rgba(255, 255, 255, 0.20);
    --lg-glass-strong: rgba(255, 255, 255, 0.46);
    --lg-glass-control: rgba(255, 255, 255, 0.42);
    --lg-rim: rgba(255, 255, 255, 0.85);
    --lg-rim-soft: rgba(255, 255, 255, 0.62);
    --lg-hairline: rgba(148, 165, 196, 0.20);

    /* 镜面高光：顶部一圈亮边 + 底部一抹反光 */
    --lg-spec:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(255, 255, 255, 0.28);
    --lg-spec-soft:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 1px rgba(255, 255, 255, 0.2);

    /* 分层景深阴影 */
    --lg-shadow-1: 0 1px 2px rgba(30, 44, 74, 0.05), 0 6px 16px rgba(30, 44, 74, 0.06);
    --lg-shadow-2: 0 4px 10px rgba(30, 44, 74, 0.07), 0 14px 34px rgba(30, 44, 74, 0.10);
    --lg-shadow-3: 0 10px 24px rgba(30, 44, 74, 0.10), 0 30px 70px rgba(30, 44, 74, 0.16);

    /* 连续圆角刻度 */
    --lg-r-xl: 28px;
    --lg-r-lg: 20px;
    --lg-r-md: 16px;
    --lg-r-sm: 12px;
    --lg-r-xs: 10px;

    --lg-blur: blur(34px) saturate(1.7);
    --lg-blur-strong: blur(48px) saturate(1.85) contrast(1.02);
    --lg-blur-control: blur(22px) saturate(1.55);
}

/* ---- 背景：柔和折射光景，内容为主、克制 ---- */
body {
    color: var(--lg-ink);
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.72), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(176, 214, 255, 0.40), transparent 34%),
        radial-gradient(circle at 78% 92%, rgba(186, 205, 236, 0.26), transparent 36%),
        radial-gradient(circle at 30% 88%, rgba(190, 200, 240, 0.20), transparent 38%),
        linear-gradient(135deg, #cdd9e9 0%, #eef3f9 46%, #dbe2ee 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.30), transparent 20%, rgba(255, 255, 255, 0.12) 48%, transparent 76%),
        radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.58), transparent 36%);
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* ---- 应用外壳：厚玻璃 + 连续大圆角 + 顶部镜面 ---- */
.glass-app {
    position: relative;
    border-radius: var(--lg-r-xl);
    border: 1px solid var(--lg-rim);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.16)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.66), transparent 36%),
        radial-gradient(circle at 100% 4%, rgba(132, 192, 255, 0.16), transparent 38%);
    backdrop-filter: var(--lg-blur-strong);
    -webkit-backdrop-filter: var(--lg-blur-strong);
    box-shadow:
        var(--lg-shadow-3),
        var(--lg-spec);
}

.glass-app::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 22%, rgba(255, 255, 255, 0.10) 58%, rgba(255, 255, 255, 0.34) 100%);
    opacity: 0.85;
    z-index: 1;
}

.glass-app > * {
    position: relative;
    z-index: 2;
}

/* ---- 侧边栏：内嵌玻璃面 ---- */
.sidebar {
    border-right: 1px solid var(--lg-rim-soft);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14)),
        radial-gradient(circle at 26% 0%, rgba(255, 255, 255, 0.62), transparent 36%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.main-content {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
        radial-gradient(circle at 72% 0%, rgba(198, 229, 255, 0.18), transparent 38%);
}

/* ---- 品牌卡 ---- */
.brand-card {
    border-radius: var(--lg-r-md);
    border: 1px solid var(--lg-rim);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.6), transparent 36%);
    box-shadow: var(--lg-shadow-1), var(--lg-spec);
}

.brand-mark {
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(30, 44, 74, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand-name,
.workspace-name {
    color: var(--lg-ink);
    letter-spacing: 0;
}

.workspace-name {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-subtitle,
.workspace-kicker,
.nav-title,
.page-info,
.batch-selected-count,
.auth-userbar,
.detail-muted {
    color: var(--lg-muted);
}

.workspace-kicker {
    color: rgba(47, 125, 241, 0.66);
    letter-spacing: 1.2px;
}

/* ---- 导航项 ---- */
.nav-item {
    color: rgba(46, 60, 84, 0.78);
    border-radius: var(--lg-r-xs);
    margin-right: 2px;
    border-left: 3px solid transparent;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.46);
    color: var(--lg-blue);
    box-shadow: var(--lg-spec-soft);
}

.nav-item.active {
    color: var(--lg-blue-deep);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(223, 240, 255, 0.36));
    border-left-color: #63a8ff;
    box-shadow:
        inset 3px 0 0 rgba(47, 125, 241, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 24px rgba(47, 125, 241, 0.12);
}

/* ---- 侧栏快捷操作按钮 ---- */
.sidebar-action-btn {
    border-radius: var(--lg-r-sm);
    border: 1px solid var(--lg-rim);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.6), transparent 36%);
    box-shadow: var(--lg-shadow-1), var(--lg-spec-soft);
    transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sidebar-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34));
    box-shadow: var(--lg-shadow-2), var(--lg-spec);
    transform: translateY(-1px);
}

.sidebar-action-icon {
    border-radius: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---- 顶栏 + 搜索 ---- */
.top-bar {
    border-bottom: 1px solid var(--lg-rim-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.16));
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.search-container input {
    color: var(--lg-ink);
    border-radius: 999px;
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.54);
    box-shadow: var(--lg-shadow-1), var(--lg-spec-soft);
    backdrop-filter: var(--lg-blur-control);
    -webkit-backdrop-filter: var(--lg-blur-control);
    transition: box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.search-container input::placeholder {
    color: rgba(100, 116, 139, 0.56);
}

.search-container input:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(47, 125, 241, 0.5);
    box-shadow:
        0 0 0 4px rgba(47, 125, 241, 0.12),
        var(--lg-shadow-2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-userbar {
    color: var(--lg-muted);
}

.auth-logout {
    border-radius: 999px;
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: var(--lg-spec-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-logout:hover {
    background: rgba(255, 255, 255, 0.62);
    color: var(--lg-blue-deep);
}

/* ---- 表格容器 + 表格 ---- */
.table-container {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}

th {
    color: var(--lg-muted);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(236, 246, 250, 0.22));
    backdrop-filter: var(--lg-blur-control);
    -webkit-backdrop-filter: var(--lg-blur-control);
    border-bottom: 1px solid var(--lg-hairline);
}

td {
    color: var(--lg-ink);
    border-bottom-color: var(--lg-hairline);
}

tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.10);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.34);
}

.case-row.expanded td,
.case-row.selected td {
    background: rgba(214, 240, 236, 0.5);
}

/* ---- 徽章 / 状态 ---- */
.badge {
    border-radius: 999px;
    box-shadow: var(--lg-spec-soft);
    backdrop-filter: var(--lg-blur-control);
    -webkit-backdrop-filter: var(--lg-blur-control);
}

.badge.pending,
.status-pending {
    color: var(--lg-amber);
    background: rgba(255, 249, 235, 0.62);
    border: 1px solid rgba(194, 121, 15, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.badge.reject {
    color: var(--lg-rose);
    background: rgba(255, 240, 243, 0.62);
    border: 1px solid rgba(219, 58, 93, 0.24);
}

.status-icon {
    color: var(--lg-mint);
}

.status-icon.reject {
    color: var(--lg-rose);
}

.attachment-count {
    color: var(--lg-blue-deep);
    border-radius: 999px;
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: var(--lg-shadow-1), var(--lg-spec-soft);
}

/* ---- 分页 ---- */
.pagination {
    border-top: 1px solid var(--lg-rim-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.page-btn {
    color: var(--lg-ink-soft);
    border-radius: var(--lg-r-xs);
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: var(--lg-spec-soft);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.64);
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--lg-blue-deep);
    transform: translateY(-1px);
}

.page-btn.approve {
    color: #0a8f6c;
    background: rgba(232, 251, 244, 0.6);
    border-color: rgba(16, 168, 150, 0.3);
}

.page-btn.reject,
.page-btn.danger {
    color: var(--lg-rose);
    background: rgba(255, 240, 243, 0.6);
    border-color: rgba(219, 58, 93, 0.3);
}

.page-jump input {
    border-radius: var(--lg-r-xs);
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.92);
}

/* ---- 案件详情面板 / Tabs / 字段 ---- */
.case-detail,
.detail-panel {
    border-radius: var(--lg-r-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
    border: 1px solid var(--lg-rim-soft);
    box-shadow: var(--lg-shadow-1), var(--lg-spec-soft);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.detail-tabs {
    border-radius: var(--lg-r-md);
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid var(--lg-rim-soft);
}

.detail-tab.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.32));
    border: 1px solid var(--lg-rim);
    border-left-color: rgba(47, 125, 241, 0.76);
    box-shadow: inset 3px 0 0 rgba(47, 125, 241, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.edit-field input,
.edit-field textarea,
.user-name-input,
.submit-field input,
.submit-field textarea,
.owner-search-box input {
    border-radius: var(--lg-r-sm);
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: var(--lg-spec-soft);
    transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.edit-field input:focus,
.edit-field textarea:focus,
.user-name-input:focus,
.submit-field input:focus,
.submit-field textarea:focus,
.owner-search-box input:focus {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(47, 125, 241, 0.46);
    box-shadow: 0 0 0 4px rgba(47, 125, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---- 通用按钮 ---- */
.detail-btn {
    border-radius: var(--lg-r-sm);
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: var(--lg-shadow-1), var(--lg-spec-soft);
    transition: transform 0.15s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.detail-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--lg-shadow-2), var(--lg-spec);
    transform: translateY(-1px);
}

.detail-btn:not(.secondary):not(.danger) {
    color: var(--lg-blue-deep);
}

.detail-btn.danger {
    color: var(--lg-rose);
    background: rgba(255, 240, 243, 0.55);
    border-color: rgba(219, 58, 93, 0.3);
}

.detail-btn.secondary {
    color: var(--lg-muted);
    background: rgba(255, 255, 255, 0.34);
}

/* ---- 日期选择器玻璃面 ---- */
.date-wheel {
    border-radius: var(--lg-r-md) !important;
    border: 1px solid var(--lg-rim);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.28));
    box-shadow: var(--lg-shadow-3), var(--lg-spec);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.date-calendar-day.selected {
    background: linear-gradient(180deg, #dcebff, #bcd9fb);
    border-color: rgba(47, 125, 241, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.date-calendar-day.today {
    color: var(--lg-blue);
}

.date-calendar-nav,
.date-calendar-number {
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--lg-rim);
    box-shadow: var(--lg-spec-soft);
}

/* ---- iOS 开关 ---- */
.ios-switch {
    box-shadow: inset 0 1px 2px rgba(30, 44, 74, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.ios-switch::after {
    box-shadow: 0 2px 6px rgba(30, 44, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---- 卡片类（用户/下载/备份/提交） ---- */
.user-card,
.download-package-card,
.backup-panel,
.download-board,
.submit-board,
.settings-board,
.user-management-board,
.team-collaboration-panel {
    border-radius: var(--lg-r-lg);
    border: 1px solid var(--lg-rim-soft);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
    box-shadow: var(--lg-shadow-1), var(--lg-spec-soft);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.backup-chip,
.attachment-file-chip {
    border-radius: 999px;
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: var(--lg-spec-soft);
}

/* ---- 登录 / 启动遮罩：玻璃化 ---- */
.auth-overlay {
    background: rgba(226, 238, 250, 0.5);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
}

.auth-card,
.boot-card {
    border-radius: var(--lg-r-xl);
    border: 1px solid var(--lg-rim);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.66), transparent 38%);
    box-shadow: var(--lg-shadow-3), var(--lg-spec);
    backdrop-filter: var(--lg-blur-strong);
    -webkit-backdrop-filter: var(--lg-blur-strong);
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(225, 240, 255, 0.4));
    box-shadow: var(--lg-spec-soft);
}

.auth-field input {
    border-radius: var(--lg-r-sm);
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--lg-spec-soft);
}

.auth-field input:focus {
    border-color: rgba(47, 125, 241, 0.46);
    box-shadow: 0 0 0 4px rgba(47, 125, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-submit {
    border-radius: var(--lg-r-sm);
    background: linear-gradient(135deg, #3f8ff6, #2f7df1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 125, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.15s ease, box-shadow 0.22s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(47, 125, 241, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.boot-bar {
    background: linear-gradient(90deg, #3f8ff6, #10a896);
    box-shadow: 0 0 12px rgba(47, 125, 241, 0.4);
}

/* ---- 确认弹窗（此前无任何样式，这里补全布局 + 玻璃质感） ---- */
.ui-confirm {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(28, 39, 64, 0.28);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.ui-confirm.hidden {
    display: none;
}

.ui-confirm-card {
    width: min(420px, 100%);
    padding: 24px 24px 20px;
    border-radius: var(--lg-r-lg);
    border: 1px solid var(--lg-rim);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.4)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.6), transparent 40%);
    box-shadow: var(--lg-shadow-3), var(--lg-spec);
    backdrop-filter: var(--lg-blur-strong);
    -webkit-backdrop-filter: var(--lg-blur-strong);
}

.ui-confirm-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--lg-ink);
    margin-bottom: 8px;
}

.ui-confirm-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lg-ink-soft);
    margin-bottom: 20px;
}

.ui-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ---- 轻提示 Toast（此前无任何样式，这里补全） ---- */
.ui-toast {
    position: fixed;
    left: 50%;
    bottom: 38px;
    transform: translate(-50%, 16px);
    z-index: 2100;
    max-width: min(440px, calc(100vw - 48px));
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid var(--lg-rim);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46));
    box-shadow: var(--lg-shadow-2), var(--lg-spec);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    color: var(--lg-ink);
    font-size: 14px;
    font-weight: 680;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ui-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ui-toast.warning {
    color: var(--lg-amber);
    border-color: rgba(194, 121, 15, 0.3);
}

.ui-toast.danger {
    color: var(--lg-rose);
    border-color: rgba(219, 58, 93, 0.3);
}

.ui-toast.success {
    color: #0a8f6c;
    border-color: rgba(16, 168, 150, 0.3);
}

/* ============================================================
   系统设置面板：补齐缺失样式 + 数据库管理卡片 (Liquid Glass)
   ============================================================ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.settings-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px;
    border-radius: var(--lg-r-lg);
    border: 1px solid var(--lg-rim-soft);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.2));
    box-shadow: var(--lg-shadow-1), var(--lg-spec-soft);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.settings-card.wide {
    grid-column: 1 / -1;
}

.settings-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.settings-card-head strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--lg-ink);
}

.settings-card-head span {
    font-size: 12px;
    font-weight: 600;
    color: var(--lg-muted);
}

.settings-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 165, 196, 0.22);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(30, 44, 74, 0.12);
}

.settings-meter > div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3f8ff6, #10a896);
    box-shadow: 0 0 10px rgba(47, 125, 241, 0.4);
    transition: width 0.4s ease;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-field > span {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--lg-muted);
}

.settings-field.compact {
    max-width: 220px;
}

.settings-field input,
.settings-field textarea {
    width: 100%;
    padding: 10px 13px;
    border-radius: var(--lg-r-sm);
    border: 1px solid var(--lg-rim);
    background: rgba(255, 255, 255, 0.5);
    color: var(--lg-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: var(--lg-spec-soft);
    transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.settings-field textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.6;
}

.settings-field input:focus,
.settings-field textarea:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(47, 125, 241, 0.46);
    box-shadow: 0 0 0 4px rgba(47, 125, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.settings-path {
    font-size: 12px;
    font-weight: 600;
    color: var(--lg-faint);
    word-break: break-all;
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.settings-status {
    font-size: 13px;
    font-weight: 650;
    color: var(--lg-muted);
}

/* ---- 数据库管理卡片 ---- */
.settings-data-card {
    border-color: rgba(219, 58, 93, 0.22);
    background:
        linear-gradient(135deg, rgba(255, 250, 251, 0.5), rgba(255, 255, 255, 0.2)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.5), transparent 36%);
}

.settings-data-desc {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 560;
    color: var(--lg-ink-soft);
}

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

@media (max-width: 1100px) {
    .settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ============================================================
   登录框修复 + 性能优化（末层，最高优先级）
   ============================================================ */

/* 登录/锁定时加深遮罩并加强模糊，让主外壳隐入背景，只剩登录卡片悬浮 */
body.auth-locked .auth-overlay,
body.booting .auth-overlay {
    background:
        radial-gradient(circle at 50% 40%, rgba(232, 240, 250, 0.62), rgba(205, 220, 236, 0.72) 60%, rgba(196, 212, 230, 0.8) 100%);
    backdrop-filter: blur(46px) saturate(1.25);
    -webkit-backdrop-filter: blur(46px) saturate(1.25);
}

/* 性能①：移除逐行重复元素的 backdrop-filter（每个单元格独立模糊层是滚动卡顿主因）。
   模糊只保留在大面板（外壳/侧栏/顶栏/详情面板/日期框/登录卡）。这些小元素本就叠在已模糊面板之上，视觉几乎无差别。 */
td,
th,
.badge,
.detail-btn,
.page-btn,
.attachment-count,
.nav-item,
.invoice-slide-track,
.status-pending,
.attachment-file-chip,
.backup-chip {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* 保存并重启按钮：中性浅黑灰，不抢眼 */
.settings-actions > .detail-btn {
    color: rgba(51, 65, 85, 0.92) !important;
    background: rgba(248, 250, 252, 0.7) !important;
    border-color: var(--lg-rim) !important;
    font-weight: 760;
}

.settings-actions > .detail-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #1f2937 !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
}


/* 用户管理标题栏右侧：开关 + 计数 */
.user-head-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reg-switch-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.reg-switch-row strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--lg-ink-soft);
}

.settings-brand-card {
    gap: 10px;
    padding: 16px 18px;
}

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

.settings-brand-card .settings-field {
    gap: 4px;
}

.settings-brand-card .settings-field > span {
    font-size: 11.5px;
}

.settings-brand-card .settings-field input {
    padding: 8px 10px;
    font-size: 13px;
}

@media (max-width: 760px) {
    .settings-brand-grid {
        grid-template-columns: 1fr;
    }
}

.settings-probe-card {
    gap: 10px;
    padding: 16px 18px;
    min-height: 312px;
    margin-top: -112px;
}

.probe-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lg-muted);
}

.probe-summary strong {
    font-size: 22px;
    line-height: 1;
    color: var(--lg-ink);
}

.probe-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 226px;
    overflow-y: auto;
    padding-right: 4px;
}

.probe-row {
    padding: 9px 10px;
    border-radius: var(--lg-r-sm);
    border: 1px solid rgba(148, 165, 196, 0.18);
    background: rgba(255, 255, 255, 0.36);
    box-shadow: var(--lg-spec-soft);
}

.probe-row-main,
.probe-row-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.probe-row-main strong,
.probe-row-main span,
.probe-row-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.probe-row-main strong {
    font-size: 13px;
    color: var(--lg-ink);
}

.probe-row-main span {
    font-size: 12px;
    font-weight: 700;
    color: var(--lg-ink-soft);
}

.probe-row-meta {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 650;
    color: var(--lg-muted);
}

.probe-empty {
    padding: 22px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--lg-muted);
}

@media (max-width: 980px) {
    .settings-probe-card {
        margin-top: 0;
    }
}

/* Case data structure: amount follows invoice and uses numeric alignment. */
.col-amount {
    width: 100px;
}

.amount-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.table-container:not(.download-mode):not(.user-mode):not(.system-mode) table {
    min-width: 1170px;
}

/* Case list columns: both 我的申请 and 我的案件 use the same focused 8-field view. */
.col-code {
    width: 126px;
}

.col-case-type {
    width: 150px;
}

.col-summary {
    width: 280px;
}

.col-customer-type {
    width: 132px;
}

.col-client {
    width: 260px;
}

.col-owner {
    width: 112px;
}

.col-coworker {
    width: 190px;
}

.col-attachment {
    width: 132px;
}

.col-expand {
    width: 112px;
}

.expand-header,
.expand-action-cell {
    text-align: center;
}

.case-row {
    cursor: default;
}

.case-expand-btn {
    min-width: 76px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--accent-color);
    padding: 7px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        0 8px 22px rgba(37, 99, 235, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.case-expand-btn:hover,
.case-expand-btn.active {
    transform: translateY(-1px);
    background: rgba(239, 248, 255, 0.92);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.96),
        0 10px 26px rgba(37, 99, 235, 0.14);
}

.table-container:not(.download-mode):not(.user-mode):not(.system-mode) table {
    min-width: 1390px;
}

.table-container:not(.download-mode):not(.user-mode):not(.system-mode) th:nth-child(n + 2),
.table-container:not(.download-mode):not(.user-mode):not(.system-mode) td:nth-child(n + 2) {
    display: table-cell !important;
}

/* Sidebar information architecture: filing, clients, finance, and management. */
.sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.24) transparent;
}

.brand-card {
    flex: 0 0 auto;
}

.nav-group {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.nav-title {
    padding-top: 7px;
    padding-bottom: 7px;
}

.nav-children {
    padding-top: 2px;
    padding-bottom: 2px;
}

.nav-item {
    min-height: 38px;
    padding-top: 9px;
    padding-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-item-compact {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
    color: #0f8b83;
    font-weight: 780;
}

.nav-item-coming-soon {
    color: rgba(71, 85, 105, 0.72);
}

.nav-item-coming-soon span {
    padding: 2px 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    color: rgba(100, 116, 139, 0.72);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-item-coming-soon:hover {
    color: rgba(47, 125, 241, 0.74);
}

.nav-group-management {
    margin-top: auto;
    padding-top: 5px;
}

#download-action-btn.has-packages::after {
    content: "有新附件";
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(47, 125, 241, 0.12);
    color: #2563eb;
    font-size: 9px;
    font-weight: 760;
}

@media (max-height: 760px) {
    .sidebar {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand-card {
        margin-bottom: 8px;
    }

    .nav-group {
        margin-bottom: 4px;
    }

    .nav-title {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .nav-item {
        min-height: 32px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .nav-item-coming-soon span {
        display: none;
    }
}

/* Sidebar polish: clearer grouping, consistent rhythm, and calmer active states. */
.sidebar {
    padding: 18px 14px 16px;
    gap: 0;
}

.brand-card {
    min-height: 96px;
    margin: 0 0 18px;
    padding: 18px 16px;
    border-radius: 24px;
}

.brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    font-size: 17px;
    line-height: 1.25;
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
}

.nav-group {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-stack {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 2px 0 8px;
}

.nav-title {
    min-height: 34px;
    padding: 5px 10px;
    justify-content: flex-start;
    gap: 10px;
    color: rgba(91, 108, 135, 0.78);
    font-size: 13px;
    font-weight: 760;
    letter-spacing: 0.02em;
}

.nav-title::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin: 0;
    background: #28bdb5;
    box-shadow: 0 0 0 5px rgba(40, 189, 181, 0.11);
}

.nav-label {
    display: block;
}

.nav-children {
    margin: 1px 0 0 13px;
    padding: 3px 0 3px 13px;
    border-left-color: rgba(40, 189, 181, 0.22);
}

.nav-item,
.nav-item-compact {
    min-height: 40px;
    margin: 3px 0;
    padding: 9px 12px 9px 14px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 13px;
    color: rgba(51, 65, 85, 0.75);
    font-size: 14px;
    font-weight: 680;
    line-height: 1.2;
}

.nav-item:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.42);
    color: #2563aa;
    transform: translateX(2px);
}

.nav-item.active {
    border-color: rgba(255, 255, 255, 0.82);
    border-left-color: #5aa7ff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(219, 238, 255, 0.48));
    box-shadow:
        inset 3px 0 0 rgba(47, 125, 241, 0.66),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 7px 18px rgba(47, 125, 241, 0.09);
    color: #1264c5;
}

.nav-item-coming-soon {
    color: rgba(71, 85, 105, 0.58);
}

.nav-item-coming-soon span {
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.48);
    font-size: 8px;
}

.nav-group-management {
    margin: 0;
    padding: 0;
    border-top: 0;
}

@media (max-height: 760px) {
    .sidebar {
        padding: 10px 12px;
    }

    .brand-card {
        min-height: 72px;
        margin-bottom: 8px;
        padding: 12px 14px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .nav-group {
        margin-bottom: 0;
    }

    .nav-stack {
        justify-content: space-between;
        padding: 0;
    }

    .nav-title {
        min-height: 27px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .nav-children {
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .nav-item,
    .nav-item-compact {
        min-height: 31px;
        margin: 1px 0;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .nav-group-management {
        padding-top: 0;
    }
}

/* Final filing-form layout override. */
.submit-board {
    max-width: 1040px;
    gap: 14px;
    padding: 20px;
}

.submit-head {
    padding: 16px 18px;
    border-radius: 14px;
}

.submit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.submit-field {
    min-width: 0;
    gap: 9px;
    padding: 14px;
    border-radius: 13px;
}

.submit-field.summary,
.submit-field.collaborators,
.submit-field.attachment {
    grid-column: 1 / -1;
}

.submit-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.submit-field-label em {
    color: rgba(37, 99, 235, 0.68);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.submit-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--lg-rim);
    border-radius: var(--lg-r-sm);
    padding: 9px 36px 9px 11px;
    color: var(--premium-ink);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--lg-spec-soft);
    font-size: 14px;
    font-weight: 720;
    outline: none;
    cursor: pointer;
}

.submit-field select:focus {
    border-color: rgba(47, 125, 241, 0.46);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 0 0 4px rgba(47, 125, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.submit-field.identity[hidden] {
    display: none;
}

.submit-field.identity small {
    color: var(--premium-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.submit-field.summary textarea {
    min-height: 112px;
}

.submit-actions {
    padding-top: 4px;
}

@media (max-width: 900px) {
    .submit-board {
        padding: 14px;
    }

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

    .submit-field.summary,
    .submit-field.collaborators,
    .submit-field.attachment {
        grid-column: auto;
    }
}

/* Submit mode is a form canvas, not a wide data table. */
.table-container.submit-mode {
    overflow-x: hidden;
}

.table-container.submit-mode table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.table-container.submit-mode tbody,
.table-container.submit-mode .submit-row,
.table-container.submit-mode .submit-row > td {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.table-container.submit-mode .submit-row > td {
    overflow: hidden;
}

.table-container.submit-mode .submit-board {
    width: calc(100% - 32px);
    max-width: 1040px;
    min-width: 0;
    gap: 10px;
    padding: 14px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.table-container.submit-mode .submit-head {
    padding: 12px 14px;
}

.table-container.submit-mode .submit-grid {
    gap: 10px;
}

.table-container.submit-mode .submit-field {
    gap: 6px;
    padding: 10px 12px;
}

.table-container.submit-mode .submit-field input,
.table-container.submit-mode .submit-field select,
.table-container.submit-mode .submit-user-search {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.table-container.submit-mode .submit-field.summary textarea {
    min-height: 82px;
}

.table-container.submit-mode .submit-head,
.table-container.submit-mode .submit-grid,
.table-container.submit-mode .submit-field {
    min-width: 0;
    max-width: 100%;
}

.table-container.submit-mode .submit-head > div {
    min-width: 0;
}

.table-container.submit-mode .download-section-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Finance workflow: compact case ledger with an inline invoice application form. */
.table-container.finance-mode table {
    min-width: 1030px !important;
    table-layout: fixed;
}

.table-container.finance-mode th:nth-child(n + 2),
.table-container.finance-mode td:nth-child(n + 2) {
    display: table-cell !important;
}

.col-finance-code {
    width: 92px;
}

.col-finance-summary {
    width: 150px;
}

.col-finance-title {
    width: 145px;
}

.col-finance-date {
    width: 105px;
}

.col-finance-amount {
    width: 95px;
}

.col-finance-tax {
    width: 160px;
}

.col-finance-id {
    width: 135px;
}

.col-finance-identifier {
    width: 0;
}

.col-finance-action {
    width: 102px;
}

#table-container.finance-mode col.col-finance-identifier,
#table-container.finance-mode th.finance-identifier-header,
#table-container.finance-mode td.finance-identifier-cell {
    display: none !important;
}

.finance-row td {
    height: 84px;
}

.finance-code-cell {
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

.finance-action-cell {
    text-align: center;
}

.finance-identifier-compact {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.finance-identifier-type {
    overflow: hidden;
    color: var(--premium-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-identifier-compact strong {
    overflow: hidden;
    color: var(--premium-ink-soft);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-record-expand-btn {
    min-width: 58px;
}

.invoice-apply-btn,
.invoice-approved-pill {
    min-width: 82px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(76, 145, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 22px rgba(55, 104, 177, 0.10);
    color: #0e6de7;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.invoice-apply-btn:hover {
    border-color: rgba(44, 125, 246, 0.46);
    background: rgba(239, 247, 255, 0.94);
    transform: translateY(-1px);
}

.invoice-apply-btn.pending {
    border-color: rgba(234, 162, 63, 0.32);
    color: #b97813;
}

.invoice-approved-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(24, 184, 159, 0.30);
    color: #078f7e;
    cursor: default;
}

.finance-detail-row > td {
    padding: 0 !important;
}

.finance-invoice-panel {
    margin: 14px 18px 20px 58px;
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-left: 5px solid #6aa8ff;
    border-radius: 22px;
    background:
        linear-gradient(128deg, rgba(255, 255, 255, 0.92), rgba(235, 246, 255, 0.76)),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(70, 107, 156, 0.13);
}

.finance-invoice-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.finance-invoice-kicker {
    color: #5c9bea;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.10em;
}

.finance-invoice-heading h3 {
    margin: 4px 0 0;
    color: var(--text-main);
    font-size: 22px;
}

.invoice-state {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(136, 154, 179, 0.12);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.invoice-state.pending {
    background: rgba(246, 177, 71, 0.14);
    color: #aa6d0b;
}

.invoice-state.readonly {
    background: rgba(24, 184, 159, 0.12);
    color: #078f7e;
}

.finance-invoice-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1.25fr) minmax(160px, 0.75fr) minmax(160px, 0.7fr);
    gap: 16px;
}

.finance-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.finance-field input {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(151, 177, 211, 0.24);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
    font: inherit;
    font-weight: 700;
}

.finance-field input:focus {
    border-color: rgba(61, 139, 244, 0.58);
    box-shadow: 0 0 0 4px rgba(76, 145, 255, 0.10);
}

.finance-field .finance-date-input {
    background-color: #ffffff;
    cursor: pointer;
}

.finance-date-wrap {
    width: 100%;
}

.finance-date-wrap .finance-date-wheel {
    width: 292px;
    padding: 14px;
    border-color: rgba(117, 154, 205, 0.26);
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(51, 81, 122, 0.20);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.finance-invoice-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.finance-invoice-panel.is-readonly {
    border-left-color: #39bfae;
}

.finance-invoice-panel.is-readonly .finance-field input {
    cursor: text;
    background: rgba(247, 251, 255, 0.82);
    color: #40526c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.finance-invoice-panel.is-readonly .finance-field input:focus {
    border-color: rgba(57, 191, 174, 0.36);
    box-shadow: 0 0 0 3px rgba(57, 191, 174, 0.08);
}

@media (max-width: 1320px) {
    .finance-invoice-grid {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
}

/* Expanded case summary: structured metadata above a full-width summary editor. */
.summary-edit-layout {
    display: grid;
    gap: 16px;
}

.summary-meta-grid {
    display: grid;
    grid-template-columns:
        minmax(130px, 0.72fr)
        minmax(220px, 1.22fr)
        minmax(220px, 1.35fr)
        minmax(170px, 0.9fr);
    gap: 14px;
    align-items: end;
}

.summary-edit-layout .edit-field {
    min-width: 0;
}

.summary-edit-layout .edit-field label {
    margin-bottom: 8px;
    font-weight: 800;
}

.summary-edit-layout .edit-field input,
.summary-edit-layout .edit-field select,
.summary-edit-layout .edit-field textarea {
    width: 100%;
    border: 1px solid var(--lg-rim);
    border-radius: var(--lg-r-sm);
    outline: none;
    background: rgba(255, 255, 255, 0.56);
    color: var(--text-main);
    padding: 10px 12px;
    font: inherit;
    box-shadow: var(--lg-spec-soft);
    transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.summary-edit-layout .edit-field input,
.summary-edit-layout .edit-field select {
    height: 44px;
}

.summary-edit-layout .edit-field select {
    cursor: pointer;
}

.summary-edit-layout .edit-field input:focus,
.summary-edit-layout .edit-field select:focus,
.summary-edit-layout .edit-field textarea:focus {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(47, 125, 241, 0.46);
    box-shadow: 0 0 0 4px rgba(47, 125, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.summary-edit-layout .edit-field input:disabled,
.summary-edit-layout .edit-field select:disabled,
.summary-edit-layout .edit-field textarea:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.summary-body-field textarea {
    min-height: 104px;
    resize: vertical;
    line-height: 1.65;
}

@media (max-width: 1280px) {
    .summary-meta-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

/* Compact case workspace: keep the full form usable without horizontal scrolling. */
.table-container:not(.download-mode):not(.user-mode):not(.submit-mode):not(.system-mode) {
    overflow-x: hidden;
}

.table-container:not(.download-mode):not(.user-mode):not(.submit-mode):not(.system-mode) table,
.table-container.finance-mode table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.table-container:not(.download-mode):not(.user-mode):not(.submit-mode):not(.system-mode) th {
    height: 52px;
    padding: 8px 10px;
    font-size: 13px;
}

.table-container:not(.download-mode):not(.user-mode):not(.submit-mode):not(.system-mode) td {
    padding-left: 10px;
    padding-right: 10px;
}

.col-code {
    width: 9%;
}

.col-case-type {
    width: 13%;
}

.col-summary {
    width: 19%;
}

.col-customer-type {
    width: 9%;
}

.col-client {
    width: 20%;
}

.col-owner {
    width: 9%;
}

.col-coworker {
    width: 8%;
}

.col-attachment {
    width: 10%;
}

.col-expand {
    width: 10%;
}

.finance-row td {
    height: 62px;
}

.finance-invoice-panel {
    margin: 8px 12px 12px 42px;
    padding: 16px 18px;
    border-radius: 18px;
}

.finance-invoice-heading {
    margin-bottom: 12px;
}

.finance-invoice-heading h3 {
    margin-top: 2px;
    font-size: 20px;
}

.finance-invoice-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 0.8fr);
    column-gap: 12px;
    row-gap: 10px;
}

.finance-field {
    gap: 5px;
    font-size: 12px;
}

.finance-field input {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
}

.finance-invoice-actions {
    margin-top: 12px;
}

.invoice-apply-btn,
.invoice-approved-pill {
    min-width: 78px;
    height: 34px;
    padding: 0 10px;
}

.detail-row .case-detail {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
}

.detail-row .detail-tabs {
    padding: 7px;
    gap: 4px;
}

.detail-row .detail-tab {
    min-height: 38px;
    padding: 8px 10px;
}

.detail-row .detail-panel {
    padding: 14px 16px;
}

.detail-row .edit-grid {
    gap: 12px;
}

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

@media (max-width: 1180px) {
    .table-container.submit-mode .submit-board {
        width: calc(100% - 24px);
        padding: 12px;
    }

    .table-container.submit-mode .submit-grid {
        grid-template-columns: 1fr;
    }

    .table-container.submit-mode .submit-field.summary,
    .table-container.submit-mode .submit-field.collaborators,
    .table-container.submit-mode .submit-field.attachment {
        grid-column: auto;
    }
}

/* Finance actions: iOS request switch and manager-only invoice-record controls. */
.col-finance-action {
    width: 148px;
}

.finance-invoice-switch {
    display: inline-flex;
    justify-content: center;
    min-height: 34px;
    gap: 8px;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.finance-row.invoice-expandable {
    cursor: pointer;
}

.finance-row.invoice-expandable:hover td {
    background-color: rgba(231, 246, 255, 0.38);
}

.finance-invoice-switch .ios-switch {
    width: 44px;
    height: 26px;
}

.finance-invoice-switch .ios-switch::after {
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
}

.finance-invoice-switch input:checked + .ios-switch::after {
    transform: translateX(18px);
}

.finance-invoice-switch strong {
    min-width: 38px;
    color: var(--premium-ink-soft);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.finance-invoice-switch input:checked ~ strong {
    color: #188a48;
}

.finance-invoice-switch input:disabled + .ios-switch {
    opacity: 0.58;
    cursor: wait;
}

.finance-record-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.invoice-record-btn {
    height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(72, 127, 204, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #2871cf;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.invoice-record-btn:hover {
    border-color: rgba(44, 125, 246, 0.42);
    background: rgba(239, 247, 255, 0.96);
    transform: translateY(-1px);
}

.invoice-record-btn.delete {
    border-color: rgba(220, 74, 74, 0.22);
    color: #c94a4a;
}

.invoice-record-btn.delete:hover {
    border-color: rgba(220, 74, 74, 0.42);
    background: rgba(255, 243, 243, 0.96);
}

.invoice-record-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.utility-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.utility-footer-actions .submit-status {
    max-width: 420px;
    margin-right: 4px;
    text-align: right;
}

.utility-footer-actions .detail-btn {
    min-height: 38px;
    padding: 8px 18px;
    white-space: nowrap;
}

.utility-footer-actions .submit-primary {
    min-width: 110px;
}

@media (max-width: 1180px) {
    .col-finance-action {
        width: 126px;
    }

    .finance-record-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .invoice-record-btn {
        height: 26px;
    }
}

/* Small laptops: merge the two mutually exclusive customer identifiers into
   one masked column; full values remain available in the expanded panel. */
@media (max-width: 1320px) {
    #table-container.finance-mode col.col-finance-tax,
    #table-container.finance-mode col.col-finance-id,
    #table-container.finance-mode th.finance-tax-header,
    #table-container.finance-mode th.finance-id-header,
    #table-container.finance-mode td.finance-tax-cell,
    #table-container.finance-mode td.finance-id-cell {
        display: none !important;
    }

    #table-container.finance-mode col.col-finance-identifier {
        display: table-column !important;
    }

    #table-container.finance-mode th.finance-identifier-header,
    #table-container.finance-mode td.finance-identifier-cell {
        display: table-cell !important;
    }

    #table-container.finance-mode th,
    #table-container.finance-mode td {
        padding-right: 7px;
        padding-left: 7px;
    }

    .table-container.finance-mode .col-select {
        width: 4%;
    }

    .table-container.finance-mode .col-finance-code {
        width: 9%;
    }

    .table-container.finance-mode .col-finance-summary {
        width: 15%;
    }

    .table-container.finance-mode .col-finance-title {
        width: 18%;
    }

    .table-container.finance-mode .col-finance-date {
        width: 12%;
    }

    .table-container.finance-mode .col-finance-amount {
        width: 11%;
    }

    .table-container.finance-mode .col-finance-identifier {
        width: 17%;
    }

    .table-container.finance-mode .col-finance-action {
        width: 14%;
    }

    .finance-invoice-panel {
        margin-right: 10px;
        margin-left: 10px;
    }

    .finance-invoice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .finance-invoice-heading {
        gap: 12px;
    }

    .finance-invoice-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .finance-date-wrap .finance-date-wheel {
        width: min(292px, calc(100vw - 64px));
    }
}

/* Case identity details and backup bulk actions. */
.summary-identity-strip {
    display: grid;
    grid-template-columns: minmax(150px, 0.68fr) repeat(2, minmax(260px, 1fr));
    gap: 10px;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(88, 132, 190, 0.18);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(238, 247, 255, 0.72), rgba(247, 252, 255, 0.48));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.summary-identity-title,
.summary-identity-item {
    min-width: 0;
    min-height: 62px;
    border-radius: 12px;
}

.summary-identity-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    color: #31557d;
}

.summary-identity-title span {
    font-size: 13px;
    font-weight: 850;
}

.summary-identity-title em {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    color: #167a73;
    background: rgba(20, 184, 166, 0.10);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.summary-identity-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.58);
}

.summary-identity-item.is-primary {
    border-color: rgba(47, 125, 241, 0.26);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(65, 110, 170, 0.08);
}

.summary-identity-item span {
    color: #7890ab;
    font-size: 11px;
    font-weight: 780;
}

.summary-identity-item strong {
    overflow: hidden;
    color: #1f314b;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 760;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-identity-item strong.is-empty {
    color: #a1afbf;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0;
}

.backup-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(67, 133, 210, 0.18);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(239, 248, 255, 0.76), rgba(245, 253, 251, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.backup-bulk-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.backup-bulk-copy strong {
    color: var(--premium-ink);
    font-size: 13px;
    font-weight: 860;
}

.backup-bulk-copy span {
    overflow: hidden;
    color: var(--premium-muted);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backup-bulk-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.backup-bulk-btn {
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #54708f;
    background: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 820;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.backup-bulk-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(47, 125, 241, 0.36);
}

.backup-bulk-btn.select-all {
    color: #1764d9;
    border-color: rgba(47, 125, 241, 0.25);
    background: rgba(239, 246, 255, 0.84);
}

.backup-bulk-btn.select-all.active {
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.30);
    background: rgba(236, 253, 245, 0.88);
}

.backup-bulk-btn:disabled {
    cursor: default;
    opacity: 0.52;
}

@media (max-width: 1280px) {
    .summary-identity-strip {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .summary-identity-title {
        grid-column: 1 / -1;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .summary-identity-strip {
        grid-template-columns: 1fr;
    }

    .summary-identity-title {
        grid-column: auto;
    }

    .backup-bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .backup-bulk-actions {
        width: 100%;
    }

    .backup-bulk-btn {
        flex: 1;
    }
}

/* Compact expanded-case workspace: preserve hierarchy while reducing panel height. */
.detail-row .case-detail {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
}

.detail-row .detail-tabs {
    gap: 2px;
    padding: 4px;
}

.detail-row .detail-tab {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 12px;
}

.detail-row .detail-panel {
    padding: 10px 12px;
}

.detail-row .summary-edit-layout {
    gap: 10px;
}

.detail-row .summary-meta-grid {
    gap: 10px;
}

.detail-row .summary-edit-layout .edit-field label {
    margin-bottom: 5px;
    font-size: 11px;
}

.detail-row .summary-edit-layout .edit-field input,
.detail-row .summary-edit-layout .edit-field select {
    height: 36px;
    padding: 6px 10px;
    border-radius: 11px;
    font-size: 13px;
}

.detail-row .summary-identity-strip {
    grid-template-columns: minmax(126px, 0.58fr) repeat(2, minmax(220px, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 13px;
}

.detail-row .summary-identity-title,
.detail-row .summary-identity-item {
    min-height: 50px;
    border-radius: 10px;
}

.detail-row .summary-identity-title {
    gap: 4px;
    padding: 7px 10px;
}

.detail-row .summary-identity-title span {
    font-size: 11px;
}

.detail-row .summary-identity-title em {
    padding: 2px 7px;
    font-size: 10px;
}

.detail-row .summary-identity-item {
    gap: 4px;
    padding: 7px 11px;
}

.detail-row .summary-identity-item span {
    font-size: 10px;
}

.detail-row .summary-identity-item strong {
    font-size: 12px;
}

.detail-row .summary-body-field textarea {
    min-height: 72px;
    max-height: 132px;
    padding: 9px 10px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
}

.detail-row .detail-actions {
    gap: 8px;
    margin-top: 8px;
}

.detail-row .detail-actions .detail-btn {
    min-height: 32px;
    padding: 6px 13px;
    font-size: 12px;
}

@media (max-width: 1280px) {
    .detail-row .summary-identity-strip {
        grid-template-columns: minmax(112px, 0.46fr) repeat(2, minmax(190px, 1fr));
    }

    .detail-row .summary-identity-title {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .detail-row .case-detail {
        grid-template-columns: 1fr;
    }

    .detail-row .detail-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-row .summary-identity-strip {
        grid-template-columns: 1fr;
    }
}

/* Owner autocomplete must open below the field instead of covering its label. */
.detail-row .owner-search-box {
    position: relative;
    isolation: isolate;
}

.detail-row .owner-suggest-list {
    top: calc(100% + 6px);
    bottom: auto;
    z-index: 700;
    max-height: 176px;
}
