:root{--brand: #e8435f;--brand-soft: #fdecef;--sidebar: #221d2e;--sidebar-active: #322a45;--bg: #f6f7f9;--card: #ffffff;--text: #2c2c36;--muted: #8b8f9c;--border: #eceef2;--radius: 10px;font-family:PingFang SC,Microsoft YaHei,Helvetica Neue,system-ui,sans-serif;color:var(--text);font-size:13px}*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{background:var(--bg)}button,input,select{font-family:inherit}a{text-decoration:none;color:inherit}.app-layout{display:flex;min-height:100vh}.app-sidebar{width:188px;flex:0 0 188px;background:var(--sidebar);color:#c9c5d5;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.app-main{flex:1;min-width:0;display:flex;flex-direction:column}.app-topbar{height:58px;flex:0 0 58px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:flex-end;padding:0 24px;gap:14px}.app-content{padding:20px 22px 32px;flex:1;min-width:0}.data-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:10px 14px;border-radius:var(--radius);background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:12px}.data-status.is-error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.data-placeholder{display:flex;flex-direction:column;align-items:center;gap:10px;padding:42px 16px;text-align:center}.data-placeholder-title{font-size:14px;font-weight:600}.brand{display:flex;align-items:center;gap:9px;padding:20px 18px 18px;color:#fff}.brand-mark{width:30px;height:30px;border-radius:9px;background:var(--brand);display:grid;place-items:center;font-size:16px;font-weight:700}.brand-name{font-size:14px;font-weight:600;letter-spacing:1px}.brand-sub{font-size:10px;color:#8f8a9e;margin-top:2px}.avatar{width:26px;height:26px;border-radius:50%;background:#3b3350;color:#fff;display:grid;place-items:center;font-size:12px}.sidebar-scroll{flex:1;overflow-y:auto;padding-bottom:12px}.sidebar-group-title{display:flex;align-items:center;gap:8px;width:100%;padding:9px 18px 9px 22px;color:inherit;font-size:12.5px;background:none;border:0;border-left:2px solid transparent;text-align:left;font-family:inherit;cursor:pointer}.sidebar-group-title:hover{background:#2b2438;color:#fff}.sidebar-group-title:focus-visible{outline:1px solid var(--brand);outline-offset:-2px}.sidebar-group-arrow{margin-left:auto;font-size:12.5px;line-height:1;transition:transform .24s ease}.sidebar-group-title.collapsed .sidebar-group-arrow{transform:rotate(-90deg)}.sidebar-link>span:first-child,.sidebar-group-title>span:first-child{flex:0 0 12px;width:12px;display:inline-flex;justify-content:center}.sidebar-sub{overflow:hidden;max-height:320px;opacity:1;visibility:visible;transition:max-height .24s ease,opacity .2s ease,visibility .24s}.sidebar-sub.collapsed{max-height:0;opacity:0;visibility:hidden}.sidebar-link{display:flex;align-items:center;gap:8px;padding:9px 18px 9px 22px;font-size:12.5px;border-left:2px solid transparent;cursor:pointer}.sidebar-link:hover{background:#2b2438;color:#fff}.sidebar-link.active{background:var(--sidebar-active);color:#fff;border-left-color:var(--brand)}.sidebar-sub .sidebar-link{padding-left:42px;font-size:12.5px}.sidebar-footer{padding:14px 18px;font-size:10px;color:#6d687c;line-height:1.7}.topbar-user{display:flex;align-items:center;gap:8px;font-size:12px}.link-button{background:none;border:none;color:var(--muted);cursor:pointer;font-size:12px}.link-button:hover{color:var(--brand)}.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px;gap:16px}.page-title{font-size:19px;font-weight:600;margin:0 0 4px}.page-subtitle{color:var(--muted);font-size:12px;margin:0}.page-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.card-title{font-size:13px;font-weight:600;margin:0 0 14px;display:flex;justify-content:space-between;align-items:center}.card-note{font-size:11px;color:var(--muted);font-weight:400}.grid{display:grid;gap:14px}.muted{color:var(--muted)}.text-brand{color:var(--brand)}.btn{border:1px solid var(--border);background:#fff;color:var(--text);border-radius:6px;padding:7px 13px;font-size:12px;cursor:pointer}.btn:hover{border-color:var(--brand);color:var(--brand)}.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn-primary:hover{background:#d73552;color:#fff}.btn-ghost{background:transparent;border-color:transparent}.btn-sm{padding:4px 8px;font-size:11px}.btn-danger{color:#e0453f}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;margin-bottom:12px}.tool-input,.tool-select,.tool-date{height:30px;border:1px solid var(--border);border-radius:6px;padding:0 9px;font-size:12px;color:var(--text);background:#fff;outline:none}.tool-input:focus,.tool-select:focus,.tool-date:focus{border-color:var(--brand)}.tool-input{width:210px}.tool-select{min-width:108px}.tool-date{width:132px}.tool-count{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}.pill-tabs{display:inline-flex;gap:4px}.pill-tab{border:1px solid var(--border);background:#fff;color:#666;border-radius:16px;padding:6px 13px;font-size:12px;cursor:pointer}.pill-tab.active{background:var(--brand);border-color:var(--brand);color:#fff}.segmented{display:inline-flex;border:1px solid var(--border);border-radius:6px;overflow:hidden}.segmented button{border:none;background:#fff;padding:5px 10px;font-size:11px;cursor:pointer;color:#666}.segmented button.active{background:var(--brand-soft);color:var(--brand);font-weight:600}.table-wrap{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto}table.data-table{border-collapse:collapse;width:100%;min-width:100%;font-size:12px;white-space:nowrap}.data-table th{background:#fafbfc;color:#8a8e99;font-weight:500;text-align:left;padding:10px 12px;border-bottom:1px solid var(--border)}.data-table td{padding:10px 12px;border-bottom:1px solid #f2f3f6;color:#444}.data-table tbody tr:hover{background:#fcfafb}.data-table tbody tr:last-child td{border-bottom:none}.data-table .cell-clip{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.data-table .cell-money{font-variant-numeric:tabular-nums}.data-table .cell-ops{display:flex;gap:10px}.data-table .cell-empty{color:var(--muted)}.row-check{width:14px;height:14px;accent-color:var(--brand)}.data-table-box{display:flex;flex-direction:column;min-width:0}.data-table-box.has-pager>.table-wrap{flex:1;min-height:0;overflow:auto;border-bottom:none;border-radius:var(--radius) var(--radius) 0 0}.table-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:#fff;border:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);font-size:12px}.table-pager .tool-count{margin-left:0}.table-pager .pager-buttons{display:flex;align-items:center;gap:8px;white-space:nowrap}.table-pager button:disabled{opacity:.45;cursor:not-allowed}.data-table.is-frozen{border-collapse:separate;border-spacing:0;table-layout:fixed}.data-table.is-frozen th,.data-table.is-frozen td{overflow:hidden;text-overflow:ellipsis}.data-table .frozen-cell{position:sticky;z-index:2;background:#fff}.data-table th.frozen-cell{background:#fafbfc;z-index:3}.data-table tbody tr:hover .frozen-cell{background:#fcfafb}.data-table .frozen-left-edge{box-shadow:2px 0 5px #1c182812}.data-table .frozen-right-edge{box-shadow:-2px 0 5px #1c182812}.tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;line-height:1.6}.tag-red{background:#fdecef;color:#e8435f}.tag-blue{background:#eaf2ff;color:#3f7ee8}.tag-green{background:#e8f7ee;color:#27a463}.tag-orange{background:#fff2e4;color:#e78b28}.tag-purple{background:#f2ecff;color:#7b5cd6}.tag-grey{background:#f1f2f5;color:#858a95}.thumb{width:26px;height:26px;border-radius:6px;display:inline-grid;place-items:center;font-size:14px;background:#f4f0f2}.thumb-img{width:26px;height:26px;border-radius:6px;object-fit:cover;display:block;background:#f4f0f2}.kpi-label{font-size:12px;color:var(--muted)}.kpi-value{font-size:26px;font-weight:600;margin:8px 0 4px;letter-spacing:-.5px}.kpi-foot{font-size:11px;color:var(--muted)}.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.kpi-mini{border:1px solid var(--border);border-radius:8px;padding:12px}.kpi-mini .kpi-value{font-size:20px;margin:6px 0 0}.chart{width:100%;height:220px}.chart-sm{height:180px}.chart-lg{height:240px}.empty-state{text-align:center;padding:46px 20px;color:var(--muted)}.empty-icon{width:46px;height:46px;border-radius:14px;background:#f1f2f5;margin:0 auto 14px;display:grid;place-items:center;font-size:20px}.empty-title{color:var(--text);font-size:14px;margin-bottom:6px}.empty-desc{font-size:12px;line-height:1.8}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.calendar-week{color:var(--muted);font-size:10px;padding:4px 0}.calendar-day{position:relative;padding:5px 0;font-size:11px;border-radius:6px;cursor:pointer}.calendar-day:hover{background:#f6f6f8}.calendar-day.outside{color:#c9ccd3}.calendar-day.today{background:var(--brand);color:#fff;font-weight:600}.calendar-day.selected:not(.today){background:var(--brand-soft);color:var(--brand)}.calendar-dot{position:absolute;left:50%;bottom:1px;width:3px;height:3px;border-radius:50%;background:var(--brand);transform:translate(-50%)}.list-item{padding:10px 0;border-bottom:1px solid #f2f3f6;font-size:12px}.list-item:last-child{border-bottom:none}.list-item-title{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px}.list-item-desc{color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}.form-item{display:flex;flex-direction:column;gap:5px;font-size:12px}.form-item label{color:var(--muted)}.form-item input,.form-item select,.form-item textarea{border:1px solid var(--border);border-radius:6px;padding:7px 9px;font-size:12px;outline:none}.form-item input:focus,.form-item select:focus,.form-item textarea:focus{border-color:var(--brand)}.form-full{grid-column:1 / -1}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(160deg,#fbfafd,#f6f7fa 60%,#fdf1f3)}.login-card{width:340px;background:#fff;border-radius:14px;box-shadow:0 18px 50px #261e3c14;padding:30px 28px}.login-mark{width:40px;height:40px;border-radius:12px;background:var(--sidebar);color:#fff;display:grid;place-items:center;font-size:20px;margin-bottom:18px}.login-title{font-size:19px;font-weight:600;margin:0 0 6px}.login-sub{color:var(--muted);font-size:12px;margin:0 0 24px}.login-field{margin-bottom:14px}.login-field label{display:block;color:#777;font-size:12px;margin-bottom:6px}.login-input{width:100%;height:38px;border:1px solid var(--border);border-radius:7px;padding:0 11px;font-size:13px;outline:none}.login-input:focus{border-color:var(--brand)}.login-code{display:flex;gap:8px}.login-code .login-input{flex:1}.login-primary{width:100%;height:40px;border:none;border-radius:7px;background:var(--brand);color:#fff;font-size:13px;cursor:pointer;margin-top:6px}.login-primary:hover{background:#d73552}.login-primary:disabled{opacity:.65;cursor:not-allowed}.login-divider{text-align:center;color:#b4b7c0;font-size:11px;margin:20px 0 12px;position:relative}.login-wechat{width:100%;height:38px;border:1px solid var(--border);border-radius:7px;background:#fff;cursor:pointer;font-size:12px}.login-tip{color:#a5a8b2;font-size:10.5px;line-height:1.8;margin:18px 0 0;text-align:center}.role-note{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;margin-top:14px;color:#858a95;font-size:11px;line-height:1.9}.master-card{display:flex;align-items:center;gap:14px}.master-avatar{width:42px;height:42px;border-radius:50%;background:var(--sidebar);color:#fff;display:grid;place-items:center;font-size:16px}.master-name{font-size:14px;font-weight:600}.section-title{font-size:12px;color:var(--muted);margin:18px 0 10px}.dialog-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#1c182861;display:grid;place-items:center;z-index:50;padding:20px}.dialog-box{background:#fff;border-radius:12px;width:min(560px,96vw);max-height:88vh;overflow:auto;padding:20px}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;font-size:15px;font-weight:600}.dialog-close{border:none;background:none;cursor:pointer;font-size:18px;color:var(--muted)}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.photo-tile{height:74px;border-radius:8px;background:linear-gradient(135deg,#f7dfe6,#efe6f8);display:grid;place-items:center;font-size:24px}.signature-box{border:1px dashed #cfd2da;border-radius:8px;height:90px;display:grid;place-items:center;color:var(--muted);font-size:12px}.signature-done{color:#27a463;font-size:24px;font-family:cursive}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%);background:#2c2738;color:#fff;padding:9px 18px;border-radius:20px;font-size:12px;z-index:100}.detail-image-strip{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 4px}.detail-image-item{width:96px;height:96px;object-fit:cover;border-radius:8px;border:1px solid var(--border);background:#f4f0f2;cursor:zoom-in;transition:transform .15s ease,box-shadow .15s ease}.detail-image-item:hover{transform:scale(1.04);box-shadow:0 4px 14px #00000024}.lightbox-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#120e1cb8;display:grid;place-items:center;padding:24px;z-index:90;cursor:zoom-out}.lightbox-img{max-width:min(1100px,92vw);max-height:88vh;object-fit:contain;border-radius:10px;background:#fff;box-shadow:0 18px 60px #0006}.lightbox-close{position:absolute;top:18px;right:24px;z-index:91;border:none;background:#ffffff1f;color:#fff;font-size:26px;line-height:1;border-radius:50%;width:40px;height:40px;cursor:pointer}.lightbox-close:hover{background:#ffffff38}.settings-overview{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-bottom:14px}.settings-card{margin-bottom:14px}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px 18px}.settings-field{display:flex;flex-direction:column;gap:6px;font-size:12px}.settings-field label{color:var(--text);font-weight:500}.settings-field .muted{font-size:11px;font-weight:400}.settings-field .tool-select{width:100%}.settings-role-notes{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:11px;color:var(--muted);margin-bottom:16px}.settings-role-notes strong{color:var(--text);font-weight:600}.settings-perm-block{margin-bottom:14px}.settings-perm-group{font-size:12px;font-weight:600;margin-bottom:8px}.settings-perm-group .muted{font-weight:400}.settings-perm-table{white-space:normal}.settings-perm-table th:not(:first-child),.settings-perm-table td:not(:first-child){width:110px;text-align:center}.settings-dict-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.settings-dict{border:1px solid var(--border);border-radius:8px;padding:12px}.settings-dict-head{display:flex;justify-content:space-between;font-size:12px;font-weight:600;margin-bottom:10px}.settings-dict-options{display:flex;flex-wrap:wrap;gap:6px;max-height:118px;overflow:auto}.settings-switch{display:flex;align-items:flex-start;gap:9px;padding:10px 0;border-bottom:1px solid #f2f3f6;font-size:12px}.settings-switch:last-child{border-bottom:none}.settings-switch .row-check{margin-top:1px}.settings-switch .muted{display:block;margin-top:3px;font-size:11px}
