/* Catalogue SISA/PAM — scoped under .cat-page */
.cat-page{padding:0!important;max-width:none!important}
.cat-root{padding:18px 22px 28px;color:#132922}
.cat-breadcrumb{font-size:13px;margin-bottom:16px;color:#436257}
.cat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.cat-heading-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cat-heading-icon{display:grid;place-items:center;background:#08643e;color:#fff;border-radius:12px;width:48px;height:48px;font-size:20px}
.cat-heading h1{font-size:26px;margin:0;letter-spacing:-.4px;color:#102b26}
.cat-count{background:#e2eacb;border-radius:18px;padding:7px 14px;font-weight:700;font-size:13px}
.cat-primary{background:#48a800;color:#fff;border:0;border-radius:9px;padding:12px 16px;display:inline-flex;gap:8px;align-items:center;font-weight:700;cursor:pointer}
.cat-primary:hover{background:#388b00}
.cat-toolbar,.cat-summary{background:#fffaf6;border:1px solid #eadbd0;border-radius:14px;padding:10px;display:flex;gap:10px;align-items:center;margin-bottom:10px;flex-wrap:wrap}
.cat-searchbox{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cabeb7;border-radius:10px;padding:0 12px;flex:1;min-width:180px;max-width:400px}
.cat-searchbox input{border:0;outline:0;width:100%;height:40px;background:transparent}
.cat-toolactions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-left:auto}
.cat-toolbtn,.cat-line-select{border:1px solid #cfc6bf;background:#fff;border-radius:9px;min-height:38px;padding:7px 10px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:#17362b;cursor:pointer;font-size:13px}
.cat-toolbtn:hover{background:#eaf5e6}
.cat-upload{cursor:pointer}
.cat-popwrap{position:relative}
.cat-pop{position:absolute;right:0;top:42px;z-index:8;width:200px;background:#fff;box-shadow:0 8px 24px #0002;border:1px solid #ddd;border-radius:10px;padding:12px;display:grid;gap:8px}
.cat-pop label{display:flex;gap:8px;align-items:center;font-size:13px}
.cat-summary{background:#f2f5e8;font-size:13px}
.cat-summary b{font-size:14px}
.cat-pill{padding:6px 11px;border-radius:20px;font-weight:700}
.cat-pill.green{background:#dbeecb;color:#145b2a}
.cat-pill.red{background:#f8d8d4;color:#8d2825}
.cat-summaryfilter{flex:1;color:#315a43;min-width:160px}
.cat-reset{border:1px solid #cfc6bf;background:transparent;border-radius:9px;padding:7px 10px;cursor:pointer}
.cat-selected,.cat-message{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#e7f2fc;border-radius:8px;margin:8px 0;font-size:13px}
.cat-message.erreur{background:#fde8e6;color:#8d2825}
.cat-tablewrap{background:#fff;border:1px solid #dccfc5;border-radius:14px;overflow:auto;max-height:calc(100vh - 340px);min-height:300px;overscroll-behavior:contain}
.cat-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;white-space:nowrap}
.cat-table th,.cat-table td{border-bottom:1px solid #eee2da;border-right:1px solid #f2e9e2;padding:9px 11px;text-align:left}
.cat-table thead th{position:sticky;background:#fff4ed;top:0;z-index:3}
.cat-table thead .cat-filterrow th{top:38px;background:#fffaf7;z-index:3;padding:6px 7px}
.cat-table thead th:first-child,.cat-table tbody td:first-child{position:sticky;left:0;z-index:4;background:#fffaf6}
.cat-table .cat-filterrow th:first-child{z-index:5}
.cat-table tbody tr:nth-child(even) td{background:#fffaf7}
.cat-table tbody tr:hover td{background:#eaf4e6}
.cat-sortbtn{border:0;background:none;font-weight:700;color:#17362b;padding:0;display:flex;gap:6px;align-items:center;cursor:pointer}
.cat-filterrow input,.cat-filterrow select{border:1px solid #c9c4bf;border-radius:6px;padding:6px;width:100%;min-width:64px;background:#fff}
.cat-range{display:flex;gap:4px}
.cat-range input{min-width:48px;width:50%}
.cat-checkcol{width:40px;min-width:40px;text-align:center}
.cat-ref{font-family:ui-monospace,Consolas,monospace;font-weight:600}
.cat-numeric{text-align:right;font-variant-numeric:tabular-nums}
.cat-status{display:inline-block;border-radius:16px;padding:4px 10px;font-weight:700}
.cat-status.active{background:#e1f0d3;color:#195b2b}
.cat-status.inactive{background:#f7dbd7;color:#8d2825}
.cat-actions{min-width:88px;width:1%;white-space:nowrap;padding-left:4px!important;padding-right:4px!important}
.cat-actions button{display:inline-flex;gap:2px;align-items:center;background:none;border:0;color:#0a4f75;font-weight:600;cursor:pointer}
.cat-iconbar{display:inline-flex;align-items:center;gap:0;flex-wrap:nowrap}
.cat-iconbtn{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;min-width:28px;min-height:28px;
  padding:0;margin:0;border:0;border-radius:6px;
  background:transparent;color:#0a4f75;cursor:pointer;
}
.cat-iconbtn:hover,.cat-iconbtn:focus-visible{background:#e7f2ea;outline:2px solid #08643e;outline-offset:0}
.cat-iconbtn.danger{color:#8d2825}
.cat-iconbtn.danger:hover,.cat-iconbtn.danger:focus-visible{background:#f7dbd7}
.cat-iconbtn.warn{color:#8a5a12}
.cat-iconbtn.warn:hover,.cat-iconbtn.warn:focus-visible{background:#f7ecd7}
#quotes-root .cat-actions{min-width:72px}
#quotes-root .cat-iconbtn{width:26px;height:26px;min-width:26px;min-height:26px;border-radius:5px}
#quotes-root .cat-iconbar{gap:0}
.cat-status.sent{background:#d7e8f7;color:#0a4f75}
.cat-sel-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:8px}
.cat-toolbtn-danger{color:#8d2825!important;border-color:#e2b4b0!important;background:#fdf3f2!important}
.cat-toolbtn-danger:hover{background:#f7dbd7!important}
.filtre-client-ra{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:12px;font-weight:600;min-width:220px}
.filtre-client-ra .soho-ra-mount{min-width:220px;width:100%}
.cat-empty{text-align:center;padding:48px;color:#5b6d63}
.cat-table tbody tr[data-row-id]{cursor:pointer}
.cat-table tbody tr.cat-row-active td{background:#dff0d4!important}
.cat-filter-active input,.cat-filter-active select{border-color:#48a800;background:#f3fbea}
.cat-pill:not(.green):not(.red){background:#e7eee4;color:#204636}
.cli-fiche{display:grid;gap:10px;margin:0}
.cli-fiche > div{display:grid;grid-template-columns:140px 1fr;gap:8px;padding:8px 0;border-bottom:1px solid #efe4db}
.cli-fiche dt{margin:0;color:#5a6f64;font-weight:600;font-size:12px}
.cli-fiche dd{margin:0;overflow-wrap:anywhere}
.cli-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.cat-footnote{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#59685f;padding:10px 2px}
.cat-footnote label{display:flex;align-items:center;gap:6px}
.cat-overlay{position:fixed;inset:0;background:#081d16aa;z-index:50;display:flex;justify-content:flex-end}
.cat-overlay[hidden]{display:none!important}
.cat-drawer{width:min(100%,480px);background:#fff9f5;display:flex;flex-direction:column;height:100%;box-shadow:-12px 0 32px #0002}
.cat-drawerhead{display:flex;justify-content:space-between;padding:22px;border-bottom:1px solid #e3d6cc}
.cat-drawerhead h2{margin:6px 0 0;font-size:20px}
.cat-drawerhead small{color:#457b5b}
.cat-drawerhead button{border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:#456}
.cat-drawer-form{display:flex;flex-direction:column;flex:1;min-height:0}
.cat-formfields{overflow:auto;flex:1;padding:22px;display:grid;align-content:start;gap:16px}
.cat-formfields label{display:grid;gap:6px;font-weight:600;font-size:13px}
.cat-formfields input,.cat-formfields textarea,.cat-formfields select{padding:10px;border:1px solid #c9bcb1;border-radius:8px;background:#fff;width:100%}
.cat-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cat-check{display:flex!important;align-items:center;gap:8px;grid-template-columns:none!important}
.cat-check input{width:auto}
.cat-drawerfooter{padding:16px 22px;border-top:1px solid #e3d6cc;display:flex;justify-content:flex-end;gap:10px}
.cat-error{color:#a12626;margin:0}
@media(max-width:900px){
 .cat-tablewrap{max-height:55vh}
 .cat-searchbox{max-width:none}
 .cat-toolactions{margin-left:0;width:100%;overflow-x:auto;flex-wrap:nowrap}
 .cat-formgrid{grid-template-columns:1fr}
}
