/* 派光平台主题覆盖层：公共外壳全局生效，页面内容通过 data-pg-migrated 限定。 */
:root{--pg-project-context-width:280px}
body{color:var(--pg-text-primary);background:var(--pg-page-bg)}
.sidebar{width:208px;background:var(--pg-nav-bg);color:#d7e0e5}
.sidebar-logo{min-height:64px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.07)}
.sidebar-logo .icon{width:30px;height:30px;border-radius:7px;background:var(--pg-primary)}
.sidebar-logo .title{color:#fff;font-size:15px}.sidebar-logo .sub{color:#758691}
.sidebar-nav{padding:10px 8px}.nav-section{padding:14px 10px 6px;color:#73838e;font-size:11px}
.nav-item{min-height:38px;margin-bottom:4px;padding:0 11px;border-radius:var(--pg-radius-control);color:#aebbc3}
.nav-item:hover{color:#fff;background:var(--pg-nav-bg-hover)}
.nav-item.active{color:#fff;background:var(--pg-primary);font-weight:500}
.nav-item .badge{color:#b9c5cc;background:rgba(255,255,255,.09)}
.nav-item.active .badge{color:#fff;background:rgba(255,255,255,.16)}
.sidebar-footer{border-color:rgba(255,255,255,.07);color:#6f808b}
.topbar{height:56px;padding:0 24px;border-color:var(--pg-border);background:var(--pg-surface)}
.topbar-right .avatar{width:32px;height:32px;background:var(--pg-primary)}
.content{max-width:none;padding:22px 24px 32px;background:var(--pg-page-bg)}
/* 前五个菜单：通用内容组件 */
:where(.page[data-pg-migrated="true"]) .page-header h1{font-size:var(--pg-font-page);line-height:var(--pg-line-page);color:var(--pg-text-primary)}
:where(.page[data-pg-migrated="true"]) :is(.card,.dash-card,.project-header){border:1px solid var(--pg-border);border-radius:var(--pg-radius-card);background:var(--pg-surface);box-shadow:var(--pg-shadow-card)}
.page[data-pg-migrated="true"] .btn{height:36px;padding:0 16px;border-radius:var(--pg-radius-control);font-size:14px;font-weight:500}
.page[data-pg-migrated="true"] :is(.btn-primary,.btn-success){color:#fff;border:1px solid var(--pg-primary);background:var(--pg-primary)}
.page[data-pg-migrated="true"] :is(.btn-primary,.btn-success):hover{border-color:var(--pg-primary-hover);background:var(--pg-primary-hover)}
.page[data-pg-migrated="true"] .btn-outline{color:var(--pg-text-primary);border:1px solid #cfd8dd;background:var(--pg-surface)}
.page[data-pg-migrated="true"] .btn-outline:hover{color:var(--pg-primary);border-color:var(--pg-primary);background:var(--pg-surface)}
.page[data-pg-migrated="true"] input,.page[data-pg-migrated="true"] select{height:32px;border-color:#cfd8dd;border-radius:var(--pg-radius-control);background:var(--pg-surface)}
.page[data-pg-migrated="true"] :is(input,select):focus{border-color:var(--pg-primary);box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.page[data-pg-migrated="true"] .search-box{height:32px;border-color:#cfd8dd;border-radius:var(--pg-radius-control);background:var(--pg-surface)}
.page[data-pg-migrated="true"] .search-box:focus-within{border-color:var(--pg-primary);box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.page[data-pg-migrated="true"] .search-box input{height:30px;padding-top:0;padding-bottom:0}
.page[data-pg-migrated="true"] .filter-select{height:32px;padding-top:0;padding-bottom:0}
.page[data-pg-migrated="true"] .toolbar{gap:10px;margin-bottom:14px}
.page[data-pg-migrated="true"] .table-wrap{max-width:100%;overflow:auto;border-color:var(--pg-border);border-radius:var(--pg-radius-card);background:var(--pg-surface)}
.page[data-pg-migrated="true"] table th{height:42px;padding-top:0;padding-bottom:0;color:var(--pg-text-secondary);background:#f6f8f9;font-size:12px;font-weight:500}
.page[data-pg-migrated="true"] table td{height:46px;border-color:var(--pg-border)}
.page[data-pg-migrated="true"] table tbody tr:hover td{background:#f8fbfa}
.page[data-pg-migrated="true"] .sticky-col{background:var(--pg-surface)}
.page[data-pg-migrated="true"] th.sticky-col{background:#f6f8f9}
.page[data-pg-migrated="true"] .sub-tab-bar{border-color:var(--pg-border);background:transparent}
.page[data-pg-migrated="true"] .sub-tab-btn{color:var(--pg-text-muted);background:transparent}
.page[data-pg-migrated="true"] .sub-tab-btn.active{color:var(--pg-primary);border-color:var(--pg-primary);background:transparent}
.page[data-pg-migrated="true"] .pagination{border-color:var(--pg-border);color:var(--pg-text-muted)}
.page[data-pg-migrated="true"] .pagination .page-btns button{height:30px;padding:0 9px;border-color:var(--pg-border);border-radius:var(--pg-radius-control)}
.page[data-pg-migrated="true"] .pagination .page-btns button.active{color:#fff;border-color:var(--pg-primary);background:var(--pg-primary)}
.page[data-pg-migrated="true"] .type-tag{border-radius:3px;color:#2f6c9f;background:#e7f1fa}
.page[data-pg-migrated="true"] .type-tag.pilot{color:#9a6416;background:#fff2d8}
.page[data-pg-migrated="true"] .type-tag.subject{color:#2f6c9f;background:#e7f1fa}
.page[data-pg-migrated="true"] .type-tag.delivery{color:#12695f;background:#e3f3f0}
.page[data-pg-migrated="true"] .status{border-radius:3px}
.page[data-pg-migrated="true"] .status-not_entered{color:#9a6416;background:#fff2d8}
.page[data-pg-migrated="true"] .status-constructing,.page[data-pg-migrated="true"] .status-trialing{color:#2f6c9f;background:#e7f1fa}
.page[data-pg-migrated="true"] .status-delivered{color:#12695f;background:#e3f3f0}
.page[data-pg-migrated="true"] .empty-state{color:var(--pg-text-muted)}
.page[data-pg-migrated="true"] .actions{gap:4px}
.page[data-pg-migrated="true"] .actions button{border-radius:var(--pg-radius-control)}

/* 前五个菜单：页面级布局 */
.pg-project-view .project-page-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;color:var(--pg-text-muted);font-size:13px;font-weight:500}
.pg-project-view .project-dashboard{grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px}
.pg-project-view .dash-card{padding:16px;border-color:var(--pg-border);border-radius:var(--pg-radius-card);box-shadow:var(--pg-shadow-card)}
.pg-project-view .dash-card:hover{box-shadow:0 3px 14px rgba(27,53,68,.09)}
.pg-project-view .dash-card h3{margin-bottom:14px;padding-bottom:10px;border-color:var(--pg-border);color:var(--pg-text-primary);font-size:16px;line-height:24px}
.pg-project-view .project-list-toolbar{align-items:center;gap:10px;margin-bottom:14px}
.pg-project-view .project-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:center;gap:8px;flex:1}
.pg-project-view .project-list-toolbar :is(.project-filter-input,.project-filter-select){height:36px;min-width:0;width:100%;border:1px solid #dce4e8;border-radius:var(--pg-radius-control);background:var(--pg-surface);padding:0 9px;font-family:inherit;font-size:14px;font-weight:400;color:var(--pg-text-primary);outline:none;box-shadow:none}
.pg-project-view .project-list-toolbar :is(.project-filter-input,.project-filter-select):hover{border-color:#bdcbd2}
.pg-project-view .project-list-toolbar :is(.project-filter-input,.project-filter-select):focus{border-color:var(--pg-primary);box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.page[data-pg-migrated="true"].pg-project-view .btn{height:36px;padding:0 14px;border-radius:var(--pg-radius-control);font-family:inherit;font-size:14px;font-weight:400;line-height:34px;box-shadow:none;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.pg-project-view .project-search-button{min-width:72px}
.pg-project-view .project-header{padding:14px 16px;margin-bottom:14px}
.pg-project-view .project-header .project-select{height:32px;padding:0 10px;border-color:#cfd8dd;border-radius:var(--pg-radius-control)}
.pg-project-view .project-header .stat-num{color:var(--pg-text-primary);font-size:24px;line-height:32px;font-weight:600}
.pg-project-view .project-header .stat-label{color:var(--pg-text-muted)}
.pg-project-view .project-table-wrap,.pg-survey-view .survey-table-wrap{max-width:100%;overflow:auto}
.pg-project-view .project-table-wrap{border-color:var(--pg-border);border-radius:var(--pg-radius-card);background:var(--pg-surface)}
.pg-project-view .project-table-wrap table{min-width:1100px}
.pg-project-view .project-table-wrap .actions{gap:2px;flex-wrap:nowrap}
.pg-project-view .project-table-wrap .actions button{height:28px;padding:0 6px;flex-shrink:0;white-space:nowrap;color:var(--pg-text-secondary);border:1px solid var(--pg-border);border-radius:var(--pg-radius-control);background:var(--pg-surface)}
.pg-project-view .project-table-wrap .actions .view:hover{color:var(--pg-success);border-color:var(--pg-success);background:var(--pg-primary-soft)}
.pg-project-view .project-table-wrap .actions .edit:hover{color:var(--pg-info);border-color:var(--pg-info);background:#edf5fc}
.pg-project-view .project-table-wrap .actions .delete:hover{color:var(--pg-danger);border-color:var(--pg-danger);background:#fff1f0}
.pg-project-view .project-table-wrap tbody tr:hover td.sticky-col{background:#f8fbfa}
.pg-project-view .project-attachment-link{max-width:100%;overflow:hidden;padding:0;border:0;background:transparent;color:var(--pg-primary);font:inherit;line-height:22px;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.pg-project-view .project-attachment-link:hover{color:var(--pg-primary-hover);text-decoration:underline}
.pg-project-view .project-attachment-link:focus-visible{outline:2px solid var(--pg-primary);outline-offset:2px;border-radius:var(--pg-radius-control)}
.pg-survey-view .survey-overview-layout,.pg-design-view .design-overview-layout,.pg-ledger-view .ledger-overview-layout{gap:16px}
.pg-survey-view :is(.survey-device-card,.survey-power-card,.survey-net-card,.survey-lines-card,.survey-activity-card),.pg-design-view :is(.design-summary-card,.design-activity-card),.pg-ledger-view .ledger-activity-card{border:1px solid var(--pg-border);border-radius:var(--pg-radius-card);background:var(--pg-surface);box-shadow:var(--pg-shadow-card)}
.pg-survey-view .survey-chart-grid,.pg-design-view .design-stats-grid,.pg-ledger-view .ledger-stats-grid{gap:16px}
.pg-survey-view .dash-card,.pg-design-view .dash-card,.pg-ledger-view .dash-card,.pg-point-view .dash-card{padding:16px;border-radius:var(--pg-radius-card);border-color:var(--pg-border);box-shadow:var(--pg-shadow-card)}
.pg-survey-view .dash-card:hover,.pg-design-view .dash-card:hover,.pg-ledger-view .dash-card:hover,.pg-point-view .dash-card:hover{box-shadow:0 3px 14px rgba(27,53,68,.09)}
.pg-survey-view .dash-card h3,.pg-design-view .dash-card h3,.pg-ledger-view .dash-card h3,.pg-point-view .dash-card h3{margin-bottom:14px;padding-bottom:10px;border-color:var(--pg-border);color:var(--pg-text-primary);font-size:16px;line-height:24px}
.pg-survey-view .dash-stat-item,.pg-design-view .dash-stat-item,.pg-ledger-view .dash-stat-item,.pg-point-view .dash-stat-item{border-color:#edf1f3;border-radius:var(--pg-radius-control);background:#f7f9fa}
.pg-survey-view .dash-stat-item .num,.pg-design-view .dash-stat-item .num,.pg-ledger-view .dash-stat-item .num,.pg-point-view .dash-stat-item .num{font-size:24px;line-height:32px;font-weight:600}
.pg-survey-view .survey-filter-bar{align-items:center}
.pg-design-view .design-status-select{height:28px;border-color:#cfd8dd;border-radius:var(--pg-radius-control)}
#page-ledger .table-wrap{max-width:100%;overflow:auto}
#page-point .table-wrap{max-width:100%;overflow:auto}
.pg-point-view .sub-tab-panel.active,.pg-ledger-view .sub-tab-panel.active{min-height:0}
.pg-point-view .sub-tab-bar,.pg-ledger-view .sub-tab-bar,.pg-survey-view .sub-tab-bar,.pg-design-view .sub-tab-bar{margin-bottom:14px}
@media(max-width:1180px){.pg-survey-view .survey-overview-layout,.pg-design-view .design-overview-layout,.pg-ledger-view .ledger-overview-layout{grid-template-columns:1fr}}
@media(max-width:1024px){.content{padding:18px}.pg-project-view .project-header{align-items:flex-start}.pg-project-view .project-header .stats{gap:16px}.pg-survey-view .survey-chart-grid{grid-template-columns:1fr}}
@media(max-width:768px){.pg-project-view .project-dashboard{grid-template-columns:1fr}}

/* 前五个菜单：弹窗 */
[data-pg-modal="true"]{background:rgba(17,27,34,.45)}
[data-pg-modal="true"] .modal{border-radius:var(--pg-radius-modal);background:var(--pg-surface);box-shadow:var(--pg-shadow-modal)}
[data-pg-modal="true"] .modal-header{min-height:56px;padding:0 20px;border-color:var(--pg-border)}
[data-pg-modal="true"] .modal-header h2{color:var(--pg-text-primary);font-size:16px;line-height:24px}
[data-pg-modal="true"] .modal-close{color:var(--pg-text-muted);border-radius:var(--pg-radius-control)}
[data-pg-modal="true"] .modal-close:hover{color:var(--pg-text-primary);background:#eef2f4}
[data-pg-modal="true"] .modal-body{padding:18px 20px}
[data-pg-modal="true"] .modal-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-color:var(--pg-border);background:var(--pg-surface)}
[data-pg-modal="true"] input,[data-pg-modal="true"] select,[data-pg-modal="true"] textarea{border-color:#cfd8dd;border-radius:var(--pg-radius-control)}
[data-pg-modal="true"] input,[data-pg-modal="true"] select{height:32px}
[data-pg-modal="true"] :is(input,select,textarea):focus{border-color:var(--pg-primary);box-shadow:0 0 0 2px rgba(23,125,112,.1)}
[data-pg-modal="true"] .btn{height:36px;padding:0 16px;border-radius:var(--pg-radius-control);font-size:14px}
[data-pg-modal="true"] :is(.btn-primary,.btn-success){color:#fff;border-color:var(--pg-primary);background:var(--pg-primary)}
[data-pg-modal="true"] :is(.btn-primary,.btn-success):hover{border-color:var(--pg-primary-hover);background:var(--pg-primary-hover)}
[data-pg-modal="true"] .btn-outline{color:var(--pg-text-primary);border-color:#cfd8dd;background:var(--pg-surface)}
[data-pg-modal="true"] .form-group label{color:var(--pg-text-secondary)}
.ledger-rule-modal .ledger-rule-tabs{border-color:var(--pg-border)}
.ledger-rule-modal .ledger-rule-tab{color:var(--pg-text-muted)}
.ledger-rule-modal .ledger-rule-tab.active{color:var(--pg-primary);border-color:var(--pg-primary)}
.ledger-rule-modal .ledger-rule-section{border-color:var(--pg-border);border-radius:var(--pg-radius-card)}
.ledger-rule-modal .ledger-rule-section-title{color:var(--pg-text-primary)}
.ledger-rule-modal .ledger-common-block{border-color:var(--pg-border);border-radius:var(--pg-radius-card)}
.ledger-rule-modal .ledger-device-head{color:var(--pg-text-secondary);background:#f6f8f9}
.ledger-rule-modal .ledger-rule-table th,.ledger-rule-modal .ledger-result-preview th{color:var(--pg-text-secondary);background:#f6f8f9}
.ledger-rule-modal .ledger-rule-error{border-radius:var(--pg-radius-control)}
@media(max-width:1024px){[data-pg-modal="true"]{padding:16px}[data-pg-modal="true"] .modal{max-width:calc(100vw - 32px)}[data-pg-modal="true"] .modal-body{padding:16px}.ledger-rule-modal{height:min(820px,calc(100vh - 32px))}}


/* Survey management aligned with the production ledger workbench */
.pg-survey-view{--survey-primary:#177d70;--survey-primary-hover:#1c9483;--survey-line:#e4eaee;--survey-text:#26333c;--survey-muted:#788791}
.pg-survey-view .survey-workbench{overflow:hidden;border:1px solid var(--survey-line);border-radius:7px;background:#fff;box-shadow:0 2px 10px rgba(27,53,68,.06)}
.pg-survey-view .survey-titlebar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid var(--survey-line);background:#fff}
.pg-survey-view .survey-title-copy h1{margin:0;color:var(--survey-text);font-size:20px;font-weight:600;line-height:28px}
.pg-survey-view .survey-title-copy p{margin:3px 0 0;color:var(--survey-muted);font-size:12px;line-height:20px}
.pg-survey-view .survey-project-control{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.pg-survey-view .survey-project-control label{color:#5f6b73;font-size:13px;white-space:nowrap}
.pg-survey-view .survey-project-control .project-select{width:var(--pg-project-context-width);min-width:var(--pg-project-context-width);max-width:var(--pg-project-context-width);height:36px;padding:0 10px;border:1px solid #d4dee4;border-radius:4px;color:var(--survey-text);background:#fff}
.pg-survey-view .survey-tabs{display:flex;align-items:flex-end;gap:4px;margin:0;padding:0 18px;border-bottom:1px solid var(--survey-line);background:#fff}
.pg-survey-view .survey-tabs .sub-tab-btn{height:44px;margin:0;padding:0 15px;border:0;border-bottom:2px solid transparent;border-radius:0;color:#5f6b73;font-size:14px}
.pg-survey-view .survey-tabs .sub-tab-btn:hover{color:var(--survey-primary);background:#f6faf9}
.pg-survey-view .survey-tabs .sub-tab-btn.active{border-bottom-color:var(--survey-primary);color:var(--survey-primary);font-weight:600}
.pg-survey-view .survey-tab-actions{display:flex;align-items:center;margin-left:auto}
.pg-survey-view .sub-tab-panel{padding:16px 18px 18px;background:#f5f7f9}
.pg-survey-view .survey-overview-panel{background:#f5f7f9}
.pg-survey-view .survey-overview-panel .dash-card{border-color:var(--survey-line);border-radius:7px;background:#fff;box-shadow:0 2px 10px rgba(27,53,68,.06)}
.pg-survey-view .survey-list-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:0;padding:12px;border:1px solid var(--survey-line);border-bottom:0;border-radius:7px 7px 0 0;background:#fff}
.pg-survey-view .survey-list-toolbar .toolbar-left{display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) minmax(260px,1.5fr);gap:8px;align-items:center;min-width:0;width:100%}
.pg-survey-view .survey-list-toolbar .filter-select{height:36px;min-width:0;width:100%;border-color:#dce4e8;border-radius:4px;background:#fff}
.pg-survey-view .survey-keyword-search{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px;min-width:0;height:36px}
.pg-survey-view .survey-search-input{min-width:0;width:100%;height:36px;padding:0 9px;border:1px solid #dce4e8;border-radius:4px;color:var(--survey-text);background:#fff;outline:none}
.pg-survey-view .survey-search-input:hover{border-color:#bdcbd2}
.pg-survey-view .survey-search-input:focus{border-color:var(--survey-primary);box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.pg-survey-view .survey-search-button{min-width:72px;width:72px}
.pg-survey-view .survey-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;white-space:nowrap}
.pg-survey-view .survey-list-actions .btn{white-space:nowrap}
.pg-survey-view .survey-list-panel .btn{height:36px;border-radius:4px;font-weight:400;box-shadow:none}
.pg-survey-view .survey-list-panel .btn-primary{border-color:var(--survey-primary);background:var(--survey-primary);color:#fff}
.pg-survey-view .survey-list-panel .btn-primary:hover{border-color:var(--survey-primary-hover);background:var(--survey-primary-hover)}
.pg-survey-view .survey-list-actions .btn-danger{border:1px solid #dc5b57;border-radius:4px;background:#fff;color:#dc5b57;font-weight:400}
.pg-survey-view .survey-table-wrap{border:0;border-radius:0 0 7px 7px;background:#fff;box-shadow:none;overflow:auto}
.pg-survey-view .survey-table-wrap table{min-width:3300px}
.pg-survey-view .survey-table-wrap th{height:42px;background:#f6f8f9;color:#5f6b73;font-size:12px;font-weight:500}
.pg-survey-view .survey-table-wrap td{height:46px;color:#31414b}
.pg-survey-view .survey-table-wrap tbody tr:hover td{background:#f4faf8}
.pg-survey-view .survey-table-wrap .sticky-col{background:#fff;box-shadow:-4px 0 8px rgba(38,51,60,.04)}
.pg-survey-view .survey-table-wrap th.sticky-col{background:#f6f8f9}
.pg-survey-view .survey-table-wrap :is(th,td).sticky-col{width:128px!important;min-width:128px;max-width:128px;box-sizing:border-box}
.pg-survey-view .survey-table-wrap .sticky-col .actions{width:100%;justify-content:center;gap:4px;flex-wrap:nowrap}
.pg-survey-view .survey-table-wrap .actions button{height:30px;min-width:30px;padding:0 8px;border:1px solid #d6e0e5;border-radius:4px;background:#fff;color:#51616b}
.pg-survey-view .survey-table-wrap .actions button:hover{border-color:#aebdc5;background:#f7f9fa;color:var(--survey-text)}
.pg-survey-view .survey-table-wrap .pagination{margin:0;padding:12px 18px;border-top:1px solid var(--survey-line);background:#fff;color:#667681}
.pg-survey-view .survey-table-wrap .pagination .page-btns button{height:32px;padding:0 13px;border-color:#d4dee4;border-radius:4px;color:#42515b}
.pg-survey-view .survey-table-wrap .pagination .page-btns button.active{border-color:var(--survey-primary);background:var(--survey-primary);color:#fff}
@media(max-width:1600px){.pg-survey-view .survey-list-toolbar{grid-template-columns:1fr}.pg-survey-view .survey-list-toolbar .toolbar-left{grid-template-columns:repeat(4,minmax(0,1fr))}.pg-survey-view .survey-keyword-search{grid-column:span 2}.pg-survey-view .survey-list-actions{justify-self:end}}
@media(max-width:1024px){.pg-survey-view .survey-titlebar{align-items:flex-start;flex-direction:column}.pg-survey-view .survey-project-control{width:100%}.pg-survey-view .survey-project-control .project-select{width:100%;min-width:0;max-width:none;flex:1}}
@media(max-width:720px){.pg-survey-view .survey-titlebar,.pg-survey-view .sub-tab-panel{padding:12px}.pg-survey-view .survey-tabs{overflow:auto;padding:0 10px}.pg-survey-view .survey-tabs .sub-tab-btn{flex:0 0 auto}.pg-survey-view .survey-project-control{align-items:stretch;flex-direction:column}.pg-survey-view .survey-list-toolbar .toolbar-left{grid-template-columns:1fr}.pg-survey-view .survey-keyword-search{grid-column:1}.pg-survey-view .survey-list-toolbar .survey-search-input,.pg-survey-view .survey-list-toolbar .filter-select{width:100%;max-width:none}.pg-survey-view .survey-list-actions{width:100%}.pg-survey-view .survey-list-actions .btn{flex:1;justify-content:center}}
/* Design confirmation aligned with the production ledger workbench */
.pg-design-view.design-page-shell{color:var(--pg-text-primary)}
.pg-design-view .design-main-panel{overflow:hidden;border:1px solid var(--pg-border);border-radius:var(--pg-radius-card);background:var(--pg-surface);box-shadow:var(--pg-shadow-card)}
.pg-design-view .design-titlebar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid var(--pg-border);background:var(--pg-surface)}
.pg-design-view .design-titlebar h1{margin:0;color:var(--pg-text-primary);font-size:20px;font-weight:600;line-height:28px}
.pg-design-view .design-titlebar p{margin:3px 0 0;color:var(--pg-text-muted);font-size:12px;line-height:20px}
.pg-design-view .design-project-control{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.pg-design-view .design-project-control label{color:var(--pg-text-secondary);font-size:13px;white-space:nowrap}
.pg-design-view .design-project-control .project-select{width:var(--pg-project-context-width);min-width:var(--pg-project-context-width);max-width:var(--pg-project-context-width);height:36px;padding:0 10px;border:1px solid #d4dee4;border-radius:4px;color:var(--pg-text-primary);background:#fff}
.pg-design-view .design-tabs{display:flex;align-items:flex-end;gap:4px;margin:0;padding:0 18px;border-bottom:1px solid var(--pg-border);background:#fff}
.pg-design-view .design-tabs .sub-tab-btn{height:44px;padding:0 15px;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--pg-text-secondary);font-size:14px}
.pg-design-view .design-tabs .sub-tab-btn:hover{color:var(--pg-primary);background:#f6faf9}
.pg-design-view .design-tabs .sub-tab-btn.active{border-bottom-color:var(--pg-primary);color:var(--pg-primary);font-weight:600}
.pg-design-view .sub-tab-panel{padding:16px 18px 18px;background:#f5f7f9}
.pg-design-view .design-list-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:0;padding:12px;border:1px solid var(--pg-border);border-bottom:0;border-radius:7px 7px 0 0;background:var(--pg-surface)}
.pg-design-view .design-list-toolbar .toolbar-left{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(260px,1.5fr);gap:8px;align-items:center;min-width:0;width:100%}
.pg-design-view .design-list-toolbar .filter-select{height:36px;border-color:#dce4e8;border-radius:4px}
.pg-design-view .design-keyword-search{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px;min-width:0}
.pg-design-view .design-list-toolbar .design-search-input{height:36px;min-width:0;width:100%;border:1px solid #dce4e8;border-radius:4px;background:#fff;padding:0 9px;font-family:inherit;font-size:14px;font-weight:400;color:var(--pg-text-primary);outline:none;box-shadow:none}
.pg-design-view .design-list-toolbar .design-search-input:hover{border-color:#bdcbd2}
.pg-design-view .design-list-toolbar .design-search-input:focus{border-color:var(--pg-primary);box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.pg-design-view .design-list-toolbar .design-search-button{min-width:72px;width:72px}
.pg-design-view .design-list-toolbar .toolbar-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;white-space:nowrap}
.pg-design-view .design-table-wrap{border-radius:0 0 7px 7px;overflow:auto}
#page-design .table-wrap{overflow:auto}
#page-design .toolbar-right .btn-primary{border:1px solid var(--pg-primary);background:var(--pg-primary);color:#fff}
#page-design .toolbar-right .btn-primary:hover{border-color:var(--pg-primary-hover);background:var(--pg-primary-hover);color:#fff}
#page-design .toolbar-right .btn-outline{border:1px solid #cfd8dd;background:#fff;color:var(--pg-text-primary)}
#page-design .toolbar-right .btn-outline:hover{border-color:var(--pg-primary);background:#fff;color:var(--pg-primary)}
.pg-design-view .design-overview-layout{gap:14px}
.pg-design-view .dash-card{border:1px solid var(--pg-border);border-radius:7px;background:#fff;box-shadow:none}
.pg-design-view .dash-card:hover{box-shadow:0 2px 10px rgba(27,53,68,.06)}
.pg-design-view .dash-card h3{color:var(--pg-text-primary);font-size:15px;line-height:22px}
.pg-design-view .design-table-wrap table{min-width:1380px}
.pg-design-view .design-table-wrap th{height:42px;background:#f6f8f9;color:var(--pg-text-secondary);font-weight:500}
.pg-design-view .design-table-wrap td{height:46px;color:var(--pg-text-primary)}
.pg-design-view .design-table-wrap tbody tr:hover td{background:#f4faf8}
.pg-design-view .design-table-wrap .sticky-col{box-shadow:-8px 0 12px rgba(38,51,60,.06)}
.pg-design-view .actions .edit{padding:4px 7px;color:var(--pg-primary);font-size:12px}
.pg-design-view .actions .edit:hover{background:var(--pg-primary-soft);color:var(--pg-primary)}
.pg-design-view .pagination{padding:12px 18px;background:#fff}
.pg-design-view .design-status-select[data-state]{height:28px;min-width:76px;padding:0 24px 0 8px;border:1px solid transparent;border-radius:4px;font-size:12px;font-weight:500}
.pg-design-view .design-status-select[data-state="需复核"]{border-color:#f2d59a;background:#fff6e4;color:#8b5d16}
.pg-design-view .design-status-select[data-state="可生产"]{border-color:#b9ded7;background:#eaf5f3;color:#12695f}
.pg-design-view .design-status-select[data-state="已生产"]{border-color:#c6dced;background:#edf5fb;color:#2f6c9f}
#dsEditModal .modal-body,#lgPreviewModal .modal-body{background:#f5f7f9}
#dsEditModal .detail-item,#dsEditModal .form-row-2,#dsEditModal #dsDevList{border-color:var(--pg-border)}
#dsEditModal .modal-footer,#lgPreviewModal .modal-footer{background:#fff}
#lgPreviewModal .ledger-rule-tabs{background:#fff}
#lgPreviewModal .ledger-rule-panel{background:#f5f7f9}
@media(max-width:1600px){.pg-design-view .design-list-toolbar{grid-template-columns:1fr}.pg-design-view .design-list-toolbar .toolbar-left{grid-template-columns:repeat(4,minmax(0,1fr))}.pg-design-view .design-keyword-search{grid-column:span 2}.pg-design-view .design-list-toolbar .toolbar-right{justify-self:end}}
@media(max-width:1024px){.pg-design-view .design-titlebar{align-items:flex-start;flex-direction:column}.pg-design-view .design-project-control{width:100%}.pg-design-view .design-project-control .project-select{width:100%;min-width:0;max-width:none;flex:1}.pg-design-view .design-list-toolbar{align-items:flex-start}.pg-design-view .design-list-toolbar .toolbar-left{width:100%}}
@media(max-width:720px){.pg-design-view .design-titlebar,.pg-design-view .sub-tab-panel{padding:12px}.pg-design-view .design-tabs{overflow:auto;padding:0 10px}.pg-design-view .design-tabs .sub-tab-btn{flex:0 0 auto}.pg-design-view .design-project-control{align-items:stretch;flex-direction:column}.pg-design-view .design-list-toolbar .toolbar-left{grid-template-columns:1fr}.pg-design-view .design-keyword-search{grid-column:1}.pg-design-view .design-list-toolbar .design-search-input,.pg-design-view .design-list-toolbar .filter-select{width:100%;max-width:none}.pg-design-view .design-list-toolbar .toolbar-right{width:100%}.pg-design-view .design-list-toolbar .toolbar-right .btn{flex:1;justify-content:center}}

.pg-load-status{position:fixed;top:50%;left:50%;z-index:99999;width:min(360px,calc(100vw - 32px));padding:24px;transform:translate(-50%,-50%);box-sizing:border-box;text-align:center;border:1px solid var(--pg-border);border-radius:var(--pg-radius-modal);background:var(--pg-surface);box-shadow:var(--pg-shadow-modal)}
.pg-load-status__title{color:var(--pg-text-primary);font-size:16px;line-height:24px;font-weight:600}
.pg-load-status__hint{margin-top:8px;color:var(--pg-text-muted);font-size:13px;line-height:20px;font-weight:400}

@media(max-width:720px){.pg-survey-view .survey-keyword-search{flex:1 1 100%;min-width:0;width:100%}.pg-survey-view .survey-search-input{min-width:0}.pg-survey-view .survey-list-actions{display:flex;width:100%}.pg-survey-view .survey-list-actions .btn{width:auto;flex:1}}
/* Survey batch import interaction prototype */
[data-pg-modal="true"] .modal.survey-import-modal{width:calc(100vw - 32px);max-width:620px}
.survey-import-modal .modal-header{align-items:flex-start}
.survey-import-modal .modal-header p{margin:2px 0 0;color:var(--pg-text-muted);font-size:12px;line-height:20px;font-weight:400}
.survey-import-body{display:grid;gap:18px}
.survey-import-field{display:grid;gap:8px}
.survey-import-field>label{color:var(--pg-text-secondary);font-size:13px;font-weight:500}
.survey-import-project{display:flex;align-items:center;min-height:36px;padding:0 10px;border:1px solid var(--pg-border);border-radius:4px;color:var(--pg-text-primary);background:#f6f8f9}
.survey-import-file{display:flex;align-items:center;min-height:40px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;overflow:hidden;cursor:pointer}
.survey-import-file input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.survey-import-file-button{align-self:stretch;display:flex;align-items:center;padding:0 14px;border-right:1px solid #cfd8dd;color:var(--pg-primary);background:#f7fbfa;font-size:13px;font-weight:500}
.survey-import-file-name{min-width:0;padding:0 12px;color:var(--pg-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.survey-import-hint{color:var(--pg-text-muted);font-size:12px}
.survey-import-error{color:var(--pg-danger);font-size:12px}
.survey-import-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.survey-import-mode-card{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid #d4dee4;border-radius:4px;background:#fff;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
.survey-import-mode-card:hover{border-color:#9fb8b3}
.survey-import-mode-card.selected{border-color:var(--pg-primary);background:var(--pg-primary-soft)}
.survey-import-mode-card input{width:16px;height:16px;margin-top:2px;accent-color:var(--pg-primary)}
.survey-import-mode-card span{display:grid;gap:3px}
.survey-import-mode-card strong{color:var(--pg-text-primary);font-size:14px}
.survey-import-mode-card small{color:var(--pg-text-muted);font-size:12px;line-height:18px}
.survey-import-warning{align-items:flex-start;gap:10px;padding:12px;border:1px solid #f2c978;border-radius:4px;color:#a65b00;background:#fff8e8}
.survey-import-warning>span{display:flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;border-radius:50%;color:#fff;background:#d98b12;font-weight:700}
.survey-import-warning strong{font-size:13px}
.survey-import-warning p{margin:2px 0 0;font-size:12px;line-height:18px}
.survey-import-modal .modal-footer .btn:disabled{cursor:not-allowed;opacity:.45}
@media(max-width:720px){.survey-import-mode-grid{grid-template-columns:1fr}.survey-import-file{align-items:stretch;flex-direction:column}.survey-import-file-button{min-height:36px;justify-content:center;border-right:0;border-bottom:1px solid #cfd8dd}.survey-import-file-name{padding:10px 12px}.survey-import-modal .modal-footer .btn{flex:1}}

/* Survey create/edit prototype */
.survey-form-modal{height:min(850px,92vh)}
.survey-form-modal .modal-body{background:#f5f7f9}
.survey-form-modal .tab-bar{position:sticky;top:0;z-index:2;margin:-18px -20px 16px;padding:0 20px;background:#fff}
.survey-form-modal .tab-panel{padding:0}
.survey-form-section-title{margin:16px 0 10px;padding-left:8px;border-left:3px solid var(--pg-primary);color:var(--pg-text-primary);font-size:14px;font-weight:600;line-height:22px}
.survey-form-section-title:first-child{margin-top:0}
.survey-form-modal .form-group label{color:var(--pg-text-secondary);font-size:13px;font-weight:500}
.survey-form-modal .form-group :is(input,select,textarea){border-color:#dce4e8;border-radius:var(--pg-radius-control);font-family:inherit;color:var(--pg-text-primary)}
.survey-form-modal .form-group :is(input,select){height:36px}
.survey-form-modal .form-group textarea{width:100%;padding:9px 10px;resize:vertical}
.survey-form-modal .form-group :is(input,select,textarea):focus{border-color:var(--pg-primary);box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.survey-form-full{grid-column:1/-1}
.survey-conditional-panel{margin-top:12px;padding:14px;border:1px solid var(--pg-border);border-radius:var(--pg-radius-card);background:#fff}
.survey-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.survey-choice-grid>label{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:8px 10px;border:1px solid #dce4e8;border-radius:7px;background:#fff;cursor:pointer}
.survey-choice-grid>label:has(input:checked){border-color:var(--pg-primary);background:var(--pg-primary-soft)}
.survey-choice-grid input{order:2;width:16px;height:16px;accent-color:var(--pg-primary)}
.survey-choice-grid span{display:grid;gap:1px}
.survey-choice-grid strong{color:var(--pg-text-primary);font-size:13px}
.survey-choice-grid small{color:var(--pg-text-muted);font-size:11px;font-weight:400}
.survey-check-row{display:flex;align-items:center;gap:8px;min-height:36px}
.survey-check-row label{display:flex;align-items:center;gap:5px;padding:7px 12px;border:1px solid #dce4e8;border-radius:4px;background:#fff;cursor:pointer}
.survey-check-row input{width:15px;height:15px;accent-color:var(--pg-primary)}
.survey-upload-control{display:flex;align-items:center;min-height:36px;gap:10px}
.survey-upload-control input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.survey-upload-control .btn{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:88px;margin:0;cursor:pointer}
.survey-upload-control span{overflow:hidden;color:var(--pg-text-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.survey-signal-options{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;min-height:44px;padding:6px 12px;border:1px solid #dce4e8;border-radius:var(--pg-radius-control);background:var(--pg-surface)}
.survey-signal-options>label{display:inline-flex;align-items:center;justify-content:flex-start;flex:0 0 auto;min-width:190px;min-height:30px;gap:7px;padding:0;border:0;border-radius:0;background:transparent}
.survey-signal-options>label:hover,.survey-signal-options>label:has(input:checked){border:0;background:transparent}
.survey-signal-options input{order:0;flex:0 0 auto}
.survey-signal-options span{display:inline-flex;align-items:baseline;gap:6px}
.survey-signal-options strong{font-size:14px;font-weight:400}
.survey-signal-options small{font-size:12px}
.survey-wireless-row{align-items:start;margin-top:12px}
.survey-operator-options{align-items:center;gap:24px;min-height:36px;padding:0 2px}
.survey-operator-options label{width:auto;min-height:36px;gap:6px;padding:0;border:0;background:transparent}
.survey-operator-options label:hover{color:var(--pg-primary)}
.survey-install-panel{margin-bottom:16px;background:#f9fbfc}
.survey-install-panel .survey-form-section-title{margin-top:0}
.survey-install-panel .form-group:last-child{margin-bottom:10px}
.survey-span-3{grid-column:span 3}
#svt-b2.active{display:flex;flex-direction:column}
#svt-b2>.survey-device-install-grid{order:1}
#svt-b2>#svSolarInstallFields{order:2}
#svt-b2>#svProtectionFields{order:3}
#svSolarInstallFields{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 10px}
#svSolarInstallFields>.survey-form-section-title{grid-column:1/-1}
#svSolarInstallFields>.form-row-4,#svSolarInstallFields>.form-row-3,#svSolarPoleFields>.form-row-4{display:contents}
#svSolarInstallFields .form-group{min-width:0}
.survey-device-install-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 10px;margin-bottom:16px;padding:14px;border:1px solid var(--pg-border);border-radius:var(--pg-radius-card);background:#f9fbfc}
.survey-device-install-grid>.survey-form-section-title{grid-column:1/-1;margin-top:0}
.survey-device-install-grid>.form-row-4,.survey-device-install-grid>#svCatenaryInstallFields,.survey-device-install-grid>#svDevicePoleFields,.survey-device-install-grid #svCatenaryInstallFields>.form-row-4,.survey-device-install-grid #svDevicePoleFields>.form-row-4,.survey-device-install-grid #svDevicePoleFields>.form-row-2{display:contents}
.survey-device-install-grid .form-group{min-width:0}
.survey-status{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:24px;padding:0 7px;border-radius:4px;font-size:12px;white-space:nowrap}
.survey-status.waiting{color:#9a6416;background:#fff2d8}
.survey-status.done{color:#12695f;background:#e3f3f0}
.survey-status.draft{color:#65747d;background:#eef2f4}
.survey-attachment-link{color:var(--pg-primary);font-size:12px}
@media(max-width:1024px){.survey-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.survey-signal-options{display:grid}.survey-signal-options>label{min-width:0}.survey-span-3{grid-column:1/-1}}
@media(max-width:720px){#svSolarInstallFields,.survey-device-install-grid{grid-template-columns:1fr}}
@media(max-width:720px){.survey-choice-grid{grid-template-columns:1fr}.survey-check-row{align-items:stretch;flex-direction:column}.survey-check-row label{width:100%}.survey-form-modal .tab-bar{margin:-16px -16px 16px;padding:0 16px}}

/* Unified management workbench layout — 2026-07-22 */
.pg-project-view .project-main-panel{overflow:hidden;border:1px solid var(--pg-border);border-radius:var(--pg-radius-card);background:var(--pg-surface);box-shadow:var(--pg-shadow-card)}
.pg-project-view .project-page-intro{display:flex;align-items:center;justify-content:space-between;min-height:62px;gap:8px;margin:0;padding:10px 14px;border-bottom:1px solid var(--pg-border);background:#fff}
.pg-project-view .project-page-intro h1{margin:0;color:var(--pg-text-primary);font-size:20px;font-weight:600;line-height:28px}
.pg-project-view .project-page-intro p{margin:0;color:var(--pg-text-muted);font-size:12px;font-weight:400;line-height:20px}
.pg-project-view .project-dashboard{grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:12px;background:#f3f6f8}
.pg-project-view .project-list-toolbar{align-items:center;gap:10px;margin:0;padding:8px 10px;border-top:1px solid var(--pg-border);border-bottom:1px solid var(--pg-border);background:#fff}
.pg-project-view .project-table-wrap{border:0;border-radius:0;box-shadow:none}

.pg-survey-view .survey-titlebar,.pg-design-view .design-titlebar{min-height:62px;padding:10px 14px}
.pg-survey-view .survey-title-copy p,.pg-design-view .design-titlebar p{margin-top:0}
.pg-survey-view .survey-tabs,.pg-design-view .design-tabs{padding:0 14px}
.pg-survey-view .survey-tabs .sub-tab-btn,.pg-design-view .design-tabs .sub-tab-btn{height:42px}
.pg-survey-view .sub-tab-panel,.pg-design-view .sub-tab-panel{min-height:320px;padding:0;background:#f3f6f8}
.pg-survey-view .survey-overview-panel,.pg-design-view #ds-overview{padding:12px;background:#f3f6f8}
.pg-survey-view .survey-list-toolbar,.pg-design-view .design-list-toolbar{margin:0;padding:8px 10px;border:0;border-bottom:1px solid var(--pg-border);border-radius:0;background:#fff}
.pg-survey-view .survey-table-wrap,.pg-design-view .design-table-wrap{border:0;border-radius:0;box-shadow:none}
@media(max-width:720px){
  .pg-survey-view .sub-tab-panel,.pg-design-view .sub-tab-panel{padding:0}
  .pg-survey-view .survey-overview-panel,.pg-design-view #ds-overview{padding:12px}
}
.page[data-pg-migrated="true"].pg-project-view .project-main-panel .project-list-toolbar,.page[data-pg-migrated="true"].pg-survey-view .survey-list-panel .survey-list-toolbar,.page[data-pg-migrated="true"].pg-design-view #ds-list .design-list-toolbar{margin:0}
