:root{--bg: #f1f5f9;--surface: #ffffff;--surface-muted: #f8fafc;--border: #e2e8f0;--text: #0f172a;--text-muted: #64748b;--primary: #0f766e;--primary-hover: #0d9488;--primary-soft: #ccfbf1;--danger: #dc2626;--danger-soft: #fee2e2;--warning: #b45309;--warning-soft: #fef3c7;--success: #15803d;--success-soft: #dcfce7;--radius: 14px;--shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04)}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans TC,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}.num{font-variant-numeric:tabular-nums}.container{max-width:1120px;margin:0 auto;padding:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:16px;min-width:0;max-width:100%}.card h2,.card h3{margin:0 0 14px;letter-spacing:-.01em}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border-radius:8px;border:1px solid transparent;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-outline{background:#fff;border-color:var(--border);color:var(--text)}.btn-outline:hover:not(:disabled){background:var(--surface-muted)}.btn-danger{background:var(--danger);color:#fff}.btn-sm{padding:6px 10px;font-size:12px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;min-width:0;max-width:100%}.field label{font-size:13px;font-weight:600;color:var(--text-muted)}.field input,.field select,.field textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-size:15px;background:#fff;color:var(--text);transition:border-color .15s ease,box-shadow .15s ease}input[type=date],input[type=month]{max-width:100%;min-width:0;box-sizing:border-box;-webkit-appearance:none;appearance:none}.field input[type=date]{display:block;width:100%;min-height:42px;line-height:1.4}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #0f766e1f}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}@media(max-width:768px){.grid-2,.grid-3,.grid-4{grid-template-columns:minmax(0,1fr)}}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600}.badge-pending{background:var(--warning-soft);color:var(--warning)}.badge-verified{background:var(--success-soft);color:var(--success)}.badge-rejected{background:var(--danger-soft);color:var(--danger)}.badge-voided{background:#e2e8f0;color:#475569}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}th{font-size:12px;color:var(--text-muted);text-transform:uppercase;background:var(--surface-muted)}.alert{padding:12px 14px;border-radius:10px;font-size:14px;font-weight:500;margin-bottom:12px;border-left:4px solid transparent}.alert-error{background:var(--danger-soft);color:var(--danger);border-left-color:var(--danger)}.alert-warn{background:var(--warning-soft);color:var(--warning);border-left-color:var(--warning)}.alert-success{background:var(--success-soft);color:var(--success);border-left-color:var(--success)}tbody tr:hover{background:#f8fafc}.spinner{width:28px;height:28px;border:3px solid var(--primary-soft);border-top-color:var(--primary);border-radius:50%;animation:spin .75s linear infinite;flex-shrink:0}.spinner-lg{width:38px;height:38px;border-width:3.5px}@keyframes spin{to{transform:rotate(360deg)}}.loading-state-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px 16px;color:var(--text-muted);font-size:14px;font-weight:600;text-align:center}.workspace-loading-card{padding:48px 20px}.stat-card .stat-label{font-size:13px;color:var(--text-muted)}.stat-card .stat-value{font-size:24px;font-weight:700;margin-top:4px}.stat-card .stat-sub{font-size:12px;color:var(--text-muted);margin-top:4px}.stat-card.highlight{border-color:var(--primary);border-left:4px solid var(--primary);background:linear-gradient(135deg,#f0fdfa,#fff)}.camera-box{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0}.camera-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:8px;background:var(--primary-soft);color:var(--primary);font-weight:700;font-size:14px;cursor:pointer;border:1px dashed var(--primary)}.preview-thumb img{max-height:96px;border-radius:8px;border:1px solid var(--border)}.card-header-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.action-cell{display:flex;gap:6px}.ratio-input{width:72px;padding:4px 6px;border:1px solid var(--border);border-radius:6px;margin-right:6px}.empty-cell{text-align:center;color:var(--text-muted);padding:28px 16px}.empty-state{display:inline-flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-muted)}.muted{color:var(--text-muted)}.divider{border:0;border-top:1px solid var(--border);margin:18px 0}.date-pill-badge{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--primary-soft);color:var(--primary)}.chip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.quick-chip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border-radius:10px;border:1.5px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease}.quick-chip.active{border-color:var(--primary);background:#f0fdfa}.quick-chip .chip-title{font-weight:700;font-size:14px}.quick-chip .chip-sub{font-size:12px;color:var(--text-muted)}.segmented-group{display:flex;flex-wrap:wrap;gap:8px}.seg-btn{flex:1 1 140px;padding:10px 12px;border-radius:10px;border:1.5px solid var(--border);background:var(--surface);font-size:14px;font-weight:600;cursor:pointer}.seg-btn.active{border-color:var(--primary);background:var(--primary);color:#fff}.split-summary-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:8px;background:#f8fafc;border:1px solid var(--border);margin:10px 0;font-size:13px}.chip-row{display:flex;flex-wrap:wrap;gap:6px}.mini-chip{padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:13px;cursor:pointer}.mini-chip.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:700}.extras-toggle-row{margin:10px 0}.extras-panel{padding:12px;border-radius:10px;background:#f8fafc;border:1px solid var(--border);margin-bottom:10px}.date-quick-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-width:100%}.date-quick-row input[type=date]{flex:1 1 160px;width:100%;max-width:100%;min-width:0}.submit-income-btn{width:100%;padding:12px 16px;font-size:16px}.user-chip{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}.user-avatar,.user-avatar-fallback{width:28px;height:28px;border-radius:999px;flex-shrink:0}.user-avatar{object-fit:cover;border:1px solid var(--border)}.user-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:700}.user-avatar-sm{width:22px;height:22px;font-size:11px}.ledger-header{flex-wrap:wrap;margin-bottom:12px}.ledger-header h3{margin-bottom:0}.nav-backdrop{position:fixed;inset:0;background:#0f172a59;z-index:40}.nav-sheet{position:fixed;top:62px;right:max(16px,calc((100vw - 1120px)/2 + 16px));width:310px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 14px 36px #0f172a29;z-index:50;overflow:hidden}.sheet-handle-wrap{display:none}.sheet-profile{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--border);background:var(--surface-muted)}.sheet-profile-info{display:flex;align-items:center;gap:10px;min-width:0}.sheet-avatar{width:36px;height:36px;font-size:14px}.sheet-profile-text{display:flex;flex-direction:column;min-width:0}.sheet-profile-name-row{display:flex;align-items:center;gap:6px;font-size:14px}.sheet-profile-email{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-close-btn{border:0;background:transparent;color:var(--text-muted);font-size:15px;cursor:pointer;padding:4px 8px;border-radius:6px;flex-shrink:0}.sheet-list{display:flex;flex-direction:column;padding:6px}.sheet-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--text);text-align:left;cursor:pointer;transition:background .12s ease}.sheet-item-left{display:flex;align-items:center;gap:10px;min-width:0}.sheet-item-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:var(--surface-muted);color:var(--text-muted);flex-shrink:0}.sheet-item.active .sheet-item-icon{background:var(--primary-soft);color:var(--primary)}.sheet-item-icon-danger{background:var(--danger-soft);color:var(--danger)}.sheet-item:hover{background:var(--surface-muted)}.sheet-item.active{background:#f0fdfa;color:var(--primary)}.sheet-item-text{display:flex;flex-direction:column;gap:2px}.sheet-item-label{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:600}.sheet-item-desc{font-size:12px;color:var(--text-muted)}.sheet-badge{font-size:11px;padding:1px 7px}.sheet-chevron{font-size:18px;color:var(--text-muted);flex-shrink:0}.sheet-item.active .sheet-chevron{color:var(--primary);font-size:15px;font-weight:700}.sheet-divider{height:1px;background:var(--border);margin:6px 8px}.sheet-item-danger .sheet-item-label,.sheet-item-danger .sheet-chevron{color:var(--danger)}.sheet-item-danger:hover{background:var(--danger-soft)}@media(max-width:767px){.nav-backdrop{background:#0f172a85}.nav-sheet{position:fixed;inset:auto 0 0;width:100%;max-height:82vh;overflow-y:auto;border-radius:20px 20px 0 0;border:0;padding-bottom:calc(20px + env(safe-area-inset-bottom));animation:sheetSlideUp .22s ease-out}.sheet-handle-wrap{display:flex;justify-content:center;padding:10px 0 4px}.sheet-handle{width:40px;height:4px;border-radius:999px;background:#cbd5e1}.sheet-item{padding:13px 16px}}@keyframes sheetSlideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-backdrop{position:fixed;inset:0;background:#0f172ab3;display:flex;align-items:center;justify-content:center;padding:16px;z-index:60}.modal-box{background:#fff;padding:16px;border-radius:12px;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;gap:12px;align-items:center}.modal-box img{max-width:100%;max-height:75vh;border-radius:8px}.action-loading-overlay{position:fixed;inset:0;background:#0f172a6b;backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:70}.action-loading-card{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:210px;max-width:300px;padding:24px 28px;border-radius:16px;background:var(--surface);color:var(--text);font-size:14px;font-weight:600;text-align:center;box-shadow:0 18px 40px #0f172a38}
