/* 水灵AI V3.9 2026-09-10 最终UI锁定层
   仅覆盖已经确认定稿的业务页；必须在 index/test 的内联旧样式之后加载。 */

/* ---------- 施工文件 / 监理文件 ---------- */
#scheme-info>.a4-page{width:min(100%,1040px)!important;min-height:430px!important;margin:0 auto 24px!important;padding:28px 30px 34px!important;border:1px solid #dce6ed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 10px 28px rgba(29,70,98,.07)!important}
#scheme-info .scheme-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 16px!important;padding:0 0 11px!important;border-bottom:1px solid #d9e5ed!important}
#scheme-info .scheme-heading h2{margin:0!important;color:#1d3040!important;font-size:18px!important;line-height:1.35!important}
#scheme-info #topBtnGroupFA{display:flex!important;align-items:center!important;gap:7px!important}
#scheme-info #rootNewFolderFA{align-items:center!important;justify-content:center!important;height:30px!important;min-height:30px!important;padding:0 10px!important;border-radius:5px!important;font-size:11px!important}
#scheme-info #schemeBreadBar.hidden{display:none!important}
#scheme-info #schemeBreadBar:not(.hidden){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 0 14px!important;padding:9px 10px!important;border:1px solid #dbe6ed!important;border-radius:7px!important;background:#f8fbfd!important}
#scheme-info #folderGridViewFA.folder-grid-v4,#scheme-info .scheme-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
#scheme-info .folder-card-v4,#scheme-info .scheme-file-card{min-height:72px!important;border:1px solid #d9e3e9!important;border-radius:7px!important;background:#fff!important}
#scheme-info .folder-open-v4,#scheme-info .scheme-file-open{min-height:70px!important}

/* ---------- 监理日志 ---------- */
#supervision-log #logYearView,#supervision-log #logMonthView>div:last-child,#supervision-log #logListView{width:min(100%,1040px)!important;max-width:1040px!important;margin:0 auto 20px!important;padding:28px 30px 34px!important;border:1px solid #dce6ed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 24px rgba(31,54,82,.05)!important}
#supervision-log #logMonthView>.dir-bar-opt{width:min(100%,1040px)!important;max-width:1040px!important;margin:0 auto 14px!important}
#supervision-log #logListView>.dir-bar-opt{margin-bottom:18px!important}
#supervision-log #logListTable{border-collapse:collapse!important;width:100%!important}
#supervision-log #logListTable tr{min-height:58px!important;border-bottom:1px solid #e6edf2!important}
#supervision-log #logListTable td{padding:13px 10px!important;vertical-align:middle!important}
#supervision-log .upgrade-month-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:0 0 14px!important;border-bottom:1px solid #dce5eb!important}
#supervision-log .upgrade-date-row .file-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;white-space:nowrap!important}
#supervision-log .log-download-menu{position:relative!important}
#supervision-log .log-download-menu>div{position:absolute!important;right:0!important;top:38px!important;z-index:999!important;min-width:116px!important;padding:5px!important;border:1px solid #d8e3eb!important;border-radius:7px!important;background:#fff!important;box-shadow:0 10px 26px rgba(28,61,84,.16)!important}

/* ---------- 周报 / 月报一级页 ---------- */
#weekly-report #weekYearView,#monthly-report #monthly-dir-page{width:min(100%,1040px)!important;max-width:1040px!important;min-height:0!important;margin:0 auto 24px!important;padding:26px 30px 30px!important;border:1px solid #dce6ed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 24px rgba(31,54,82,.05)!important}
#weekly-report .archive-quick-card,#monthly-report .archive-quick-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;min-height:118px!important;margin:0 0 22px!important;padding:20px 22px!important;border:1px solid #cfe0eb!important;border-left:4px solid #1c8acb!important;border-radius:6px!important;background:#f8fbfd!important}
#weekly-report .archive-quick-card h3,#monthly-report .archive-quick-card h3{margin:0 0 7px!important;color:#294d63!important;font-size:19px!important;line-height:1.35!important}
#weekly-report .archive-quick-card p,#monthly-report .archive-quick-card p{margin:0!important;color:#748896!important;font-size:12px!important;line-height:1.45!important}
#weekly-report .archive-quick-actions,#monthly-report .archive-quick-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
#weekly-report .archive-section-head,#monthly-report .archive-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 10px!important;padding:0 0 10px!important;border-bottom:1px solid #dce5eb!important}
#weekly-report .archive-section-head h3,#monthly-report .archive-section-head h3{margin:0!important;color:#294d63!important;font-size:18px!important}
#weekly-report .archive-year-select,#monthly-report .archive-year-select{height:36px!important;min-width:120px!important;padding:0 10px!important;border:1px solid #cbd8e0!important;border-radius:6px!important;background:#fff!important;color:#314c60!important}
#weekly-report .archive-record-list,#monthly-report .archive-record-list{display:grid!important;gap:8px!important}
#weekly-report .archive-record-row,#monthly-report .archive-record-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:62px!important;padding:10px 14px!important;border:1px solid #dfe7ed!important;border-radius:7px!important;background:#fff!important}
#weekly-report .archive-record-main,#monthly-report .archive-record-main{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-width:0!important;border:0!important;background:transparent!important;text-align:left!important}
#weekly-report .archive-download-btn,#monthly-report .archive-download-btn{height:34px!important;min-height:34px!important;padding:0 12px!important;border-radius:6px!important;font-size:11px!important}

