/* Shared catalogue surface — approved Maquettes proposal, 26 October 2026.
   Scoped to these four pages: the Planning calendar keeps its own layout. */
body .main.catalogue-main{background:#fff;color:#293343}
.catalogue-main{--catalogue-line:#edf0f3;--catalogue-ink:#293343;--catalogue-muted:#748094}
body .catalogue-main .page-heading{align-items:center;margin:0 0 12px;min-height:36px}
body .catalogue-main .page-heading h1{font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.025em;margin:0}
body .catalogue-main .page-heading p{display:none}
body .catalogue-main .heading-actions .primary-btn{color:#2863c6;background:#fff;border-color:#c9d9f3;font-weight:500}
body .catalogue-main .heading-actions .primary-btn:hover{background:#f4f8ff;border-color:#8cb0e7}
body .catalogue-main .scope-filter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin:0 0 14px;padding:0;box-shadow:none;border:0;background:none}
body .catalogue-main .scope-filter-bar .scope-control{flex:0 1 auto;min-width:0;max-width:290px;height:32px;gap:8px;margin:0 12px 0 0;padding:0 12px 0 6px;border:0;border-right:1px solid #e8edf3;border-radius:0;background:transparent;font-size:12px;font-weight:500}
body .catalogue-main .scope-control>i:first-child{font-size:17px;color:#576b83}
body .catalogue-main .scope-control select{font-size:12px;color:#738094;padding:5px 2px;max-width:190px;min-width:52px}
body .catalogue-main .scope-chevron{font-size:11px;color:#76869a}
body .catalogue-main .scope-filter-bar .scope-control:focus-within{background:#f4f8ff;border-radius:4px}
body .catalogue-main .scope-filter-bar .clear-filters{width:30px;height:30px;flex:0 0 30px;margin:0;border:0;border-radius:4px;font-size:17px;background:none;color:#748094}
body .catalogue-main .scope-filter-bar .clear-filters:hover{background:#edf3ff;color:#2863c6}
body .catalogue-main .filter-bar:not(.scope-filter-bar){margin:0 0 12px}
body .catalogue-main .filter-bar:not(.scope-filter-bar)>label{height:32px;padding:0 9px;border:1px solid #e6ebf0;border-radius:4px;background:#fff;color:#758194;font-size:11px;font-weight:400}
body .catalogue-main .filter-bar input{font-size:12px;background:none;box-shadow:none;min-width:200px}
body .catalogue-main .table-wrap,body .catalogue-main .modules-table-wrap,body .catalogue-main .instructor-list{border:0;border-radius:0;background:#fff;box-shadow:none}
body .catalogue-main :is(.data-table,.modules-catalog-table,.maquette-grid){border-collapse:collapse;table-layout:fixed;background:#fff}
body .catalogue-main :is(.data-table,.modules-catalog-table,.maquette-grid) th{background:#f8f9fb;border-top:1px solid var(--catalogue-line);border-bottom:1px solid var(--catalogue-line);padding:10px 12px;color:#748094;font-size:11px;font-weight:400;line-height:1.4;text-align:left}
body .catalogue-main :is(.data-table,.modules-catalog-table,.maquette-grid) td{height:48px;padding:7px 12px;border:0;border-bottom:1px solid var(--catalogue-line);background:transparent;color:var(--catalogue-ink);font-size:13px;line-height:1.45;vertical-align:middle}
body .catalogue-main :is(.data-table,.modules-catalog-table,.maquette-grid) tbody tr:hover{background:#f8faff}
body .catalogue-main :is(.module-name-line strong,.students-table td strong,.instructor-name-cell strong){font-size:13px;line-height:1.45;font-weight:500;color:#293343}
body .catalogue-main :is(.data-table-sort,.module-table-sort,.maquette-sort,.instructor-list-sort){font:400 11px/1.4 Albert Sans,sans-serif;color:#748094}
body .catalogue-main :is(.data-table-sort,.module-table-sort,.maquette-sort) i{font-size:11px;color:#98a4b4}
body .catalogue-main .column-resize-handle::after,body .catalogue-main .instructor-column-handle::after{opacity:0;background:#2863c6;width:1px}
body .catalogue-main :is(th,.instructor-resizable-column):hover>.column-resize-handle::after,body .catalogue-main .column-resize-handle:focus-visible::after,body .catalogue-main .instructor-resizable-column:hover>.instructor-column-handle::after,body .catalogue-main .instructor-column-handle:focus-visible::after{opacity:.7}
body .catalogue-main :is(.column-resize-handle,.instructor-column-handle):focus-visible{outline-color:#2863c6}
/* Group and semester headers form one continuous grid, without a boxed card. */
body .catalogue-main .maquette-accordion{margin:0 0 14px;border:0;border-radius:0;overflow:visible;background:#fff}
body .catalogue-main .maquette-accordion>summary{background:#f8f9fb;border:1px solid var(--catalogue-line);border-radius:3px;min-height:60px;padding:11px 16px;font-size:12px;font-weight:400;grid-template-columns:minmax(230px,1fr) minmax(80px,.35fr) 95px 155px 145px 75px 16px;gap:12px}
body .catalogue-main .maquette-code strong{font-size:15px;font-weight:600;color:#293343}
body .catalogue-main .maquette-code small{font-size:11px;font-weight:400;color:#7a8593;margin-top:3px}
body .catalogue-main .maquette-accordion>.accordion-body{border:0;padding:0;min-width:0}
body .catalogue-main .semester-disclosure{margin:0;max-width:100%;border:0;border-bottom:1px solid var(--catalogue-line);border-radius:0;background:#fff;overflow-x:auto;overscroll-behavior-x:contain}
body .catalogue-main .semester-disclosure>summary{position:relative;min-height:46px;min-width:0;gap:0;padding:8px 12px;background:#fff;font-size:12px;grid-template-columns:minmax(140px,1fr) 0 100px 125px 125px 95px 20px}
body .catalogue-main .semester-pill{padding:3px 12px;min-width:45px;text-align:center;border:0;border-radius:12px;background:#e7f1ff;color:#2863c6;font-weight:500;font-size:12px;line-height:18px}
body .catalogue-main .semester-pill[data-semester=S2]{background:#e3f5e8;color:#367451}
body .catalogue-main .semester-pill[data-semester=S1_S2]{background:#fff1ce;color:#85632a}
body .catalogue-main .semester-disclosure>summary>strong{font-weight:400;font-size:11px;color:#7b8797;grid-column:3}
body .catalogue-main .maquette-semester-totals>span{padding:0 12px;white-space:nowrap;font-size:12px;color:#38455a}
body .catalogue-main .maquette-semester-totals small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body .catalogue-main .maquette-semester-totals b{display:block;margin:0;font-size:12px;font-weight:500}
body .catalogue-main .semester-disclosure[open]>summary{grid-template-columns:var(--maquette-table-tracks,minmax(140px,1fr) repeat(11,100px));width:var(--maquette-table-width,max-content);padding-inline:0}
body .catalogue-main .semester-disclosure[open]>summary>.semester-pill{grid-column:1/3;margin-left:12px;justify-self:start}
body .catalogue-main .semester-disclosure[open]>summary>strong{grid-column:3;padding-left:12px}
body .catalogue-main .semester-disclosure[open]>summary>.maquette-semester-totals>span:nth-child(1){grid-column:7}
body .catalogue-main .semester-disclosure[open]>summary>.maquette-semester-totals>span:nth-child(2){grid-column:6}
body .catalogue-main .semester-disclosure[open]>summary>.maquette-semester-totals>span:nth-child(3){grid-column:9}
body .catalogue-main .semester-caret{grid-column:7;justify-self:end;margin-right:10px}
body .catalogue-main .semester-disclosure[open]>summary>.semester-caret{grid-column:1;margin:0 0 0 6px;justify-self:start;font-size:10px}
body .catalogue-main .semester-disclosure[open]>summary>.semester-pill{margin-left:22px}
body .catalogue-main .semester-campus-spacer{display:none}
body .catalogue-main .semester-disclosure .maquette-grid-wrap{max-width:none;overflow:visible;border:0;border-radius:0;background:#fff}
body .catalogue-main .maquette-grid{display:table;width:max-content;min-width:100%;table-layout:fixed}
body .catalogue-main .maquette-grid :is(th,td){padding-left:12px;padding-right:12px}
body .catalogue-main .maquette-grid th.col-row-actions{width:82px}
body .catalogue-main .maquette-grid td.maquette-row-number{padding:0 5px;color:#8b95a3;font-size:11px;text-align:center;background:none;border-right:0}
body .catalogue-main .maquette-grid .maquette-readonly,body .catalogue-main .maquette-grid .maquette-cell{min-height:30px;padding:4px 0;border:1px solid transparent;border-radius:3px;background:transparent;font:400 13px/1.45 Albert Sans,sans-serif}
body .catalogue-main .module-title-stack .maquette-readonly{font-weight:500;white-space:normal}
body .catalogue-main .maquette-cell:hover,body .catalogue-main .maquette-cell:focus-visible{background:#f1f6ff;border-color:#c6d8f4;outline-offset:1px}
body .catalogue-main .maquette-cell[data-field=intervenant]{width:max-content;max-width:100%;min-height:0;background:#edf1fa;border:0;padding:2px 6px;line-height:1.4}
body .catalogue-main .maquette-cell[data-field=repartition]{width:max-content;max-width:100%;min-height:0;padding:2px 10px;border:0;border-radius:12px;background:#e2eeff;font-size:12px;font-weight:400}
body .catalogue-main .maquette-cell[data-field=repartition][data-allocation^=CM2]{background:#fce5ee}
body .catalogue-main .maquette-cell[data-field=repartition][data-allocation^=TD1]{background:#dcf3ff}
body .catalogue-main .maquette-cell[data-field=repartition][data-allocation^=TD2]{background:#dbf5ef}
body .catalogue-main .maquette-grid .maquette-readonly{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .catalogue-main .maquette-grid .module-title-stack .maquette-readonly{white-space:normal}
body .catalogue-main .maquette-cell-input{border-color:#8aafe8;box-shadow:0 0 0 2px #2863c620}
body .catalogue-main .maquette-row-desktop-actions{display:flex;gap:0}
body .catalogue-main .maquette-row-actions{width:auto;justify-content:flex-start}
body .catalogue-main .maquette-row-actions button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:28px;min-height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:#7c8ba0;font-size:14px}
body .catalogue-main .maquette-row-actions button:hover,body .catalogue-main .maquette-row-actions button:focus-visible{color:#2863c6;background:#eaf2ff}
body .catalogue-main .module-detail-arrow,body .catalogue-main .module-edit-button{color:#90a0b5;background:transparent;border:0}
body .catalogue-main .maquette-grid tfoot td{height:40px;background:#fafbfd;font-size:12px;font-weight:500}
/* Modules / directory rows use the same weights, separators and restrained chips. */
body .catalogue-main .modules-catalog-table td.table-row-number{background:transparent!important;border-right:0!important;color:#919ba8}
body .catalogue-main .module-name-line{gap:4px}
body .catalogue-main .module-evaluation{font-size:12px;color:#596577}
body .catalogue-main .instructor-list-head{background:#f8f9fb;border-block:1px solid var(--catalogue-line);padding:10px 14px;font-size:11px;font-weight:400;color:#748094}
body .catalogue-main .instructor-accordion{border-top:0;border-bottom:1px solid var(--catalogue-line)}
body .catalogue-main .instructor-accordion-summary{min-height:48px;padding:10px 14px;font-size:13px;background:#fff}
body .catalogue-main .instructor-accordion-summary:hover,body .catalogue-main .instructor-accordion[open]>.instructor-accordion-summary{background:#f8faff}
body .catalogue-main .instructor-row-number{background:none;border:0;color:#8b95a3;font-size:11px}
body .catalogue-main .instructor-name-cell{padding-right:0}
body .catalogue-main .instructor-accordion-body{border-top:1px solid var(--catalogue-line);background:#fff}
body .catalogue-main .instructor-course-list{border:0;border-radius:0}
body .catalogue-main .instructor-course-list li{border-bottom-color:var(--catalogue-line)}
body .catalogue-main .students-table th:first-child,body .catalogue-main .students-table td:first-child{width:auto;min-width:0;text-align:left;padding:7px 12px;color:#293343;background:transparent;border-right:0}
body .catalogue-main .students-table td:first-child strong{font-size:13px;font-weight:500}
body .catalogue-main .students-table .pill{padding:3px 9px;border:0;border-radius:10px;background:#edf2f8;color:#596a80;font-size:11px;font-weight:400}
body .catalogue-main .students-table .inline-edit{border:1px solid #dfe6ef;border-radius:4px;background:#fff;color:#526783;font:500 11px/1.4 Albert Sans,sans-serif;padding:5px 9px}
body .catalogue-main .students-table .inline-edit:hover{border-color:#b7ccec;background:#f4f8ff;color:#2863c6}
@media(max-width:1200px) and (min-width:621px){
 body .catalogue-main .maquette-accordion>summary{grid-template-columns:minmax(190px,1fr) 80px 85px 120px 120px 70px 14px;font-size:11px;gap:8px;padding-inline:10px}
 body .catalogue-main .scope-filter-bar .scope-control{margin-right:4px;padding-right:8px;max-width:230px}
}
@media(max-width:820px){
 body .catalogue-main .modules-catalog-table tbody{gap:0}
 body .catalogue-main .modules-catalog-table tbody tr{border:0;border-bottom:1px solid var(--catalogue-line);border-radius:0;background:#fff;padding:12px 8px}
 body .catalogue-main .modules-catalog-table tbody td{height:auto;border:0;padding:4px 0}
}
@media(max-width:620px){
 body .main.catalogue-main{padding:16px 12px}
 body .catalogue-main .page-heading h1{font-size:22px}
 body .catalogue-main .heading-actions button{font-size:10px;padding:6px 8px;min-height:30px}
 body .catalogue-main .scope-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:12px}
 body .catalogue-main .scope-filter-bar .scope-control{max-width:none;width:100%;margin:0;padding:0 6px;gap:5px;height:32px;border-right:0;border-bottom:1px solid var(--catalogue-line);font-size:10px}
 body .catalogue-main .scope-control select{font-size:10px;max-width:100%;min-width:0}
 body .catalogue-main .scope-control>i:first-child{font-size:14px}
 body .catalogue-main .filter-bar input{min-width:0;width:100%}
 body .catalogue-main .filter-bar:not(.scope-filter-bar)>label{width:100%}
 body .catalogue-main .maquette-accordion>summary{min-width:0;padding:10px;gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}
 body .catalogue-main .maquette-code strong{font-size:13px}
 body .catalogue-main .maquette-code small{font-size:10px}
 body .catalogue-main .maquette-accordion>summary>span:nth-child(4),body .catalogue-main .maquette-accordion>summary>span:nth-child(5),body .catalogue-main .maquette-accordion>summary>span:nth-child(6){font-size:10px}
 body .catalogue-main .semester-disclosure>summary,body .catalogue-main .semester-disclosure[open]>summary{width:auto;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px}
 body .catalogue-main .semester-disclosure>summary>.semester-pill,body .catalogue-main .semester-disclosure[open]>summary>.semester-pill{grid-column:1/-1;grid-row:1;margin:0}
 body .catalogue-main .semester-disclosure>summary>.maquette-semester-totals{display:grid;grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px}
 body .catalogue-main .semester-disclosure>summary>.maquette-semester-totals>span,body .catalogue-main .semester-disclosure[open]>summary>.maquette-semester-totals>span{grid-column:auto;grid-row:auto;padding:0;min-width:0}
 body .catalogue-main .maquette-semester-totals small{position:static;clip-path:none;width:auto;height:auto;display:block;font-size:9px;white-space:normal;color:#7b8797}
 body .catalogue-main .maquette-semester-totals b{font-size:11px;margin-top:3px}
 body .catalogue-main .semester-disclosure>summary>.semester-caret,body .catalogue-main .semester-disclosure[open]>summary>.semester-caret{position:absolute;top:16px;right:10px;grid-column:auto;grid-row:1;margin:0;font-size:12px}
 body .catalogue-main .semester-disclosure .maquette-grid-wrap{max-width:100%;overflow:auto}
 body .catalogue-main .maquette-grid thead{display:table-header-group}
 body .catalogue-main .maquette-grid tbody{display:table-row-group}
 body .catalogue-main .maquette-grid tr{display:table-row}
 body .catalogue-main .maquette-grid :is(th,td){display:table-cell;position:static;height:46px;padding:7px 10px}
 body .catalogue-main .maquette-grid td::before{display:none}
 body .catalogue-main .maquette-grid .maquette-cell,body .catalogue-main .maquette-grid .maquette-readonly{font-size:12px}
 body .catalogue-main .maquette-row-actions{margin:0;justify-content:flex-start}
 body .catalogue-main .maquette-row-actions button{width:26px;height:32px}
 body .catalogue-main .instructor-accordion-summary{min-height:66px;padding:10px 8px;font-size:12px}
 body .catalogue-main .instructor-name-cell strong{font-size:13px}
 body .catalogue-main .students-table :is(th,td){font-size:11px;padding:8px 6px}
 body .catalogue-main .students-table td:first-child{padding:8px 6px}
 body .catalogue-main .students-table td:first-child strong{font-size:12px}
 body .catalogue-main .students-table .inline-edit{font-size:10px;padding:5px 6px}
}
/* Keep catalogue header case and mobile totals independent of legacy grid rules. */
body .catalogue-main :is(th,.data-table-sort,.module-table-sort,.maquette-sort,.instructor-list-sort){text-transform:none;letter-spacing:normal}
body .catalogue-main .students-table col:nth-child(1){width:30%}
body .catalogue-main .students-table col:nth-child(2){width:35%}
body .catalogue-main .students-table col:nth-child(3){width:20%}
body .catalogue-main .students-table col:nth-child(4){width:15%}
@media(max-width:620px){
 body .catalogue-main .semester-disclosure>summary>.maquette-semester-totals>span:nth-child(n),body .catalogue-main .semester-disclosure[open]>summary>.maquette-semester-totals>span:nth-child(n){grid-column:auto;grid-row:1}
 body .catalogue-main .maquette-grid :is(thead,tbody) tr>:is(th,td){display:table-cell!important}
 body .catalogue-main .students-table col:nth-child(1){width:28%}
 body .catalogue-main .students-table col:nth-child(2){width:24%}
 body .catalogue-main .students-table col:nth-child(3){width:28%}
 body .catalogue-main .students-table col:nth-child(4){width:20%}
 body .catalogue-main .students-table th,body .catalogue-main .students-table th button{white-space:normal;line-height:1.45}
 body .catalogue-main .students-table td{overflow-wrap:anywhere}
 body .catalogue-main .students-table .pill{white-space:normal;text-align:center}
 body .catalogue-main .students-table .inline-edit{white-space:normal;max-width:100%}
}
@media(max-width:620px){body .catalogue-main .students-table .pill{font-size:10px;padding:3px 6px;white-space:nowrap;overflow-wrap:normal}}
