.pf-overlay{position:fixed;inset:0;z-index:16000;background:rgba(23,35,48,.4);display:flex;align-items:center;justify-content:center;padding:16px}
.pf-dialog{width:min(1440px,100%);height:min(920px,94dvh);display:flex;flex-direction:column;background:#fff;border:1px solid #dce3eb;border-radius:12px;box-shadow:0 12px 36px #17233030;color:#263342;overflow:hidden}
.pf-dialog header,.pf-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;flex:none;background:#fff;border-bottom:1px solid #e3e8ee}
.pf-dialog header small{display:block;margin-top:4px;color:#69788b}.pf-dialog header button{font-size:24px;border:1px solid #dce3eb;border-radius:6px;background:#fff;width:40px;height:40px;cursor:pointer}
.pf-dialog main{padding:12px 16px;overflow:auto;min-height:0;flex:1}.pf-dialog footer{border-top:1px solid #e3e8ee;border-bottom:0;color:#69788b;font-size:12px}
.pf-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px}.pf-tools label{display:flex;align-items:center;gap:6px}.pf-tools input,.pf-tools select{width:auto;max-width:360px;min-height:36px;margin:0}
.pf-pending,.pf-notice{padding:8px 12px;margin-bottom:12px;background:#f1f4f7;border-radius:6px;font-size:12px;color:#5c6b7b}
.pf-table-scroll{overflow:auto}.pf-table-scroll table{border-collapse:collapse;width:100%;min-width:840px;font-size:13px}.pf-table-scroll th{position:sticky;top:0;z-index:1;background:#e8edf2;text-align:left;padding:9px;white-space:nowrap}.pf-table-scroll td{padding:9px;border-bottom:1px solid #e3e8ee;vertical-align:middle;max-width:560px;overflow-wrap:anywhere}.pf-table-scroll button{margin:2px;white-space:nowrap}.pf-form{max-width:720px}.pf-form label{display:block;margin:12px 0}.pf-form input,.pf-form textarea,.pf-form select{width:100%;margin-top:6px}.pf-form textarea{min-height:72px}.pf-form [role=alert]{color:#a03945}
@media(max-width:640px){.pf-overlay{padding:4px}.pf-dialog{height:98dvh;border-radius:8px}.pf-dialog header,.pf-dialog footer,.pf-dialog main{padding:10px}.pf-tools{padding:8px;gap:6px}.pf-tools .btn,.pf-dialog footer .btn{min-height:44px}.pf-tools input,.pf-tools select{max-width:100%;min-height:44px}.pf-dialog footer span{max-width:70%}.pf-table-scroll table{min-width:0}.pf-table-scroll thead{display:none}.pf-table-scroll tr{display:block;border:1px solid #dde4ec;border-radius:8px;margin:10px 0;padding:8px}.pf-table-scroll td{display:block;border:0;padding:4px}.pf-table-scroll td:first-child{font-weight:600}.pf-table-scroll td button{min-height:44px}.pf-form input,.pf-form select{min-height:44px}}
@media(max-width:640px){.pf-table-scroll td:before{content:attr(data-label) '：';color:#69788b;font-size:12px;margin-right:6px}}
.pf-sheet-scroll{max-height:60dvh;overflow:auto;border:1px solid #dce3eb}.pf-sheet-grid{border-collapse:separate;border-spacing:0;font-size:12px;table-layout:fixed}.pf-sheet-grid th{position:sticky;top:0;background:#e8edf2;z-index:2;min-width:36px;padding:6px}.pf-sheet-grid tbody th{left:0;z-index:1}.pf-sheet-grid td{border:1px solid #e3e8ee;min-width:116px;max-width:360px;vertical-align:middle}.pf-sheet-grid .pf-cell{display:block;border:0;background:transparent;color:inherit;width:100%;min-width:112px;min-height:32px;padding:5px 8px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;cursor:pointer;font:inherit}.pf-sheet-grid .pf-cell:hover,.pf-sheet-grid .pf-cell:focus-visible{background:#edf3f9;outline:2px solid #617d98;outline-offset:-2px}.pf-sheet-grid .pf-formula{background:#f7f9fb}.pf-sheet-grid .pf-cell-error{color:#a03945;background:#fff0f2}.pf-cell-detail{margin-top:12px;border:1px solid #dce3eb;padding:12px;border-radius:6px}.pf-cell-detail dl{display:grid;grid-template-columns:140px 1fr;gap:6px}.pf-cell-detail dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.pf-cell-detail dt,.pf-cell-detail small{color:#69788b}@media(max-width:640px){.pf-sheet-grid .pf-cell{min-height:44px}.pf-cell-detail dl{grid-template-columns:1fr}.pf-cell-detail dt{margin-top:8px}}