/* ---------- 现场监管三个一级页 ---------- */
#field-supervision{width:100%!important;max-width:1180px!important;margin:0 auto!important}
#field-supervision .fs-directory{width:min(100%,1040px)!important;max-width:1040px!important;min-height:390px!important;margin:0 auto 22px!important;padding:26px 30px 30px!important;border:1px solid #dce6ed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 24px rgba(31,54,82,.05)!important}
#field-supervision .fs-directory-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:0 0 20px!important;padding:0!important}
#field-supervision .fs-directory-head strong{color:#294d63!important;font-size:20px!important;line-height:1.35!important}
#field-supervision .fs-directory-head>button{height:34px!important;min-height:34px!important;padding:0 12px!important;border:1px solid #176da8!important;border-radius:6px!important;background:#176da8!important;color:#fff!important;font-size:11px!important;font-weight:700!important}
#field-supervision .fs-archive-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 10px!important;padding:0 0 10px!important;border-bottom:1px solid #dce5eb!important}
#field-supervision .fs-archive-head h3{margin:0!important;color:#294d63!important;font-size:18px!important}
#field-supervision .fs-directory-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
#field-supervision .fs-directory-tools select{height:34px!important;min-width:112px!important;padding:0 9px!important;border:1px solid #cbd8e0!important;border-radius:6px!important;background:#fff!important;color:#314c60!important;font-size:11px!important}
#field-supervision .fs-record-table{width:100%!important;border-collapse:collapse!important}
#field-supervision .fs-record-table th,#field-supervision .fs-record-table td{padding:12px 14px!important;border-bottom:1px solid #e3ebf0!important;font-size:13px!important;vertical-align:middle!important}
#field-supervision .fs-record-table th{background:#f5f9fb!important;color:#5d7485!important;font-weight:600!important}
#field-supervision .fs-row-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;white-space:nowrap!important}
#field-supervision .fs-row-button{height:32px!important;min-height:32px!important;padding:0 10px!important;border:1px solid #d6e2ea!important;border-radius:5px!important;background:#fff!important;color:#36556c!important;font-size:11px!important}

/* ---------- 会议纪要一级页 ---------- */
#meeting-minutes .mm-directory-page{width:min(100%,1040px)!important;max-width:1040px!important;min-height:0!important;margin:0 auto 22px!important;padding:24px 28px 28px!important;border:1px solid #dce6ed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 24px rgba(31,54,82,.05)!important;overflow:visible!important}
#meeting-minutes .mm-current-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;min-height:104px!important;margin:0 0 22px!important;padding:18px 20px!important;border:1px solid #d6e2e9!important;border-radius:7px!important;background:#f8fbfd!important}
#meeting-minutes .mm-current-card h3{margin:0!important;color:#294d63!important;font-size:19px!important}
#meeting-minutes .record-list-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 10px!important;padding:0 0 10px!important;border-bottom:1px solid #dce5eb!important}
#meeting-minutes .record-list-toolbar h3{margin:0!important;color:#294d63!important;font-size:18px!important}
#meeting-minutes .mm-month-filter{font-size:0!important;color:transparent!important}
#meeting-minutes .mm-month-filter input{height:34px!important;min-width:150px!important;padding:0 10px!important;border:1px solid #cbd8e0!important;border-radius:6px!important;background:#fff!important;color:#314c60!important;font-size:11px!important}
#meeting-minutes .file-list{width:100%!important;border-collapse:separate!important;border-spacing:0 8px!important;table-layout:fixed!important}
#meeting-minutes .mm-record-row{height:64px!important;min-height:64px!important;background:#fff!important}
#meeting-minutes .mm-record-row td{padding:10px 14px!important;border-top:1px solid #dfe7ed!important;border-bottom:1px solid #dfe7ed!important;vertical-align:middle!important}
#meeting-minutes .mm-record-row td:first-child{border-left:1px solid #dfe7ed!important;border-radius:7px 0 0 7px!important}
#meeting-minutes .mm-record-row td:last-child{border-right:1px solid #dfe7ed!important;border-radius:0 7px 7px 0!important}
#meeting-minutes .file-actions{text-align:right!important;white-space:nowrap!important}
#meeting-minutes .mm-list-more{display:inline-grid!important;width:34px!important;height:34px!important;place-items:center!important;padding:0!important;border:1px solid #d3dce5!important;border-radius:6px!important;background:#fff!important;color:#526274!important;font-size:18px!important;cursor:pointer!important}
#meeting-minutes .mm-list-context-menu{position:fixed!important;z-index:9999!important}

