.pc-toolbar{flex-wrap:wrap;gap:10px}.pc-toolbar select{max-width:240px}.pc-summary,.pc-help{color:#52677d;font-size:12px;margin:12px 0}.pc-quote-panel{padding:12px;border:1px solid #d6e1ed;border-radius:10px;background:#f5f9fd;margin:12px 0}.pc-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.pc-quote-panel small{display:block;color:#52677d;margin:5px 0}.pc-quote-panel [hidden]{display:none!important}#pcQuotePicker{padding-top:12px}#pcQuoteResults{max-height:290px;overflow:auto;margin:10px 0}#pcQuoteResults th{position:sticky;top:0;background:#f1f5fa}#pcQuoteResults td{white-space:normal;min-width:65px}#pcQuoteResults td:first-child{min-width:180px}.quote-line-internal:has(.pc-line-pick),.quote-line-head.pc-line-head{grid-template-columns:minmax(180px,2fr) 65px 90px 125px 90px 125px 100px 25px 52px}.quote-line .pc-line-pick{font-size:10px;padding:5px!important;background:#edf4fc;color:#163b60;border:1px solid #c8d9ec}#pcEditorError{color:#ad2c2c;margin-top:10px}#pcTable td{vertical-align:top}#pcTable .actions{white-space:normal}#pcTable td:first-child{min-width:190px}#pcTable small{color:#52677d}@media(max-width:750px){.pc-panel-head{align-items:flex-start;flex-direction:column}.pc-toolbar input,.pc-toolbar select{width:100%;max-width:none}.pc-quote-panel{padding:9px}}
.pc-quick-guide{font-size:11px;color:#52677d;margin:7px 0 12px}.pc-quick-guide summary{cursor:pointer;width:fit-content;text-decoration:underline;text-underline-offset:2px}.pc-quick-guide summary:focus-visible{outline:2px solid #28649a;outline-offset:3px}.pc-quick-guide[open]{padding:9px 12px;background:#f5f9fd;border:1px solid #d6e1ed;border-radius:7px}.pc-quick-guide ol{margin:8px 0 0;padding-left:18px;line-height:1.55}.pc-quick-guide li+li{margin-top:5px}
.pc-file-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 0;border-bottom:1px solid #e3eaf2;font-size:11px}.pc-file-row span{flex:1;overflow-wrap:anywhere}.pc-file-row button{font-size:10px}
/* Grille principale seulement, sans modifier l'éditeur ni le sélecteur des devis. */
#pcTable table{table-layout:fixed;min-width:920px;width:100%}
#pcTable th,#pcTable td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere;min-width:0;line-height:1.4}
#pcTable td:first-child{min-width:0}
#pcTable th:nth-child(1){width:24%}
#pcTable th:nth-child(2){width:9%}
#pcTable th:nth-child(3),#pcTable th:nth-child(4){width:11%}
#pcTable th:nth-child(5){width:10%}
#pcTable th:nth-child(6){width:14%}
#pcTable th:nth-child(7){width:11%}
#pcTable th:nth-child(8){width:10%}
#pcTable .actions button{white-space:normal;max-width:100%;margin:2px;padding:6px 5px;overflow-wrap:anywhere}

.pc-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.pc-catalog-head h2{font-size:21px;margin:0 0 6px;color:#17374e}.pc-catalog-head p{margin:0;color:#62788b;font-size:12px}
.pc-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:15px;background:white;border:1px solid #dce5ed;border-radius:11px}.pc-filters label{display:grid;gap:5px;font-size:11px;color:#526c81;flex:1 1 150px;min-width:0}.pc-filters .pc-search-field{flex:2 1 310px}.pc-filters input,.pc-filters select{width:100%;max-width:100%;min-width:0;height:39px}.pc-filters button{min-height:39px}
.pc-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.pc-results-head p{margin:0;font-size:12px;color:#526c81}.pc-view-toggle{display:flex;align-items:center;gap:6px;font-size:12px}.pc-view-toggle input{width:auto}.pc-basket{position:sticky;top:90px;z-index:2;display:flex;align-items:center;gap:10px;padding:12px 15px;background:#f0f6fb;border:1px solid #cadae6;border-radius:10px;margin-bottom:12px}.pc-basket div{flex:1}.pc-basket small{display:block;color:#60778b;font-size:11px;margin-top:4px}
#pcTable table.pc-rate-table{min-width:760px;table-layout:fixed}#pcTable .pc-rate-table th:nth-child(1){width:29%}#pcTable .pc-rate-table th:nth-child(2){width:9%}#pcTable .pc-rate-table th:nth-child(3){width:16%}#pcTable .pc-rate-table th:nth-child(4){width:17%}#pcTable .pc-rate-table th:nth-child(5){width:14%}#pcTable .pc-rate-table th:last-child{width:15%}
#pcTable .pc-rate-table.pc-internal{min-width:1060px}#pcTable .pc-internal th:nth-child(1){width:23%}#pcTable .pc-internal th:nth-child(3){width:14%}#pcTable .pc-internal th:nth-child(4){width:14%}#pcTable .pc-internal th:nth-child(5){width:13%}#pcTable .pc-internal th:nth-child(6),#pcTable .pc-internal th:nth-child(7){width:8%}#pcTable .pc-internal th:last-child{width:12%}
#pcTable{max-height:65vh;overflow:auto}#pcTable thead th{position:sticky;top:0;z-index:1;background:#f3f7fa;color:#61788c;font-size:10px}#pcTable td{vertical-align:middle;padding:11px 10px}#pcTable td small{display:block;margin-top:4px;font-size:10px;line-height:1.4}.pc-reference{display:block;color:#17374e;font-size:12px}.pc-description{display:block;margin-top:3px;font-size:12px;line-height:1.4}.pc-price{color:#17374e;font-size:16px;white-space:normal}.pc-operation{font-size:11px}.pc-source{display:inline-block;border-radius:12px;padding:4px 7px;background:#e7f4ed;color:#1b704f;font-size:10px;font-weight:600}.pc-source.pc-history{background:#fff2d8;color:#8f5a08}
#pcTable td.actions{min-width:0}#pcTable .actions button{display:block;width:100%;min-height:28px;border:1px solid #dbe4ed;border-radius:6px;background:#fff;color:#28516f;font-size:10px;margin:4px 0}#pcTable .actions button.pc-add{background:#eab13c;border-color:#eab13c;color:#17374e;font-weight:700}
.pc-basket-lines{display:grid;gap:10px;margin:16px 0}.pc-basket-lines>label{display:grid;gap:5px;padding:12px;border:1px solid #dce5ed;border-radius:8px;background:#f7fafc}.pc-basket-lines small{color:#61798c}.pc-basket-lines input{width:100px;margin:0 6px}.pc-target{display:grid;gap:5px;margin:15px 0}.pc-target select{max-width:100%}.pc-history-confirm{display:flex;align-items:center;gap:8px;background:#fff6e4;padding:12px;border-radius:8px}.pc-history-confirm input{width:auto}#pcBasketError{color:#b43232}
.modal-card:has(#pcBasketForm){width:min(850px,94vw);max-width:850px}.modal-card:has(#pcArchive){width:min(880px,94vw);max-width:880px}
@media(max-width:750px){.pc-catalog-head{align-items:flex-start;flex-direction:column}.pc-filters label{flex:1 1 135px}.pc-filters .pc-search-field{flex-basis:100%}.pc-results-head{align-items:flex-start;flex-direction:column}.pc-basket{position:static;flex-wrap:wrap}.pc-basket div{flex-basis:100%}}
