/* Existing project documents remain associated with their local originals. */
.linked-file-summary{font-size:12px;line-height:1.9;color:#3a5570}
.linked-file-summary>.badge{margin:0 6px 8px 0}
.linked-file-internal{color:#67542e;background:#fcf7e9;border:1px solid #ebdfbd}
.linked-file-customer{color:#0864a7;background:#edf6ff;border:1px solid #c8ddf2}
.linked-file-notes{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f8fc;border:1px solid #dfe7ef;border-radius:7px;padding:12px 14px}
.linked-file-preview{display:block;width:100%;height:60vh;min-height:320px;max-height:740px;border:1px solid #dfe7ef;border-radius:7px;margin-top:18px;background:#fff}
.linked-file-image{display:block;width:100%;max-height:65vh;object-fit:contain;margin-top:18px;border:1px solid #dfe7ef;border-radius:7px}
.linked-pdf-figure{margin:18px 0 0}
.linked-pdf-figure figcaption{font-size:11px;color:#62758a;line-height:1.8}
.linked-pdf-figure .linked-pdf-image{max-height:none;height:auto;margin-top:8px}
.linked-pdf-image[hidden]{display:none}
.pfl-groups{display:grid;gap:22px;margin-top:18px}
.pfl-group{border:1px solid #dfe7ef;border-radius:9px;overflow:hidden;background:#fff}
.pfl-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:#f3f7fb;border-bottom:1px solid #e2e9f1}
.pfl-group-heading h4{margin:0;color:#24496b;font-size:12px;font-weight:600}
.pfl-group-heading>span{font-size:10px;color:#60788f}
.pfl-group .pc-file-row{align-items:flex-start;padding:15px;gap:12px}
.pfl-group .pc-file-row:first-child{border-top:0}
.pfl-group .related-main{min-width:0;flex:1}
.pfl-file-name{font-size:12px;font-weight:550;text-align:left}
.pfl-file-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;color:#687d92;font-size:10px;line-height:1.8;margin-top:6px}
.pfl-purpose{display:inline-flex;align-items:center;border:1px solid #d9e2ec;border-radius:4px;padding:1px 6px;font-size:10px;line-height:1.8;white-space:nowrap}
.pfl-purpose-customer{color:#0864a7;background:#edf6ff;border-color:#c8ddf2}
.pfl-purpose-internal{color:#67542e;background:#fcf7e9;border-color:#ebdfbd}
.pfl-purpose-unmarked{color:#67788a;background:#f3f5f8;border-color:#dce3eb}
.pfl-file-status{margin-top:7px;color:#465f78;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.pfl-file-note{margin:5px 0 0;color:#6c7d8f;font-size:10px;line-height:1.9;overflow-wrap:anywhere}
.pfl-file-missing{margin-top:7px;color:#a34f38;font-size:11px;line-height:1.8}
.pfl-file-unavailable{background:#fafbfc}
.pfl-file-unavailable .pfl-file-name{color:#738191;opacity:1}
.pfl-purpose-note{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;margin:3px 0 18px;color:#667d93;font-size:10px;line-height:1.9}
.pfl-catalog-notice{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding:13px 15px;border-radius:7px;font-size:11px;line-height:1.8;margin:14px 0}
.pfl-catalog-loading{border:1px solid #cfdfef;background:#f1f7fd;color:#3b6b92}
.pfl-catalog-error{border:1px solid #ead8bd;background:#fff9ed;color:#806333}
.pfl-catalog-error strong{font-weight:600}
.pfl-catalog-error .button{margin-left:auto;font-size:11px;min-height:34px;padding:7px 11px}
.pfl-overview-shortcut{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid #bfd8ef;border-left:3px solid #0075d4;border-radius:8px;background:#f2f8fe;margin-bottom:24px}
.pfl-overview-shortcut strong{display:block;margin:7px 0;color:#204e78;font-size:16px;font-weight:600}
.pfl-overview-shortcut p{margin:0;color:#60788f;font-size:11px;line-height:1.9}
.pfl-overview-shortcut>.button{flex-shrink:0}
.pfl-existing-quotes{margin-bottom:28px}
.pfl-no-quote-files{font-size:12px;line-height:1.9;margin:15px 0}
.pfl-backup-group>summary{cursor:pointer;color:#5d7083;font-size:12px;list-style-position:inside}
.pfl-backup-group:not([open])>summary{border-bottom:0}
.readable-table-heading{display:flex;flex-direction:column;gap:6px;margin-top:18px;color:#204e78;line-height:1.8}
.readable-table-heading>span{font-size:11px;color:#62758a}
.readable-table-summary,.readable-sheet-notes{font-size:12px;color:#526a81;line-height:1.9;padding-left:20px;white-space:pre-wrap;overflow-wrap:anywhere}
.readable-sheet-tabs{display:flex;gap:7px;overflow-x:auto;padding:8px 0 12px}
.readable-sheet-tabs>.button{white-space:nowrap;flex-shrink:0;font-size:12px}
.readable-grid-wrap{max-height:65vh;overflow:auto;border:1px solid #cbd9e6;border-radius:6px;background:white}
.readable-grid{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;min-width:calc(var(--readable-columns)*135px + 56px);font-size:12px;line-height:1.8;color:#304a62}
.readable-grid caption{text-align:left;padding:10px 12px;color:#526a81;background:#f2f7fc;font-weight:600}
.readable-grid th,.readable-grid td{border-right:1px solid #dce5ef;border-bottom:1px solid #dce5ef;padding:10px 12px;min-width:135px;max-width:330px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top;text-align:left}
.readable-grid thead th{position:sticky;top:0;z-index:2;background:#e8f1fa;color:#234d72;font-weight:600}
.readable-grid tbody tr:nth-child(even){background:#f7fafe}
.readable-grid .readable-row-number{min-width:56px;max-width:56px;text-align:center;background:#edf3f9;color:#60768b}
.linked-pdf-pager{display:flex;align-items:center;justify-content:center;gap:15px;margin-bottom:10px;font-size:12px;color:#41617d}
.linked-pdf-pager .button{font-size:12px;min-height:34px;padding:6px 12px}
.modal:has([data-readable-table]){width:min(1320px,calc(100vw - 48px));max-width:none}
@media(max-width:700px){
  .pfl-overview-shortcut{flex-direction:column;align-items:stretch;padding:17px;gap:15px}
  .pfl-overview-shortcut>.button{width:100%}
  .pfl-overview-shortcut strong{font-size:15px}
  .pfl-group .pc-file-row{padding:13px;gap:10px}
  .pfl-group .related-icon{width:30px;min-width:30px;height:32px}
  .pfl-group .related-main{flex-basis:calc(100% - 42px)}
  .pfl-group .pc-row-actions{margin-left:40px}
  .pfl-file-name{font-size:12px;line-height:1.8}
  .pfl-file-note{font-size:11px}
  .pfl-catalog-error{align-items:flex-start}
  .pfl-catalog-error .button{margin-left:0}
}