/* ---------- 监理通知一级页 ---------- */
#inspection-notice #fileListViewTZ{width:min(100%,1040px)!important;max-width:1040px!important;min-height:0!important;height:auto!important;margin:0 auto 22px!important;padding:24px 28px 28px!important;border:1px solid #dce6ed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 24px rgba(31,54,82,.05)!important;overflow:visible!important}
#inspection-notice .notice-current-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;min-height:104px!important;margin:0 0 22px!important;padding:18px 20px!important;border:1px solid #d6e2e9!important;border-radius:7px!important;background:#f8fbfd!important}
#inspection-notice .notice-current-card h2{margin:0!important;color:#294d63!important;font-size:19px!important}
#inspection-notice .notice-create-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
#inspection-notice .notice-archive-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 10px!important;padding:0 0 10px!important;border-bottom:1px solid #dce5eb!important}
#inspection-notice .notice-archive-heading h3{margin:0!important;color:#294d63!important;font-size:18px!important}
#inspection-notice #noticeMonthFilterTZ{height:34px!important;min-width:140px!important;padding:0 9px!important;border:1px solid #cbd8e0!important;border-radius:6px!important;background:#fff!important;color:#314c60!important;font-size:11px!important}
#inspection-notice .notice-type-tabs{display:flex!important;align-items:center!important;gap:4px!important;margin:0 0 10px!important;border-bottom:1px solid #dce5eb!important}
#inspection-notice .notice-type-tabs button{height:34px!important;padding:0 12px!important;border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;color:#718696!important;font-size:11px!important;font-weight:700!important}
#inspection-notice .notice-type-tabs button.active{color:#176da8!important;border-bottom-color:#176da8!important}
#inspection-notice #fileTableBodyTZ .notice-record-row{height:64px!important;min-height:64px!important;background:#fff!important}
#inspection-notice #fileTableBodyTZ .notice-record-row td{padding:10px 12px!important;border-bottom:1px solid #e3ebf0!important;vertical-align:middle!important}
#inspection-notice #fileTableBodyTZ .notice-record-row .file-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;white-space:nowrap!important}
#inspection-notice .notice-more-button{width:34px!important;height:34px!important;font-size:18px!important}
#inspection-notice .notice-context-menu{position:fixed!important;z-index:9999!important}

/* ---------- 平行检测台账 ---------- */
#test-ledger .ledger-category-view{width:min(100%,1040px)!important;max-width:1040px!important;margin:0 auto 22px!important;padding:28px 34px 34px!important;border:1px solid #dce6ed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 24px rgba(31,54,82,.05)!important}
#test-ledger .ledger-category-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;margin:0 0 22px!important}
#test-ledger .ledger-category-head h3{margin:0!important;color:#294d63!important;font-size:22px!important}
#test-ledger .ledger-category-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
#test-ledger .ledger-category-table th,#test-ledger .ledger-category-table td{padding:11px 8px!important;font-size:13px!important}
#test-ledger .ledger-category-editor{width:100%!important}
#test-ledger .ledger-control-bar{width:min(100%,1050px)!important;max-width:1050px!important;min-height:56px!important;margin:0 auto 16px!important;padding:10px 12px!important;border:1px solid #d9e4eb!important;border-radius:7px!important;background:#fff!important}
#test-ledger .ledger-card{width:min(100%,1050px)!important;max-width:1050px!important;margin:0 auto!important;padding:28px 34px 34px!important;border:1px solid #d9e4eb!important;border-radius:7px!important;background:#fff!important}
#test-ledger .ledger-extract-panel p,#test-ledger .ledger-tip{display:none!important}

/* ---------- 删除普通网页辅助小字；保留日期、状态、正式表单说明 ---------- */
#scheme-info .folder-empty-v4,
#inspection-notice .notice-current-card p,
#inspection-notice .record-list-toolbar p,
#meeting-minutes .mm-current-card p,
#test-ledger .ledger-category-head p{display:none!important}

