/* Yayuansu Dental: the user's existing Swiss red, charcoal and Alpine visual system. */
:root{--green:#b51f36;--green2:#a51e32;--ink:#263036;--muted:#77838b;--line:#dfe4e8;--bg:#f1f3f4;--light:#f7edef;--red:#b51f36;--shadow:none}
body{font-family:"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;color:#263036;background:#f1f3f4}h1,h2,h3{color:#252b2e}input,select{border-radius:2px;border-color:#d9dfe4}input:focus,select:focus{border-color:#b51f36;box-shadow:0 0 0 2px #b51f3610}label{color:#677780}.eyebrow{color:#7d8c99}.button,.panel,.filter-panel,.kpi,.segmented,.segmented button,.type-tag,.readonly-pill,.pill,.notice,.toast,.filename-example,.drop-zone,.file-icon,dialog{border-radius:2px}.button.primary{background:#b51f36;border-color:#b51f36}.button.primary:hover{background:#98182d;border-color:#98182d}.secondary:hover{background:#f3f4f5;border-color:#bfc8cf}.sidebar{background:#fff;border-top:4px solid #d8172c;padding-top:28px}.brand{flex-direction:column;align-items:flex-start;gap:16px}.brand-logo{display:block;width:174px;height:auto;object-fit:contain}.workspace-brand{font-size:13px;font-weight:600;border-top:1px solid #e3e7eb;width:100%;padding-top:15px;color:#2c3439;letter-spacing:1px}.brand small{color:#8a97a3;font-size:8px;letter-spacing:1.6px;margin-top:3px}.nav-label{margin-top:35px;color:#939fa8}.nav-item{border-radius:0;color:#6b7a86;border-left:2px solid transparent;padding:12px 12px}.nav-item.active{border-left-color:#b51f36;background:#f8edef;color:#b51f36}.nav-item:hover{background:#f3f5f6}.sidebar-note{color:#5c6c79}.sidebar-note p{color:#8d9ba6}.status-dot{background:#b51f36}.account{color:#465866}.avatar{background:#edf0f3;color:#415565;border-radius:2px;font-family:Arial,sans-serif}.page-header{position:relative;min-height:176px;margin:-1px 0 25px;padding:28px 30px;border:1px solid #e1e6e9;border-top:3px solid #b51f36;background:linear-gradient(90deg,#fffffff7 0%,#fffffff0 38%,#ffffffa3 69%,#ffffff42 100%),url('/static/swiss-alps.webp') right 41%/cover no-repeat;align-items:center}.page-header h1{font-size:30px;letter-spacing:0;font-weight:650}.page-header:after{content:"YAYUANSU DENTAL / 瑞士精工 · 本地守护";position:absolute;bottom:12px;right:19px;font-size:8px;letter-spacing:1.3px;color:#617b90}.page-header .eyebrow{font-size:9px;letter-spacing:1.7px;color:#60768b}.page-header .muted{color:#61717b}.scope-tabs{border-color:#dce2e7}.scope-tabs button{color:#77828b}.scope-tabs button.active{color:#b51f36}.scope-tabs button.active:after{background:#b51f36;height:2px}.filter-top .segmented{background:#edf0f2}.segmented button{color:#788592}.segmented button.active{box-shadow:none;color:#b51f36;background:white}.filter-bottom{border-color:#e9edf0}.filter-bottom select{background:#f3f5f7}.quick-ranges button{color:#768591}.report-context{color:#7e8b96}.demo-banner{border-radius:2px;background:#fcf8ec;border-color:#e8dfc5}.kpi{border-top:2px solid #cbd3da;padding:18px 20px}.kpi:first-child{background:#25292c;border-color:#25292c;border-top-color:#b51f36;color:white}.kpi:first-child .kpi-head{color:#d0d6dc}.kpi:first-child .type-tag{background:#ffffff14;color:#c0cad2}.kpi-head{color:#6d7c88}.type-tag{background:#f1f3f5;color:#8b98a2}.kpi-value{font-family:Arial,"Microsoft YaHei",sans-serif;font-weight:600;letter-spacing:-.5px}.kpi-foot{color:#86939d}.kpi:first-child .kpi-foot{color:#a9b6c0}.kpi:first-child .change{color:#cadce7}.kpi:nth-child(2){border-top-color:#b51f36}.change{color:#4f7b68}.change.negative{color:#a66d5a}.panel-header .eyebrow{color:#8f9da8}.panel{box-shadow:none}.chart-foot{border-color:#e9edf0;color:#84939f}.chart-legend button{color:#576775}.chart-tooltip{border-radius:2px;border-color:#dfe4e9;color:#334653}.readonly-pill{border-color:#dfe5e9;background:#f4f6f7;color:#7d8d99}.mini-metric{border-color:#e5e9ec}.mini-metric:hover,.mini-metric.selected{background:#f9f0f2}.mini-top{color:#778692}.mini-value{font-family:Arial,"Microsoft YaHei",sans-serif;font-weight:550;color:#344956}.mini-metric.selected .mini-top>span:first-child{color:#b51f36}.field-legend{color:#81909c}th,th:first-child{background:#f0f3f5;color:#667b8d;border-color:#e1e7ec}th .column-type{color:#90a0ad}td{color:#405565;border-color:#e7ecf0}tbody tr:hover td{background:#f7f9fa}tr.total-row td{background:#eaf0f4;color:#344f61}th.manual-head{background:#eaf4ee;color:#44745b}th.imported-head{background:#e9f0f7;color:#567da3}.table-footer{background:#f7f9fa;color:#8495a2}.source-label{color:#8ba094}.detail-sub{color:#8b9ba7}.page-footer{border-color:#dfe5e9;color:#8b9ba7}.page-footer>span:first-child{color:#5c6f7e}.input-instructions p{color:#81919e}.empty-state{color:#8597a5}.empty-state strong{color:#405b70}.drop-zone{border-color:#b5c4d1;background:#f6f9fc}.drop-zone.dragover{background:#f9eef0;border-color:#b51f36}.upload-icon{background:#f7edef;color:#b51f36;border-radius:0}.drop-zone strong{color:#3c5b74}.drop-zone>span:last-child{color:#8b9eac}.upload-steps{color:#7b8f9f}.upload-steps b{border-radius:0;border-color:#d9e3ea;color:#b51f36}.template-panel p{color:#7b8f9f}.file-icon{background:#f5eef0;border-color:#e4cbd0;color:#b51f36}.filename-example{background:#f1f4f7;border-color:#e0e7ec;color:#667f92}.notice.neutral{background:#eef4f8;color:#607e93;border-color:#d6e3ec}.toast{background:#263c4d}.toast.error{background:#a3263c}.login-screen{background:#fff;grid-template-columns:1.15fr 1fr;border-top:5px solid #b51f36}.login-story{position:relative;min-height:calc(100vh - 5px);color:#263036;padding:52px 65px;background:linear-gradient(180deg,#ffffffd9 0%,#ffffffc9 35%,#f3f7fac9 70%,#ffffff8c 100%),url('/static/swiss-alps.webp') 60% center/cover no-repeat;border-right:1px solid #e1e6ea}.login-story .brand-logo{width:268px}.login-story .brand{gap:18px}.login-story .workspace-brand{border-top:1px solid #bccbd2;width:268px;font-size:12px}.login-story .brand small{color:#627b8e}.login-story h1{font-size:43px;line-height:1.5;color:#252b2e;font-weight:650;margin:18px 0}.login-story .eyebrow{color:#b51f36;font-size:10px;letter-spacing:1px}.login-story p:not(.eyebrow){color:#516c80;font-size:13px}.story-chart{height:85px;margin:28px 0 0;border-top:1px solid #c5d2da;border-bottom:1px solid #c5d2da;position:relative}.story-chart:before{content:"01  每日导入       02  多维汇总       03  趋势分析";position:absolute;top:28px;font-size:11px;letter-spacing:1px;color:#455e72}.story-chart svg{display:none}.login-foot{color:#58758b;font-size:10px;letter-spacing:.5px}.login-panel h2{color:#263036;font-weight:650}.login-panel .eyebrow{color:#b51f36}.login-panel input{background:#f8fafb;border-color:#dce3e8}.login-panel label{color:#6a8193}.help-body{background:#fff}.help-body header{border-color:#b51f36}.manual-logo{width:225px;height:auto;margin-bottom:20px;display:block}.help-body h2,.help-body h3{color:#364e60}.help-body .help-actions{float:none;justify-content:flex-end;margin-bottom:15px}.help-body table td{color:#415b70}.help-body code{background:#f0f4f7;color:#526d81}
@media(min-width:1600px){.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi{padding:20px 22px}.kpi-value{font-size:32px}}
@media(max-width:1150px){.brand-logo{width:151px}.page-header{padding:24px 22px}.page-header h1{font-size:27px}.login-story{padding:40px}.login-story h1{font-size:36px}}
@media(max-width:760px){.sidebar{padding-top:14px;border-top:4px solid #b51f36}.sidebar .brand{flex-direction:row;align-items:center;gap:14px;display:flex}.brand-logo{width:145px}.sidebar .workspace-brand{width:auto;border-top:0;border-left:1px solid #d6dfe6;padding-top:0;padding-left:14px;font-size:10px}.sidebar .workspace-brand small{font-size:6px}.nav-item{padding:8px 10px;border-left:0;border-bottom:2px solid transparent}.nav-item.active{border-bottom-color:#b51f36}.page-header{min-height:185px;align-items:flex-start;padding:22px 16px;background-position:center,right center}.page-header h1{font-size:22px;white-space:nowrap}.page-header:after{font-size:6px;bottom:13px;right:12px;letter-spacing:.3px}.header-actions .button{font-size:9px;padding:7px}.page-header .eyebrow{font-size:7px;letter-spacing:.5px}.page-header .muted{font-size:10px;max-width:180px;line-height:1.8}.kpi{padding:13px}.kpi-value{font-size:23px;letter-spacing:-.7px}.kpi-value small{font-size:11px;margin-left:3px}.login-story{min-height:210px;padding:27px 28px;border:0;background-position:50% 46%}.login-story .brand-logo{width:225px}.login-story .brand{gap:13px}.login-story .workspace-brand{width:225px;padding-top:9px}.login-foot{display:block;font-size:8px;margin-top:20px}.login-panel{padding-top:40px}.story-chart{display:none}.help-body .help-actions{justify-content:flex-start;flex-wrap:wrap}.manual-logo{width:200px}}
@media print{.manual-logo{width:180px}.help-body{background:white}}
.system-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px}.system-toolbar p{margin:0}.system-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.system-stat{background:white;border:1px solid var(--line);border-top:2px solid #aebbc5;padding:20px}.system-stat>span,.system-stat>strong,.system-stat>small{display:block}.system-stat>span{font-size:12px;color:#768692}.system-stat>strong{font-size:25px;font-weight:550;margin:12px 0;color:#334a5b}.system-stat>small{font-size:10px;color:#8a98a3}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-panel{padding:26px}.settings-panel h2{font-size:18px;margin:0 0 12px}.settings-panel p{line-height:1.9}.settings-switch{margin:24px 0 20px;color:#40596b;font-size:13px}.settings-switch input{accent-color:#b51f36}.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-fields input{width:100%;min-width:0;height:40px}.settings-panel form .button{margin-top:9px}.scheduler-status{color:#44745b;font-size:13px;border-left:2px solid #44745b;padding:8px 12px;background:#f1f6f3;margin-top:25px}.scheduler-status.system-warning{color:#977636;background:#fcf8ec;border-color:#b59961}#backup-next{font-size:13px;color:#40596b}.backup-info{border-top:1px solid var(--line);padding-top:18px;margin-top:20px;font-size:11px;color:#7d8e9c}.backup-info strong{color:#536c7e;font-size:12px}.backup-info p{margin:8px 0}.backup-success{color:#44745b}.history-panel{border-top:2px solid #b51f36}.cleanup-row{display:flex;justify-content:space-between;align-items:center;gap:30px;border-top:1px solid var(--line);padding:20px 0 4px;margin-top:20px}.cleanup-row h3{margin:0 0 8px;font-size:14px;color:#435b6c}.cleanup-row p{margin:0;font-size:12px;color:#7e8f9d;max-width:740px}.cleanup-row .button{flex-shrink:0}.danger-outline{background:white;color:#b51f36;border:1px solid #d5a8af}.danger-outline:hover{background:#f9edef}.history-panel .notice{margin-top:20px}#clear-history-dialog{max-width:540px;width:calc(100% - 30px)}#clear-history-dialog p{font-size:13px;line-height:1.9}#clear-history-dialog label{margin-top:22px}#clear-history-dialog input{width:100%;margin-top:9px}.settings-panel label{font-size:12px}#backups-table a{white-space:nowrap}
@media(max-width:1100px){.settings-layout{grid-template-columns:1fr}.system-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.system-stat>small{font-size:10px}.settings-layout{gap:0}}
@media(max-width:760px){.settings-panel{padding:20px 16px}.system-toolbar{font-size:11px;align-items:flex-start}.system-toolbar .text-button{white-space:nowrap}.system-stats{gap:10px}.system-stat{padding:15px 12px}.system-stat>strong{font-size:23px}.system-stat>small{line-height:1.8}.settings-fields{gap:12px}.cleanup-row{align-items:flex-start;flex-direction:column;gap:16px}#view-settings .panel-header{gap:15px}#view-settings .panel-header .button{font-size:11px;padding:10px}#clear-history-dialog .dialog-actions{flex-wrap:wrap}}
.settings-fields label,#clear-history-dialog label{display:flex;flex-direction:column;align-items:stretch;gap:8px}#clear-history-dialog input{margin-top:0}#clear-history-dialog .dialog-actions{margin-top:24px}

/* Import validation remains visible until the next upload. */
.import-error-panel{margin-top:18px;padding:16px;border:1px solid #e1a8b1;border-left:3px solid #b51f36;background:#fff5f6;color:#84253a;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.import-error-panel strong{display:block;font-size:14px}.import-error-panel p{margin:8px 0}.import-error-panel ul{margin:10px 0 0;padding-left:20px;max-height:340px;overflow-y:auto}.import-error-panel li{margin-bottom:10px}.toast.error{color:#fff}
