/* Dashboard local WebPlotDigitizer theme, AGPL-3.0-or-later. */
:root { --wpd-font-family:"Microsoft YaHei",sans-serif; --wpd-widget-hover-color:#e8eff9; --wpd-widget-active-color:#dce8f8; --wpd-dialog-title-background:#e7eef8; --wpd-dialog-title-text-color:#45658c; --wpd-button-background:#edf2f8; --wpd-font-size:13px; }
* { box-sizing:border-box; }
body { position:relative; contain:layout paint; background:#f5f7fb; color:#3c5779; }
[hidden] { display:none !important; }
#allContainer { margin:0; display:grid; grid-template-columns:148px minmax(0,1fr) 268px; grid-template-rows:42px minmax(0,1fr) 28px; overflow:hidden; }
#topContainer { grid-column:1/-1; min-width:0; display:flex; flex-wrap:nowrap; align-items:center; gap:10px; padding:0 10px; line-height:30px; overflow-x:auto; background:#f5f7fb; border-bottom:1px solid #dce3ee; }
#menuButtonsContainer { display:flex; padding:0; flex:none; }
#topToolbarContainer { padding:0; flex:1; min-width:210px; }
#topToolbarContainer .toolbar { padding:0; height:auto; white-space:nowrap; }
.dashboard-view-tools { width:auto !important; padding:0 !important; flex:none; display:flex !important; align-items:center; gap:2px; }
.toolbar-button { min-width:28px; height:28px; border-radius:4px; border:0; color:#55749b; background:#eaf0f8; cursor:pointer; }
#quick-actions-toolbar p { display:flex; gap:5px; }
#quick-actions-toolbar button { padding:0 8px; white-space:nowrap; }
.toolbar-button-label { display:inline; margin-left:3px; }
#left-side-container { grid-row:2; width:auto !important; min-height:0; overflow:auto; background:#f5f7fb; border-right:1px solid #dce3ee; padding:8px 5px; }
#left-side-container > div { width:100% !important; height:100%; gap:10px; }
#left-side-container .tree-widget { flex:0 0 auto !important; }
#tree-container { min-height:0; max-height:40%; flex:0 0 auto !important; }
#left-side-container input[type=button] { width:100% !important; }
#left-side-container p { margin:5px 0; }
#left-side-container select { max-width:100% !important; min-width:0 !important; }
#graphicsContainer { grid-row:2; grid-column:2; min-width:0; min-height:0; display:block; position:relative; background:#eaf0f7; }
#canvasDiv { margin:auto; }
#dashboard-empty { position:absolute; inset:0; width:100%; height:100%; border:0; color:#8396b0; background:#f1f5fb; font:inherit; cursor:pointer; padding:24px; z-index:6; }
#sidebarContainer { grid-column:3; grid-row:2; float:none; width:auto; min-height:0; display:flex; flex-direction:column; border-left:1px solid #dce3ee; background:#f8faff; }
#sidebarControlsContainer { flex:1; min-height:0; overflow:auto; padding:8px; }
#sidebarControlsContainer .sidebar { width:100%; height:auto !important; overflow:visible; padding:0; }
.sidebar p { padding:4px 2px; margin:2px 0; line-height:1.7; }
.sidebar-title { color:#45658c; background:#e9eff8; padding:6px 8px !important; font-weight:600; border-radius:3px; }
.sidebar input[type=button], .sidebar button, .tree-widget input[type=button] { border:1px solid #d3deed; border-radius:4px; background:#edf3fc; color:#466b9c; min-height:29px; cursor:pointer; }
.sidebar input[type=text], .sidebar select, .popup input[type=text], .popup select { border:1px solid #cedaeb; border-radius:3px; background:white; color:#45658c; padding:3px 5px; height:28px; max-width:100%; }
.sidebar input:disabled,.sidebar button:disabled { opacity:.45; cursor:default; }
#manual-select-button,#manual-adjust-button,#delete-point-button,#edit-data-labels { width:calc(50% - 4px) !important; }
.sidebar table { width:100%; }
.sidebar hr { border:0; border-top:1px solid #e2e8f2; margin:12px 0; }
.sidebar .footnote { font-size:11px; color:#8b9bb1; }
#xy-axes-calibrate { min-width:120px; color:#2563ae; background:#e0ebfb; }
.dashboard-loupe { flex:none; border-top:1px solid #dce3ee; padding:7px; max-height:310px; overflow:auto; }
.dashboard-loupe summary { color:#7a8fae; font-size:12px; cursor:pointer; padding:2px; }
.dashboard-loupe #zoomDiv { margin:8px auto 0; }
.dashboard-loupe #zoom-settings-container { position:static; text-align:right; }
#bottomContainer { grid-column:1/-1; grid-row:3; width:auto; height:auto; min-width:0; border-top:1px solid #dce3ee; background:#f5f7fb; padding:0 10px; }
#bottomNavbarContainer { height:26px; line-height:24px; }
.dashboard-source { position:fixed; bottom:4px; right:12px; z-index:6; font:11px/20px "Microsoft YaHei",sans-serif; color:#8b9bb1; }
.wpd-menu-dropdown,.popup,.wpd-menu { color:#3c5779; }
.wpd-menu-dropdown { position:fixed; z-index:100; top:41px; }
.popup { max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow:auto; border:1px solid #cbd8e9; border-radius:7px; box-shadow:0 10px 40px #30496e26; }
.popup button,.popup input[type=button] { border:1px solid #d0ddee; border-radius:4px; color:#456b9c; background:#edf3fc; min-height:28px; }
.popupheading { margin-top:0; }
#loadingCurtain { background:#f5f7fb !important; color:#6e88a8; }
#wpd-tooltip { background:#f8faff !important; color:#4e6688 !important; border:1px solid #d6e1ef; }
#dashboard-flow-nav { display:none; align-items:center; gap:6px; min-width:0; flex:1; }
#dashboard-mode { flex:none; padding:3px 8px; color:#7892b4; background:none; border:1px solid #d6e1f0; border-radius:4px; font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; }
#dashboard-flow-panel { display:none; }
.dashboard-simple #allContainer { grid-template-columns:minmax(0,1fr) 300px; }
.dashboard-simple #graphicsContainer { grid-column:1; }
.dashboard-simple #sidebarContainer { grid-column:2; }
.dashboard-simple #left-side-container,.dashboard-simple #sidebarControlsContainer { display:none; }
.dashboard-simple #topContainer > #menuButtonsContainer,.dashboard-simple #topToolbarContainer { display:none; }
.dashboard-simple #dashboard-flow-nav { display:flex; }
.dashboard-simple #dashboard-flow-panel { display:block; padding:18px 16px; flex:1; min-height:0; overflow:auto; }
#dashboard-flow-panel h3 { margin:0 0 12px; color:#45658c; font-size:15px; font-weight:600; }
#dashboard-flow-panel button,#dashboard-flow-panel input,#dashboard-flow-panel select,#dashboard-flow-nav button { font:inherit; font-size:13px; color:#5278a6; min-height:32px; border:1px solid #d5e0ef; border-radius:4px; background:#f6f9fe; padding:5px 10px; max-width:100%; }
#dashboard-flow-panel button,#dashboard-flow-nav button { cursor:pointer; }
#dashboard-flow-panel button:disabled,#dashboard-flow-nav button:disabled { opacity:.4; cursor:default; }
#dashboard-flow-panel button:hover:not(:disabled),#dashboard-flow-nav button:hover:not(:disabled) { background:#e8f0fc; }
#dashboard-flow-panel .flow-primary { background:#e1edfb; border-color:#cbdcf2; color:#3669a5; }
#dashboard-flow-panel .flow-actions button[aria-pressed=true] { background:#e3edfb; border-color:#afc8e8; color:#386ca9; }
#dashboard-flow-panel .flow-link { border:0; background:none; padding:5px 3px; font-size:12px; }
#dashboard-flow-panel input { background:white; min-width:0; }
.flow-steps { display:flex; align-items:center; gap:3px; margin:auto; white-space:nowrap; }
#dashboard-flow-nav .flow-steps button { border:0; background:none; color:#8ba1bd; }
#dashboard-flow-nav .flow-steps button[aria-current=step] { background:#e3edfa; color:#336bab; }
#dashboard-flow-panel p { line-height:1.75; font-size:12px; }
#dashboard-flow-panel .flow-help { color:#8b9fb9; margin:8px 0 14px; }
#flow-start,#flow-calibrate,#flow-review,#flow-region,#flow-pick-color,#flow-run { width:100%; }
#flow-calibration-hint { color:#618cbd; padding:8px 0; min-height:42px; }
.flow-values { display:grid; gap:8px; }
.flow-values label { display:flex; align-items:center; gap:12px; color:#a1b0c4; }
.flow-values label span { width:28px; flex:none; }
.flow-values input { width:100%; }
.flow-values label[data-next=true] span { color:#3d7ac0; font-weight:600; }
.flow-values label[data-picked=true] span { color:#6d9b89; }
.flow-scales { display:flex; gap:10px; margin:14px 0; font-size:12px; color:#8399b5; }
.flow-scales label { display:flex; align-items:center; gap:5px; }
#dashboard-flow-panel .flow-scales select { width:80px; }
.flow-curve-row { display:flex; gap:8px; margin-bottom:8px; }
.flow-curve-row select { min-width:0; flex:1; }
.flow-curve-row button { flex:none; }
#flow-name { width:calc(100% - 60px); font-size:12px; }
.flow-method { display:flex; gap:0; margin:22px 0 10px; border-bottom:1px solid #dfe8f4; }
#dashboard-flow-panel .flow-method button { flex:1; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:#9aaac1; padding-bottom:9px; }
#dashboard-flow-panel .flow-method button[aria-pressed=true] { border-bottom-color:#91b3dc; color:#4676b0; }
.flow-actions { display:flex; gap:6px; margin:12px 0; }
.flow-actions button { flex:1; min-width:0; padding-inline:5px !important; }
.flow-count-row { display:flex; align-items:center; justify-content:space-between; margin:22px 0 8px; color:#7f97b6; font-size:12px; }
.flow-tolerance { display:flex; align-items:center; justify-content:space-between; margin:14px 0; font-size:12px; color:#8a9fba; }
#flow-color { display:inline-block; vertical-align:middle; width:16px; height:16px; border:1px solid #cfdae9; border-radius:3px; margin-left:6px; }
#flow-message { color:#7996b8; border-top:1px solid #e3eaf4; margin:22px 0 0; padding-top:12px; }
.flow-data-wrap { max-height:48vh; overflow:auto; border:1px solid #dfe7f2; border-radius:4px; }
.flow-data-wrap table { width:100%; border-collapse:collapse; font:12px/1.7 monospace; }
.flow-data-wrap th { position:sticky; top:0; background:#eaf1fa; font-weight:500; color:#6a88ad; }
.flow-data-wrap td,.flow-data-wrap th { padding:5px 7px; border-bottom:1px solid #e6edf6; text-align:right; }
@media(max-width:850px) { #allContainer { grid-template-columns:120px minmax(0,1fr) 250px; } #topContainer { gap:5px; padding-inline:5px; } }
@media(max-width:950px) { .dashboard-simple .dashboard-view-tools button:nth-child(1),.dashboard-simple .dashboard-view-tools button:nth-child(2),.dashboard-simple .dashboard-view-tools button:nth-child(5),.dashboard-simple #extended-crosshair-btn { display:none; } }
@media(max-width:640px) {
 #allContainer { grid-template-columns:minmax(0,1fr); grid-template-rows:42px 105px minmax(150px,1fr) minmax(150px,.8fr) 28px; overflow:auto; }
 #topContainer { grid-column:1; grid-row:1; }
 #left-side-container { grid-column:1; grid-row:2; padding:4px; border-right:0; border-bottom:1px solid #dce3ee; }
 #left-side-container > div { flex-direction:row !important; gap:10px; }
 #tree-container { width:125px; min-height:0; max-height:100%; flex:0 0 125px !important; }
 #left-side-container .tree-widget { min-width:155px; overflow:auto; }
 #left-side-container .tree-widget .sidebar-title { display:none; }
 #graphicsContainer { grid-column:1; grid-row:3; }
 #sidebarContainer { grid-column:1; grid-row:4; border-left:0; border-top:1px solid #dce3ee; }
 .dashboard-loupe { display:none; }
 #bottomContainer { grid-column:1; grid-row:5; }
 .dashboard-simple #allContainer { grid-template-columns:minmax(0,1fr); grid-template-rows:42px minmax(180px,1.1fr) minmax(230px,1fr) 28px; }
 .dashboard-simple #graphicsContainer { grid-column:1; grid-row:2; }
 .dashboard-simple #sidebarContainer { grid-column:1; grid-row:3; }
 .dashboard-simple #bottomContainer { grid-row:4; }
 #dashboard-flow-panel { padding:12px !important; }
 #dashboard-flow-nav > #flow-save { display:none; }
 .dashboard-simple .dashboard-view-tools { display:none !important; }
 #dashboard-mode { font-size:11px; }
 #dashboard-flow-nav .flow-steps button { font-size:12px; padding-inline:6px; }
 #dashboard-flow-nav .flow-steps { margin-left:0; }
}