@media(max-width:768px){
  #scheme-info>.a4-page,#supervision-log #logYearView,#supervision-log #logListView,#weekly-report #weekYearView,#monthly-report #monthly-dir-page,#field-supervision .fs-directory,#meeting-minutes .mm-directory-page,#inspection-notice #fileListViewTZ,#test-ledger .ledger-category-view,#test-ledger .ledger-card{width:100%!important;max-width:100%!important;margin:0 0 12px!important;padding:12px!important;border-radius:0!important;box-shadow:none!important}
  #scheme-info #folderGridViewFA.folder-grid-v4,#scheme-info .scheme-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #weekly-report .archive-quick-card,#monthly-report .archive-quick-card{display:grid!important;gap:12px!important;min-height:0!important;padding:15px 14px!important}
  #weekly-report .archive-quick-actions,#monthly-report .archive-quick-actions{justify-content:flex-start!important}
  #weekly-report .archive-record-row,#monthly-report .archive-record-row{grid-template-columns:1fr auto!important;padding:11px 10px!important}
  #field-supervision .fs-directory-head{align-items:flex-start!important}
  #field-supervision .fs-archive-head{align-items:flex-start!important}
  #field-supervision .fs-directory-tools{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  #field-supervision .fs-directory-tools select{min-width:0!important;width:100%!important}
  #meeting-minutes .mm-current-card,#inspection-notice .notice-current-card{display:grid!important;gap:12px!important;min-height:0!important;padding:14px!important}
  #meeting-minutes .file-list,#meeting-minutes .file-list tbody{display:grid!important;gap:8px!important}
  #meeting-minutes .file-list tr{display:grid!important;grid-template-areas:"name actions" "date actions" "size actions"!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 8px!important;padding:11px 10px!important;border:1px solid #dfe7ed!important;border-radius:7px!important}
  #meeting-minutes .file-list td{width:auto!important;padding:0!important;border:0!important}
  #inspection-notice .notice-create-actions{justify-content:flex-start!important}
  #test-ledger .ledger-category-head{display:grid!important;gap:12px!important}
  #test-ledger .ledger-category-actions{justify-content:flex-start!important}
}
@media(max-width:360px){#scheme-info #folderGridViewFA.folder-grid-v4,#scheme-info .scheme-file-grid{grid-template-columns:1fr!important}}

/* 2026-09-10 UI review release8: confirmed simplifications */
#field-supervision .fs-row-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:42px!important}
#field-supervision .fs-row-actions>.fs-more{margin-left:auto!important}
#field-supervision .fs-more>div button{min-height:32px!important;padding:0 10px!important;font-size:11px!important}
#test-ledger .ledger-flat-view{width:100%!important}
#test-ledger .ledger-card{width:min(100%,1050px)!important;max-width:1050px!important;margin:0 auto!important}
#test-ledger .ledger-control-bar{width:min(100%,1050px)!important;max-width:1050px!important}
@media(max-width:768px){#test-ledger .ledger-card,#test-ledger .ledger-control-bar{width:100%!important;max-width:100%!important;margin:0 0 12px!important}}


/* release9 final lock: 现场监管菜单 + 平行检测台账紧凑字号 */
#field-supervision .fs-row-actions>.fs-more>div{display:grid!important;grid-template-columns:1fr!important;width:112px!important;min-width:112px!important;max-width:112px!important;right:0!important;left:auto!important;overflow:visible!important;z-index:1000!important}
#field-supervision .fs-row-actions>.fs-more>div>button{display:block!important;width:100%!important;min-height:32px!important;margin:0!important;padding:0 10px!important;font-size:11px!important;line-height:32px!important;text-align:left!important;white-space:nowrap!important}
#test-ledger .ledger-control-bar{justify-content:flex-end!important;min-height:50px!important;padding:8px 10px!important}
#test-ledger .upgrade-ledger-save-state{display:none!important}
#test-ledger .ledger-editor-actions .btn{min-height:32px!important;height:32px!important;padding:0 10px!important;font-size:11px!important}
#test-ledger .ledger-card{padding:22px 26px 28px!important}
#test-ledger .ledger-section-title{font-size:14px!important}
#test-ledger .w-table,#test-ledger .w-table th,#test-ledger .w-table td{font-size:11px!important;line-height:1.35!important}
#test-ledger #ledgerDetailTable input,#test-ledger #ledgerDetailTable select{height:27px!important;font-size:11px!important}
#test-ledger #ledgerDetailTable .btn-table-danger{height:27px!important;font-size:10px!important}

/* Release12: AI弹窗可关闭/拖动，认证反馈 */
.sl812-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;user-select:none}.sl812-modal-head h2{margin:0}.sl812-modal-x{width:36px;height:36px;border:0;background:transparent;border-radius:8px;font-size:26px;line-height:1;cursor:pointer;color:#64748b}.sl812-modal-x:hover{background:#f1f5f9;color:#0f172a}.sl-auth-agree{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.5;color:#475569}.sl-auth-agree input{width:auto;margin-top:3px}
