@charset "UTF-8";*{margin:0;-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;height:100%}body{overflow-x:hidden;font-size:16px}uni-app,uni-page,uni-page-wrapper,uni-page-body{display:block;box-sizing:border-box;width:100%}uni-page-wrapper{position:relative}#app,uni-app,uni-page,uni-page-wrapper{height:100%}.uni-mask{position:fixed;z-index:999;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.5)}.uni-fade-enter-active,.uni-fade-leave-active{transition-duration:.25s;transition-property:opacity;transition-timing-function:ease}.uni-fade-enter-from,.uni-fade-leave-active{opacity:0}.uni-loading,uni-button[loading]:before{background-color:transparent;background-image:url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=);background-repeat:no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}html{--primary-color: #007aff;--UI-BG: #fff;--UI-BG-1: #f7f7f7;--UI-BG-2: #fff;--UI-BG-3: #f7f7f7;--UI-BG-4: #4c4c4c;--UI-BG-5: #fff;--UI-FG: #000;--UI-FG-0: rgba(0, 0, 0, .9);--UI-FG-HALF: rgba(0, 0, 0, .9);--UI-FG-1: rgba(0, 0, 0, .5);--UI-FG-2: rgba(0, 0, 0, .3);--UI-FG-3: rgba(0, 0, 0, .1)}uni-page[data-type] uni-page-body{background-color:transparent}body:after{position:fixed;content:"";left:-1000px;top:-1000px;animation:shadow-preload .1s;animation-delay:3s}@keyframes shadow-preload{0%{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}to{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}}.uni-async-error{position:absolute;left:0;right:0;top:0;bottom:0;color:#999;padding:100px 10px;text-align:center}.uni-async-loading{box-sizing:border-box;width:100%;padding:50px;text-align:center}.uni-async-loading .uni-loading{width:30px;height:30px}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:#17322b;background:#eef3f1;--clinic-green: #176b57;--clinic-green-deep: #115243;--clinic-green-soft: #e9f5f0;--accent: #2f6f9f;--accent-hover: #265e87;--accent-soft: #edf4f9;--sidebar-bg: #155d4d;--sidebar-text: #fff;--sidebar-muted: #bdd7ce;--sidebar-active-bg: #fff;--sidebar-active-text: #124f42;--sidebar-border: rgba(220, 239, 232, .18);--surface: #fff;--surface-soft: #f6f9f8;--surface-hover: #f0f5f3;--page-bg: #eef3f1;--topbar-bg: rgba(255, 255, 255, .96);--border: #dbe4e0;--border-strong: #bdccc6;--text: #17322b;--text-secondary: #596f67;--text-muted: #7b8e86;--success: #1f7a57;--success-soft: #eaf6f0;--success-border: #acd5c3;--danger: #b64040;--danger-soft: #fbeeee;--danger-border: #e5b3b3;--warning: #8d5b10;--warning-soft: #fff5df;--warning-border: #e2c47f;--focus-ring: rgba(47, 111, 159, .17);--shadow: 0 8px 24px rgba(31, 63, 52, .06);--shadow-raised: 0 18px 48px rgba(26, 53, 45, .15);--overlay: rgba(19, 43, 36, .48);--tooltip-bg: #1d302a;--tooltip-text: #fff}*{box-sizing:border-box}body{min-width:320px;margin:0;background:var(--page-bg)}uni-button:after{border:0}.content-area,.wd-popup{-webkit-user-select:text;-moz-user-select:text;user-select:text}.content-area uni-text,.wd-popup uni-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.content-area .wd-button,.content-area .wd-button *,.content-area .wd-segmented,.content-area .wd-segmented *,.content-area .wd-picker,.content-area .wd-picker *,.content-area .wd-radio,.content-area .wd-radio *,.content-area .wd-switch,.content-area .wd-switch *,.content-area .wd-tag,.content-area .wd-tag *,.wd-popup .wd-button,.wd-popup .wd-button *,.wd-popup .wd-picker,.wd-popup .wd-picker *,.wd-popup .wd-radio,.wd-popup .wd-radio *,.wd-popup .wd-switch,.wd-popup .wd-switch *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mobile-popup-action{display:none!important}.feedback-toast{position:fixed;top:88px;left:50%;z-index:100;max-width:min(480px,calc(100vw - 32px));padding:12px 20px;border:1px solid transparent;border-radius:7px;color:#fff;box-shadow:var(--shadow-raised);transform:translate(-50%);font-size:13px;line-height:1.5;text-align:center}.feedback-error{border-color:#d05454;background:#bd3e3e}.feedback-warning{border-color:#dca326;color:#4a350a;background:#f2c037}.feedback-success{border-color:#318962;background:#277657}.primary-action,.secondary-action,.text-button,.danger-action{display:inline-flex;align-items:center;justify-content:center;line-height:1.2}.clinic-danger-action,.clinic-danger-action .wd-button__text{color:var(--danger)!important}.clinic-warning-action,.clinic-warning-action .wd-button__text{color:var(--warning)!important}.clinic-success-action,.clinic-success-action .wd-button__text{color:var(--success)!important}@media (max-width:760px){.clinic-mobile-action{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:40px!important;margin:0!important;padding:0 10px!important;border:1px solid var(--border)!important;border-radius:6px!important;background:var(--surface-soft)!important;justify-content:center!important}.clinic-mobile-action .wd-button__content,.clinic-mobile-action .wd-button__text{display:flex!important;align-items:center!important;justify-content:center!important}.clinic-mobile-action-grid{display:grid!important;width:100%;grid-template-columns:repeat(auto-fit,minmax(62px,1fr));align-items:stretch;gap:8px}.clinic-mobile-action-grid>.wd-button{box-sizing:border-box;width:100%!important;min-width:0!important;margin:0!important}}.app-root{min-height:100vh;color:var(--text);background:var(--page-bg);transition:color .18s ease,background-color .18s ease}.app-root[data-theme=clinic]{--clinic-green:#176b57;--clinic-green-deep:#115243;--clinic-green-soft:#e9f5f0;--accent:#2f6f9f;--accent-hover:#265e87;--accent-soft:#edf4f9;--sidebar-bg:#155d4d;--sidebar-text:#fff;--sidebar-muted:#bdd7ce;--sidebar-active-bg:#fff;--sidebar-active-text:#124f42;--sidebar-border:rgba(220,239,232,.18);--surface:#fff;--surface-soft:#f6f9f8;--surface-hover:#f0f5f3;--page-bg:#eef3f1;--topbar-bg:rgba(255,255,255,.96);--border:#dbe4e0;--border-strong:#bdccc6;--text:#17322b;--text-secondary:#596f67;--text-muted:#7b8e86;--success:#1f7a57;--success-soft:#eaf6f0;--success-border:#acd5c3;--danger:#b64040;--danger-soft:#fbeeee;--danger-border:#e5b3b3;--warning:#8d5b10;--warning-soft:#fff5df;--warning-border:#e2c47f;--focus-ring:rgba(47,111,159,.17);--shadow:0 8px 24px rgba(31,63,52,.06);--shadow-raised:0 18px 48px rgba(26,53,45,.15);--overlay:rgba(19,43,36,.48);--tooltip-bg:#1d302a;--tooltip-text:#fff}.app-root[data-theme=bright]{--clinic-green:#2b6f83;--clinic-green-deep:#225b6d;--clinic-green-soft:#eaf4f6;--accent:#2478bf;--accent-hover:#1c65a2;--accent-soft:#edf5fb;--sidebar-bg:#fff;--sidebar-text:#1b3b52;--sidebar-muted:#668092;--sidebar-active-bg:#eaf4fb;--sidebar-active-text:#1d6599;--sidebar-border:#d8e5ed;--surface:#fff;--surface-soft:#f5f8fb;--surface-hover:#edf4f8;--page-bg:#edf3f7;--topbar-bg:rgba(255,255,255,.96);--border:#d7e2e9;--border-strong:#b9cbd7;--text:#1b3549;--text-secondary:#5b7181;--text-muted:#7b8f9d;--success:#26775d;--success-soft:#e9f6f0;--success-border:#add7c6;--danger:#b64040;--danger-soft:#fbeeee;--danger-border:#e5b3b3;--warning:#8d5b10;--warning-soft:#fff5df;--warning-border:#e2c47f;--focus-ring:rgba(36,120,191,.17);--shadow:0 8px 24px rgba(32,73,103,.065);--shadow-raised:0 18px 48px rgba(21,54,79,.15);--overlay:rgba(18,42,58,.48);--tooltip-bg:#1d3343;--tooltip-text:#fff}.app-root[data-theme=warm]{--clinic-green:#a85348;--clinic-green-deep:#81423a;--clinic-green-soft:#faeeeb;--accent:#316b91;--accent-hover:#285b7c;--accent-soft:#edf4f8;--sidebar-bg:#874b45;--sidebar-text:#fff;--sidebar-muted:#ebcbc6;--sidebar-active-bg:#fff;--sidebar-active-text:#7a413b;--sidebar-border:rgba(255,231,226,.2);--surface:#fff;--surface-soft:#faf7f6;--surface-hover:#f6f0ee;--page-bg:#f3efee;--topbar-bg:rgba(255,255,255,.96);--border:#e4d9d6;--border-strong:#cfbbb6;--text:#392d2a;--text-secondary:#70605c;--text-muted:#8e7d78;--success:#31745a;--success-soft:#eaf5ef;--success-border:#b0d4c4;--danger:#b44444;--danger-soft:#fbeeee;--danger-border:#e4b3b3;--warning:#8b5d19;--warning-soft:#fff4de;--warning-border:#dfc27e;--focus-ring:rgba(49,107,145,.17);--shadow:0 8px 24px rgba(83,52,46,.065);--shadow-raised:0 18px 48px rgba(67,41,36,.16);--overlay:rgba(52,33,29,.5);--tooltip-bg:#392d2a;--tooltip-text:#fff}.app-root[data-theme=heritage]{--clinic-green:#1e6253;--clinic-green-deep:#174b40;--clinic-green-soft:#e8f2ee;--accent:#a66f22;--accent-hover:#895a18;--accent-soft:#f8f1e6;--sidebar-bg:#183f38;--sidebar-text:#f7fbf9;--sidebar-muted:#b8d0c8;--sidebar-active-bg:#f4f8f6;--sidebar-active-text:#173f37;--sidebar-border:rgba(222,239,233,.18);--surface:#fff;--surface-soft:#f5f7f6;--surface-hover:#edf2f0;--page-bg:#edf2f0;--topbar-bg:rgba(255,255,255,.96);--border:#d6e0dc;--border-strong:#bacbc4;--text:#20352f;--text-secondary:#60736c;--text-muted:#7d9089;--success:#247457;--success-soft:#e8f5ef;--success-border:#acd4c2;--danger:#b44141;--danger-soft:#fbeeee;--danger-border:#e4b3b3;--warning:#8d5b10;--warning-soft:#fff5df;--warning-border:#e1c27e;--focus-ring:rgba(166,111,34,.18);--shadow:0 8px 24px rgba(26,63,53,.065);--shadow-raised:0 18px 48px rgba(18,48,40,.16);--overlay:rgba(11,38,32,.5);--tooltip-bg:#20352f;--tooltip-text:#fff}.app-root[data-theme=night]{--clinic-green:#8ab6a6;--clinic-green-deep:#a3c8ba;--clinic-green-soft:#30413c;--accent:#7699ad;--accent-hover:#89aabd;--accent-soft:#2f3f47;--sidebar-bg:#1c2523;--sidebar-text:#d9e5e0;--sidebar-muted:#92a49e;--sidebar-active-bg:#33443f;--sidebar-active-text:#e1ebe7;--sidebar-border:#34433f;--surface:#27322f;--surface-soft:#2d3a36;--surface-hover:#33413d;--page-bg:#202825;--topbar-bg:rgba(39,50,47,.97);--border:#3b4945;--border-strong:#4d5e58;--text:#d8e2de;--text-secondary:#a9b8b2;--text-muted:#84958f;--success:#8bc1aa;--success-soft:#2e4039;--success-border:#49675c;--danger:#dfa6a6;--danger-soft:#402f2f;--danger-border:#735050;--warning:#d6b97f;--warning-soft:#403a2d;--warning-border:#6d623f;--focus-ring:rgba(118,153,173,.22);--shadow:0 10px 26px rgba(5,10,9,.14);--shadow-raised:0 18px 48px rgba(3,7,6,.34);--overlay:rgba(7,11,10,.66);--tooltip-bg:#e0e7e4;--tooltip-text:#22302c}.app-shell{display:flex;min-height:100vh;color:var(--text);background:var(--page-bg)}.sidebar{position:sticky;top:0;width:232px;height:100vh;flex:0 0 232px;display:flex;flex-direction:column;padding:22px 13px 16px;background:var(--sidebar-bg);color:var(--sidebar-text);border-right:1px solid var(--sidebar-border)}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 9px 20px;border-bottom:1px solid var(--sidebar-border)}.brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border:1px solid var(--border-strong);border-radius:8px;background:var(--sidebar-active-bg);color:var(--sidebar-active-text);font-size:20px;font-weight:800;line-height:1}.sidebar-title,.sidebar-subtitle,.nav-label,.nav-hint,.user-name,.user-role,.metric-label,.metric-value,.metric-note,.section-title,.section-copy{display:block}.sidebar-title{font-size:16px;font-weight:750;line-height:1.3}.sidebar-subtitle{margin-top:4px;color:var(--sidebar-muted);font-size:10px;line-height:1.4}.sidebar-nav{display:grid;gap:15px;padding-top:18px}.nav-group{display:grid;gap:4px}.nav-group-label{padding:0 11px 5px;color:var(--sidebar-muted);font-size:9px;font-weight:750;letter-spacing:0;opacity:.72}.nav-item{position:relative;width:100%;min-height:50px;border-radius:7px;color:var(--sidebar-text);background:transparent;text-align:left;transition:background-color .16s ease,color .16s ease}.nav-item:hover{color:#fff;background:rgba(255,255,255,.08)}.nav-item.active{color:var(--sidebar-active-text);background:var(--sidebar-active-bg);box-shadow:var(--shadow)}.nav-item.active:before{position:absolute;top:14px;bottom:14px;left:6px;width:3px;border-radius:3px;background:var(--accent);content:""}.nav-label{font-size:13px;font-weight:700;line-height:1.35}.nav-hint{margin-top:4px;color:var(--sidebar-muted);opacity:.82;font-size:10px;line-height:1.35}.nav-copy{min-width:0}.nav-icon{display:flex;align-items:center;justify-content:center;color:currentColor}.nav-item.active .nav-hint{color:var(--text-secondary)}.app-root[data-theme=bright] .nav-item:hover{color:var(--sidebar-active-text);background:var(--surface-soft)}.sidebar-foot{display:flex;align-items:center;gap:8px;margin-top:auto;padding:15px 10px 2px;border-top:1px solid var(--sidebar-border);color:var(--sidebar-muted);font-size:10px}.sidebar-status-dot{width:7px;height:7px;border-radius:50%;background:#72d6a9;box-shadow:0 0 0 3px rgba(114,214,169,.12)}.main-area{flex:1;min-width:0}.topbar{position:sticky;top:0;z-index:5;height:72px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--topbar-bg);color:var(--text-secondary);font-size:12px;backdrop-filter:blur(12px)}.topbar-context{color:var(--clinic-green);font-weight:700}.topbar-divider{padding:0 9px;color:#b8c9c2}.account-menu-wrap{position:relative;flex:0 0 auto;min-width:0}.account-menu-wrap .wd-popover,.account-menu-wrap .wd-popover__target{display:block}.topbar-actions{display:flex;align-items:center;gap:14px}.user-chip{display:flex;align-items:center;gap:10px}.user-trigger{position:relative;z-index:32;width:auto;min-width:168px;min-height:54px;overflow:visible;padding:6px 10px 6px 7px;border:1px solid transparent;border-radius:7px;color:inherit;background:transparent;text-align:left;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.user-trigger .wd-button__content{width:100%;min-height:40px;height:auto;overflow:visible;display:flex;align-items:center;justify-content:flex-start;gap:9px}.user-trigger{display:flex!important;align-items:center}.user-trigger{color:var(--text-secondary)}.user-trigger:hover{border-color:var(--border);background:var(--surface-hover)}.user-trigger[aria-expanded=true]{border-color:var(--border-strong);background:var(--surface-soft);box-shadow:var(--shadow)}.user-avatar{position:relative;display:flex;flex:0 0 36px;align-items:center;justify-content:center;width:36px;height:36px;overflow:visible;border:1px solid var(--clinic-green-deep);border-radius:8px;color:#fff;background:var(--clinic-green);box-shadow:inset 0 1px rgba(255,255,255,.16)}.user-avatar-mark{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:16px;font-weight:750;line-height:1;text-align:center}.user-status-dot{position:absolute;right:-2px;bottom:-2px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#28a56f}.user-copy{display:grid;flex:1 1 0;min-width:0;overflow:hidden;gap:3px;text-align:left}.user-name{max-width:112px;overflow:hidden;color:var(--text);font-size:12px;font-weight:700;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.user-role{display:block;margin-top:0;overflow:hidden;color:var(--text-muted);font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.menu-chevron{display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--text-muted);font-size:14px;line-height:1;transition:transform .16s ease}.user-trigger[aria-expanded=true] .menu-chevron{transform:rotate(180deg)}.account-menu{width:190px;padding:6px;border:1px solid var(--border);border-radius:7px;background:var(--surface);box-shadow:var(--shadow)}.logout-menu-item{width:100%;min-height:48px;justify-content:flex-start;gap:8px;padding:8px 10px;border:0;border-radius:5px;color:var(--clinic-green);background:var(--clinic-green-soft);text-align:left}.logout-menu-item:hover{background:var(--surface-hover)}.logout-menu-item uni-text{display:block;font-size:13px;font-weight:700}.account-error{margin:12px 32px 0;padding:10px 12px;border:1px solid var(--danger-border);border-radius:6px;color:var(--danger);background:var(--danger-soft);font-size:12px}.content-area{padding:28px 32px 52px}.panel-page{width:100%;max-width:none;margin:0}.page-head{display:flex;min-height:72px;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:20px}.page-head>uni-view{min-width:0}.eyebrow{display:block;margin-bottom:7px;color:var(--clinic-green);font-size:11px;font-weight:750}.page-title{display:block;margin-bottom:7px;color:var(--text);font-size:24px;line-height:1.25;font-weight:750}.muted{display:block;color:var(--text-secondary);font-size:12px;line-height:1.55}.page-toolbar{box-sizing:border-box;display:flex;width:100%;min-height:64px;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.page-toolbar__main{display:flex;min-width:0;flex:1;align-items:center;gap:10px}.page-toolbar__actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px}.page-toolbar .wd-button{min-height:40px;height:40px}.clinic-query-action{box-sizing:border-box;min-height:44px;height:44px;padding-right:12px;padding-left:12px;white-space:nowrap}.surface-list{overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.table-header-cell{color:var(--text-secondary);font-size:12px;font-weight:700}.quick-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:5px}.quick-actions uni-button,.primary-action,.secondary-action,.text-button{min-height:38px;padding:0 14px;border:1px solid var(--border-strong);border-radius:6px;color:var(--accent);background:var(--surface);font-weight:650}.quick-actions uni-button:hover,.secondary-action:hover{border-color:var(--accent);background:var(--accent-soft)}.quick-actions uni-button.primary,.primary-action{border-color:var(--accent);color:#fff;background:var(--accent)}.quick-actions uni-button.primary:hover,.primary-action:hover{border-color:var(--accent-hover);background:var(--accent-hover)}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.metric-card,.work-panel,.data-table{border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.metric-card{position:relative;overflow:hidden;padding:20px 22px 20px 25px}.metric-card:before{position:absolute;top:17px;bottom:17px;left:0;width:3px;background:var(--clinic-green);content:""}.metric-card.gross-profit-card:before{background:var(--accent)}.metric-card.stock-out-count-card:before{background:#6c87b0}.metric-label{color:var(--text-secondary);font-size:11px}.metric-value{margin-top:9px;color:var(--text);font-size:24px;font-weight:750}.metric-note{margin-top:8px;color:var(--text-muted);font-size:10px}.workspace-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.work-panel{min-height:190px;padding:20px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--border)}.section-title{font-size:14px;font-weight:700}.section-copy{margin-top:5px;color:var(--text-muted);font-size:11px}.text-button{min-height:30px;padding:0 8px;border:0;background:transparent}.text-button:hover{background:var(--accent-soft)}.alert-row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding-top:20px;color:var(--warning);font-size:12px}.alert-row>uni-view{padding:13px 15px;border:1px solid var(--warning-border);border-radius:6px;background:var(--warning-soft)}.alert-number{margin-right:8px;color:var(--warning);font-size:19px;font-weight:750}.empty-state{display:grid;place-items:center;min-height:108px;color:var(--text-muted);font-size:12px}.filter-bar{display:flex;gap:8px;padding:14px;margin-bottom:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.search-input{flex:1;min-width:180px;height:40px;padding:0 12px;border:1px solid var(--border-strong);border-radius:6px;color:var(--text);background:var(--surface-soft)}.search-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.search-group{gap:0}.search-group .search-input{border-radius:5px 0 0 5px}.embedded-search{width:46px;min-height:40px;border:1px solid var(--accent);border-radius:0 6px 6px 0;color:#fff;background:var(--accent);font-size:20px}.secondary-action{gap:6px;color:var(--text-secondary)}.data-table{overflow:hidden}.table-head{display:grid;grid-template-columns:1.6fr repeat(5,1fr);min-height:46px;align-items:center;padding:0 16px;border-bottom:1px solid var(--border);background:var(--surface-soft);color:var(--text-secondary);font-size:12px;font-weight:650}.table-empty{display:grid;place-items:center;align-content:center;min-height:300px;gap:7px}.empty-title{color:var(--text-secondary);font-weight:650}.mobile-nav{position:fixed;right:0;bottom:0;left:0;z-index:20;width:100%;border-top:1px solid var(--border);background:var(--surface);box-shadow:0 -6px 20px rgba(20,48,39,.08)}.mobile-nav-track{display:flex;width:684px;min-width:100%;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav-item{position:relative;display:flex;width:76px;height:61px;flex:0 0 76px;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:var(--text-secondary);font-size:10px}.mobile-nav-item.active{color:var(--clinic-green);font-weight:700}.mobile-nav-item.active:before{position:absolute;top:0;right:18px;left:18px;height:3px;border-radius:0 0 3px 3px;background:var(--clinic-green);content:""}.clinic-search-box .wd-search__search-left-icon{display:none!important}.mobile-theme-menu{display:grid;gap:7px;padding:8px 9px 10px;color:var(--text-secondary);font-size:11px;border-bottom:1px solid var(--border)}.clinic-side-panel-popup{box-sizing:border-box;width:min(560px,100vw);height:100vh;max-height:100vh;border-radius:0;background:var(--surface);box-shadow:-10px 0 28px rgba(24,39,58,.14)}.stock-in-popup,.stock-out-popup{box-sizing:border-box;width:min(460px,calc(100vw - 24px));height:100vh;max-height:100vh;overflow-y:auto;border-radius:0;background:var(--surface)}.symptom-editor-popup,.symptom-stockout-popup{box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow-y:auto;border-radius:8px;background:var(--surface)}.symptom-stockout-confirm-popup{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow-y:auto;border-radius:8px;background:var(--surface)}.patient-popup,.dictionary-popup{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow-y:auto;border-radius:8px;background:var(--surface)}.visit-popup{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;border-radius:8px;background:var(--surface)}.visit-drug-popup{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;border-radius:8px;background:var(--surface)}.patient-detail-popup{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;border-radius:8px;background:var(--surface)}.confirm-popup{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow-y:auto;border-radius:8px;background:var(--surface)}@media (max-width: 1100px){.topbar-actions{gap:8px}}@media (max-width: 980px){.sidebar{width:205px;flex-basis:205px}.content-area{padding:26px 24px 48px}.page-head{display:flex;min-height:0;flex-direction:column;gap:16px}.quick-actions{justify-content:flex-start;margin-top:18px}.workspace-grid{grid-template-columns:1fr}}@media (max-width: 760px){.page-toolbar{align-items:stretch;flex-direction:column}.page-toolbar__main,.page-toolbar__actions{width:100%}.page-toolbar__actions{justify-content:flex-start;flex-wrap:wrap}.clinic-query-action{width:auto;max-width:148px;min-height:44px;height:44px;padding-right:10px;padding-left:10px;font-size:12px}}@media (max-width: 640px){.content-area{padding:18px 16px calc(86px + env(safe-area-inset-bottom))}.topbar{padding:0 16px}.metric-grid{grid-template-columns:1fr}.filter-bar{flex-wrap:wrap}.search-input{flex-basis:100%}.table-head{grid-template-columns:repeat(6,minmax(110px,1fr))}.data-table{overflow-x:auto}}@media (max-width: 520px){.topbar{box-sizing:border-box;height:calc(var(--mobile-safe-top, 0px) + 52px);padding:var(--mobile-safe-top, 0px) var(--mobile-header-right, 16px) 0 16px}.topbar-context-wrap{min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-divider,.topbar-page-name{display:none}.topbar-actions{flex:0 0 auto}.user-trigger{min-width:42px;min-height:42px;padding:3px}.user-avatar{width:34px;height:34px;flex-basis:34px}.user-copy,.menu-chevron{display:none}.user-chip{gap:0}.wd-popup__close{top:calc(10px + var(--clinic-safe-top, env(safe-area-inset-top)))!important;right:12px!important}.page-head{margin-bottom:8px}.page-title{font-size:22px}.page-toolbar{padding:10px}}.app-root[data-theme=clinic]{--accent: #4359ce;--accent-hover: #354ab5;--accent-soft: #ebefff;--clinic-green: #167363;--clinic-green-soft: #e6f7f3;--sidebar-bg: #131d3b;--sidebar-text: #f0f4ff;--sidebar-muted: #aebbe0;--sidebar-active-bg: #e6edff;--sidebar-active-text: #263568;--sidebar-border: rgba(171, 190, 245, .2);--surface: #fff;--surface-soft: #f6f8fd;--surface-hover: #eef3fc;--page-bg: #eff3f9;--topbar-bg: rgba(251, 253, 255, .93);--border: #dce4f1;--border-strong: #bac8df;--text: #1a2746;--text-secondary: #4e607e;--text-muted: #536580;--focus-ring: rgba(67, 89, 206, .24);--shadow: 0 6px 22px rgba(41, 60, 110, .07);--shadow-raised: 0 18px 48px rgba(27, 43, 90, .16)}.app-root[data-theme=clinic] .sidebar,.app-root[data-theme=clinic] .login-brand{background:radial-gradient(ellipse at 0 0,rgba(54,142,196,.32),transparent 54%),radial-gradient(ellipse at 100% 45%,rgba(105,76,211,.3),transparent 58%),var(--sidebar-bg)}.app-root[data-theme=clinic] .brand-mark,.app-root[data-theme=clinic] .login-mark{color:#182954;background:linear-gradient(140deg,#a3e7ef,#c6caff 78%)}.app-root[data-theme=night]{--accent: #4559c5;--accent-hover: #5066d1;--sidebar-bg: #151932;--surface: #22283d;--surface-soft: #2b324b;--surface-hover: #343c59;--page-bg: #191e31;--topbar-bg: rgba(31, 37, 57, .94);--border: #414a69;--text: #e7ecff;--text-secondary: #bfcae7;--text-muted: #abb9da}.sidebar{overflow-y:auto}.brand-mark{border-radius:13px}.metric-card{border-radius:14px}.app-root[data-theme=clinic] .metric-card{background:linear-gradient(135deg,#fff 55%,#eef3ff)}.topbar{border-bottom-color:var(--border)}.content-area{animation:clinic-panel-enter .18s ease-out}.nav-item{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}.nav-item:focus-within,.mobile-nav-item:focus-visible,.clinic-web-login:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.clinic-touch-records{display:none!important}.mobile-nav{display:none}@keyframes clinic-panel-enter{0%{opacity:.66;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 1300px){.clinic-desktop-table{display:none!important}.clinic-touch-records{display:grid!important}}@media (max-width: 760px){.sidebar{display:none}.mobile-nav{display:block}.mobile-nav-track{width:-moz-max-content;width:max-content}.mobile-nav-item{flex-basis:70px;width:70px}.content-area{padding:18px 16px calc(86px + env(safe-area-inset-bottom))}}@media (max-width: 420px){.topbar-actions{gap:5px}.topbar-context-wrap{flex:1}}
