@charset "UTF-8";
/* Feuille regroupée par outils/css-ensemble.cjs — ne pas modifier : changer les sources puis relancer. */
/* Native Rosario theme variant; the existing SchoolSafe theme remains a dependency. */

/* ===== assets/themes/SchoolSafe/stylesheet.css ===== */
/* SchoolSafe: polices locales (Lato via FlatSIS), aucun chargement externe. */

/* ===== assets/themes/FlatSIS/stylesheet.css ===== */
div.calendar{position:relative;z-index:10000}.calendar,.calendar table{border:1px solid #556;color:#000;cursor:default;background:#eef;font-family:Lato,sans-serif}.calendar .button{text-align:center;padding:2px}.calendar .nav{background:url("../FlatSIS/menuarrow.gif") 100% 100% no-repeat #778}.calendar thead .title{font-weight:700;text-align:center;background:#fff;color:#000;padding:2px}.calendar thead .headrow{background:#778;color:#fff}.calendar thead .daynames{background:#bdf}.calendar thead .name{border-bottom:1px solid #556;padding:2px;text-align:center;color:#000}.calendar thead .weekend{color:#a66}.calendar thead .hilite{background-color:#aaf;color:#000;border:1px solid #04f;padding:1px}.calendar thead .active{background-color:#77c;padding:2px 0 0 2px}.calendar tbody .day{width:2em;color:#456;text-align:right;padding:2px 4px 2px 2px}.calendar tbody .day.othermonth{font-size:80%;color:#bbb}.calendar tbody .day.othermonth.oweekend{color:#fbb}.calendar table .wn{padding:2px 3px 2px 2px;border-right:1px solid #000;background:#bdf}.calendar tbody .rowhilite td{background:#def}.calendar tbody .rowhilite td.wn{background:#eef}.calendar tbody td.hilite{background:#def;padding:1px 3px 1px 1px;border:1px solid #bbb}.calendar tbody td.active{background:#cde;padding:2px 2px 0}.calendar tbody td.selected{font-weight:700;border:1px solid #000;padding:1px 3px 1px 1px;background:#fff;color:#000}.calendar tbody td.weekend{color:#a66}.calendar tbody td.today{font-weight:700;color:#00f}.calendar tbody .disabled{color:#999}.calendar tbody .emptycell{visibility:hidden}.calendar tbody .emptyrow{display:none}.calendar tfoot .footrow{text-align:center;background:#556;color:#fff}.calendar tfoot .ttip{background:#fff;color:#445;border-top:1px solid #556;padding:1px}.calendar tfoot .hilite{background:#aaf;border:1px solid #04f;color:#000;padding:1px}.calendar tfoot .active{background:#77c;padding:2px 0 0 2px}.calendar .combo{position:absolute;display:none;top:0;left:0;width:4em;cursor:default;border:1px solid #655;background:#def;color:#000;font-size:90%;z-index:100}.calendar .combo .label,.calendar .combo .label-IEfix{text-align:center;padding:1px}.calendar .combo .label-IEfix{width:4em}.calendar .combo .hilite{background:#acf}.calendar .combo .active{border-top:1px solid #46a;border-bottom:1px solid #46a;background:#eef;font-weight:700}.calendar td.time{border-top:1px solid #000;padding:1px 0;text-align:center;background-color:#f4f0e8}.calendar td.time .ampm,.calendar td.time .hour,.calendar td.time .minute{padding:0 3px 0 4px;border:1px solid #889;font-weight:700;background-color:#fff}.calendar td.time .ampm{text-align:center}.calendar td.time .colon{padding:0 2px 0 3px;font-weight:700}.calendar td.time span.hilite{border-color:#000;background-color:#667;color:#fff}.calendar td.time span.active{border-color:red;background-color:#000;color:#0f0}input[type=checkbox],input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block;position:relative;margin:0 0 2px;vertical-align:middle;height:16px;width:16px;cursor:pointer}input[type=checkbox]:before,input[type=radio]:before{content:'';background:#fff;border:2px solid #aaa;display:inline-block;box-sizing:border-box;width:16px;height:16px;position:absolute;top:0;left:0;transition:250ms}input[type=radio]:before{border-radius:100%;top:-.5px}input[type=checkbox]:checked:before,input[type=radio]:checked:before{background-color:#298cba;box-shadow:inset 0 0 0 2px #fff;border-color:#298cba}input[type=radio]:checked:before{box-shadow:inset 0 0 0 3px #fff}input[type=checkbox]:focus:before{border-color:#298cba}input[type=radio]:focus:before{border-color:#298cba;box-shadow:inset 0 0 0 3px #fff}input[type=checkbox]:disabled:before,input[type=radio]:disabled:before{border-color:#aaa;box-shadow:inset 0 0 0 2px #f4f4f4;background:#f4f4f4;cursor:not-allowed}input[type=radio]:disabled:before{box-shadow:inset 0 0 0 3px #f4f4f4}input[type=checkbox]:disabled:checked:before,input[type=radio]:disabled:checked:before{background:#aaa}#cboxOverlay,#cboxWrapper,#colorbox{position:absolute;top:0;left:0;z-index:9999;overflow:hidden}#cboxWrapper{max-width:none}#cboxOverlay{position:fixed;width:100%;height:100%;background:#fff;opacity:.9}#cboxBottomLeft,#cboxMiddleLeft{clear:left}#cboxContent{position:relative;margin-top:32px;overflow:visible}#cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}#cboxTitle{margin:0;position:absolute;top:-22px;color:#000;left:30px}#cboxLoadingGraphic,#cboxLoadingOverlay{position:absolute;top:0;left:0;width:100%;height:100%}#cboxClose,#cboxNext,#cboxPrevious,#cboxSlideshow{cursor:pointer;border:0;padding:0;margin:0;overflow:visible;text-indent:-9999px;width:20px;height:20px;position:absolute;top:-20px;background:url("../FlatSIS/images/controls.png") no-repeat}.cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.cboxIframe{width:100%;height:100%;display:block;border:0;padding:0;margin:0;background:#fff}#cboxContent,#cboxLoadedContent,#colorbox{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxClose:active,#cboxNext:active,#cboxPrevious:active,#cboxSlideshow:active,#colorbox{outline:0}#cboxError{padding:50px;border:1px solid #ccc}#cboxLoadingGraphic{background:url("../FlatSIS/images/loading.gif") center center no-repeat}#cboxLoadingOverlay{background:#000}#cboxCurrent{position:absolute;top:-22px;right:205px;text-indent:-9999px}#cboxPrevious{background-position:0 0;right:44px}#cboxPrevious:hover{background-position:0 -25px}#cboxNext{background-position:-25px 0;right:22px}#cboxNext:hover{background-position:-25px -25px}#cboxClose{background-position:-50px 0;right:0}#cboxClose:hover{background-position:-50px -25px}.cboxSlideshow_off #cboxPrevious,.cboxSlideshow_on #cboxPrevious{right:66px}.cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px;right:44px}.cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px}.cboxSlideshow_off #cboxSlideshow{background-position:-100px 0;right:44px}.cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px}input[type=button],input[type=color],input[type=email],input[type=file],input[type=number],input[type=password],input[type=reset],input[type=search],input[type=submit],input[type=tel],input[type=text],input[type=time],input[type=url],select,textarea{border-color:#cacaca;background:#fff;color:inherit}.select2-container--default .select2-selection--multiple,.select2-container--default .select2-selection--single{border-color:#cacaca!important}input[type=button]:hover,input[type=color]:hover,input[type=email]:hover,input[type=file]:hover,input[type=number]:hover,input[type=password]:hover,input[type=reset]:hover,input[type=search]:hover,input[type=submit]:hover,input[type=tel]:hover,input[type=text]:hover,input[type=time]:hover,input[type=url]:hover,select:hover,textarea:hover{border-color:#aaa}input[type=button]:focus,input[type=color]:focus,input[type=email]:focus,input[type=file]:focus,input[type=number]:focus,input[type=password]:focus,input[type=reset]:focus,input[type=search]:focus,input[type=submit]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,select:focus,textarea:focus{border-color:#aaa #aaa #298cba;outline:0}.select2-container--default.select2-container--focus .select2-selection--multiple,.select2-container--default.select2-container--focus .select2-selection--single,.select2-container--default.select2-container--open .select2-selection--multiple,.select2-container--default.select2-container--open .select2-selection--single{border-color:#aaa #aaa #298cba!important}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#0073aa!important}.select2-container--default .select2-selection__rendered{color:#111!important}code,pre{background:#eaeaea}blockquote{border-left-color:#ddd}input[readonly]{background:#eee}body,html{background:#efefef;height:100%;margin:0;padding:0;word-wrap:break-word}body{color:#111}h1,h2,h3,h4,h5,h6{color:#2d2d2d}#menu{background:#121212;border-color:#000;color:#fff}#menu.fixedmenu-fixed+div{background:#121212}#menu-top select{border-color:#222;background:#1a1a1a;color:#fff;width:100%}#menu-top select:focus{border-bottom-color:#298cba}.menu-inter{border-color:#333;color:#eee}#footer{background:#111;box-shadow:0 2px 4px 0 rgba(0,0,0,.23);clear:both;position:fixed;z-index:99;top:0;left:0;width:100%}#footerwrap{border-color:#000}#footerhelp{background:#fff}.widefat{border-color:#cacaca}.postbox,.widefat{background:#fcfcfc}.postbox>thead th,.widefat tfoot tr th,.widefat th{background:#f9f9f9}.postbox .h3selected{border-top:2px solid #21759b;background:#fcfcfc}.postbox>thead th{border-bottom-color:#dfdfdf}.alt,.alternate,.widefat tr:nth-child(odd){background:#fcfcfc}.widefat tr:nth-child(even){background:#f9f9f9}.highlight,.widefat tr.highlight,.widefat tr:hover,.wp-submenu{background:#fff}input[type=button],input[type=submit]{border-color:#bbb;color:#333}input[type=button]:focus,input[type=button]:hover,input[type=submit]:focus,input[type=submit]:hover{color:#000;border-color:#666}input[type=button]:focus,input[type=submit]:focus{border-bottom-color:#298cba}input[type=button],input[type=reset],input[type=submit]{background:#f9f9f9}input[type=button]:active,input[type=reset]:active,input[type=submit]:active{background:#ededed}a.button-primary,button.button-primary,input.button-primary{border-color:#15556b;font-weight:700;color:#fff;background:#298cba}a.button-primary:active,button.button-primary:active,input.button-primary:active{background:#1d6385}a.button-primary:focus,a.button-primary:hover,button.button-primary:focus,button.button-primary:hover,input.button-primary:focus,input.button-primary:hover{border-color:#10354b;color:#fff;outline:0}.adminmenu a:focus,.adminmenu a:hover,a:active,a:focus,a:hover{color:#d54e21}input[type=checkbox]:focus,input[type=radio]:focus{outline:#000 dotted 1px}div.error,div.updated{background:#fff;border-left:4px solid #b80a04}div.error a{color:#c00}div.updated{border-left-color:#0baa38}.widefat td,.widefat th{border-color:#fff #fff #dfdfdf}a{color:#0073aa}a:active,a:focus,a:hover{color:#0090c3}.wp-submenu a:focus,a:active,a:focus{outline:#0090c3 dotted 1px}summary:focus{outline:#000 dotted 1px}.BottomButton:active,.BottomButton:focus,.BottomButton:hover,.adminmenu a,a.menu-top:focus,a.menu-top:hover{color:#00b9eb}.BottomButton,a.menu-top{color:#eee}.BottomButton img{background-color:#fff}.postbox{border-color:#cacaca;background:#f9f9f9}.postbox th{color:#333}.postbox th:hover,.postbox th:hover h3{color:#000}.adminmenu{background:#121212;border-color:#222}.menu-top{background-color:#121212;text-shadow:none;border-top-color:#222;border-bottom-color:#000}#selectedModuleLink,.menu-top:focus,.menu-top:hover{background-color:#1a1a1a}.no-touch .menu-module:focus-within .menu-top::after{color:#eee}.no-touch .menu-module:hover .menu-top::after{color:#eee}.wp-submenu{background:#111;border-color:#222 #000}#selectedMenuLink,.wp-submenu a:active,.wp-submenu a:focus,.wp-submenu a:hover{background-color:#1a1a1a;color:#eee}.header2{background:#f9f9f9;border-bottom:1px solid #dfdfdf;border-top:1px solid #fff}fieldset{border-color:#cacaca}.bgcolor{background:#ececec}.legend-gray{color:#333}.legend-red{color:red}.uld,.underline-dots{border-bottom-color:gray}.md-preview .tab,.md-preview>div{border-color:#cacaca}.md-preview .tab.disabled,.md-preview .tab:hover{background:#fff;border-color:#aaa}.md-preview>.tab.disabled{border-top:2px solid #21759b;padding-top:5px;pointer-events:none;cursor:default}.current-person,.current-person a,hr{color:#fff}.current-person.student{background:#0073aa}.current-person.staff{background:#0baa38}.current-person.self{background:#fbb429}.current-person a:active,.current-person a:focus,.current-person a:hover{color:#fff}#calendar{background:#dfdfdf;table-layout:fixed;height:80%}#calendar th{background:#333;color:#fff}.calendar-day.full{background:#efe}.calendar-day.minutes{background:#eef}.calendar-day.no-school{background:#fee}.calendar-event{border-color:#000}.calendar-event .assignment{border-color:red}.calendar-event .assigned{border-color:#0f0}.legend-square.full{background-color:#afa}.legend-square.minutes{background-color:#aaf}.legend-square.no-school{background-color:#faa}.attendance-code.present{color:#fff;background-color:#20dd30}.attendance-code.absent{color:#fff;background-color:red}.attendance-code.half-day{color:#fff;background-color:#fc0}.attendance-code.present-alt{color:#fff;background-color:#dfd}.attendance-code.absent-alt{color:#fff;background-color:#fdd}.attendance-code.half-day-alt{color:#fff;background-color:#fed}.attendance-code input,.attendance-code select{color:#111}.switchMenu:before{color:gray}.bar{color:transparent}.bar.relevance{background:gray}.divPortalPoll .bar{background:#b80a04}.tooltip{color:#fff}.tooltip:before{background:#27b4b4}.tooltip>i{background:#111;border:1px solid #000}.teacher-programs-wrapper{border-color:#dfdfdf}.password-strength-bars .score2{background-color:#ff851b}.password-strength-bars .score3,.password-strength-bars .score4{background-color:#2ecc40}.button-upsell-premium{color:#111;background:#ffc439}.button-upsell-premium:active,.button-upsell-premium:focus,.button-upsell-premium:hover{outline:0;background:#ffca50;color:#000}@media only screen and (max-width:1023px){.rt tr{border-right-color:#dfdfdf}}@font-face{font-family:Lato;src:url("../FlatSIS/fonts/Lato/regular.woff2") format('woff2'),url("../FlatSIS/fonts/Lato/regular.woff") format('woff');font-weight:400;font-style:normal}@font-face{font-family:Lato;src:url("../FlatSIS/fonts/Lato/italic.woff2") format('woff2'),url("../FlatSIS/fonts/Lato/italic.woff") format('woff');font-weight:400;font-style:italic}@font-face{font-family:Lato;src:url("../FlatSIS/fonts/Lato/bold.woff2") format('woff2'),url("../FlatSIS/fonts/Lato/bold.woff") format('woff');font-weight:700;font-style:normal}.module-icon{width:32px;height:32px;background-size:contain;background-repeat:no-repeat;display:inline-block;vertical-align:-60%}.header1 .module-icon{vertical-align:bottom}.module-icon.Accounting{background-image:url("../FlatSIS/modules/Accounting.png")}.module-icon.Attendance{background-image:url("../FlatSIS/modules/Attendance.png")}.module-icon.Discipline{background-image:url("../FlatSIS/modules/Discipline.png")}.module-icon.Grades{background-image:url("../FlatSIS/modules/Grades.png")}.module-icon.Eligibility{background-image:url("../FlatSIS/modules/Eligibility.png")}.module-icon.Example{background-image:url("../FlatSIS/modules/Example.png")!important}.module-icon.Food_Service{background-image:url("../FlatSIS/modules/Food_Service.png")}.module-icon.Library{background-image:url("../FlatSIS/modules/Library.png")}.module-icon.Messaging{background-image:url("../FlatSIS/modules/Messaging.png")!important}.module-icon.misc{background-image:url("../FlatSIS/modules/misc.png")}.module-icon.Quiz{background-image:url("../FlatSIS/modules/Quiz.png")!important}.module-icon.Resources{background-image:url("../FlatSIS/modules/Resources.png")}.module-icon.Reports{background-image:url("../FlatSIS/modules/Reports.png")!important}.module-icon.Scheduling{background-image:url("../FlatSIS/modules/Scheduling.png")}.module-icon.School_Setup{background-image:url("../FlatSIS/modules/School_Setup.png")}.module-icon.SMS{background-image:url("../FlatSIS/modules/SMS.png")}.module-icon.Staff_Absences{background-image:url("../FlatSIS/modules/Staff_Absences.png")!important}.module-icon.Student_Billing{background-image:url("../FlatSIS/modules/Student_Billing.png")}.module-icon.Students{background-image:url("../FlatSIS/modules/Students.png")}.module-icon.Users{background-image:url("../FlatSIS/modules/Users.png")}#wrap{height:auto;min-height:100%;width:100%;padding-top:39px;box-sizing:border-box}#menu,#menu.fixedmenu-fixed+div{margin-left:0;transition:margin .5s ease-in-out}#menu.fixedmenu-fixed.slide+div,#menu.slide{margin-left:-500px}#menu.fixedmenu-fixed.hide+div{width:0!important}#menu{width:223px;border-width:0 1px 0 0;border-style:solid;position:relative;float:left;overflow:visible;z-index:1!important;min-height:100vh}#menu.fixedmenu-fixed #menu-top{margin-top:39px}#body{padding:0 15px 38px}#footerwrap{height:24px;padding:7px 6px;text-align:center;border-width:1px 0;border-style:solid}#footerhelp{height:auto;width:100%;max-height:0;overflow-y:hidden;overscroll-behavior:contain;transition:max-height .4s ease-in-out}#footerhelp.slide{max-height:33vh;overflow-y:scroll}#footerhelp .footerhelp-content{padding:6px 12px;columns:3 480px;widows:6}.footerhelp-content p:first-child{margin-top:0}#footerhelp .footerhelp-content p:first-child:first-letter{font-weight:700;font-size:larger}.mod{overflow:hidden}.mod:after{content:"";display:table;clear:both}.fixed-col select,input{max-width:100%}#search input,#search select{max-width:217px}#search label{max-width:217px;display:inline-block}#search #general_table select{width:100%}#search .postbox{margin-bottom:16px}#search .popTable .st td:first-child{line-height:1.3}#search .popTable .st label{max-width:none}#search #general_table select[name^=day_],#search #general_table select[name^=year_]{width:auto}textarea{-ms-box-sizing:border-box;box-sizing:border-box;width:100%;min-width:280px;max-width:1024px}input[type=number]{width:68px;padding-right:2px}input[type=number][name*=AMOUNT],input[type=number][name*=CUSTOM],input[type=number][name*=PRICE],input[type=number][name*=amount],input[type=number][name*=balance]{width:88px}input[type=color]{border-width:0;border-style:solid;padding:0;cursor:pointer;width:40px}.color-input-value{height:25px;width:40px;margin:1px 1px 1px 0}button[disabled],fieldset[disabled] button,fieldset[disabled] input,fieldset[disabled] select,fieldset[disabled] textarea,input[disabled],select[disabled],textarea[disabled]{cursor:not-allowed}::selection{color:#fff;background:#0073aa}.calendar,.calendar table,body,div.chosen-container,html,input,select,textarea{font-size:16px;-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased;-webkit-text-size-adjust:none}body,input,select,textarea{font-family:Lato,sans-serif;line-height:1.27}a{-webkit-transition:color .2s ease-out;transition:color .2s ease-out}iframe,img{border:0}img{max-width:100%;height:auto}td{line-height:inherit}input,select,textarea{line-height:1.3;margin:1px 1px 1px 0;padding:2px 4px}select{max-width:340px;padding:0 2px}.browser-firefox select{padding:0 2px 0 4px}a,input,select:focus{text-decoration:none}blockquote,q{quotes:none}p{margin:1em 0}blockquote{margin:1em;border-left-width:4px;border-left-style:solid;padding-left:4px}label,summary{cursor:pointer}legend{text-transform:uppercase;padding:0 7px;font-size:14px}li{margin-bottom:6px}small{font-size:70%}h1,h2,h3,h4{display:block;font-weight:700;line-height:1em}h1{font-size:2em;font-weight:400;margin:.67em 0}h2{font-size:1.58em;margin:.83em 0}h3{font-size:1.17em;margin:1em 0}h4{font-size:1.05em;margin:1.33em 0}ul{list-style-type:square}ol,ul{margin-top:0;padding-left:20px}code{font-family:Consolas,Monaco,monospace;padding:1px 3px;margin:0 1px;font-size:14px}pre{overflow-x:auto;padding:10px}hr{background:#dfdfdf;height:2px;border:0;margin:14px 0}sub,sup{font-size:smaller}summary::marker{cursor:pointer}dl dd{margin:.5em 0 1em 2em}.cellpadding-5 td{padding-right:5px;padding-bottom:5px}.postbox,.widefat,input[type=button],input[type=email],input[type=file],input[type=number],input[type=password],input[type=reset],input[type=search],input[type=submit],input[type=tel],input[type=text],input[type=time],input[type=url],select,textarea{border-width:1px;border-style:solid}input[type=color],input[type=email],input[type=file],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],select{box-sizing:border-box;height:27px}.postbox{border-bottom-width:2px}.widefat{clear:both;margin:0;border-spacing:0}.widefat a{text-decoration:none}.widefat thead th:first-of-type{border-top-left-radius:3px}.widefat thead th:last-of-type{border-top-right-radius:3px}.widefat tfoot th:first-of-type{border-bottom-left-radius:3px}.widefat tfoot th:last-of-type{border-bottom-right-radius:3px}.widefat th a[href*=LO_dir]:after{font-family:monospace;font-size:larger;line-height:.5em;content:"\0000a0";display:inline-block;width:10px;padding-left:3px;margin-right:-13px}.widefat th a[href*=LO_dir]{padding-right:13px}.widefat th a[href*="LO_dir=1"]:hover:after{content:"\25b4"}.widefat th a[href*="LO_dir=-1"]:hover:after{content:"\25be"}.widefat th a:empty:after{content:"";padding-left:0}.widefat td,.widefat th{text-align:left;border-width:1px 0;border-style:solid;padding:6px 11px;vertical-align:top}.list.widefat th{padding:4px 11px 1px;line-height:1.8em;height:28px}.widefat.files td{padding:1px 7px;font-weight:400}.widefat tfoot th{border-bottom:none}.widefat th{overflow:hidden;font-weight:400;line-height:1.4em}.widefat td p{margin:0 0 .8em}.list-wrapper{overflow-x:auto}.list,.list-nav{width:100%;border-spacing:0}.list-nav{margin-top:16px}.list-nav td{padding:4px 12px}.list{margin-bottom:16px}.list-no-nav{margin-top:24px}.list-header{margin-bottom:0;border-bottom:1px solid #f1f1f1}.list-header+.postbox{padding:5px;border-top:none;border-top-left-radius:0;border-top-right-radius:0;box-shadow:none}#LO_search{padding-right:28px;height:inherit;width:160px;float:right}#LO_search+.button{position:relative;left:157px;top:3px;cursor:pointer;height:22px;float:right}div.error,div.updated{padding:3px 7px;margin:16px 0}select option{padding:2px}input[type=button],input[type=reset],input[type=submit]{text-decoration:none;font-size:15px;text-transform:uppercase;line-height:16px;padding:6px 10px 4px;margin:0 8px;cursor:pointer;border-width:1px;border-style:solid;-ms-box-sizing:content-box;box-sizing:content-box;white-space:normal;-webkit-appearance:none;word-break:normal}input[type=button],input[type=color],input[type=email],input[type=file],input[type=number],input[type=password],input[type=reset],input[type=search],input[type=submit],input[type=tel],input[type=text],input[type=time],input[type=url],select,textarea{border-bottom-width:2px;transition:border .2s;border-radius:0}.header2.align-right input[type=button],.header2.align-right input[type=reset],.header2.align-right input[type=submit]{margin:0 0 0 16px}.button-primary{line-height:16px;white-space:nowrap}.proper-date{white-space:nowrap;display:inline-block}.proper-date:first-letter{text-transform:capitalize}#menu form{padding:0 6px}#menu-top span{padding-top:3px}#menu-top .today-date{text-transform:capitalize}#menu-top .today-date,#menu-top .username{padding-left:4px}.adminmenu,.wp-submenu{width:100%;list-style:none}.adminmenu{clear:left;margin:5px 0 0;padding:0}.adminmenu *,.widefat th{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wp-submenu{top:-1000em;left:0;position:absolute;min-width:215px;padding:1px 0;margin:0;overflow:hidden;-webkit-transition:top 0s .15s,left 0s .15s,box-shadow 0s .15s;transition:top 0s .15s,left 0s .15s,box-shadow 0s .15s;box-shadow:none;border-width:1px;border-style:solid;box-sizing:border-box}.adminmenu li{margin-bottom:0}.menu-module{position:relative}.no-touch .menu-module:focus-within .menu-top:after{content:"\276F";padding-top:6px;position:absolute;right:5px}.no-touch .menu-module:hover .menu-top:after{content:"\276F";position:absolute;right:5px;bottom:13px}#selectedModuleLink:after{content:""}.no-touch .menu-module:focus-within .wp-submenu{-webkit-transition-delay:.15s;transition-delay:.15s;z-index:20;top:0;left:223px;width:223px;max-height:calc(100vh - 80px);overflow-y:auto;word-wrap:break-word;min-height:36px}.no-touch .menu-module:hover .wp-submenu{-webkit-transition-delay:.15s;transition-delay:.15s;z-index:20;top:0;left:223px;width:223px;max-height:calc(100vh - 80px);overflow-y:auto;word-wrap:break-word;min-height:36px}.no-touch .menu-module:focus-within a:not(#selectedModuleLink)+.wp-submenu{overscroll-behavior:contain}.no-touch .menu-module:hover a:not(#selectedModuleLink)+.wp-submenu{overscroll-behavior:contain}#selectedModuleLink+.wp-submenu{transition-delay:0s;z-index:1;top:0;left:0;position:relative;margin-top:0!important;border:0;min-height:0;min-width:205px;max-height:none;box-shadow:none}.menu-inter{text-transform:uppercase;font-size:14px;border-width:1px 0 0;border-style:solid;padding:4px 6px 2px 12px;margin-top:2px}.adminmenu a{display:block;line-height:18px;padding:4px 6px}.menu-top{font-size:15px;min-width:10em;border-width:1px 0;border-style:solid;text-transform:uppercase}.menu-top span{padding-right:4px}.menu-top img{height:32px;vertical-align:middle}.wp-submenu a{padding:4px 6px 4px 12px;font-size:15px;margin:0}.current-person{padding:1px 5px;margin-top:5px;font-weight:700}.postbox-wrapper{overflow-x:auto}.postbox{padding:0;margin:0 auto;position:relative;min-width:255px;line-height:1.1}.postbox>thead th{border-bottom-width:1px;border-bottom-style:solid;padding:0 12px}.postbox .h3multi,.postbox th h3{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.postbox th h3{line-height:32px;height:32px;margin:0;border:0}.postbox th h3,.postbox th h3 a{display:inline-block;font-weight:400}.postbox .h3selected a{font-weight:700}.postbox th h3,.postbox th h3 a,.postbox>thead th,.widefat tfoot tr th,.widefat th,.widefat th a,.widefat th label,.widefat th span{font-size:14px;text-transform:uppercase}.postbox th h3 a{padding:0 10px}.postbox .h3multi{overflow-y:hidden;margin-bottom:-2px}th a{display:block;overflow:hidden}fieldset{border-width:1px;border-style:solid;margin:0 0 4px;padding-bottom:4px}.error a{text-decoration:underline}.updated a{text-decoration:none;padding-bottom:2px}div.error p,div.updated p{margin:.2em 0;padding:2px}h3 span{font-weight:400}.highlight{padding:3px 3px 3px 12px;margin-left:-12px;font-weight:700;border:0}.hide{display:none}.user-photo{max-width:150px;max-height:150px}.alignImg{vertical-align:middle;height:32px}.header{border-spacing:0;width:100%}.header1 h2{font-size:32px;font-family:Lato,sans-serif;font-weight:400;margin:0;padding:16px 16px 16px 0}.header2{padding:5px 12px;word-break:break-word}.header2 .fixed-col{word-break:normal}.header2 table{line-height:1.1;margin-left:-3px}.header2 .widefat{margin-left:0}#courses_div{background:#fff;position:absolute;border-style:solid;border-width:1px;padding:4px;right:0;left:0;display:none;max-height:80px;overflow:auto;width:auto}.uld,.underline-dots{border-bottom-style:dotted;border-bottom-width:1px}div.uld,div.underline-dots{display:inline-block;max-height:240px;max-width:100%;overflow:auto;line-height:inherit}.checkbox-label,.no-input-value,span.uld,span.underline-dots{line-height:27px;padding-bottom:1px}.span-grade-points+label{line-height:27px}.md-preview{min-width:280px;max-width:1024px}.md-preview>.tab{border-width:1px;border-bottom:0;border-style:solid;padding:6px 10px;margin:0 2px 0 0;line-height:28px;text-transform:uppercase;font-size:14px}.md-preview .md-link{line-height:26px;float:right}.md-preview>div{display:none;border-width:1px 1px 2px;border-style:solid;padding:2px 4px;margin-bottom:2px;box-sizing:border-box;overflow-y:auto}.md-preview+textarea{border-top-left-radius:0;border-top-right-radius:0;margin-top:0;resize:vertical}.markdown-to-html table{border-collapse:collapse;border-spacing:0}.markdown-to-html td,.markdown-to-html th{border:1px solid #bbb;padding:5px 10px}.markdown-to-html{line-height:1.3}.list.widefat td .markdown-to-html{line-height:1.236em}.legend-gray,.legend-red{font-size:15px;line-height:1.27;margin-top:0;margin-bottom:9px;display:inline-block}.uld~.legend-gray,.uld~.legend-red,.underline-dots~.legend-gray,.underline-dots~.legend-red{margin-top:2px}td>.legend-gray:first-child{margin-bottom:0}.logo{max-width:64px;max-height:64px}#menu .logo{margin-top:4px}.onclick{cursor:pointer}div.onclick{display:inline-block;max-width:100%}.cellspacing-0{border-spacing:0}.width-100p{width:100%}.fixed-col{table-layout:fixed;word-wrap:break-word}.popTable{padding:13px 11px}table.valign-top td,td.valign-top,tr.valign-top{vertical-align:top}table.valign-bottom td,td.valign-bottom,tr.valign-bottom td{vertical-align:bottom}table.valign-middle td,td.valign-middle,tr.valign-middle td{vertical-align:middle}.list.has-input:not(.valign-middle)>tbody>tr>td:first-child .button,.list.has-input:not(.valign-middle)>tbody>tr>td:first-child .button+b{padding-top:7px}.align-right,.align-right td,td.align-right,th.align-right{text-align:right}.col1-align-right>tbody>tr>td:first-child{text-align:right;vertical-align:middle}.center{text-align:center}a.center,span.center{display:block}img.center{display:block;margin:0 auto}table.center{text-align:inherit;margin-left:auto;margin-right:auto}span.nobr{white-space:nowrap}div.nobr div{display:inline}tr.address>td{border:none;padding:0 12px}.br-after{display:block}td.image-radio-list{height:160px;padding:0;margin:0;float:left;position:relative}label.image-radio-list{padding:0 20px}img.image-radio-list{vertical-align:top;max-width:150px;max-height:150px}.button{vertical-align:-15%;height:16px;max-width:none}.button.bigger,.valign-middle .button,a>.button{vertical-align:middle}.button.smaller,.list-header a>.button.smaller{vertical-align:-12%}a>.button.smaller{vertical-align:-18%}.uld .button,.underline-dots .button{vertical-align:text-top}.current-person .button{vertical-align:-40%}.error .button.bigger,.updated .button.bigger{vertical-align:-35%}a:has(.button){white-space:nowrap}a>.button{padding:1px}.button.bigger{height:24px}.button.smaller{height:14px}.button.cal{cursor:pointer;height:32px;margin-top:-9px;vertical-align:middle}.login .popTable td{padding-bottom:16px}.login .popTable tr:last-of-type td{padding-bottom:0}.login #loginform input[type=password],.login #loginform input[type=text]{font-weight:200;font-size:20px;width:100%;max-width:100%;height:34px;padding:3px 6px;margin-top:2px;margin-right:6px;box-shadow:inset 1px 1px 2px rgba(200,200,200,.2)}.BottomButton{margin-right:12px;display:inline-block}.BottomButton span{vertical-align:top;text-transform:uppercase;font-size:14px;padding-left:2px;line-height:24px}.BottomButton img{height:18px;border-radius:50%;padding:3px}#BottomButtonMenu{height:32px;float:left}#BottomButtonMenu svg{stroke:#000;background-color:#fff;padding:3px;height:18px;width:18px;border-radius:50%;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.BottomButton.loading{float:right;padding-bottom:13px;height:24px;width:24px}.BottomButton.hide{display:none}.loading{display:inline-block;width:32px;height:32px;border-radius:50%;background:url("../FlatSIS/spinning.gif") center/contain no-repeat;visibility:hidden;padding-bottom:0!important}input+.loading{vertical-align:bottom;width:26px;height:26px}input[type=file]{max-width:calc(100% - 38px)}.list.widefat input[type=file]{width:180px}input[type=file]::file-selector-button{display:none}input[type=file]::-webkit-file-upload-button{display:block;width:0;height:0;padding:0;margin:0;-webkit-appearance:none;border:none}input[type=file]::-ms-browse{display:none}.bar{word-wrap:normal}div.st{float:left;padding:4px 16px 4px 0}div.st .list-nav{margin-top:12px}div.st .list{margin-bottom:4px}div.st:last-of-type .list{margin-bottom:12px}div.st>.list-outer{display:inline-grid}#student-comments{max-width:100%;width:500px}#student-comments span{font-size:14px;color:#333}#student-comments div{background:#fff;padding:12px;margin-bottom:12px;border-bottom:1px solid}#student-comments div>:first-child{margin-top:0}#student-comments div>:last-child{margin-bottom:0}#calendar>thead>tr>th{text-transform:uppercase;font-size:15px;font-weight:400;line-height:1.6}.calendar-day{min-width:109px}.calendar-day>table{height:100%;width:100%}.calendar-event{height:26px;font-size:14px;max-width:0;overflow:hidden;white-space:nowrap;line-height:1.231}.calendar-day .bold{font-weight:700}.calendar-day .number{font-size:1.2em}.calendar-minutes{text-align:right}.calendar-newevent{vertical-align:bottom}.no-touch .calendar-minutes,.no-touch .calendar-newevent{visibility:hidden}.calendar-day:hover .calendar-minutes,.calendar-day:hover .calendar-newevent,.calendar-minutes .calendar-block,.calendar-minutes input:checked,.calendar-minutes input[type=number]:not(:placeholder-shown){visibility:visible}.calendar-event div{border-left-width:4px;border-left-style:solid;margin:1px 0}.calendar-event a,.calendar-event span{padding:4px 2px;display:inline-block}td.calendar-menu{white-space:normal;max-width:none}.calendar-event-poptable{max-width:340px}.legend-square{width:32px;height:32px;border-radius:3px}#cboxContent{background:0 0;padding:0 0 8px 8px;margin-left:-8px;margin-right:8px;box-sizing:border-box}#cboxLoadedContent{background:#fff!important;box-shadow:rgba(0,0,0,.3) 0 3px 8px;margin:0 0 0 8px!important;padding:8px 16px!important;overscroll-behavior:contain}#cboxLoadedContent .header1 h2{padding-top:8px}#cboxLoadedContent h1{margin-top:.42em}.addon-readme{width:1080px;max-width:100%}.rt .link2colorBox{display:none}.divPortalPoll{max-height:350px;overflow-y:auto;min-width:300px}.divPortalPoll .widefat{margin-bottom:.8em}.widefat .divPortalPoll>p{margin-bottom:2px}.span-grade-points{float:left}.grade-minmax-wrap{min-width:120px}.grade-minmax-min{float:left;width:23%;font-size:14px}.grade-minmax-grade{float:left;width:48%;text-align:center}.grade-minmax-max{float:left;width:23%;text-align:right;font-size:14px}.grade-minmax-grade,.grade-minmax-max,.grade-minmax-min{word-wrap:initial}.attendance-code{display:inline-block;padding:2px 8px;min-width:10px;text-align:center;line-height:1.82}.arrow.right:before,.switchMenu:before{content:"\25b6\0000a0";vertical-align:10%}.switchMenu.switched:before{content:"\25bc\0000a0"}.arrow,.switchMenu{display:inline-block}.switchMenu{padding:5px}#search details summary{padding:6px;font-weight:700;outline:0}.chart{position:relative;width:calc(90vw - 205px);max-width:1024px}#tipMsg{visibility:hidden;position:absolute;z-index:1000;top:-100px;max-width:300px}.tipmsg-label{display:inline-block;border-bottom:1px dashed #bbb;cursor:default}a>.tipmsg-label{cursor:pointer}.tipmsg-label .button+b,a .button+b{font-weight:400;text-transform:uppercase;font-size:14px;vertical-align:middle}.tooltip{position:absolute;display:inline-block;margin-left:5px;margin-top:-1px;cursor:help;text-transform:none}.tooltip:before{content:"i";font-family:monospace;font-size:.85em;font-weight:700;width:16px;height:16px;line-height:16px;display:inline-block;text-align:center;border-radius:50%}.tooltip>i{visibility:hidden;opacity:0;position:absolute;bottom:100%;left:-90px;width:180px;z-index:999;display:inline-block;padding:5px 7px;transition:opacity .3s;text-align:left;font-size:14px;line-height:1.5;white-space:normal}.tooltip.bottom>i{bottom:auto;top:100%}.legend-gray .tooltip>i,.legend-red .tooltip>i{bottom:130%}.legend-gray .tooltip.bottom>i{bottom:auto;top:130%}.tooltip:hover>i{visibility:visible;opacity:1}.minicolors{margin:2px 2px 2px 0}.a11y-hidden{position:absolute!important;clip:rect(1px 1px 1px 1px);width:1px;height:1px;overflow:hidden}#footerwrap a.a11y-hidden:active,#footerwrap a.a11y-hidden:focus{clip:auto!important;position:absolute;text-decoration:underline;left:9%;width:auto;height:auto}.first-login,.login,.password-reset{height:auto}.first-login #body,.login #body{padding:64px 2px;margin-bottom:0}.login .postbox,.password-reset .postbox{max-width:320px}.ajax-error{position:fixed;top:0;right:0;padding:11px;background-color:red;font-weight:700;color:#fff;z-index:100000;display:none}.tinymce{min-height:200px}.tinymce-document{height:360px}.mce-tinymce.mce-container{max-width:1024px}.tinymce-horizontal .mce-tinymce.mce-container{max-width:1448px}.mce-branding{display:none!important}.mce-tinymce.mce-fullscreen,.tinymce-horizontal .mce-tinymce.mce-fullscreen{max-width:none}.mce-btn-group .mce-btn{float:left}.markdown-to-html img,.tinymce-html img{height:auto}.select2-container--default .select2-selection--multiple,.select2-container--default .select2-selection--single,.select2-dropdown{border-radius:0!important}.select2-container--default .select2-selection--multiple,.select2-container--default .select2-selection--single{border-bottom-width:2px!important;min-height:27px!important}.select2-container--default .select2-search__field{height:auto}.select2-container--default .select2-search__field,.select2-container--default .select2-selection__choice{margin-top:2px!important;margin-bottom:0;font-size:15px}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:27px!important}.select2-container--default .select2-selection__rendered{text-align:left}.select2-container--default li{margin-bottom:0}.select2-container--default .select2-results__option{padding:5px 6px}.select2-dropdown{z-index:10051!important}.chosen-select,.select2-select{min-width:55px;padding-right:15px}.select2-container{min-width:55px}.chosen-select[multiple],.select2-select[multiple]{padding-right:23px}.no-touch .phone-link{color:#333;cursor:default}.dashboard-module-title{text-transform:uppercase;font-size:15px;font-weight:400;margin:.85em 0}.dashboard-module-title span{padding-right:4px}.dashboard-module-data{padding-left:8px}.dashboard-module-data .tipmsg-label{margin-bottom:11px}.dashboard-module-data .tipmsg-label .legend-gray{margin-bottom:1px}.dashboard-module-data-tipmsg .legend-gray,.dashboard-module-data-tipmsg .legend-gray .proper-date{font-size:14px}.dashboard-module-title .module-icon,.dashboard-module-title img{vertical-align:-70%}.teacher-programs-wrapper{border-style:dashed;padding:7px;width:100%;margin-left:-9px}.password-input-wrapper{display:inline-block}.password-strength-bars{line-height:5px;font-size:5px}.password-strength-bars+br{display:none}.password-toggle{float:right;margin-left:-22px;margin-right:3px;margin-top:2px;cursor:pointer;position:relative;padding:4px 2px;background:#fff}.password-hide{display:none}.password-strength-bars span{background-color:#ff4136;display:inline-block;width:18.5%;line-height:5px;height:5px;padding:0 1px 0 0;visibility:hidden}.password-strength-bars~label{display:inline-block;margin-top:-2px}.mailing-label-left,.mailing-label-right{margin-top:21px;margin-bottom:36px}.mailing-label-left td:first-of-type,.mailing-label-right td:last-of-type{width:60px}.mailing-label-left td:last-of-type,.mailing-label-right td:first-of-type{width:400px}.mailing-label-right{width:auto;margin-right:0;margin-left:auto}.mailing-label-top-margin{margin-top:126px}.button-upsell-premium{border:none;display:inline-block;padding:6px 10px;text-decoration:none;text-transform:uppercase;min-width:112px;text-align:center;border-radius:0;box-sizing:border-box;position:fixed;bottom:16px;right:15px;z-index:9}.addon-upsell-premium{width:1080px;max-width:100%}.addon-upsell-premium img[alt=additional-screenshot]{max-width:260px;padding-top:7px;padding-right:7px}template{display:none}.fix-first-column th:first-child,.fix-first-column>tbody>tr>td:first-child{position:sticky;left:0;right:0}.fix-first-column>tbody>tr>td:first-child{background-color:inherit}.size-3{font-size:12px}.size-1{font-size:14px}.sizep1{font-size:16px}.sizep2{font-size:17px}@media only screen and (max-width:1270px){tr.address.st>td{float:left;width:100%;box-sizing:border-box}tr.address>td{border-style:none none dotted;padding:12px 0}tr.address>td:last-of-type{border-style:none}}@media only screen and (max-width:874px){.mod{position:relative!important;float:none!important;clear:none!important;margin-left:0!important;margin-right:0!important;border:0}#wrap{height:100%}#footer{position:fixed!important;top:0;bottom:auto}#footerwrap{height:32px;padding:3px 12px}.BottomButton{line-height:32px}.BottomButton img{height:24px}#BottomButtonMenu svg{height:24px;width:24px}.BottomButton span{display:none}.BottomButton.loading{height:30px;width:30px}#menu .logo{max-width:64px;max-height:64px;margin:8px 11px;float:right}#menu{position:fixed!important;top:39px;left:0;right:0;bottom:0;width:100%;overflow-y:scroll;padding-bottom:0;min-height:auto;height:0;transition:height .3s ease-in-out}#menu.slide{margin:0;height:calc(100% - 39px)}body:has(#menu.slide) .button-upsell-premium{z-index:0}.adminmenu{margin-bottom:5px}.adminmenu a{padding:3px 12px}.wp-submenu a{padding:6px 12px}#menu form{padding:16px 12px 7px}.menu-top img{height:30px}#menu-top select{max-width:none}.current-person{padding:2px 10px}.no-touch .menu-module:hover .menu-top:after{content:""}.no-touch .menu-module:focus-within .wp-submenu,.no-touch .menu-module:hover .wp-submenu{top:-1000em;left:0}.no-touch .menu-module .wp-submenu,.no-touch .menu-module:hover .wp-submenu{width:100%}#body{width:auto!important;box-sizing:border-box}.header1{padding-left:6px}.header1 h2{font-size:24px;line-height:26px;padding-left:34px;text-indent:-34px}.header1 .module-icon{vertical-align:-6px;width:30px;height:30px}.header2 .fixed-col{word-break:break-all}#LO_search,#search input,#search select{max-width:150px}#search .popTable .st td:first-child{padding-bottom:0}#LO_search{float:left}#LO_search+.button{left:-28px;float:left}#modulesBody textarea{width:100%!important}.chart{width:90vw;min-width:450px}input[type=button],input[type=reset],input[type=submit]{margin:0 4px}tr.st>td{float:left;width:100%;box-sizing:border-box}table.col1-align-right>tbody>tr.st>td:first-child{text-align:left;border-bottom:none}table.col1-align-right>tbody>tr.st>td:nth-child(2){border-top:none}.fixed-col{table-layout:auto}.fixed-col select{max-width:340px}.divPortalPoll{min-width:0}.rt .poll-votes-outer div{display:inline-block}.rt .poll-votes-outer>div:first-child{vertical-align:top;padding-right:6px}.tooltip::before{font-size:.9em;width:20px;height:20px;line-height:20px}.tooltip>i{left:-70px;width:140px;font-size:.9em;padding:5px 7px 7px;line-height:1.4}.first-login,.login,.password-reset{padding:32px 2px}.password-reset{padding-top:0}.mce-container .mce-dropzone{height:60px!important}.teacher-programs-wrapper{padding:.5%;width:99%;margin-left:-.5%}#cboxLoadedContent{padding:8px 12px!important}.rt select[name^=month_]{max-width:60px}}@media only screen and (max-width:1023px){#body{padding:0 6px 38px}.rbr{display:none}.rseparator{visibility:hidden;font-size:0}.rseparator:after{content:' ';display:block}.rt{display:block;position:relative;width:100%}.rt thead{display:block;float:left;max-width:160px}.rt tbody{display:block;width:auto;position:relative;overflow-x:auto;white-space:nowrap;overscroll-behavior-y:none}.rt thead tr{display:block}.list.rt th,.rt th{display:block;line-height:2.137em;height:2.137em}.rt th,.rt th a{line-height:2.137em;white-space:nowrap;text-overflow:ellipsis}.rt tbody tr{display:inline-block;vertical-align:top}.rt td{display:block;line-height:1.87em;height:1.87em}.rt img{max-height:2em}.rt .rt2colorBox img{max-height:unset}.rt input,.rt select{margin:0}.rt tr{border-right-width:1px;border-right-style:solid}.rt input,.rt select,.rt textarea{max-width:190px}.list.rt td,.list.rt th{padding:6px 11px}.rt .link2colorBox{display:block}.rt .link2colorBox .colorboxinline{background:url("../FlatSIS/btn/visualize.png") 0 0/contain no-repeat;width:24px;height:24px;display:block}.rt2colorBox{overflow:auto}.widefat th a[href*=LO_dir]{padding-right:0}.widefat td .rt2colorBox p{margin-top:0}.rt .link2colorBox+.rt2colorBox{display:none}.rt div.error,.rt div.updated{padding:0;margin:0}.rt .thead-repeat{display:none}.fix-first-column th:first-child,.fix-first-column>tbody>tr>td:first-child{position:unset}.divPortalPoll{max-height:none;overflow-y:visible}#calendar>thead>tr>th{font-size:1em;line-height:1.3;overflow:hidden;word-wrap:normal;padding:4px}.calendar-day{position:relative;min-height:48px}.calendar-day>table{display:block;width:inherit;padding:0 1px;z-index:1}.calendar-day td{display:none}.calendar-day .number,.calendar-day.hover:hover td{display:table-cell}.calendar-day.hover .calendar-event,.calendar-day.hover .calendar-minutes{width:100%}.calendar-day .number{font-size:1em}@keyframes disable-pointer-events{0%,99%{pointer-events:none}}.calendar-day.hover:hover>table{animation:.2s disable-pointer-events;height:auto;min-width:202px;min-height:102px;z-index:2;position:absolute;top:0;left:0;background-color:inherit;box-shadow:2px 2px 2px 1px rgba(0,0,0,.1)}.calendar-day.thu-fri-sat.hover:hover>table{right:0;left:auto;box-shadow:-2px 2px 2px 1px rgba(0,0,0,.1)}#courses_div{position:relative;width:210px;float:right}.widefat th a[href*=LO_dir]:after,.widefat th a[href*=LO_dir]:hover:after{content:""}}html[dir=RTL] #menu,html[dir=RTL] #menu.fixedmenu-fixed+div{margin-left:auto;margin-right:0}html[dir=RTL] #menu.fixedmenu-fixed.slide+div,html[dir=RTL] #menu.slide{margin-right:-500px}html[dir=RTL] #menu{float:right;border-width:0 0 0 1px}html[dir=RTL] #BottomButtonMenu{float:right}html[dir=RTL] .wp-submenu{right:0;left:auto!important;-webkit-transition:top,right;transition:top,right}html.no-touch[dir=RTL] .menu-module:focus-within .menu-top:after{left:5px;right:auto}html.no-touch[dir=RTL] .menu-module:hover .menu-top:after{left:5px;right:auto}html.no-touch[dir=RTL] .menu-module:focus-within .wp-submenu{right:224px}html.no-touch[dir=RTL] .menu-module:hover .wp-submenu{right:224px}html[dir=RTL] #selectedModuleLink+.wp-submenu,html[dir=RTL] #selectedModuleLink:after{right:0;left:auto}html[dir=RTL] .widefat td,html[dir=RTL] .widefat th{text-align:right}html[dir=RTL] div.st{float:right}html[dir=RTL] .tooltip>i{text-align:right}html[dir=RTL] .arrow.right:before,html[dir=RTL] .switchMenu:before{content:"\25c0\0000a0"}html[dir=RTL] .switchMenu.switched::before{content:"\25bc\0000a0"}html[dir=RTL] input[type=checkbox].toggle{right:-9999px}html[dir=RTL] .span-grade-points{float:right}html[dir=RTL] .login form input[type=password],html[dir=RTL] .login form input[type=text]{margin-left:6px;margin-right:0}html[dir=RTL] .align-right,html[dir=RTL] .align-right td,html[dir=RTL] table.col1-align-right>tbody>tr>td:first-child,html[dir=RTL] td.align-right,html[dir=RTL] th.align-right{text-align:left}html[dir=RTL] #LO_search+.button{left:24px}html[dir=RTL] #LO_search{padding-right:2px;padding-left:28px}html[dir=RTL] .header2.align-right input[type=button],html[dir=RTL] .header2.align-right input[type=reset],html[dir=RTL] .header2.align-right input[type=submit]{margin:0 16px 0 0}html[dir=RTL] input:has(+ .password-toggle){padding-right:22px}html[dir=RTL] .teacher-programs-wrapper{margin-left:0;margin-right:-9px}html[dir=RTL] .calendar-event div{border-left-width:0;border-right-width:4px;border-right-style:solid}html[dir=RTL] .select2-container--default .select2-selection__rendered{text-align:right}@media only screen and (max-width:1023px){html[dir=RTL] .calendar-day .hover:hover{right:0}html[dir=RTL] .calendar-day.thu-fri-sat .hover:hover{left:0;right:auto}html[dir=RTL] .calendar-day.hover:hover>table{left:auto;right:0;box-shadow:-2px 2px 2px 1px rgba(0,0,0,.1)}html[dir=RTL] .calendar-day.thu-fri-sat.hover:hover>table{left:0;right:auto;box-shadow:2px 2px 2px 1px rgba(0,0,0,.1)}}@media only screen and (max-width:874px){html[dir=RTL] .header1 h2{padding-left:0;padding-right:42px}}@media only screen and (max-width:479px){.st>.align-right,.st>.center{text-align:left}.header2.align-right input[type=button],.header2.align-right input[type=reset],.header2.align-right input[type=submit]{margin:0 16px 0 0}.calendar-day{height:36px}.calendar-day .hover:hover{min-width:177px;min-height:78px}.fixed-col select,input,select{max-width:260px}.teacher-programs-wrapper{padding:1%;width:98%;margin-left:-1%}.rt thead{max-width:130px}html[dir=RTL] .st>.align-right,html[dir=RTL] .st>.center{text-align:right}html[dir=RTL] .header2.align-right input[type=button],html[dir=RTL] .header2.align-right input[type=reset],html[dir=RTL] .header2.align-right input[type=submit]{margin:0 0 0 16px}}


/* ===== ui-system/tokens.css ===== */
/*
 * SchoolSafe tokens. The only place brand colors are defined.
 * Measured from assets/themes/SchoolSafe/logo.png:
 * shield #01268D, brighter blue #023FBF, word Safe #F0B515, word School #FCFCFC.
 * State colors are the logo blocks and are used only for meaning.
 * --ss-primary-dark is the shield pressed one step darker. It is not a new logo color.
 */

:root {
	--ss-primary: #01268d;
	--ss-primary-dark: #011f74;
	--ss-primary-light: #023fbf;
	--ss-accent: #f0b515;
	--ss-surface: #fcfcfc;
	--ss-surface-alt: #f4f7fb;
	--ss-text: #1a1a1a;
	--ss-text-muted: #5c6775;
	--ss-text-on-primary: #fcfcfc;
	--ss-border: #e4e9ef;
	--ss-success: #0ba473;
	--ss-success-bg: #e7f6ef;
	--ss-success-text: #086348;
	--ss-warning: #fc6f06;
	--ss-warning-bg: #fff6ee;
	--ss-warning-text: #8a3a00;
	--ss-danger: #e32822;
	--ss-danger-bg: #fdeceb;
	--ss-ai: #7940f3;
	--ss-ai-bg: #f3eeff;
	--ss-ai-text: #5b2cc4;

	/* Annonces. Always shown with the name and the mailbox icon. */
	--ss-branch-annonces: #1f6f8b;

	/* Sondages. Always shown with the name and the clipboard icon. */
	--ss-branch-sondages: #4c3d72;

	/* Calendrier. Always shown with the name and the calendar icon. */
	--ss-branch-calendrier: #5c4032;

	/* Périodes. Always shown with the name and the clock icon. */
	--ss-branch-periodes: #3a5c4e;

	/* Créneaux. Always shown with the name and the label icon. */
	--ss-branch-creneaux: #2f4660;

	/* Niveaux. Always shown with the name and the user icon. */
	--ss-branch-niveaux: #5c3d55;

	/* Établissement. Always shown with the name and the house icon. */
	--ss-branch-etablissement: #3c6b74;

	/* Paramètres. Always shown with the name and the settings icon. */
	--ss-branch-parametres: #5e6a3d;

	/* Année. Always shown with the name and the next icon. */
	--ss-branch-annee: #8a5a44;

	/* Journal. Always shown with the name and the lock icon. */
	--ss-branch-journal: #7a4b5c;

	/* Dossier. Always shown with the name and the folder icon. */
	--ss-branch-dossier: #2c6b8a;

	/* Inscription. Always shown with the name and the add icon. */
	--ss-branch-inscription: #3f6f62;
	--ss-focus: var(--ss-primary);

	--ss-space-1: 4px;
	--ss-space-2: 8px;
	--ss-space-3: 16px;
	--ss-space-4: 24px;
	--ss-space-5: 32px;
	--ss-space-6: 48px;

	--ss-radius-sm: 8px;
	--ss-radius: 12px;
	--ss-radius-lg: 16px;

	--ss-shadow: 0 1px 2px rgba(1, 38, 141, 0.06);
	--ss-shadow-raised: 0 8px 24px rgba(1, 38, 141, 0.08);

	--ss-font-title: Poppins, Inter, Lato, sans-serif;
	--ss-font-ui: Inter, Lato, sans-serif;
	--ss-font-size: 16px;
	--ss-line: 1.5;

	--ss-sidebar-width: 240px;
	--ss-topbar-height: 56px;
	--ss-page-max: 1120px;
	--ss-control-height: 40px;
	--ss-duration: 160ms;
}



/* ===== ui-system/animations.css ===== */
/*
 * SchoolSafe micro-motion. State and hierarchy only.
 */

.ss-btn,
.ss-sidebar a,
.ss-page,
.ss-icon-btn {
	transition: background-color var(--ss-duration) ease, border-color var(--ss-duration) ease, color var(--ss-duration) ease;
}

.ss-card,
.ss-kpi,
.ss-modal-panel {
	transition: box-shadow var(--ss-duration) ease, transform var(--ss-duration) ease;
}

.ss-card:hover,
.ss-kpi:hover {
	box-shadow: var(--ss-shadow-raised);
}

.ss-sidebar {
	transition: transform var(--ss-duration) ease;
}

.ss-demo-mobile .ss-sidebar.is-closed {
	transform: translateX(-100%);
}

.ss-app .ss-sidebar,
.ss-dropdown-panel {
	transition: transform var(--ss-duration) ease, opacity var(--ss-duration) ease;
}

.ss-dropdown[open] .ss-dropdown-panel {
	animation: ss-rise var(--ss-duration) ease;
}

.ss-modal {
	transition: opacity var(--ss-duration) ease;
}

.ss-modal.is-open {
	opacity: 1;
}

.ss-rise {
	animation: ss-rise var(--ss-duration) ease;
}

.ss-spinner {
	animation: ss-spin 0.8s linear infinite;
}

@keyframes ss-rise {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ss-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ss-btn,
	.ss-sidebar,
	.ss-sidebar a,
	.ss-card,
	.ss-kpi,
	.ss-modal,
	.ss-modal-panel,
	.ss-page,
	.ss-icon-btn,
	.ss-spinner,
	.ss-rise,
	.ss-app .ss-sidebar,
	.ss-dropdown-panel,
	.ss-dropdown[open] .ss-dropdown-panel {
		animation: none;
		transition: none;
	}
}



/*
 * LOT-01 shell tokens, measured from the SchoolSafe logo.
 * Shield face #01268D, brighter blue #023FBF, word "Safe" #F0B515,
 * word "School" #FCFCFC. State colors are the logo blocks, used only
 * for meaning. FlatSIS still supplies layout, menu items and permissions.
 */
:root {
	--ss-brand-primary: #01268d;
	--ss-brand-secondary: #023fbf;
	--ss-brand-accent: #f0b515;
	--ss-surface: #fcfcfc;
	--ss-surface-raised: #ffffff;
	--ss-text: #1a1a1a;
	--ss-text-secondary: #5c6775;
	--ss-text-on-brand: #fcfcfc;
	--ss-sidebar: #01268d;
	--ss-sidebar-active: #023fbf;
	--ss-success: #0ba473;
	--ss-warning: #fc6f06;
	--ss-danger: #e32822;
	--ss-ai: #7940f3;
	--ss-focus: #01268d;
	--ss-space: 8px;
}

html,
body {
	background: var(--ss-surface);
	color: var(--ss-text);
	font-family: Inter, Lato, sans-serif;
}

h1,
h2,
h3,
h4,
.header1 h2 {
	font-family: Poppins, Inter, Lato, sans-serif;
	color: var(--ss-brand-primary);
}

#menu,
#menu.fixedmenu-fixed + div,
.adminmenu,
.menu-top {
	background: var(--ss-sidebar);
	border-color: var(--ss-brand-secondary);
	color: var(--ss-text-on-brand);
}

#menu .logo {
	display: block;
	float: none;
	width: 148px;
	max-width: 168px;
	max-height: none;
	height: auto;
	margin: 12px auto 4px;
}

#menu-top select {
	background: var(--ss-sidebar);
	border-color: var(--ss-brand-secondary);
	color: var(--ss-text-on-brand);
	min-height: 32px;
}

#footer {
	background: var(--ss-brand-primary);
	box-shadow: none;
}

#footerwrap {
	border-color: var(--ss-brand-secondary);
}

.BottomButton,
a.menu-top {
	color: var(--ss-text-on-brand);
}

.adminmenu a,
.BottomButton:hover,
.BottomButton:focus,
.BottomButton:active,
a.menu-top:hover,
a.menu-top:focus {
	color: var(--ss-text-on-brand);
}

#selectedModuleLink,
.menu-top:hover,
.menu-top:focus {
	background: var(--ss-sidebar-active);
}

.wp-submenu {
	background: var(--ss-sidebar);
	border-color: var(--ss-brand-secondary);
}

.wp-submenu a {
	color: var(--ss-text-on-brand);
	padding-top: 8px;
	padding-bottom: 8px;
}

#selectedMenuLink,
.wp-submenu a:hover,
.wp-submenu a:focus,
.wp-submenu a:active {
	background: var(--ss-sidebar-active);
	color: var(--ss-text-on-brand);
	box-shadow: inset 3px 0 0 var(--ss-brand-accent);
}

@media only screen and (max-width: 874px) {
	#menu .logo {
		float: none;
		width: 112px;
		max-width: 112px;
		margin: 12px auto;
	}

	#menu {
		box-sizing: border-box;
		width: 100%;
		border-width: 0;
	}
}

.adminmenu a:focus,
.BottomButton:focus,
#menu-top select:focus,
input:focus,
select:focus,
textarea:focus,
button:focus {
	outline: 2px solid var(--ss-focus);
	outline-offset: 2px;
}

#menu a:focus,
#menu select:focus,
.BottomButton:focus {
	outline-color: var(--ss-brand-accent);
}

a {
	color: var(--ss-brand-secondary);
}

a:hover,
a:focus,
a:active {
	color: var(--ss-brand-primary);
}

input.button-primary,
button.button-primary,
a.button-primary {
	background: var(--ss-brand-secondary);
	border-color: var(--ss-brand-primary);
	color: var(--ss-text-on-brand);
}

input.button-primary:hover,
button.button-primary:hover,
a.button-primary:hover,
input.button-primary:focus,
button.button-primary:focus,
a.button-primary:focus {
	background: var(--ss-brand-primary);
	border-color: var(--ss-brand-primary);
	color: var(--ss-text-on-brand);
}

body.login,
body.first-login,
body.password-reset {
	background: var(--ss-brand-primary);
	min-height: 100%;
}

html:has(body.login),
html:has(body.first-login),
html:has(body.password-reset) {
	background: var(--ss-brand-primary);
}

body.login .mod,
body.first-login .mod,
body.password-reset .mod {
	overflow: visible;
	height: auto;
}

body.login #body,
body.first-login #body,
body.password-reset #body {
	background: transparent;
}

body.login .postbox-wrapper,
body.first-login .postbox-wrapper,
body.password-reset .postbox-wrapper {
	width: min(420px, calc(100vw - 32px));
	margin: 24px auto 32px;
	background: var(--ss-surface-raised);
	border-radius: 16px;
	overflow: hidden;
	border-top: 4px solid var(--ss-brand-accent);
	box-shadow: 0 16px 40px rgba(1, 20, 70, 0.28);
}

body.login .postbox,
body.first-login .postbox,
body.password-reset .postbox {
	width: 100%;
	margin: 0;
	background: transparent;
	border: 0;
}

body.login .postbox thead {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.login .logo,
body.first-login .logo,
body.password-reset .logo {
	width: 220px;
	max-width: 240px;
	max-height: none;
	height: auto;
	margin: 16px auto 8px;
}

body.login h4,
body.first-login h4,
body.password-reset h4 {
	color: var(--ss-brand-primary);
}

body.login #loginform,
body.password-reset form {
	display: block;
	box-sizing: border-box;
	max-width: none;
	margin: 8px 0 0;
	padding: 0;
	background: transparent;
}

#loginform input[type="submit"] {
	background: var(--ss-brand-secondary);
	border-color: var(--ss-brand-primary);
	color: var(--ss-text-on-brand);
}

/* LOT-02 entry. The splash is paint only. Username, Password and Password help stay the Rosario form. */
.ss-splash {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ss-brand-primary);
	pointer-events: auto;
	animation: ss-splash-out 0.4s ease 0.9s forwards;
}

.ss-splash img {
	width: min(280px, 72vw);
	height: auto;
}

@keyframes ss-splash-out {
	to {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ss-splash {
		display: none;
	}
}

body.login #loginform label {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin: 0 0 16px;
	font-weight: 600;
	color: var(--ss-text);
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	font-size: 16px;
	border: 1px solid #c5ced8;
	border-radius: 8px;
}

body.login #loginform input:focus,
body.password-reset form input:focus {
	outline: 2px solid var(--ss-focus);
	outline-offset: 2px;
}

body.login #loginform .align-right {
	margin-top: -8px;
}

body.login #loginform a[href="PasswordReset.php"] {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ss-brand-secondary);
	font-weight: 600;
}

body.login #loginform input[type="submit"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	border-radius: 8px;
	font-weight: 600;
}

body.login .error,
body.login .updated {
	margin: 0 0 16px;
}

/* LOT-03 portals. Cards show the counts Rosario already prints. Modules with no data stay absent. */
.postbox-wrapper:has(> .postbox table.dashboard) {
	display: block;
	width: 100%;
	margin: 16px 0 24px;
}

.postbox-wrapper:has(> .postbox table.dashboard) > .postbox,
.postbox-wrapper:has(> .postbox table.dashboard) > .postbox > thead,
.postbox-wrapper:has(> .postbox table.dashboard) > .postbox > thead > tr,
.postbox-wrapper:has(> .postbox table.dashboard) > .postbox > thead th,
.postbox-wrapper:has(> .postbox table.dashboard) > .postbox > tbody,
.postbox-wrapper:has(> .postbox table.dashboard) > .postbox > tbody > tr,
.postbox-wrapper:has(> .postbox table.dashboard) .popTable {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.postbox-wrapper:has(> .postbox table.dashboard) > .postbox {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.postbox-wrapper:has(> .postbox table.dashboard) > .postbox > thead th {
	background: transparent;
	border: 0;
	padding: 0 0 8px;
	text-align: left;
	font-family: Poppins, Inter, Lato, sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--ss-brand-primary);
}

.postbox-wrapper:has(> .postbox table.dashboard) .popTable {
	background: transparent;
	border: 0;
	padding: 0;
}

table.dashboard {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	border-spacing: 0;
}

table.dashboard tbody,
table.dashboard tr {
	display: contents;
}

table.dashboard td {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	min-height: 132px;
	padding: 16px;
	background: var(--ss-surface-raised);
	border: 1px solid #e4e9ef;
	border-top: 4px solid var(--ss-brand-accent);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(1, 20, 70, 0.08);
}

.dashboard-module-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-family: Poppins, Inter, Lato, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.dashboard-module-title .module-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
}

.dashboard-module-data {
	padding-left: 0;
}

.dashboard-module-data .tipmsg-label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	border-bottom: 0;
	font-family: Poppins, Inter, Lato, sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ss-brand-primary);
}

.dashboard-module-data .no-input-value {
	font: inherit;
	color: inherit;
	line-height: 1.1;
}

.dashboard-module-data .legend-gray {
	font-family: Inter, Lato, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ss-text-secondary);
	border-bottom: 1px dashed #c5ced8;
}

@media (max-width: 1279px) {
	table.dashboard {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	table.dashboard {
		grid-template-columns: 1fr;
	}
}

#body:has(header[class*="ss-f"]) .postbox-wrapper:has(> .postbox table.dashboard) > .postbox > thead {
	display: none !important;
}

/* LOT-04 daily class work. The roster, assignment and grade fields stay Rosario's. */
#body a.list-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #f4f6f9;
}

#body a.list-save img {
	width: 20px;
	height: 20px;
	content: url("../SchoolSafe/icons/download.svg");
}

#body img[src*="btn/remove_button.png"],
#body img[src*="btn/x_button.png"] {
	width: 18px;
	height: 18px;
	content: url("../SchoolSafe/icons/remove.svg");
}

#body img[src*="btn/add_button.png"] {
	width: 18px;
	height: 18px;
	content: url("../SchoolSafe/icons/add.svg");
}

#body .list-wrapper {
	max-width: 100%;
	overflow-x: auto;
	background: var(--ss-surface-raised);
	border: 1px solid #e4e9ef;
	border-top: 4px solid var(--ss-brand-accent);
	border-radius: 16px;
}

#body table.list {
	background: var(--ss-surface-raised);
	border-collapse: separate;
	border-spacing: 0;
}

#body table.list th {
	background: #f8f9fb;
	color: var(--ss-text-secondary);
	font-family: Inter, Lato, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 12px 16px;
	border-bottom: 1px solid #e3e7ee;
}

#body table.list th a {
	color: var(--ss-text-secondary);
	text-decoration: none;
}

#body table.list td {
	padding: 12px 16px;
	border-bottom: 1px solid #e3e7ee;
	vertical-align: middle;
}

#body table.list tbody tr:hover td {
	background: #f4f7fb;
}

#body input[type="text"],
#body input[type="number"],
#body input[type="search"],
#body textarea,
#body select {
	box-sizing: border-box;
	min-height: 36px;
	border: 1px solid #c5ced8;
	border-radius: 8px;
	font-size: 16px;
}

#body input:focus,
#body select:focus,
#body textarea:focus {
	outline: 2px solid var(--ss-focus);
	outline-offset: 2px;
}

#body .attendance-code:not(:has(input)) {
	display: inline-flex;
	align-items: center;
	height: 24px;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: #eef1f6;
	color: #5c6775;
	font-size: 12px;
	font-weight: 600;
	line-height: 24px;
}

#body .attendance-code.present:not(:has(input)),
#body .attendance-code.present-alt:not(:has(input)) {
	background: #e7f7f1;
	color: #087a56;
}

#body .attendance-code.absent:not(:has(input)),
#body .attendance-code.absent-alt:not(:has(input)) {
	background: #fdeceb;
	color: #b4231c;
}

#body .attendance-code.half-day:not(:has(input)),
#body .attendance-code.half-day-alt:not(:has(input)) {
	background: #fff1e6;
	color: #c45504;
}

#body .attendance-code:has(input[type="radio"]) {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 72px;
	height: 32px;
	border: 1px solid #d5dbe4;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

#body .attendance-code:has(input[type="radio"]) input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

#body .attendance-code.present:has(input[type="radio"]),
#body .attendance-code.present-alt:has(input[type="radio"]) {
	background: #e7f7f1;
	border-color: #b7e7d4;
}

#body .attendance-code.absent:has(input[type="radio"]),
#body .attendance-code.absent-alt:has(input[type="radio"]) {
	background: #fdeceb;
	border-color: #f6c4c1;
}

#body .attendance-code.half-day:has(input[type="radio"]),
#body .attendance-code.half-day-alt:has(input[type="radio"]) {
	background: #fff1e6;
	border-color: #ffd2b0;
}

body.modules #body .h3multi {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 8px;
	border-bottom: 1px solid #e3e7ee;
}

body.modules #body .h3multi h3 {
	margin: 0;
	font-family: Inter, Lato, sans-serif;
	font-size: 13px;
	font-weight: 600;
}

body.modules #body .h3multi h3 a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-bottom: 2px solid transparent;
	color: var(--ss-text-secondary);
	text-decoration: none;
}

body.modules #body .h3multi h3.h3selected a,
body.modules #body .h3multi h3.title.h3selected {
	color: var(--ss-brand-primary);
	border-bottom: 2px solid var(--ss-brand-accent);
}

body.modules #body div.error,
body.modules #body div.updated {
	box-sizing: border-box;
	margin: 12px 0;
	padding: 12px 16px;
	border: 1px solid #e3e7ee;
	border-radius: 12px;
	background: #fff;
}

#body img[src*="btn/check_button.png"] {
	width: 18px;
	height: 18px;
	content: url("../SchoolSafe/icons/check.svg");
}

#body img[src*="btn/calendar.png"] {
	width: 20px;
	height: 20px;
	content: url("../SchoolSafe/icons/calendar.svg");
}

#footer img[src*="btn/print.png"] {
	width: 20px;
	height: 20px;
	content: url("../SchoolSafe/icons/print.svg");
}

#footer img[src*="btn/help.png"] {
	width: 20px;
	height: 20px;
	content: url("../SchoolSafe/icons/help.svg");
}

#footer img[src*="btn/logout.png"] {
	width: 20px;
	height: 20px;
	content: url("../SchoolSafe/icons/logout.svg");
}

#footer img[src*="btn/back.png"] {
	width: 20px;
	height: 20px;
	content: url("../SchoolSafe/icons/back.svg");
}

#menu img[src*="btn/x_button.png"] {
	width: 16px;
	height: 16px;
	content: url("../SchoolSafe/icons/close.svg");
}

#footer .BottomButton img {
	background: transparent;
	border-radius: 0;
	padding: 0;
	filter: brightness(0) invert(1);
}

#body table.list td a {
	color: var(--ss-text);
	font-weight: 600;
	text-decoration: none;
}

#body table.list td a:hover,
#body table.list td a:focus {
	color: var(--ss-brand-secondary);
}

/* LOT-05 people. Group the existing student and user fields. None are hidden. */
#body .postbox-wrapper:has(#last),
#body .postbox-wrapper:has(#username) {
	max-width: 520px;
	margin: 24px auto;
}

#body table.general-info,
#body table.other-info,
#body table.enrollment,
#body table.create-account {
	width: 100%;
	margin: 0 0 16px;
	background: var(--ss-surface-raised);
	border: 1px solid #e4e9ef;
	border-top: 4px solid var(--ss-brand-accent);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
}

#body table.general-info > tbody > tr > td,
#body table.other-info > tbody > tr > td,
#body table.enrollment > tbody > tr > td,
#body table.create-account > tbody > tr > td {
	padding: 12px 16px;
	vertical-align: top;
}

#body .user-photo {
	max-width: 128px;
	height: auto;
	border-radius: 16px;
}

@media (max-width: 767px) {
	#body table.general-info,
	#body table.general-info > tbody,
	#body table.general-info > tbody > tr,
	#body table.other-info,
	#body table.other-info > tbody,
	#body table.other-info > tbody > tr,
	#body table.enrollment,
	#body table.enrollment > tbody,
	#body table.enrollment > tbody > tr {
		display: block;
		width: 100%;
	}

	#body table.general-info > tbody > tr > td,
	#body table.other-info > tbody > tr > td,
	#body table.enrollment > tbody > tr > td {
		display: block;
		width: auto;
		box-sizing: border-box;
	}
}

/* LOT-06 schedule. The course name stays the Rosario schedule value. */
#body form:has(#printSchedulesLink) table.list td:first-child {
	font-family: Poppins, Inter, Lato, sans-serif;
	font-weight: 600;
	color: var(--ss-brand-primary);
}

/* LOT-07 discipline. Presentation of the referral form. PHP still decides which fields exist. */
#body form[action*="MakeReferral"] table.postbox,
#body form[action*="Referrals.php"] table.postbox {
	background: var(--ss-surface-raised);
	border: 1px solid #e4e9ef;
	border-top: 4px solid var(--ss-brand-accent);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
}

#body form[action*="MakeReferral"] table.width-100p > tbody > tr > td,
#body form[action*="Referrals.php"] table.width-100p > tbody > tr > td {
	padding: 12px 16px;
	vertical-align: top;
}

#body form[action*="MakeReferral"] fieldset {
	margin: 0;
	border: 1px solid #e4e9ef;
	border-radius: 12px;
	padding: 12px 16px;
}

#body form[action*="MakeReferral"] fieldset legend {
	font-family: Poppins, Inter, Lato, sans-serif;
	font-weight: 600;
	color: var(--ss-brand-primary);
	padding: 0 8px;
}

@media (max-width: 767px) {
	#body form[action*="MakeReferral"] fieldset table,
	#body form[action*="MakeReferral"] fieldset tbody,
	#body form[action*="MakeReferral"] fieldset tr,
	#body form[action*="MakeReferral"] fieldset td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
}

/* LOT-08 finance. The amounts stay the Rosario currency values. */
#body table.student-billing-totals,
#body table.accounting-totals {
	margin-left: auto;
	background: var(--ss-surface-raised);
	border: 1px solid #e4e9ef;
	border-top: 4px solid var(--ss-brand-accent);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
}

#body table.student-billing-totals td,
#body table.accounting-totals td {
	padding: 8px 16px;
	font-variant-numeric: tabular-nums;
}

#body table.student-billing-totals b,
#body table.accounting-totals b {
	font-family: Poppins, Inter, Lato, sans-serif;
	font-weight: 600;
	color: var(--ss-brand-primary);
}

@media (max-width: 767px) {
	#body table.student-billing-totals,
	#body table.accounting-totals {
		width: 100%;
	}
}

/* LOT-09 school setup. The school name and calendar days stay the Rosario values. */
#body form[action*="Schools.php"] table.postbox {
	background: var(--ss-surface-raised);
	border: 1px solid #e4e9ef;
	border-top: 4px solid var(--ss-brand-accent);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
}

#body form[action*="Schools.php"] td.popTable > table > tbody > tr > td {
	padding: 8px 16px;
	vertical-align: top;
}

#body #calendar {
	background: var(--ss-surface-raised);
	border: 1px solid #e4e9ef;
	border-top: 4px solid var(--ss-brand-accent);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
}

#body #calendar > thead > tr > th {
	background: var(--ss-brand-primary);
	color: var(--ss-text-on-brand);
	font-family: Poppins, Inter, Lato, sans-serif;
	font-weight: 600;
}

#body .calendar-day.full,
#body .legend-square.full {
	background: #e7f6ef;
}

#body .calendar-day.minutes,
#body .legend-square.minutes {
	background: #e8eefb;
}

#body .calendar-day.no-school,
#body .legend-square.no-school {
	background: #fdeceb;
}

#body .legend-square.full {
	border: 1px solid var(--ss-success);
}

#body .legend-square.minutes {
	border: 1px solid var(--ss-brand-secondary);
}

#body .legend-square.no-school {
	border: 1px solid var(--ss-danger);
}

@media (max-width: 767px) {
	#body form[action*="Schools.php"] td.popTable > table,
	#body form[action*="Schools.php"] td.popTable > table > tbody,
	#body form[action*="Schools.php"] td.popTable > table > tbody > tr,
	#body form[action*="Schools.php"] td.popTable > table > tbody > tr > td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
}

/* Portal actions. Same buttons as the theme. No new palette. */
.ss-portal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ss-space);
	max-width: 100%;
	margin: 8px 0 24px;
}

.ss-portal-actions a {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 8px;
	text-decoration: none;
}

.dashboard-module-title a {
	color: inherit;
	text-decoration: none;
}

.dashboard-module-title a:hover,
.dashboard-module-title a:focus {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.ss-portal-actions a {
		min-height: 44px;
	}
}

/* École / Annonces. Portal Notes keeps its Rosario fields. This is the list header only. */
.ss-f01 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-annonces);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f01-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-annonces);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f01 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f01 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f01 p.ss-f01-kicker {
	color: var(--ss-branch-annonces);
}

.ss-f01 + form .list-wrapper,
.ss-f01 + form .rt {
	max-width: 100%;
}

@media (max-width: 767px) {
	.ss-f01 {
		padding: 16px;
	}

	.ss-f01 h2 {
		font-size: 22px;
	}

	.ss-f01 + form .rt2colorBox,
	.ss-f01 + form table.widefat {
		max-width: 100%;
	}
}

/* École / Sondages. Portal Polls keeps its Rosario fields. This is the list header only. */
.ss-f02 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-sondages);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f02-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-sondages);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f02 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f02 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f02 p.ss-f02-kicker {
	color: var(--ss-branch-sondages);
}

.ss-f02 + form .list-wrapper,
.ss-f02 + form .rt {
	max-width: 100%;
}

@media (max-width: 767px) {
	.ss-f02 {
		padding: 16px;
	}

	.ss-f02 h2 {
		font-size: 22px;
	}

	.ss-f02 + form .rt2colorBox,
	.ss-f02 + form table.widefat {
		max-width: 100%;
	}
}

/* École / Calendrier. The month grid stays Rosario. This is the page header only. */
.ss-f03 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-calendrier);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f03-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-calendrier);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f03 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f03 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f03 p.ss-f03-kicker {
	color: var(--ss-branch-calendrier);
}

.ss-f03 + form #calendar {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 767px) {
	.ss-f03 {
		padding: 16px;
	}

	.ss-f03 h2 {
		font-size: 22px;
	}
}

/* École / Périodes. Marking Periods keeps its Rosario fields and lists. This is the page header only. */
.ss-f04 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-periodes);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f04-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-periodes);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f04 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f04 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f04 p.ss-f04-kicker {
	color: var(--ss-branch-periodes);
}

.ss-f04 ~ .st {
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 767px) {
	.ss-f04 {
		padding: 16px;
	}

	.ss-f04 h2 {
		font-size: 22px;
	}
}

/* École / Créneaux. School periods keep their Rosario columns. This is the list header only. */
.ss-f05 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-creneaux);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f05-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-creneaux);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f05 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f05 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f05 p.ss-f05-kicker {
	color: var(--ss-branch-creneaux);
}

.ss-f05 + form .list-wrapper,
.ss-f05 + form .rt {
	max-width: 100%;
}

@media (max-width: 767px) {
	.ss-f05 {
		padding: 16px;
	}

	.ss-f05 h2 {
		font-size: 22px;
	}

	.ss-f05 + form {
		max-width: 100%;
		overflow-x: auto;
	}
}

/* École / Niveaux. Grade levels keep their Rosario columns. This is the list header only. */
.ss-f06 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-niveaux);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f06-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-niveaux);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f06 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f06 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f06 p.ss-f06-kicker {
	color: var(--ss-branch-niveaux);
}

.ss-f06 + form .list-wrapper,
.ss-f06 + form .rt {
	max-width: 100%;
}

@media (max-width: 767px) {
	.ss-f06 {
		padding: 16px;
	}

	.ss-f06 h2 {
		font-size: 22px;
	}

	.ss-f06 + form {
		max-width: 100%;
		overflow-x: auto;
	}
}

/* École / Établissement. School Information keeps its Rosario fields. This is the page header only. */
.ss-f07 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-etablissement);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f07-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-etablissement);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f07 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f07 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f07 p.ss-f07-kicker {
	color: var(--ss-branch-etablissement);
}

@media (max-width: 767px) {
	.ss-f07 {
		padding: 16px;
	}

	.ss-f07 h2 {
		font-size: 22px;
	}
}

/* École / Établissement. Copy School keeps its Rosario fields. This is the page header only. */
.ss-f08 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-etablissement);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f08-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-etablissement);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f08 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f08 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f08 p.ss-f08-kicker {
	color: var(--ss-branch-etablissement);
}

@media (max-width: 767px) {
	.ss-f08 {
		padding: 16px;
	}

	.ss-f08 h2 {
		font-size: 22px;
	}
}

/* École / Établissement. School Fields keeps its Rosario fields. This is the page header only. */
.ss-f09 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-etablissement);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f09-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-etablissement);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f09 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f09 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f09 p.ss-f09-kicker {
	color: var(--ss-branch-etablissement);
}

@media (max-width: 767px) {
	.ss-f09 {
		padding: 16px;
	}

	.ss-f09 h2 {
		font-size: 22px;
	}
}

/* École / Paramètres. Configuration keeps its Rosario fields. This is the page header only. */
.ss-f10 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-parametres);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f10-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-parametres);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f10 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f10 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f10 p.ss-f10-kicker {
	color: var(--ss-branch-parametres);
}

.ss-f10-note {
	max-width: 68ch;
	margin: 0 0 12px;
	color: var(--ss-text-muted);
}

.ss-f10-caution {
	margin-top: 8px;
	padding: 8px 12px 12px;
	border: 1px solid #f6d7bc;
	border-left: 4px solid var(--ss-warning);
	border-radius: 12px;
	background: var(--ss-warning-bg);
}

@media (max-width: 767px) {
	.ss-f10 {
		padding: 16px;
	}

	.ss-f10 h2 {
		font-size: 22px;
	}

	.ss-f10 ~ form {
		max-width: 100%;
		overflow-x: auto;
	}
}

/* École / Année. Rollover keeps its Rosario choices. This is the page header only. */
.ss-f11 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-annee);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f11-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-annee);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f11 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f11 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f11 p.ss-f11-kicker {
	color: var(--ss-branch-annee);
}

@media (max-width: 767px) {
	.ss-f11 {
		padding: 16px;
	}

	.ss-f11 h2 {
		font-size: 22px;
	}
}

/* École / Journal. Access Log keeps its Rosario columns. This is the page header only. */
.ss-f12 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-journal);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f12-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-journal);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f12 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f12 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f12 p.ss-f12-kicker {
	color: var(--ss-branch-journal);
}

@media (max-width: 767px) {
	.ss-f12 {
		padding: 16px;
	}

	.ss-f12 h2 {
		font-size: 22px;
	}

	.ss-f12 ~ form {
		max-width: 100%;
		overflow-x: auto;
	}
}

/* Élèves / Dossier. Student Info keeps its Rosario search and file. This is the page header only. */
.ss-f13 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-dossier);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f13-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-dossier);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f13 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f13 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f13 p.ss-f13-kicker {
	color: var(--ss-branch-dossier);
}

@media (max-width: 767px) {
	.ss-f13 {
		padding: 16px;
	}

	.ss-f13 h2 {
		font-size: 22px;
	}
}

/* Élèves / Inscription. Add a Student keeps the Rosario form. This is the page header and the three section titles. */
.ss-f14 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-inscription);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f14-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-inscription);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f14 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f14 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f14 p.ss-f14-kicker {
	color: var(--ss-branch-inscription);
}

#body h3.ss-f14-section {
	display: block;
	clear: both;
	width: 100%;
	height: auto;
	margin: 16px 0 8px;
	padding: 0;
	color: var(--ss-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

@media (max-width: 767px) {
	#body form:has(.ss-f14-section) .nobr {
		white-space: normal;
	}

	#body form:has(.ss-f14-section) table.list {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}

@media (max-width: 767px) {
	.ss-f14 {
		padding: 16px;
	}

	.ss-f14 h2 {
		font-size: 22px;
	}
}

/* Élèves / Dossier. Group assign keeps the Rosario search, list and save. Header and warning only. */
.ss-f15 {
	margin: 0 0 16px;
	padding: 16px 20px 18px;
	border: 1px solid var(--ss-border);
	border-top: 4px solid var(--ss-branch-dossier);
	border-radius: 16px;
	background: var(--ss-surface);
}

.ss-f15-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ss-branch-dossier);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-f15 h2 {
	margin: 0 0 8px;
	color: var(--ss-text);
	font-size: 28px;
	line-height: 1.2;
}

.ss-f15 p {
	max-width: 68ch;
	margin: 0;
	color: var(--ss-text-muted);
}

.ss-f15 p.ss-f15-kicker {
	color: var(--ss-branch-dossier);
}

.ss-f15 p.ss-f15-warning {
	margin-top: 10px;
	padding-left: 12px;
	border-left: 4px solid var(--ss-warning);
	color: var(--ss-text);
}

@media (max-width: 767px) {
	.ss-f15 {
		padding: 16px;
	}

	.ss-f15 h2 {
		font-size: 22px;
	}
}

/* LOT-10 campus extras. Screen warning only. The wkhtmltopdf stylesheet stays the FlatSIS import. */
#body div.error:has(img[alt="Warning"]) {
	background: #fff6ee;
	border: 1px solid #f6d7bc;
	border-left: 4px solid var(--ss-warning);
	border-radius: 12px;
	padding: 12px 16px;
	color: var(--ss-text);
}

/*
 * Shell reference. Desktop: full-height blue menu, white bar over the pages.
 * The menu items, selectors and footer actions stay the Rosario ones.
 */
@media (min-width: 875px) {
	body.modules {
		background: #f4f6f9;
	}

	body.modules #wrap {
		padding-top: 0;
		min-height: 100vh;
		background: #f4f6f9;
	}

	body.modules #menu {
		position: fixed !important;
		top: 12px;
		left: 12px !important;
		bottom: 12px;
		width: 248px;
		height: auto;
		min-height: 0;
		margin: 0;
		float: none;
		overflow-x: hidden;
		overflow-y: auto;
		background: var(--ss-sidebar);
		border: 0;
		border-radius: 16px;
		box-shadow: 0 16px 36px rgba(1, 20, 70, 0.22);
		z-index: 30 !important;
	}

	body.modules #menu .logo {
		float: none;
		display: block;
		width: 168px;
		max-width: 168px;
		max-height: none;
		height: auto;
		margin: 20px auto 8px;
	}

	body.modules #menu-top .today-date {
		display: block;
		flex: 0 1 auto;
		min-width: 0;
		margin: 0;
		padding: 0 4px 0 0;
		overflow: hidden;
		color: var(--ss-text-secondary);
		font-size: 12px;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	body.modules #menu-top .username,
	body.modules #menu-top .username.br-after {
		display: none;
	}

	body.modules #menu-top form {
		position: fixed;
		top: 0;
		left: 272px;
		right: 488px;
		z-index: 44;
		display: flex;
		align-items: center;
		gap: 8px;
		height: 64px;
		margin: 0;
		padding: 0 16px;
		background: transparent;
		overflow: hidden;
	}

	body.modules:has(#BottomButtonBack:not(.hide)) #menu-top form {
		left: 480px;
	}

	body.modules #menu-top form br {
		display: none;
	}

	body.modules #menu-top .br-after {
		display: flex;
		flex: 1 1 0;
		min-width: 0;
		max-width: 196px;
		padding: 0;
	}

	body.modules #menu-top select {
		width: 100%;
		min-width: 0;
		max-width: none;
		height: 36px;
		margin: 0;
		padding: 0 8px;
		border: 1px solid #d5dbe4;
		border-radius: 8px;
		background: #fff;
		color: var(--ss-text);
	}

	body.modules:has(#BottomButtonBack:not(.hide)) #menu-top .today-date {
		display: none;
	}

	body.modules #footer {
		top: 0;
		left: 272px;
		right: 0;
		width: auto;
		height: 64px;
		background: #fff;
		box-shadow: none;
		border-bottom: 1px solid #e3e7ee;
		z-index: 20;
	}

	body.modules #footerwrap {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 4px;
		height: 64px;
		padding: 0 16px;
		background: #fff;
		border: 0;
	}

	body.modules #BottomButtonMenu,
	body.modules .BottomButton.hide {
		display: none;
	}

	body.modules .BottomButton {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		margin: 0;
		padding: 0;
		border-radius: 8px;
		color: var(--ss-brand-primary);
	}

	body.modules #BottomButtonBack {
		width: auto;
		height: 36px;
		margin-right: auto;
		padding: 0 10px;
		gap: 6px;
	}

	body.modules .BottomButton span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	body.modules #BottomButtonBack span {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		color: var(--ss-brand-primary);
		font-size: 13px;
		font-weight: 600;
	}

	body.modules #footer .BottomButton img {
		width: 20px;
		height: 20px;
		filter: none;
	}

	body.modules #body {
		margin-left: 272px;
		width: auto;
		min-height: 100vh;
		padding: 88px 28px 40px;
		box-sizing: border-box;
		background: #f4f6f9;
	}

	body.modules .adminmenu {
		margin: 8px 0 24px;
		padding: 0;
		background: transparent;
	}

	body.modules .menu-top {
		min-width: 0;
		margin: 2px 12px;
		padding: 10px 12px;
		border: 0;
		border-radius: 8px;
		background: transparent;
		font-family: Inter, Lato, sans-serif;
		font-size: 14px;
		font-weight: 600;
		line-height: 20px;
		text-transform: none;
	}

	body.modules #selectedModuleLink,
	body.modules .menu-top:hover,
	body.modules .menu-top:focus {
		background: var(--ss-sidebar-active);
		color: var(--ss-text-on-brand);
	}

	body.modules .wp-submenu {
		background: transparent;
		border: 0;
	}

	body.modules .wp-submenu a {
		margin: 2px 12px 2px 36px;
		padding: 8px 12px;
		border-radius: 8px;
		font-size: 13px;
		font-weight: 500;
	}

	body.modules #selectedMenuLink,
	body.modules .wp-submenu a:hover,
	body.modules .wp-submenu a:focus {
		background: var(--ss-sidebar-active);
		color: var(--ss-text-on-brand);
		box-shadow: inset 3px 0 0 var(--ss-brand-accent);
	}

	body.modules .menu-module > .menu-top {
		position: relative;
		padding-right: 32px;
	}

	body.modules .current-person {
		margin: 8px 12px;
		padding: 8px 10px;
		border-radius: 8px;
		background: var(--ss-sidebar-active);
		color: var(--ss-text-on-brand);
	}

	body.modules .current-person a {
		color: var(--ss-text-on-brand);
	}

}

/* Main functions stay closed. The open one shows its pages inside the menu, not over the page. */
body.modules .adminmenu .wp-submenu {
	display: none !important;
	position: static !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 2px 0 6px;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	overflow: visible;
}

body.modules .adminmenu .menu-module.ss-open > .wp-submenu,
body.modules .adminmenu #selectedModuleLink + .wp-submenu {
	display: block !important;
}

body.modules .adminmenu a.menu-top {
	position: relative;
	padding-right: 32px;
}

body.modules .adminmenu a.menu-top::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}

body.modules .adminmenu .menu-module.ss-open > a.menu-top::after,
body.modules .adminmenu #selectedModuleLink::after {
	transform: translateY(-20%) rotate(225deg);
}

body.modules .adminmenu .menu-inter {
	margin: 10px 16px 2px 48px;
	padding: 0;
	border: 0;
	color: rgba(252, 252, 252, 0.62);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 16px;
	text-transform: uppercase;
}

/* The SchoolSafe card keeps the title and the explanation. The Rosario program title is the same name, so it stays hidden. */
#body:has(header[class*="ss-f"]) table.header:has(td.header1) {
	display: none;
}

#menu .module-icon {
	width: 22px;
	height: 22px;
	background-size: 22px 22px;
	filter: brightness(0) invert(1);
	vertical-align: middle;
}

.module-icon.Accounting { background-image: url("../SchoolSafe/icons/coins.svg") !important; }
.module-icon.Attendance { background-image: url("../SchoolSafe/icons/check.svg") !important; }
.module-icon.Discipline { background-image: url("../SchoolSafe/icons/shield.svg") !important; }
.module-icon.Grades { background-image: url("../SchoolSafe/icons/grades.svg") !important; }
.module-icon.Eligibility { background-image: url("../SchoolSafe/icons/star.svg") !important; }
.module-icon.Example { background-image: url("../SchoolSafe/icons/misc.svg") !important; }
.module-icon.Food_Service { background-image: url("../SchoolSafe/icons/meal.svg") !important; }
.module-icon.Library { background-image: url("../SchoolSafe/icons/book.svg") !important; }
.module-icon.Messaging { background-image: url("../SchoolSafe/icons/chat.svg") !important; }
.module-icon.misc { background-image: url("../SchoolSafe/icons/home.svg") !important; }
.module-icon.Quiz { background-image: url("../SchoolSafe/icons/quiz.svg") !important; }
.module-icon.Resources { background-image: url("../SchoolSafe/icons/folder.svg") !important; }
.module-icon.Reports { background-image: url("../SchoolSafe/icons/report.svg") !important; }
.module-icon.Scheduling { background-image: url("../SchoolSafe/icons/calendar.svg") !important; }
.module-icon.School_Setup { background-image: url("../SchoolSafe/icons/school.svg") !important; }
.module-icon.SMS { background-image: url("../SchoolSafe/icons/phone.svg") !important; }
.module-icon.Staff_Absences { background-image: url("../SchoolSafe/icons/absence.svg") !important; }
.module-icon.Student_Billing { background-image: url("../SchoolSafe/icons/card.svg") !important; }
.module-icon.Students { background-image: url("../SchoolSafe/icons/student.svg") !important; }
.module-icon.Users { background-image: url("../SchoolSafe/icons/staff.svg") !important; }

.dashboard-module-title .module-icon {
	filter: none;
	width: 22px;
	height: 22px;
	flex-basis: 22px;
}

/* One title. When a SchoolSafe card follows, the Rosario program title is the same page name. */
#footer .ss-user {
	margin-right: 8px;
	color: var(--ss-text);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

#footer .ss-lang,
#menu .ss-lang-menu {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 8px;
}

#menu .ss-lang-menu {
	display: none;
}

#footer .ss-lang-link {
	padding: 4px 8px;
	border-radius: 8px;
	color: var(--ss-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

#footer .ss-lang-link.is-active {
	background: var(--ss-brand-secondary);
	color: var(--ss-text-on-brand);
}

/* École. The Rosario fields, lists and save buttons stay. The card is wider and the label sits above the value. */
body[class*="modname-school-setup-"] .postbox-wrapper {
	width: min(760px, 100%);
	max-width: 100%;
	margin: 8px 0 24px;
}

body[class*="modname-school-setup-"] table.postbox {
	width: 100%;
	background: #fff;
	border: 1px solid #e3e7ee;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

body[class*="modname-school-setup-"] table.postbox > thead th {
	padding: 16px 20px 4px;
	background: #fff;
	border: 0;
	text-align: left;
	font-family: Poppins, Inter, Lato, sans-serif;
	font-size: 16px;
	color: var(--ss-brand-primary);
}

body[class*="modname-school-setup-"] .popTable {
	padding: 8px 12px 16px;
}

body[class*="modname-school-setup-"] .popTable > table {
	width: 100%;
}

body[class*="modname-school-setup-"] .popTable td {
	padding: 8px 8px 4px;
	vertical-align: top;
}

body[class*="modname-school-setup-"] .onclick {
	display: flex;
	flex-direction: column-reverse;
	align-items: stretch;
	gap: 6px;
	width: 100%;
}

body[class*="modname-school-setup-"] .legend-gray {
	color: var(--ss-text);
	font-size: 13px;
	font-weight: 600;
}

body[class*="modname-school-setup-"] .onclick .uld {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid #d5dbe4;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
	font-weight: 500;
}

body[class*="modname-school-setup-"] .popTable input[type="text"],
body[class*="modname-school-setup-"] .popTable input[type="number"],
body[class*="modname-school-setup-"] .popTable select,
body[class*="modname-school-setup-"] .popTable textarea {
	width: 100%;
	max-width: 100%;
}

body[class*="modname-school-setup-"] input[type="submit"] {
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: var(--ss-brand-secondary);
	color: var(--ss-text-on-brand);
	font-weight: 600;
	letter-spacing: 0.02em;
}

body[class*="modname-school-setup-calendar-php"] .postbox-wrapper,
body[class*="modname-school-setup-markingperiods-php"] .postbox-wrapper {
	width: 100%;
}

/* Personnel. Search and the user file share the Élèves card. Other pages keep a full-width white card. */
body[class*="modname-users-"] table.postbox {
	width: 100%;
	background: #fff;
	border: 1px solid #e3e7ee;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

body[class*="modname-users-"] table.postbox > thead th {
	padding: 16px 20px 4px;
	background: #fff;
	border: 0;
	text-align: left;
	font-family: Poppins, Inter, Lato, sans-serif;
	font-size: 16px;
	color: var(--ss-brand-primary);
}

body[class*="modname-users-"] input[type="submit"] {
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: var(--ss-brand-secondary);
	color: var(--ss-text-on-brand);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Élèves. Search keeps the Rosario fields. Labels sit above full-width boxes, inside the centered card. */
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) .postbox-wrapper:has(form#search) {
	width: min(520px, 100%);
	max-width: 100%;
	margin: 8px auto 24px;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) .postbox-wrapper:has(form#search) table.postbox {
	width: 100%;
	background: #fff;
	border: 1px solid #e3e7ee;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) .postbox-wrapper:has(form#search) table.postbox > thead th {
	padding: 16px 20px 4px;
	background: #fff;
	border: 0;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	font-family: Poppins, Inter, Lato, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--ss-brand-primary);
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search .popTable {
	padding: 8px 20px 20px;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table tbody,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table tr,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table td {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table td {
	padding: 0 0 12px;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table label {
	display: block;
	margin: 0 0 6px;
	color: var(--ss-text);
	font-size: 13px;
	font-weight: 600;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table input[type="text"],
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search #general_table select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid #d5dbe4;
	border-radius: 8px;
	background: #fff;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search .center {
	text-align: left;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search .center label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search .center input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ss-brand-secondary);
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search input[type="submit"] {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 40px;
	margin-top: 8px;
	border: 0;
	border-radius: 8px;
	background: var(--ss-brand-secondary);
	color: var(--ss-text-on-brand);
	font-weight: 600;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) form#search > a {
	display: inline-block;
	margin-top: 4px;
	font-weight: 600;
}

/* Inscription and fiche. The three Rosario sections keep their fields. Each one gets its own tint. */
#body h3.ss-f14-section {
	font-family: Poppins, Inter, Lato, sans-serif;
	color: var(--ss-brand-primary);
}

#body table.general-info {
	background: #f4f7fd;
	border-color: #d5e0f5;
	border-top-color: var(--ss-brand-secondary);
}

#body table.other-info {
	background: #fffaf0;
	border-color: #f3e4c0;
	border-top-color: var(--ss-brand-accent);
}

#body table.enrollment {
	background: #f3faf6;
	border-color: #cfe8d8;
	border-top-color: var(--ss-success);
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.general-info .onclick,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.other-info .onclick,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.enrollment .onclick {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 4px;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.general-info > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)),
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.other-info > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)),
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.enrollment > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)) {
	position: relative;
	padding-top: 32px;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.general-info > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)) > br,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.other-info > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)) > br,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.enrollment > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)) > br,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.cellspacing-0 td > br {
	display: none;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.general-info > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)) > label,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.other-info > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)) > label,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.enrollment > tbody > tr > td:not(:has(table)):not(:has(select ~ select)):not(:has(input ~ input)) > label {
	position: absolute;
	top: 8px;
	left: 16px;
	font-size: 13px;
	font-weight: 600;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.cellspacing-0 tr {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.cellspacing-0 td {
	display: flex;
	flex: 1 1 140px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.cellspacing-0 td > label {
	order: -1;
	font-size: 13px;
	font-weight: 600;
}

:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.general-info input[type="text"],
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.general-info input[type="password"],
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.general-info select,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.other-info input[type="text"],
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.other-info select,
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.enrollment input[type="text"],
:is(body[class*="modname-students-"], body[class*="modname-custom-"], body[class*="modname-users-"], body[class*="modname-scheduling-"], body[class*="modname-grades-"], body[class*="modname-attendance-"], body[class*="modname-eligibility-"], body[class*="modname-discipline-"], body[class*="modname-accounting-"], body[class*="modname-student-billing-"], body[class*="modname-food-service-"], body[class*="modname-resources-"]) table.enrollment select {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid #d5dbe4;
	border-radius: 8px;
	background: #fff;
}

@media (max-width: 874px) {
	#footer .ss-user,
	#footer .ss-lang {
		display: none;
	}

	#menu .ss-lang-menu {
		display: inline-flex;
		margin: 8px 12px 0;
	}

	#menu .ss-lang-link {
		color: var(--ss-text-on-brand);
	}

	#menu .ss-lang-link.is-active {
		background: var(--ss-brand-accent);
		color: var(--ss-text);
	}

	.rt tbody {
		max-width: calc(100vw - 168px);
	}

	body.modules #footer {
		background: var(--ss-sidebar);
		box-shadow: none;
	}

	body.modules #footerwrap {
		background: var(--ss-sidebar);
		border-color: var(--ss-brand-secondary);
	}

	body.modules #footer {
		z-index: 45;
	}

	body.modules #menu {
		top: 48px;
		left: 0;
		right: 0;
		bottom: auto;
		width: 100vw;
		height: 0;
		border-radius: 0;
		overflow: hidden;
		box-shadow: none;
		background: transparent;
	}

	body.modules #menu.slide {
		height: calc(100% - 48px);
		overflow-y: auto;
		background: rgba(16, 24, 40, 0.4);
		box-shadow: none;
		z-index: 40;
	}

	body.modules #menu.slide .logo,
	body.modules #menu.slide #menu-top,
	body.modules #menu.slide .adminmenu {
		box-sizing: border-box;
		width: min(300px, calc(100vw - 24px));
		margin-left: 12px;
		margin-right: 12px;
		background: var(--ss-sidebar);
	}

	body.modules #menu.slide .logo {
		margin-top: 12px;
		margin-bottom: 0;
		padding-top: 16px;
		border-radius: 16px 16px 0 0;
	}

	body.modules #menu.slide #menu-top {
		margin-top: 0;
		margin-bottom: 0;
	}

	body.modules #menu.slide .adminmenu {
		margin-top: 0;
		margin-bottom: 12px;
		padding-bottom: 12px;
		border-radius: 0 0 16px 16px;
		box-shadow: 0 18px 40px rgba(1, 20, 70, 0.28);
	}

	body.modules .menu-top {
		text-transform: none;
		border-radius: 8px;
	}

	#footer .ss-user {
		color: var(--ss-text-on-brand);
	}

	#footer .ss-lang-link {
		color: var(--ss-text-on-brand);
	}

	#footer .ss-lang-link.is-active {
		background: var(--ss-brand-accent);
		color: var(--ss-text);
	}
}

/* Accessoires du modèle, sur toutes les pages. Les champs et les actions Rosario restent. */
body.modules #body input[type="submit"],
body.modules #body button[type="submit"] {
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: var(--ss-brand-secondary);
	color: var(--ss-text-on-brand);
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
}

body.modules #body input[type="submit"]:hover,
body.modules #body button[type="submit"]:hover,
body.modules #body input[type="submit"]:focus,
body.modules #body button[type="submit"]:focus {
	background: var(--ss-brand-primary);
	color: var(--ss-text-on-brand);
}

body.modules #body input[type="button"] {
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid #d5dbe4;
	border-radius: 8px;
	background: #fff;
	color: var(--ss-text);
	font-weight: 600;
	cursor: pointer;
}

body.modules #body input[type="date"],
body.modules #body input[type="password"],
body.modules #body input[type="email"],
body.modules #body input[type="tel"] {
	box-sizing: border-box;
	min-height: 36px;
	border: 1px solid #d5dbe4;
	border-radius: 8px;
	padding: 0 10px;
	background: #fff;
}

body.modules #body input[type="checkbox"],
body.modules #body input[type="radio"] {
	accent-color: var(--ss-brand-secondary);
}

body.modules #body table.postbox:not(:has(table.dashboard)):not(:has(.list-wrapper)):not(:has(table.list)) {
	width: 100%;
	background: #fff;
	border: 1px solid #e3e7ee;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
}

body.modules #body table.postbox:not(:has(table.dashboard)):not(:has(.list-wrapper)):not(:has(table.list)) > thead th {
	padding: 14px 16px;
	background: #fff;
	border: 0;
	border-bottom: 1px solid #e3e7ee;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	font-family: Poppins, Inter, Lato, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--ss-brand-primary);
}

body.modules #body .list-nav td {
	padding: 12px 16px;
	color: var(--ss-text-secondary);
	font-size: 12px;
	background: #fff;
}

body.modules #body #LO_search {
	height: 36px;
	border-radius: 8px;
}

.attendance-code:not(:has(input)) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 24px;
	min-width: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: #eef1f6;
	color: #5c6775;
	font-size: 12px;
	font-weight: 600;
	line-height: 24px;
}

.attendance-code.present:not(:has(input)),
.attendance-code.present-alt:not(:has(input)) {
	background: #e7f7f1;
	color: #087a56;
}

.attendance-code.absent:not(:has(input)),
.attendance-code.absent-alt:not(:has(input)) {
	background: #fdeceb;
	color: #b4231c;
}

.attendance-code.half-day:not(:has(input)),
.attendance-code.half-day-alt:not(:has(input)) {
	background: #fff1e6;
	color: #c45504;
}



/* ===== assets/themes/SchoolSafeCodex/redesign.css ===== */
/* Presentation only. Keep native form names, actions, validation and visibility. */
:root {
    --ss-surface: #f5f7fb;
    --ss-surface-raised: #ffffff;
    --ss-text: #172333;
    --ss-text-secondary: #516176;
    --ss-line: #dbe2ec;
    --ss-sidebar: #123488;
    --ss-primary-width: 220px;
    --ss-context-width: 248px;
    --ss-focus: #2174cb;
}
body { font-family: system-ui, Arial, sans-serif; letter-spacing: 0; }
h1, h2, h3, h4, .header1 h2 { font-family: inherit; letter-spacing: 0; }
#body { box-sizing: border-box; min-width: 0; }
#body .postbox, #body fieldset { border: 1px solid var(--ss-line); border-radius: 6px; box-shadow: none; }
#body .postbox h3, #body legend { font-size: 16px; line-height: 1.4; }
#body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body select, #body textarea, #cboxLoadedContent input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#cboxLoadedContent select, #cboxLoadedContent textarea {
    box-sizing: border-box; min-height: 44px; max-width: 100%;
    border: 1px solid #bac9dc; border-radius: 6px;
    font-family: inherit; font-size: 15px; color: var(--ss-text);
}
#body textarea { resize: vertical; }
#body input[type="submit"], #body button, #cboxLoadedContent input[type="submit"] { min-height: 44px; }
#body input[type="submit"], #cboxLoadedContent input[type="submit"] { background: #1459d9 !important; color: #fff !important; border-color: #1459d9 !important; }
#body .widefat { border-color: var(--ss-line); }
#body .widefat th { background: #edf4ff; color: var(--ss-text); white-space: normal; font-size: 13px; }
#body .widefat td { padding: 10px 8px; border-color: var(--ss-line); }
#body .list-wrapper { max-width: 100%; overflow-x: auto; }
#body :focus-visible, #menu :focus-visible, #footer :focus-visible, #colorbox :focus-visible {
    outline: 3px solid var(--ss-focus); outline-offset: 3px;
}
#colorbox { max-width: calc(100vw - 24px); }
#cboxLoadedContent { max-width: 100%; box-sizing: border-box; }
#cboxClose { min-width: 44px; min-height: 44px; }
/* Branch accents are supplemental: native labels and icons remain visible. */
.menu-module:has(.module-icon.School_Setup) { --ss-branch: #38b6dc; }
.menu-module:has(.module-icon.Students) { --ss-branch: #40c29d; }
.menu-module:has(.module-icon.Users) { --ss-branch: #b29ee9; }
.menu-module:has(.module-icon.Scheduling) { --ss-branch: #efc65c; }
.menu-module:has(.module-icon.Grades) { --ss-branch: #e8a7c5; }
.menu-module:has(.module-icon.Attendance) { --ss-branch: #7cd3c3; }
.menu-module:has(.module-icon.Accounting) { --ss-branch: #b2c8eb; }
.menu-module > .menu-top { border-left: 3px solid var(--ss-branch, transparent); }
@media (max-width: 700px) {
    #body .widefat td { padding: 8px 6px; }
    #body h2 { font-size: 21px; overflow-wrap: anywhere; }
    #cboxLoadedContent textarea { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
    #body { background: #fff; color: #000; }
    #body .list-wrapper { overflow: visible; }
}
/* Native submenu nodes stay in place, with their original actions and permissions. */
body.modules .adminmenu .menu-inter { letter-spacing: 0; }
body.modules .adminmenu a.menu-top { min-height: 44px; box-sizing: border-box; border-left: 3px solid var(--ss-branch, #b2c8eb); font-family: inherit; }
body.modules .wp-submenu a { min-height: 44px; box-sizing: border-box; overflow-wrap: anywhere; }
.menu-module:has(.module-icon.Eligibility) { --ss-branch: #efc65c; }
.menu-module:has(.module-icon.Discipline) { --ss-branch: #e8a7c5; }
.menu-module:has(.module-icon.Student_Billing) { --ss-branch: #7cd3c3; }
.menu-module:has(.module-icon.Food_Service) { --ss-branch: #efc65c; }
.menu-module:has(.module-icon.Resources) { --ss-branch: #38b6dc; }
@media print { body.modules .adminmenu .wp-submenu { display: none !important; } }
/* Tokens and proportions from the approved codex-ui-v1 model. */
.menu-module:has(.module-icon.School_Setup), .menu-module:has(.module-icon.Students) { --ss-branch: #7bddc5; --ss-branch-ink: #08766b; }
.menu-module:has(.module-icon.Users) { --ss-branch: #eab0d1; --ss-branch-ink: #9c446b; }
.menu-module:has(.module-icon.Scheduling), .menu-module:has(.module-icon.Grades) { --ss-branch: #d4b5ff; --ss-branch-ink: #7445a6; }
.menu-module:has(.module-icon.Attendance), .menu-module:has(.module-icon.Discipline) { --ss-branch: #ffa6b8; --ss-branch-ink: #a5324d; }
.menu-module:has(.module-icon.Accounting) { --ss-branch: #adb6f4; --ss-branch-ink: #4e5990; }
.menu-module:has(.module-icon.Student_Billing) { --ss-branch: #9fd38b; --ss-branch-ink: #23682d; }
.menu-module:has(.module-icon.Eligibility), .menu-module:has(.module-icon.Food_Service) { --ss-branch: #ffb8ce; --ss-branch-ink: #ad3d5b; }
.menu-module:has(.module-icon.Resources) { --ss-branch: #efb98e; --ss-branch-ink: #9a4f20; }
body.modules #menu { background: var(--ss-sidebar); }
.menu-module[data-ss-branch="pilotage"] { --ss-branch: #91b6ff; --ss-branch-ink: #2455c6; }
.menu-module[data-ss-branch="communication"] { --ss-branch: #83d3eb; --ss-branch-ink: #066e93; }
.menu-module[data-ss-branch="administration"] { --ss-branch: #bfccd6; --ss-branch-ink: #526170; }
.menu-module[data-ss-branch="reports"] { --ss-branch: #d1db85; --ss-branch-ink: #5e6c1b; }
body.modules .adminmenu a.menu-top { border-radius: 5px; }
body.modules .adminmenu #selectedModuleLink,
body.modules .adminmenu #selectedModuleLink:hover,
body.modules .adminmenu #selectedModuleLink:focus { background: #fff !important; color: #173b90 !important; }
@media screen and (max-width: 700px) {
    body.modules #menu.slide .adminmenu { background: #123488; border-radius: 6px; }
}
@media screen and (min-width: 701px) {
    body.modules #menu { top: 0 !important; bottom: 0 !important; left: 0 !important; height: 100dvh !important; overflow-y: auto; width: var(--ss-primary-width); border-radius: 0; box-shadow: none; }
    body.modules #menu-top form,
    body.modules:has(#BottomButtonBack:not(.hide)) #menu-top form { position: static; display: block; height: auto; padding: 12px; overflow: visible; }
    body.modules #menu-top .br-after { display: block; max-width: none; margin-bottom: 8px; }
    body.modules #menu-top select { height: 44px; }
    body.modules #menu-top .today-date { display: none; }
    body.modules #footer { left: var(--ss-primary-width); }
    body.modules #body { margin-left: var(--ss-primary-width) !important; padding: 88px 24px 40px; background: var(--ss-surface); }
    body.modules:has(.menu-module.ss-open) #body { margin-left: calc(var(--ss-primary-width) + var(--ss-context-width)) !important; }
    body.modules #menu + div[style*="float: left"] { display: none; }
    body.modules .adminmenu .menu-module > .wp-submenu {
        position: fixed !important; top: 64px !important; bottom: 0; left: var(--ss-primary-width) !important;
        width: var(--ss-context-width) !important; max-height: calc(100vh - 64px) !important;
        padding: 16px 12px; box-sizing: border-box; overflow-y: auto; background: #fff;
        border-right: 1px solid var(--ss-line) !important; border-top: 3px solid var(--ss-branch-ink, #2455c6) !important;
    }
    body.modules .adminmenu .wp-submenu::before { content: attr(data-ss-title); display: block; padding: 8px 12px 16px; color: var(--ss-text); font-size: 18px; font-weight: 700; }
    body.modules .adminmenu .wp-submenu a { margin: 2px 0; padding: 12px; color: var(--ss-text); border-radius: 6px; background: transparent; }
    body.modules .adminmenu .wp-submenu a:hover,
    body.modules .adminmenu .wp-submenu a:focus,
    body.modules .adminmenu .wp-submenu #selectedMenuLink { background: #edf3ff; color: var(--ss-branch-ink, #2455c6); box-shadow: inset 3px 0 var(--ss-branch-ink, #2455c6); }
    body.modules .adminmenu .menu-inter { margin: 16px 12px 4px; color: var(--ss-text-secondary); }
}
@media screen and (min-width: 701px) and (max-width: 1100px) {
    :root { --ss-primary-width: 220px; --ss-context-width: 220px; }
}



/* ===== assets/themes/SchoolSafeCodex/school-forms.css ===== */
/* Native controls remain in their original forms and retain their actions. */
#body[data-ss-page^="School_Setup/"] {
    --ss-page-accent: #08766b;
}
#body[data-ss-page^="School_Setup/"] .header1 h2 {
    color: var(--ss-text);
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
#body[data-ss-page^="School_Setup/"] .list-nav {
    width: 100%;
    border-bottom: 1px solid var(--ss-line);
    background: var(--ss-surface-raised);
}
#body[data-ss-page^="School_Setup/"] .list-nav td {
    padding: 12px;
}
#body[data-ss-page^="School_Setup/"] .list-wrapper {
    border-top: 3px solid var(--ss-page-accent);
    border-radius: 0;
}
#body[data-ss-page^="School_Setup/"] .widefat tbody tr:nth-child(even) td {
    background-color: #f5f7fb;
}
#body[data-ss-page^="School_Setup/"] .widefat input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#body[data-ss-page^="School_Setup/"] .widefat select {
    min-width: 64px;
}
#body[data-ss-page="School_Setup/Schools"] .postbox table td {
    padding: 8px;
    vertical-align: top;
}
@media screen and (max-width: 874px) {
    #body[data-ss-page^="School_Setup/"] .list-nav td { padding: 8px; }
    #body[data-ss-page="School_Setup/MarkingPeriods"] .fixed-col {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}
@media print {
    #body[data-ss-page^="School_Setup/"] .list-wrapper { border-top: 0; }
    #body[data-ss-page^="School_Setup/"] .widefat tbody tr:nth-child(even) td { background: #fff; }
}


/* déclaré dans Warehouse.php (12/11/2026) : url("mobile-navigation.css?v=19"); */

/* ===== assets/themes/SchoolSafeCodex/profile-settings.css ===== */
body.modules #menu-top > #ss-native-settings { display: none !important; }
#ss-settings-button { flex: 0 0 auto; min-height: 48px; margin: 8px 12px 12px; border: 1px solid #4667a8; border-radius: 5px; background: #123488; color: #fff; font: 600 14px system-ui, sans-serif; }
#ss-context-summary { display: block; width: calc(100% - 24px); margin: 0 12px 12px; padding: 8px; border: 0; background: transparent; color: #d8e5ff; text-align: left; font: 12px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
body.modules.ss-settings-open #menu-top > #ss-native-settings {
    display: block !important; position: fixed !important; z-index: 95;
    top: 64px; bottom: 0; left: var(--ss-primary-width); width: var(--ss-context-width);
    height: auto !important; box-sizing: border-box; overflow-y: auto !important;
    margin: 0; padding: 16px; background: #fff; color: #172333;
    border-right: 1px solid #dbe2ec; border-top: 3px solid #526170;
}
body.modules.ss-settings-open .adminmenu .wp-submenu { display: none !important; }
body.modules #ss-native-settings .username { display: block; color: #172333; margin: 12px 0; }
body.modules #ss-native-settings .ss-lang-link { color: #173b90; }
body.modules #ss-native-settings .ss-lang-link.is-active { background: #edf3ff; color: #173b90; }
body.modules #ss-native-settings select { width: 100%; min-height: 44px; border: 1px solid #bac9dc; border-radius: 5px; background: #fff; color: #172333; margin-top: 4px; }
body.modules #ss-native-settings .br-after { display: block; margin-bottom: 16px; }
body.modules #ss-native-settings label { position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; display: block; color: #516176; font-size: 13px; }
.ss-settings-close { display: block; margin-left: auto; width: 44px; height: 44px; border: 1px solid #dbe2ec; border-radius: 5px; background: #fff; color: #172333; font-size: 26px; }
.ss-settings-heading { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #dbe2ec; }
.ss-settings-heading strong { min-width: 0; overflow-wrap: anywhere; font: 700 16px/1.4 system-ui, sans-serif; }
.ss-settings-heading .ss-settings-close { flex: 0 0 44px; }
@media screen and (min-width: 701px) {
    body.modules.ss-settings-open #body { margin-left: calc(var(--ss-primary-width) + var(--ss-context-width)) !important; }
}
@media screen and (max-width: 700px) {
    body.modules #menu.slide #ss-settings-button { display: block; width: min(286px, calc(100% - 24px)); }
    body.modules.ss-settings-open #menu-top > #ss-native-settings { inset: 0 0 calc(72px + env(safe-area-inset-bottom)); width: 100%; }
}
@media print { #ss-settings-button, #ss-context-summary, #ss-native-settings { display: none !important; } }



/* ===== assets/themes/SchoolSafeCodex/context-navigation.css ===== */
/* Context panel dimensions and hierarchy from the approved SchoolSafe model. */
body.modules #menu .adminmenu > .menu-module > .menu-top {
    box-sizing: border-box;
    width: 100% !important;
    padding-right: 8px !important;
    white-space: nowrap !important;
}
body.modules #menu .adminmenu > .menu-module[data-ss-branch="security"] > .menu-top {
    font-size: 13px !important;
}
body.modules #menu .adminmenu > .menu-module > .menu-top .module-icon {
    flex-shrink: 0;
}
body.modules #menu .menu-module[data-ss-branch="pilotage"] { --ss-branch: #91b6ff; --ss-branch-ink: #2455c6; }
.menu-module[data-ss-branch="school"] { --ss-branch: #7bddc5; --ss-branch-ink: #08766b; }
.menu-module[data-ss-branch="pedagogy"] { --ss-branch: #d4b5ff; --ss-branch-ink: #7445a6; }
.menu-module[data-ss-branch="security"] { --ss-branch: #ffa6b8; --ss-branch-ink: #a5324d; }
.menu-module[data-ss-branch="finance"] { --ss-branch: #9fd38b; --ss-branch-ink: #23682d; }
.menu-module[data-ss-branch="feeControl"] { --ss-branch: #f2cd7b; --ss-branch-ink: #8a5900; }
.menu-module[data-ss-branch="accounting"] { --ss-branch: #adb6f4; --ss-branch-ink: #4e5990; }
.menu-module[data-ss-branch="people"] { --ss-branch: #eab0d1; --ss-branch-ink: #9c446b; }
.menu-module[data-ss-branch="inventory"] { --ss-branch: #efb98e; --ss-branch-ink: #9a4f20; }
body.modules #menu .menu-module[data-ss-branch="communication"] { --ss-branch: #83d3eb; --ss-branch-ink: #066e93; }
.menu-module[data-ss-branch="care"] { --ss-branch: #ffb8ce; --ss-branch-ink: #ad3d5b; }
body.modules #menu .menu-module[data-ss-branch="administration"] { --ss-branch: #bfccd6; --ss-branch-ink: #526170; }
body.modules #menu .menu-module[data-ss-branch="reports"] { --ss-branch: #d1db85; --ss-branch-ink: #5e6c1b; }
body.modules #menu .adminmenu > .menu-module > .menu-top {
    border: 1px solid color-mix(in srgb, var(--ss-branch) 26%, #123488) !important;
    border-left: 3px solid var(--ss-branch) !important;
}
body.modules #menu .adminmenu > .ss-open > .menu-top {
    border-color: var(--ss-branch-ink) !important;
    color: var(--ss-branch-ink) !important;
}
body.modules #menu .adminmenu .wp-submenu {
    background: #fff !important;
    color: #172333;
    scrollbar-width: thin;
}
body.modules #menu .adminmenu .wp-submenu .ss-context-heading {
    min-height: 70px; box-sizing: border-box;
    color: #172333; border-bottom: 1px solid #dbe2ec;
}
body.modules #menu .adminmenu .wp-submenu .menu-inter:not(.ss-context-heading) {
    margin: 16px 0 4px !important; padding: 8px 8px 6px !important;
    font: 700 12px/1.5 system-ui, sans-serif;
    text-transform: none; color: var(--ss-branch-ink, #2455c6);
    text-align: left; letter-spacing: 0;
    background: #fff !important; border-radius: 0; box-shadow: none;
    cursor: default;
}
body.modules #menu .adminmenu .wp-submenu .menu-inter:not(.ss-context-heading):not(:nth-child(2)) {
    border-top: 1px solid #dbe2ec; padding-top: 16px !important;
}
body.modules #menu .adminmenu .wp-submenu a {
    display: flex; align-items: flex-start; box-sizing: border-box;
    min-height: 44px; width: 100%; margin: 0 0 3px !important;
    padding: 10px 8px 10px 16px !important;
    border: 1px solid transparent; border-left-width: 3px;
    border-radius: 5px; background: transparent !important;
    color: #172333 !important; font: 400 13px/1.5 system-ui, sans-serif;
    white-space: normal; overflow-wrap: anywhere; text-decoration: none;
}
body.modules #menu .adminmenu .wp-submenu a:hover,
body.modules #menu .adminmenu .wp-submenu a:focus-visible {
    border-color: #dbe2ec; border-left-color: var(--ss-branch-ink, #2455c6);
}
body.modules #menu .adminmenu .wp-submenu a:focus-visible {
    outline: 2px solid var(--ss-branch-ink, #2455c6); outline-offset: -2px;
}
body.modules #menu .adminmenu .wp-submenu #selectedMenuLink {
    background: #edf3ff !important; color: var(--ss-branch-ink, #2455c6) !important;
    border-left-color: var(--ss-branch-ink, #2455c6); font-weight: 700;
    box-shadow: none !important;
}
@media screen and (min-width: 701px) {
    body.modules #menu .adminmenu .wp-submenu { padding: 16px 10px !important; }
    body.modules #menu .wp-submenu .ss-context-heading { margin: -16px -10px 12px; padding: 12px 16px; }
}
@media screen and (max-width: 700px) {
    body.modules[data-ss-mobile-panel="context"] #menu { background: rgba(16, 24, 40, .4) !important; }
    body.modules[data-ss-mobile-panel="context"] #menu #menu-top { display: block !important; }
    body.modules[data-ss-mobile-panel="context"] #menu #menu-top .logo { display: block !important; }
    body.modules[data-ss-mobile-panel="context"] #menu .adminmenu { width: min(220px, calc(100% - 24px)) !important; }
    body.modules[data-ss-mobile-panel="context"] #menu .adminmenu > .menu-module { display: block !important; }
    body.modules[data-ss-mobile-panel="context"] #menu .adminmenu > .menu-module > .menu-top { display: flex !important; }
    body.modules[data-ss-mobile-panel="context"] #menu #ss-settings-button { visibility: hidden; }
    body.modules[data-ss-mobile-panel="context"] #menu .ss-open > .wp-submenu {
        inset: 12px auto calc(84px + env(safe-area-inset-bottom)) min(220px, max(12px, calc(100% - 244px))) !important;
        width: min(220px, calc(100% - 24px)) !important;
        padding: 0 10px 16px !important;
        border: 1px solid var(--ss-branch-ink, #2455c6) !important; border-top: 3px solid var(--ss-branch-ink, #2455c6) !important;
        border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 24, 40, .2);
    }
    body.modules #menu .wp-submenu .ss-context-heading { padding: 12px 6px; }
}

/* Pedagogie (04/11, harmonisation) : sous chaque lien, une phrase qui dit a quoi il sert. */
body.modules #menu .adminmenu .wp-submenu a.ss-link-with-hint { flex-direction: column; gap: 2px; }
body.modules #menu .adminmenu .wp-submenu a.ss-link-with-hint .ss-link-title { display: block; }
body.modules #menu .adminmenu .wp-submenu a.ss-link-with-hint .ss-link-hint {
    display: block; font: 400 12px/1.35 system-ui, sans-serif; color: #5d6b7e;
    white-space: normal; text-transform: none; letter-spacing: 0;
}
html[data-ss-background="night"] body.modules #menu .adminmenu .wp-submenu a.ss-link-with-hint .ss-link-hint { color: #b6c2d3; }

/* Photos des personnes (05/11) : fenêtre de cadrage. */
/* 13/11/2026 : fond clair imposé (le dessin de la fenêtre est clair) ; en mode sombre, le navigateur la mettait en noir
   et les boutons devenaient blancs sur blanc. */
dialog.ss-photo-cropper { border: 0; border-radius: 14px; padding: 18px; width: min(92vw, 480px); box-shadow: 0 20px 60px rgba(15,30,50,.35); background: #fff; color: #172333; color-scheme: light; }
dialog.ss-photo-cropper::backdrop { background: rgba(15,30,50,.55); }
dialog.ss-photo-cropper h2 { margin: 0 0 4px; font: 700 18px/1.3 system-ui, sans-serif; color: #172333; }
dialog.ss-photo-cropper p { margin: 0 0 12px; font: 400 14px/1.4 system-ui, sans-serif; color: #5d6b7e; }
dialog.ss-photo-cropper canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: #eef2f6; cursor: grab; touch-action: none; }
dialog.ss-photo-cropper canvas:active { cursor: grabbing; }
.ss-photo-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0; font: 600 14px system-ui, sans-serif; color: #172333; }
.ss-photo-zoom input { flex: 1; }
.ss-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ss-photo-actions button { min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid #c9d3e0; background: #fff; color: #172333; font: 600 14px system-ui, sans-serif; cursor: pointer; }
.ss-photo-actions .ss-photo-ok { background: #08766b; border-color: #08766b; color: #fff; }
img.ss-photo-preview { display: block; width: 96px; height: 96px; margin-top: 8px; border-radius: 50%; object-fit: cover; border: 2px solid #dbe2ec; }

/* Pages Utilisateurs (05/11, mise en page moderne) : le nom du champ au-dessus de sa valeur,
   la valeur dans un cadre lisible. Présentation seulement. */
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox table td { padding: 8px 10px; vertical-align: top; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox .onclick { display: flex; flex-direction: column-reverse; gap: 4px; cursor: pointer; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox .onclick br { display: none; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox .legend-gray { display: block; font: 600 11px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #5d6b7e; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox .onclick .uld,
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox td > .uld { display: block; min-height: 38px; box-sizing: border-box; padding: 9px 12px; border: 1px solid #dbe2ec; border-radius: 8px; background: #f7f9fb; color: #172333; font: 400 15px/1.35 system-ui, sans-serif; text-decoration: none; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox .onclick:hover .uld,
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox .onclick:focus-visible .uld { border-color: #08766b; background: #fff; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox input[type="text"],
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox input[type="email"],
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox input[type="password"],
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox select { min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #b9c6d4; border-radius: 8px; font: 400 15px system-ui, sans-serif; max-width: 100%; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox hr { border: 0; border-top: 1px solid #e3e9f0; margin: 14px 0; }
/* Champs en lecture seule : même ordre (nom au-dessus), valeur en texte appuyé, sans cadre. */
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox td:has(> .legend-gray) { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox td:has(> .legend-gray) > br { display: none; }
#body:is([data-ss-users],[data-ss-section="school"],[data-ss-section="security"],[data-ss-section="finance"]) .postbox .no-input-value { font: 600 15px/1.35 system-ui, sans-serif; color: #172333; }

/* Lot E2 (D, 05/11) : la présentation moderne des comptes s'applique aussi aux pages d'École
   (fiche élève, ajouter un élève). L'âge reste séparé de son étiquette. */
#body[data-ss-section="school"] .postbox .no-input-value + .legend-gray { margin-top: 2px; }

/* Lot S2 (D, 05/11) : la même présentation moderne s'applique aux pages de Sécurité
   (incidents, présences, pointage manuel, journal) ; dates, heures et commentaires au même gabarit. */
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox input:is([type="date"],[type="time"],[type="number"]),
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox textarea { min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #b9c6d4; border-radius: 8px; font: 400 15px system-ui, sans-serif; max-width: 100%; }
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox label { display: inline-flex; flex-direction: column; gap: 4px; font: 600 11px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #5d6b7e; }
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox label > input { text-transform: none; letter-spacing: 0; }
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox p.legend-gray { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; margin: 0 0 10px; }
/* Lot S2 (correctif) : une phrase d'aide placée dans le cadre reste en haut, et le nom d'une liste native
   (sélection + étiquette) passe au-dessus de la liste. */
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox td:has(> p.legend-gray) { display: table-cell; }
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox td:has(> select + br + label) { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox td:has(> select + br + label) > br { display: none; }
#body:is([data-ss-section="security"],[data-ss-section="finance"]) .postbox .legend-red { font: 600 11px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }

/* Lot F3 (05/11) — Finance.
   D1 : sur téléphone, les listes passent en colonnes (nom à gauche, valeurs à droite) ; chaque ligne garde
   la même hauteur que son nom, sinon « Montant » se retrouve en face d'une date. */
/* Sélecteur fort : ecc-consistency.css impose « height: auto » aux cellules des listes. */
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.rt > thead > tr > th,
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.rt > tbody > tr > td { box-sizing: border-box !important; height: 48px !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.2 !important; display: flex !important; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
#body[data-ss-section="finance"] table.rt td .rbr { display: none; }
/* D2 : lien des brouillons hors connexion lisible, dans un cadre clair. */
#body .ss-finance-link { display: inline-block; margin: 6px 0; padding: 8px 12px; background: #fff; border: 1px solid #dbe2ec; border-radius: 8px; }
#body .ss-finance-link a { color: #08766b; font-weight: 600; }



/* ===== assets/themes/SchoolSafeCodex/branch-icons.css ===== */
/* Lucide assets reused from the approved model library. */
body.modules #menu .menu-module[data-ss-branch] > .menu-top .module-icon { filter: none !important; }
body.modules #menu .menu-module[data-ss-branch] > #selectedModuleLink .module-icon { background-color: var(--ss-branch-ink) !important; }
#menu .menu-module[data-ss-branch="pilotage"] { --ss-icon-url: url("navigation-icons/LayoutDashboard.svg"); }
#menu .menu-module[data-ss-branch="school"] { --ss-icon-url: url("navigation-icons/School.svg"); }
#menu .menu-module[data-ss-branch="pedagogy"] { --ss-icon-url: url("navigation-icons/BookOpenCheck.svg"); }
#menu .menu-module[data-ss-branch="security"] { --ss-icon-url: url("navigation-icons/ShieldCheck.svg"); }
#menu .menu-module[data-ss-branch="finance"] { --ss-icon-url: url("navigation-icons/WalletCards.svg"); }
#menu .menu-module[data-ss-branch="feeControl"] { --ss-icon-url: url("navigation-icons/BadgeCheck.svg"); }
#menu .menu-module[data-ss-branch="accounting"] { --ss-icon-url: url("navigation-icons/Landmark.svg"); }
#menu .menu-module[data-ss-branch="people"] { --ss-icon-url: url("navigation-icons/ContactRound.svg"); }
#menu .menu-module[data-ss-branch="inventory"] { --ss-icon-url: url("navigation-icons/PackageSearch.svg"); }
#menu .menu-module[data-ss-branch="communication"] { --ss-icon-url: url("navigation-icons/MessagesSquare.svg"); }
#menu .menu-module[data-ss-branch="care"] { --ss-icon-url: url("navigation-icons/HeartPulse.svg"); }
#menu .menu-module[data-ss-branch="administration"] { --ss-icon-url: url("navigation-icons/FolderCog.svg"); }
#menu .menu-module[data-ss-branch="reports"] { --ss-icon-url: url("navigation-icons/ChartNoAxesCombined.svg"); }
body.modules #menu .menu-module[data-ss-branch] > .menu-top .module-icon { background-image: none !important; background-color: var(--ss-branch); mask: var(--ss-icon-url) center / contain no-repeat; -webkit-mask: var(--ss-icon-url) center / contain no-repeat; }
body.modules #menu .ss-open > .menu-top .module-icon { background-color: var(--ss-branch-ink); }
body.modules #menu .menu-module[data-ss-branch] > #selectedModuleLink .module-icon { display: inline-block !important; }
body.modules #menu .menu-module[data-ss-branch] .ss-context-heading strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }
body.modules #menu .menu-module[data-ss-branch] .ss-context-heading strong::before {
    content: ""; display: block; flex: 0 0 20px; width: 20px; height: 20px;
    background-color: var(--ss-branch-ink);
    mask: var(--ss-icon-url) center / contain no-repeat;
    -webkit-mask: var(--ss-icon-url) center / contain no-repeat;
}



/* ===== assets/themes/SchoolSafeCodex/interior-screens.css ===== */
/* Visual layer only: native forms, controls and business actions are retained. */
body.modules #body[data-ss-page] .list-wrapper {
    width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto;
}
body.modules #body[data-ss-page="Discipline/DisciplineForm"] .list-wrapper {
    contain: inline-size;
}
body.modules #body[data-ss-page] .postbox-wrapper { margin: 20px 0; max-width: 100%; }
body.modules #body[data-ss-page] table.postbox:not(:has(table.dashboard)):not(:has(.list-wrapper)):not(:has(table.list)) {
    border: 0; border-radius: 0; box-shadow: none; width: 100%;
}
body.modules #body[data-ss-page] table.postbox > thead th {
    padding: 12px 0; text-align: left; border-bottom: 1px solid #dbe2ec;
    color: #172333; font-family: inherit; text-transform: none;
}
body.modules #body[data-ss-page] table.postbox > thead h3 { margin: 0; padding: 0; font-size: 16px; text-align: left; }
body.modules #body[data-ss-page] table.postbox > tbody > tr > td.popTable { padding: 16px 0; }
body.modules #body[data-ss-page] .postbox fieldset {
    box-sizing: border-box; border: 0; border-top: 1px solid #dbe2ec;
    border-radius: 0; padding: 16px 0; margin: 0 0 16px;
}
body.modules #body[data-ss-page] .postbox fieldset legend { color: #172333; font-weight: 600; }
body.modules #body[data-ss-page="Custom/Registration"] fieldset .widefat { width: 100%; border: 0; }
body.modules #body[data-ss-page="Custom/Registration"] fieldset .widefat td { padding: 12px 8px; }
body.modules #body[data-ss-page="Custom/Registration"] fieldset img.button { float: none !important; margin: 0 8px 0 0; }
body.modules #body[data-ss-page="Custom/Registration"] fieldset select { width: 100%; }
body.modules #body[data-ss-page="Custom/Registration"] fieldset .legend-gray { font-size: 12px; color: #516176; }
body.modules { background: #fff !important; }
body.modules #body { background: #fff !important; --ss-surface: #fff; --ss-surface-raised: #fff; }
#body[data-ss-page] .postbox, #body[data-ss-page] fieldset,
#body[data-ss-page] .popTable { background-color: #fff !important; }
#body[data-ss-page] .widefat tbody tr td,
#body[data-ss-page] .widefat tbody tr:nth-child(even) td { background-color: #fff !important; }
#body[data-ss-page] .widefat tbody tr:hover td { background-color: #f0f5ff !important; }
#body[data-ss-page="Custom/Registration"] { --ss-page-accent: #08766b; }
#body[data-ss-page="Custom/Registration"] img.button {
    width: 20px !important; height: 20px !important;
    min-width: 0 !important; max-width: 20px !important;
    object-fit: contain; display: inline-block; vertical-align: middle;
}
#body[data-ss-page="Custom/Registration"] fieldset { min-width: 0; padding: 12px; }
#body[data-ss-page="Custom/Registration"] fieldset legend { padding: 0 6px; }
#body[data-ss-page="Custom/Registration"] fieldset .checkbox-label { min-height: 32px; display: inline-flex; align-items: center; }
#body[data-ss-page="Custom/Registration"] .postbox { width: 100%; }
@media screen and (max-width: 1100px) {
    #body[data-ss-page="Custom/Registration"] tr.st:has(> td > fieldset) { display: block; }
    #body[data-ss-page="Custom/Registration"] tr.st > td:has(> fieldset) { display: block; width: 100%; box-sizing: border-box; padding: 8px 0; }
    #body[data-ss-page="Custom/Registration"] table:has(> tbody > tr > td > fieldset) { width: 100%; }
}
#body[data-ss-page] { --ss-page-accent: #2455c6; }
#body[data-ss-page^="School_Setup/"],
#body[data-ss-page^="Students/"] { --ss-page-accent: #08766b; }
#body[data-ss-page^="Scheduling/"],
#body[data-ss-page^="Grades/"] { --ss-page-accent: #7445a6; }
#body[data-ss-page^="Attendance/"],
#body[data-ss-page^="Discipline/"] { --ss-page-accent: #a5324d; }
#body[data-ss-page^="Student_Billing/"] { --ss-page-accent: #23682d; }
#body[data-ss-page^="Accounting/"] { --ss-page-accent: #4e5990; }
#body[data-ss-page^="Users/"] { --ss-page-accent: #9c446b; }
#body[data-ss-page^="Resources/"] { --ss-page-accent: #9a4f20; }
#body[data-ss-page="School_Setup/PortalNotes"],
#body[data-ss-page="School_Setup/PortalPolls"] { --ss-page-accent: #066e93; }
#body[data-ss-page^="Food_Service/"] { --ss-page-accent: #ad3d5b; }
#body[data-ss-page="Custom/RemoveAccess"] { --ss-page-accent: #a5324d; }
#body[data-ss-page] #search { text-align: left; }
#body[data-ss-page] #search #general_table { width: 100%; border-collapse: collapse; }
#body[data-ss-page] #search #general_table td { padding: 8px; vertical-align: middle; }
#body[data-ss-page] #search #general_table > tbody > tr > td:first-child {
    width: 32%; text-align: left; font-size: 14px; font-weight: 600;
    color: var(--ss-text-secondary);
}
#body[data-ss-page] #search #general_table input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#body[data-ss-page] #search #general_table select { width: 100%; min-height: 44px !important; }
#body[data-ss-page] #search > .center { text-align: left; padding: 12px 8px; }
#body[data-ss-page] #search > .center > label {
    display: inline-flex; align-items: center; min-height: 44px; gap: 6px;
    font-size: 14px; max-width: 100%;
}
#body[data-ss-page] #search input[type="checkbox"] { accent-color: #1459d9; width: 18px; height: 18px; flex-shrink: 0; }
#body[data-ss-page] .postbox:has(#search) { width: 100%; background: #fff; }
#body[data-ss-page] .postbox:has(#search) > thead h3 {
    text-align: left; padding: 12px 16px; margin: 0;
    border-bottom: 1px solid var(--ss-line); font-size: 16px;
}
#body[data-ss-page] .postbox:has(#search) .popTable { padding: 12px; }
#body[data-ss-page] .ss-f13 {
    margin: 0 0 20px; padding: 16px 0;
    border: 0; border-top: 3px solid var(--ss-page-accent);
    border-bottom: 1px solid var(--ss-line);
    border-radius: 0; background: transparent; box-shadow: none;
}
#body[data-ss-page] .ss-f13 h2 { margin: 6px 0 8px; font-size: 24px; line-height: 1.3; color: var(--ss-text); }
#body[data-ss-page] .ss-f13 p { max-width: 76ch; line-height: 1.5; }
#body[data-ss-page] .ss-f13-kicker { color: var(--ss-page-accent); font-size: 12px; font-weight: 700; }
#body[data-ss-page] .header2 {
    padding: 10px 8px; vertical-align: middle;
    background: #fff; border-bottom: 1px solid var(--ss-line);
}
#body[data-ss-page] .header2 .nobr { white-space: normal; }
#body[data-ss-page] .header2 select { margin: 3px; }
#body[data-ss-page] .button-primary,
#body[data-ss-page] input[type="submit"] {
    padding: 10px 16px; border-radius: 6px; font-size: 14px;
    line-height: 1.4; text-transform: none; letter-spacing: 0;
}
#body[data-ss-page] input:disabled,
#body[data-ss-page] select:disabled,
#body[data-ss-page] button:disabled { cursor: not-allowed; opacity: .65; }
#body[data-ss-page] .widefat th { padding: 12px 8px; font-weight: 600; }
#body[data-ss-page] .widefat tbody tr:nth-child(even) td { background: #f5f7fb; }
#body[data-ss-page] .widefat tbody tr:hover td { background: #edf3ff; }
#body[data-ss-page] .list-wrapper { border-top: 3px solid var(--ss-page-accent); border-radius: 0; }
@media screen and (max-width: 700px) {
    #body[data-ss-page] #search #general_table > tbody > tr > td {
        display: block; box-sizing: border-box; width: 100%; padding: 4px 8px;
    }
    #body[data-ss-page] #search #general_table > tbody > tr { display: block; margin-bottom: 12px; }
    #body[data-ss-page] .ss-f13 { margin-bottom: 16px; padding: 12px 0; }
    #body[data-ss-page] .ss-f13 h2 { font-size: 21px; overflow-wrap: anywhere; }
    #body[data-ss-page] table.header { width: 100%; table-layout: fixed; }
    #body[data-ss-page] table.header > tbody > tr > td.header2 {
        display: block; box-sizing: border-box; width: 100%; text-align: left;
    }
    #body[data-ss-page] .header2 table { float: none !important; max-width: 100%; }
    #body[data-ss-page] .header2 select { max-width: calc(100% - 6px); }
}
@media print {
    #body[data-ss-page] .ss-f13 { border-top: 0; background: #fff; }
    #body[data-ss-page] .widefat tbody tr:nth-child(even) td { background: #fff; }
}



/* ===== assets/themes/SchoolSafeCodex/ecc-consistency.css ===== */
/* Shared presentation corrections from the ECC diagnostic. */
body.modules #body[data-ss-page] > header[class*="ss-f"] {
    margin: 0 0 20px !important; padding: 16px 0 !important;
    background: #fff !important; border: 0 !important;
    border-top: 3px solid var(--ss-page-accent) !important;
    border-bottom: 1px solid #dbe2ec !important;
    border-radius: 0 !important; box-shadow: none !important;
}
body.modules #body[data-ss-page] > header[class*="ss-f"] h2 {
    font-size: 24px !important; line-height: 1.3; margin: 6px 0 8px;
    color: #172333;
}
body.modules #body[data-ss-page] > header[class*="ss-f"] p:first-child { color: var(--ss-page-accent) !important; }
body.modules #body[data-ss-page="School_Setup/Calendar"] #calendar {
    width: 100%; border-collapse: collapse; background: #fff;
}
body.modules #body[data-ss-page="School_Setup/Calendar"] #calendar th {
    padding: 10px 6px; font-size: 12px; text-transform: none;
    background: #f0f5ff; color: #172333;
}
body.modules #body[data-ss-page="School_Setup/Calendar"] #calendar td {
    border: 1px solid #dbe2ec; vertical-align: top;
}
body.modules #body[data-ss-page="Students/AdvancedReport"] .widefat label {
    display: inline-flex; min-height: 44px; align-items: center;
    gap: 8px; line-height: 1.4; font-size: 14px;
}
body.modules #body[data-ss-page="Students/AdvancedReport"] .widefat input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0; accent-color: #1459d9;
}
body.modules #body[data-ss-page="Students/AdvancedReport"] .widefat th {
    text-align: left; padding: 10px 12px; font-size: 14px;
    background: #f0f5ff; color: #172333; text-transform: none;
}
@media screen and (max-width: 700px) {
    body.modules #body[data-ss-page="Students/AdvancedReport"] .widefat tr.st > td {
        display: block; width: 100%; box-sizing: border-box;
    }
    body.modules #body[data-ss-page="School_Setup/Calendar"] #calendar {
        display: block; max-width: 100%; overflow-x: auto;
    }
}
body.modules #body[data-ss-page] .list.widefat {
    border-collapse: collapse; border-spacing: 0; font-size: 14px;
}
body.modules #body[data-ss-page] .list.widefat > thead > tr > th {
    padding: 10px 12px; font-size: 13px; line-height: 1.4;
    text-transform: none !important; text-align: left; vertical-align: middle;
    background: #f0f5ff; color: #172333; border-bottom: 1px solid #dbe2ec;
}
body.modules #body[data-ss-page] .list.widefat > tbody > tr > td {
    padding: 10px 12px; line-height: 1.45; vertical-align: middle;
    height: auto !important; border-bottom: 1px solid #dbe2ec;
}
body.modules #body[data-ss-page] .list.widefat td img:not(.button) {
    object-fit: contain; max-width: 64px; max-height: 48px;
}
body.modules #body[data-ss-page] .list-nav {
    width: 100%; background: #fff; border-bottom: 1px solid #dbe2ec;
}
body.modules #body[data-ss-page] .list-nav td {
    padding: 10px 8px; font-size: 13px; line-height: 1.5; vertical-align: middle;
}
body.modules #body[data-ss-page] #LO_search { min-height: 44px !important; border-radius: 6px; }
@media screen and (max-width: 700px) {
    body.modules #body[data-ss-page] .list-nav > tbody > tr > td {
        display: block; width: 100%; box-sizing: border-box; text-align: left;
    }
    body.modules #body[data-ss-page] .list.widefat > tbody > tr > td { padding: 8px; }
}
body.modules #menu .adminmenu > .menu-module > .menu-top {
    margin-left: 0 !important; margin-right: 0 !important;
    width: 100% !important; min-width: 0; box-sizing: border-box;
}
body.modules #body[data-ss-page="Custom/Registration"] { container-type: inline-size; }
body.modules #body[data-ss-page="Custom/Registration"] fieldset .widefat td:has(> img):has(> .checkbox-label) {
    display: flex !important; flex-direction: row !important;
    align-items: center; justify-content: flex-start; gap: 8px;
}
body.modules #body[data-ss-page="Custom/Registration"] fieldset .widefat td > img { order: 0 !important; flex-shrink: 0; }
body.modules #body[data-ss-page="Custom/Registration"] fieldset .widefat td > .checkbox-label { order: 1 !important; margin: 0; }
@container (max-width: 740px) {
    #body[data-ss-page="Custom/Registration"] tr.st:has(> td > fieldset) { display: block; }
    #body[data-ss-page="Custom/Registration"] tr.st > td:has(> fieldset) {
        display: block; width: 100%; padding: 8px 0; box-sizing: border-box;
    }
}
body.modules #body[data-ss-page] :is(h2,h3,legend,label,td,th,input,select,textarea,button) { font-family: system-ui, Arial, sans-serif !important; letter-spacing: 0; }
body.modules #menu .adminmenu { overflow-x: hidden !important; }
body.modules #menu .adminmenu > .menu-module { max-width: 100%; min-width: 0; }
body.modules #body[data-ss-page] .list-nav img.button { position: static !important; transform: none !important; margin: 0 4px !important; }
body.modules:has(#menu [data-ss-branch="pilotage"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #2455c6; }
body.modules:has(#menu [data-ss-branch="school"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #08766b; }
body.modules:has(#menu [data-ss-branch="pedagogy"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #7445a6; }
body.modules:has(#menu [data-ss-branch="security"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #a5324d; }
body.modules:has(#menu [data-ss-branch="finance"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #23682d; }
body.modules:has(#menu [data-ss-branch="accounting"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #4e5990; }
body.modules:has(#menu [data-ss-branch="people"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #9c446b; }
body.modules:has(#menu [data-ss-branch="inventory"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #9a4f20; }
body.modules:has(#menu [data-ss-branch="communication"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #066e93; }
body.modules:has(#menu [data-ss-branch="care"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #ad3d5b; }
body.modules:has(#menu [data-ss-branch="administration"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #526170; }
body.modules:has(#menu [data-ss-branch="reports"] #selectedMenuLink) #body[data-ss-page] { --ss-page-accent: #5e6c1b; }


/* déclaré dans Warehouse.php (12/11/2026) : url("menu-logo.css?v=1"); */

/* ===== assets/themes/SchoolSafeCodex/compact-menu.css ===== */
/* Main menu contracts only while its independent context panel is open. */
@media screen {
  body.modules:has(#menu .menu-module.ss-open) { --ss-primary-width:64px; }
  body.modules:has(#menu .menu-module.ss-open) #menu-top .ss-brand-name,
  body.modules:has(#menu .menu-module.ss-open) #ss-context-summary,
  body.modules:has(#menu .menu-module.ss-open) #menu .menu-top .ss-menu-label { display:none!important; }
  body.modules:has(#menu .menu-module.ss-open) #menu-top > a { justify-content:center!important; padding:16px 8px!important; }
  body.modules:has(#menu .menu-module.ss-open) #menu .adminmenu > .menu-module > .menu-top {
    display:flex!important; justify-content:center; align-items:center; width:64px!important;
    min-height:48px; padding:12px 8px!important; gap:0; box-sizing:border-box;
  }
  body.modules:has(#menu .menu-module.ss-open) #menu .menu-top .module-icon { margin:0!important; flex-shrink:0; }
  body.modules:has(#menu .menu-module.ss-open) #ss-settings-button {
    width:48px; min-width:0; margin:8px!important; overflow:hidden; font-size:0;
  }
  body.modules:has(#menu .menu-module.ss-open) #ss-settings-button::before { content:'\2699'; font-size:22px; }
  @media(max-width:700px) {
    body.modules[data-ss-mobile-panel="context"] #menu { background:transparent!important; }
    body.modules[data-ss-mobile-panel="context"] #menu #menu-top,
    body.modules[data-ss-mobile-panel="context"] #menu .logo,
    body.modules[data-ss-mobile-panel="context"] #menu .adminmenu > .menu-module {
      display:block!important;
    }
    body.modules[data-ss-mobile-panel="context"] #menu #menu-top,
    body.modules[data-ss-mobile-panel="context"] #menu .adminmenu { width:64px!important; }
    body.modules[data-ss-mobile-panel="context"] #menu .ss-open > .wp-submenu {
      left:64px!important; right:auto!important;
      width:min(248px, calc(100vw - 80px))!important;
      top:12px!important; bottom:calc(84px + env(safe-area-inset-bottom))!important;
    }
  }
}



/* ===== assets/themes/SchoolSafeCodex/menu-corrections.css ===== */
@media screen {
  body.modules #menu-top > a:has(.ss-menu-emblem) {
    display:flex!important; flex-direction:column; align-items:center!important; gap:4px;
  }
  body.modules #menu-top .ss-menu-emblem {
    display:block; width:64px; height:52px; overflow:hidden; flex-shrink:0;
  }
  body.modules #menu-top .ss-menu-emblem img.logo {
    width:64px!important; height:64px!important; max-width:none!important;
    clip-path:polygon(50% 1%, 88% 14%, 88% 48%, 78% 63%, 50% 79%, 22% 63%, 14% 48%, 14% 14%);
    animation:ss-emblem-light 8s linear infinite!important;
  }
  body.modules #menu-top .ss-brand-name {
    display:block!important; font-size:18px!important; line-height:1.4; color:#fff;
    animation:none; filter:none; transform:none;
  }
  body.modules #menu-top .ss-brand-safe { color:#ffc400; filter:none; animation:none; }
  body.modules:has(#menu .ss-open) #menu-top .ss-menu-emblem { width:40px; height:32px; }
  body.modules:has(#menu .ss-open) #menu-top .ss-menu-emblem img.logo { width:40px!important; height:40px!important; }
  body.modules:has(#menu .menu-module.ss-open) #menu-top .ss-brand-name { display:block!important; font-size:9px!important; }
  body.modules #ss-settings-button {
    visibility:visible!important; display:block!important; flex:0 0 auto;
  }
  body.modules #menu .adminmenu { min-height:0; }
  body.modules #ss-context-summary { display:none!important; }
  body.modules #menu { display:flex; flex-direction:column; }
  body.modules #menu #menu-top { flex:0 0 auto; }
  body.modules #menu .adminmenu {
    display:flex; flex-direction:column; flex:1 1 auto;
    overflow:visible!important; padding:0!important;
  }
  body.modules #menu .adminmenu > .menu-module {
    flex:1 1 0; min-height:0; margin:0!important;
  }
  body.modules #menu .adminmenu > .menu-module > .menu-top {
    display:flex; align-items:center; box-sizing:border-box;
    height:100%!important; min-height:0!important; margin:0!important;
    padding:4px 12px!important; font-size:13px!important;
  }
  body.modules #menu #ss-settings-button { margin-top:auto!important; }
  body.modules #menu .menu-top .ss-menu-label { min-width:0; white-space:normal!important; }
  @media(max-width:700px) {
    body.modules[data-ss-mobile-panel="context"] #menu #ss-settings-button {
      position:absolute; left:8px; bottom:8px; margin:0!important;
      width:48px!important; max-width:48px!important; min-height:44px;
    }
    body.modules[data-ss-mobile-panel="context"] #menu .adminmenu { margin-bottom:60px!important; }
  }
}
@keyframes ss-emblem-light {
  0%, 100% { filter:hue-rotate(0deg) brightness(1); }
  50% { filter:hue-rotate(180deg) brightness(1.15); }
}
@media(prefers-reduced-motion:reduce) {
  body.modules #menu-top .ss-menu-emblem img.logo { animation:none!important; }
}



/* ===== assets/themes/SchoolSafeCodex/profile-menu.css ===== */
/* Load after profile-settings.css, compact-menu.css and menu-corrections.css. */
body.modules #menu-top > .current-person.student { display: none !important; }
#ss-native-settings > .current-person.student { margin-top: 16px; padding: 12px; border-radius: 6px; overflow-wrap: anywhere; }
.ss-profile-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid #dce4ee; }
.ss-profile-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; overflow-wrap: anywhere; }
.ss-profile-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #e5edff; color: #123488; font-weight: 600; }
.ss-profile-section > a { display: block; padding: 12px 0; color: #123488; border-bottom: 1px solid #edf1f6; }
.ss-profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media screen {
  body.modules #menu-top > .current-person.self { display: none !important; }
  body.modules #menu .adminmenu > .ss-settings-row { display: flex; flex: 1 1 0; min-height: 0; margin: 0 !important; padding: 0; }
  body.modules #menu .adminmenu > .ss-settings-row #ss-settings-button { height: 100%; min-height: 0; margin: 0 !important; position: static !important; padding: 4px 12px !important; }
  body.modules #menu-top > a:has(.ss-menu-emblem) { flex-direction: row !important; justify-content: flex-start !important; gap: 3px !important; padding: 6px 8px !important; }
  body.modules #menu-top .ss-menu-emblem { width: 54px; height: 58px; }
  body.modules #menu-top .ss-menu-emblem img.logo { width: 72px !important; height: 72px !important; transform: translateX(-10px); }
  body.modules #menu-top .ss-brand-name { align-self: center; text-align: left; margin: 0 !important; line-height: 1.2; white-space: nowrap; }
  body.modules:has(#menu .menu-module.ss-open) #menu-top > a:has(.ss-menu-emblem) { flex-direction: column !important; gap: 1px !important; padding: 6px 4px !important; }
  body.modules:has(#menu .menu-module.ss-open) #menu-top .ss-menu-emblem img.logo { transform: none; }
}
@media screen and (max-width: 700px) {
  body.modules #menu.slide #menu-top .ss-menu-emblem img.logo { width: 72px !important; height: 72px !important; }
  body.modules:has(#menu .menu-module.ss-open) #menu.slide #menu-top .ss-menu-emblem img.logo { width: 40px !important; height: 40px !important; }
  body.modules { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  #ss-mobile-navigation { min-height: 56px; height: calc(56px + env(safe-area-inset-bottom)); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  #ss-mobile-navigation a, #ss-mobile-navigation button { min-height: 44px; gap: 2px; padding: 2px 4px; font-size: 10px; }
  #ss-mobile-navigation svg, #ss-mobile-navigation .module-icon { width: 20px; height: 20px; }
  body.modules #menu.slide { bottom: calc(56px + env(safe-area-inset-bottom)) !important; }
  body.modules .ss-open > .wp-submenu { bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
  body.modules.ss-settings-open #menu-top > #ss-native-settings { bottom: calc(56px + env(safe-area-inset-bottom)) !important; }
}
@media screen {
  body.modules #menu #ss-settings-button {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    padding: 4px 12px !important;
    border: 1px solid color-mix(in srgb, #bfccd6 26%, #123488);
    border-left: 3px solid #bfccd6;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #fff;
    font: 400 13px/1.4 system-ui, Arial, sans-serif;
    letter-spacing: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  body.modules #menu #ss-settings-button::before {
    content: "" !important;
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: #bfccd6;
    mask: url("navigation-icons/FolderCog.svg") center / contain no-repeat;
    -webkit-mask: url("navigation-icons/FolderCog.svg") center / contain no-repeat;
  }
  body.modules #menu #ss-settings-button:hover,
  body.modules #menu #ss-settings-button[aria-expanded="true"] {
    background: #edf3ff;
    color: #526170;
    border-color: #526170;
  }
  body.modules #menu #ss-settings-button:hover::before,
  body.modules #menu #ss-settings-button[aria-expanded="true"]::before {
    background-color: #526170;
  }
  body.modules #menu #ss-settings-button:focus-visible {
    outline: 2px solid #bfccd6;
    outline-offset: -3px;
  }
  /* Hide the existing text node visually; its accessible name remains intact. */
  body.modules:has(#menu .menu-module.ss-open) #menu #ss-settings-button {
    justify-content: center;
    gap: 0;
    padding: 12px 8px !important;
    font-size: 0;
    overflow: hidden;
  }
  body.modules #menu #ss-settings-button .ss-menu-label { min-width: 0; }
  body.modules:has(#menu .menu-module.ss-open) #menu #ss-settings-button .ss-menu-label {
    display: none !important;
  }
  @media (max-width: 700px) {
    body.modules #menu.slide #ss-settings-button { display: flex !important; }
    body.modules[data-ss-mobile-panel="context"] #menu #ss-settings-button {
      left: 0;
      width: 64px !important;
      max-width: 64px !important;
      margin: 0 !important;
    }
  }
}



/* ===== assets/themes/SchoolSafeCodex/header-profile.css ===== */
body.modules #footer,
body.modules #footerwrap {
  background: rgba(249, 251, 253, .94) !important;
  color: #263445;
  box-shadow: none;
  border-color: #e3e8ef !important;
  backdrop-filter: blur(12px);
}
body.modules #footerwrap {
  display: flex !important;
  align-items: center;
  justify-content: flex-end !important;
  gap: 8px;
  padding: 0 16px;
  height: 52px;
  box-sizing: border-box;
}
body.modules #footer { height: 52px; }
body.modules #BottomButtonPrint,
body.modules #BottomButtonHelp,
body.modules #footer .ss-user,
body.modules #footer .ss-lang { display: none !important; }
body.modules #footer a.BottomButton:not(.a11y-hidden):not(.hide):not([hidden]) {
  color: #344558;
  border: 0;
  background: transparent;
  border-radius: 4px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
body.modules #footer .BottomButton:hover,
body.modules #footer .ss-header-profile:hover { background: #e9eef4; }
body.modules #footer .BottomButton img {
  filter: brightness(0) saturate(100%) !important;
  opacity: .72;
  width: 21px;
  height: 21px;
}
body.modules #footer .BottomButton span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap;
}
.ss-header-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  text-decoration: none;
  border-radius: 50%;
}
.ss-header-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccd5df;
  background: #e7edf2;
  color: #344558;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.ss-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ss-report-actions { display: flex; justify-content: flex-end; margin-bottom: 8px; }
body.modules #body .ss-report-actions .BottomButton { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; background: transparent; color: #344558; font-size: 12px; }
body.modules #body .ss-report-actions .BottomButton.hide { display: none; }
body.modules #body .ss-report-actions img { width: 18px; height: 18px; }
body.modules #body .ss-report-actions span { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.ss-header-profile:focus-visible { outline: 2px solid #344558; outline-offset: 2px; }
.ss-header-tools { display: flex; align-items: center; gap: 12px; margin-right: 16px; }
body.modules #footer .ss-header-tools .ss-header-action {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px !important; min-width: 44px; height: 44px; padding: 0 !important; margin: 0;
  border: 1px solid #e0e6ee; border-radius: 50% !important; background: #fff; color: #263445;
  box-shadow: 0 3px 7px rgba(24,36,54,.12); cursor: pointer; text-decoration: none;
  transition: background-color .16s, color .16s, transform .16s;
}
body.modules #footer .ss-header-tools .ss-header-action img { width: 21px; height: 21px; }
body.modules #footer .ss-header-tools .ss-header-action:hover,
body.modules #footer .ss-header-tools .ss-header-action:focus-visible { background: #e8f0ff; transform: none; }
body.modules #footer .ss-header-tools .ss-header-logout:hover { background: #ffe9e8; }
body.modules #footer .ss-header-tools .ss-header-action[aria-disabled="true"] { color: #566477; cursor: default; }
body.modules #footer .ss-header-tools .ss-header-tooltip {
  position: absolute !important; top: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  display: block; width: max-content !important; max-width: 160px; height: auto !important;
  padding: 6px 10px; clip: auto !important; overflow: visible !important; white-space: normal;
  border-radius: 6px; background: #263445; color: white; font-size: 12px; line-height: 1.4;
  pointer-events: none; visibility: hidden; opacity: 0; z-index: 120;
}
body.modules #footer .ss-header-action:hover .ss-header-tooltip,
body.modules #footer .ss-header-action:focus-visible .ss-header-tooltip { visibility: visible; opacity: 1; }
.ss-header-action:focus-visible { outline: 3px solid #1858c7; outline-offset: 3px; }
@media(max-width:700px) { .ss-header-tools { gap: 8px; margin-right: 12px; } }
@media(prefers-reduced-motion:reduce) { body.modules #footer .ss-header-tools .ss-header-action { transition: none; transform: none; } }
body.modules #footer #BottomButtonBack img { content: url("navigation-icons/ArrowLeft.svg"); }
body.modules #footer .ss-header-logout img { content: url("navigation-icons/LogOut.svg"); }
@media(max-width:700px) {
  body.modules #footerwrap { padding: 0 8px; gap: 4px; }
}



/* ===== assets/themes/SchoolSafeCodex/school-impeccable.css ===== */
/* Ecole only. Native permissions, input names and form actions are unchanged. */
#body[data-ss-section="school"], .ss-school-tool {
    --school-ink: #18332e;
    --school-muted: #52635f;
    --school-line: #d6e1dd;
    --school-wash: #f1f6f4;
    --school-accent: #087268;
    --school-focus: #1464b8;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-school:not(.ss-open) > #ss_menu_school { display: none !important; }
#body[data-ss-section="school"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="school"] .ss-f13-kicker,
#body[data-ss-section="school"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="school"] .ss-f13 h2,
#body[data-ss-section="school"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="school"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="school"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="school"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="school"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="school"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="school"] .list-wrapper,
#body[data-ss-section="school"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="school"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="school"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="school"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="school"] .widefat tr:focus-within td { background: #eef6f3 !important; }
#body[data-ss-section="school"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="school"] .postbox > thead h3,
#body[data-ss-section="school"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="school"] fieldset { min-width: 0; }
#body[data-ss-section="school"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="school"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="school"] select,
#body[data-ss-section="school"] textarea,
.ss-school-tool input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool select, .ss-school-tool textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="school"] input::placeholder,
#body[data-ss-section="school"] textarea::placeholder,
.ss-school-tool input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="school"] input[type="submit"],
#body[data-ss-section="school"] button[type="submit"],
.ss-school-tool button[type="submit"], .ss-school-tool input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="school"] button:not([type="submit"]),
#body[data-ss-section="school"] a.button {
    min-height: 44px; padding: 9px 12px; box-sizing: border-box;
    border-radius: 5px; font: inherit; letter-spacing: 0;
}
#body[data-ss-section="school"] .header2 {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin-block: 16px;
}
#body[data-ss-section="school"] .header2 > :is(div,span) { min-width: 0; }
#body[data-ss-section="school"] input[type="submit"]:hover,
.ss-school-tool button[type="submit"]:hover { background: #075b53 !important; }
#body[data-ss-section="school"] :is(input,button,select,textarea):disabled,
.ss-school-tool :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="school"] :focus-visible,
.ss-school-tool :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="school"] input[type="checkbox"],
#body[data-ss-section="school"] input[type="radio"],
.ss-school-tool input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="school"] a { text-underline-offset: 3px; }
#body[data-ss-section="school"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="school"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool table { font-variant-numeric: tabular-nums; }
.ss-school-tool :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="school"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="school"] { padding-bottom: 96px; }
    #body[data-ss-section="school"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="school"] .list-nav td { padding: 8px; }
    #body[data-ss-section="school"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="school"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="school"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="school"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool { padding: 12px; }
    .ss-school-tool :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="school"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="school"] { padding-bottom: 0; }
}



/* ===== assets/themes/SchoolSafeCodex/pedagogy-impeccable.css ===== */
/* Pedagogie only. Preserve native grade workflows and permission checks. */
#body[data-ss-section="pedagogy"], .ss-school-tool {
    --school-ink: #30253d;
    --school-muted: #61516f;
    --school-line: #e1d8ea;
    --school-wash: #f5f0fa;
    --school-accent: #7445a6;
    --school-focus: #7445a6;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-pedagogy:not(.ss-open) > #ss_menu_pedagogy { display: none !important; }
#body[data-ss-section="pedagogy"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="pedagogy"] .ss-f13-kicker,
#body[data-ss-section="pedagogy"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="pedagogy"] .ss-f13 h2,
#body[data-ss-section="pedagogy"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="pedagogy"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="pedagogy"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="pedagogy"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="pedagogy"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="pedagogy"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="pedagogy"] .list-wrapper,
#body[data-ss-section="pedagogy"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="pedagogy"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="pedagogy"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="pedagogy"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="pedagogy"] .widefat tr:focus-within td { background: #eef6f3 !important; }
#body[data-ss-section="pedagogy"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="pedagogy"] .postbox > thead h3,
#body[data-ss-section="pedagogy"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="pedagogy"] fieldset { min-width: 0; }
#body[data-ss-section="pedagogy"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="pedagogy"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="pedagogy"] select,
#body[data-ss-section="pedagogy"] textarea,
.ss-school-tool input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool select, .ss-school-tool textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="pedagogy"] input::placeholder,
#body[data-ss-section="pedagogy"] textarea::placeholder,
.ss-school-tool input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="pedagogy"] input[type="submit"],
.ss-school-tool button[type="submit"], .ss-school-tool input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="pedagogy"] input[type="submit"]:hover,
.ss-school-tool button[type="submit"]:hover { background: #5c3585 !important; }
#body[data-ss-section="pedagogy"] :is(input,button,select,textarea):disabled,
.ss-school-tool :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="pedagogy"] :focus-visible,
.ss-school-tool :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="pedagogy"] input[type="checkbox"],
#body[data-ss-section="pedagogy"] input[type="radio"],
.ss-school-tool input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="pedagogy"] a { text-underline-offset: 3px; }
#body[data-ss-section="pedagogy"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="pedagogy"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool table { font-variant-numeric: tabular-nums; }
.ss-school-tool :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="pedagogy"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="pedagogy"] { padding-bottom: 96px; }
    #body[data-ss-section="pedagogy"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="pedagogy"] .list-nav td { padding: 8px; }
    #body[data-ss-section="pedagogy"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="pedagogy"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="pedagogy"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="pedagogy"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool { padding: 12px; }
    .ss-school-tool :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="pedagogy"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="pedagogy"] { padding-bottom: 0; }
}



/* ===== assets/themes/SchoolSafeCodex/branch-page-heading.css ===== */
/* Shared structure; branch colors remain distinct. */
#body[data-ss-section="school"], .ss-school-tool {
    --school-accent: #08766b; --school-focus: #08766b;
    --ss-page-accent: #08766b;
}
#body[data-ss-section="pedagogy"], .ss-school-tool[data-ss-tool-section="pedagogy"] {
    --school-ink: #30253d; --school-muted: #61516f;
    --school-line: #e1d8ea; --school-wash: #f5f0fa;
    --school-accent: #7445a6; --school-focus: #7445a6;
    --ss-page-accent: #7445a6;
}
#body[data-ss-section="pedagogy"] input[type="submit"]:hover { background: #5c3585 !important; }
#body[data-ss-section="pedagogy"] .widefat tr:focus-within td { background: #f5f0fa !important; }
.ss-school-tool #native-lookup button:not([type="button"]) { background: var(--school-accent); color: #fff; border-color: var(--school-accent); }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .ss-page-heading {
    display: flex; align-items: center; gap: 12px; min-height: 56px;
    margin: 0 0 16px; padding: 8px 12px; background: var(--school-wash);
    border: 1px solid var(--school-accent); border-radius: 6px; box-sizing: border-box;
}
#body[data-ss-section] .ss-page-heading > img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; }
#body[data-ss-section] .ss-page-heading h2 { margin: 0; font: 650 20px/1.35 system-ui, Arial, sans-serif; color: var(--school-accent); overflow-wrap: anywhere; min-width: 0; }
#body[data-ss-section] .ss-page-back { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--school-accent); border-radius: 5px; background: #fff; }
#body[data-ss-section] .ss-page-back:hover { background: var(--school-wash); }
#body[data-ss-section] .ss-native-title { display: none !important; }
#body[data-ss-section] .ss-native-heading:not(:has(a,button,input,select,textarea)) { display: none !important; }
#body[data-ss-section]:has(.ss-page-heading) .ss-f13 { border: 0; padding: 0; margin: 0; }
#body[data-ss-section]:has(.ss-page-heading) .header1 { border: 0; padding: 0; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"]) .list-wrapper { border-top-color: var(--school-accent); }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"]) .widefat th { background: var(--school-wash) !important; color: var(--school-muted) !important; }
.ss-studio-harmonized.ss-tool-embedded > header { display: none !important; }
#body[data-ss-section="security"], .ss-school-tool[data-ss-tool-section="security"] {
    --school-ink: #3e2530; --school-muted: #70505b;
    --school-line: #ead6dc; --school-wash: #fcf1f4;
    --school-accent: #a5324d; --school-focus: #a5324d; --ss-page-accent: #a5324d;
}
#body[data-ss-section="security"] .widefat th { background: var(--school-wash) !important; color: var(--school-muted) !important; }
@media (max-width: 700px) {
    #body[data-ss-section] .ss-page-heading { gap: 8px; padding: 8px; }
    #body[data-ss-section] .ss-page-heading h2 { font-size: 18px; }
}
@media print { #body[data-ss-section] .ss-page-back { display: none; } }
#body[data-ss-section="finance"], .ss-school-tool[data-ss-tool-section="finance"] { --school-ink: #253629; --school-muted: #526756; --school-line: #d9e5d5; --school-wash: #f1f7ee; --school-accent: #23682d; --school-focus: #23682d; --ss-page-accent: #23682d; }
#body[data-ss-section="finance"] .widefat th { background: var(--school-wash) !important; color: var(--school-muted) !important; }
#body[data-ss-section="accounting"] { --school-accent: #4e5990; --school-focus: #4e5990; --ss-page-accent: #4e5990; --school-wash: #f2f3fa; }

#body[data-ss-section="people"] { --school-accent: #9c446b; --school-focus: #9c446b; --ss-page-accent: #9c446b; --school-wash: #fbf1f5; }





/* ===== assets/themes/SchoolSafeCodex/security-impeccable.css ===== */
/* Security only. Preserve native grade workflows and permission checks. */
#body[data-ss-section="security"], .ss-school-tool {
    --school-ink: #3e2530;
    --school-muted: #70505b;
    --school-line: #ead6dc;
    --school-wash: #fcf1f4;
    --school-accent: #a5324d;
    --school-focus: #a5324d;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-security:not(.ss-open) > #ss_menu_security { display: none !important; }
#body[data-ss-section="security"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="security"] .ss-f13-kicker,
#body[data-ss-section="security"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="security"] .ss-f13 h2,
#body[data-ss-section="security"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="security"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="security"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="security"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="security"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="security"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="security"] .list-wrapper,
#body[data-ss-section="security"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="security"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="security"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="security"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="security"] .widefat tr:focus-within td { background: #fcf1f4 !important; }
#body[data-ss-section="security"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="security"] .postbox > thead h3,
#body[data-ss-section="security"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="security"] fieldset { min-width: 0; }
#body[data-ss-section="security"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="security"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="security"] select,
#body[data-ss-section="security"] textarea,
.ss-school-tool input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool select, .ss-school-tool textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="security"] input::placeholder,
#body[data-ss-section="security"] textarea::placeholder,
.ss-school-tool input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="security"] input[type="submit"],
.ss-school-tool button[type="submit"], .ss-school-tool input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="security"] input[type="submit"]:hover,
.ss-school-tool button[type="submit"]:hover { background: #84263c !important; }
#body[data-ss-section="security"] :is(input,button,select,textarea):disabled,
.ss-school-tool :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="security"] :focus-visible,
.ss-school-tool :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="security"] input[type="checkbox"],
#body[data-ss-section="security"] input[type="radio"],
.ss-school-tool input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="security"] a { text-underline-offset: 3px; }
#body[data-ss-section="security"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="security"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool table { font-variant-numeric: tabular-nums; }
.ss-school-tool :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="security"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="security"] { padding-bottom: 96px; }
    #body[data-ss-section="security"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="security"] .list-nav td { padding: 8px; }
    #body[data-ss-section="security"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="security"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="security"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="security"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool { padding: 12px; }
    .ss-school-tool :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="security"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="security"] { padding-bottom: 0; }
}



/* ===== assets/themes/SchoolSafeCodex/finance-impeccable.css ===== */
/* Finance only. Preserve native grade workflows and permission checks. */
.ss-billing-assignment-fields{width:100%;table-layout:fixed}
.ss-billing-assignment-fields>tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.ss-billing-assignment-fields>tbody>tr,.ss-billing-assignment-fields>tbody>tr>td{display:block;min-width:0;padding:0}
.ss-billing-assignment-fields .ss-billing-full-row{grid-column:1/-1}
.ss-billing-assignment-fields input:not([type="hidden"]){width:100%;box-sizing:border-box}
.ss-billing-assignment-fields select{max-width:100%;margin:4px 2px 4px 0}
@media(max-width:700px){.ss-billing-assignment-fields>tbody{grid-template-columns:minmax(0,1fr);gap:16px}}
#body[data-ss-section="finance"], .ss-school-tool {
    --school-ink: #253629;
    --school-muted: #526756;
    --school-line: #d9e5d5;
    --school-wash: #f1f7ee;
    --school-accent: #23682d;
    --school-focus: #23682d;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-finance:not(.ss-open) > #ss_menu_finance { display: none !important; }
#body[data-ss-section="finance"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="finance"] .ss-f13-kicker,
#body[data-ss-section="finance"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="finance"] .ss-f13 h2,
#body[data-ss-section="finance"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="finance"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="finance"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="finance"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="finance"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="finance"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="finance"] .list-wrapper,
#body[data-ss-section="finance"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="finance"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="finance"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="finance"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="finance"] .widefat tr:focus-within td { background: #f1f7ee !important; }
#body[data-ss-section="finance"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="finance"] .postbox > thead h3,
#body[data-ss-section="finance"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="finance"] fieldset { min-width: 0; }
#body[data-ss-section="finance"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="finance"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="finance"] select,
#body[data-ss-section="finance"] textarea,
.ss-school-tool input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool select, .ss-school-tool textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="finance"] input::placeholder,
#body[data-ss-section="finance"] textarea::placeholder,
.ss-school-tool input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="finance"] input[type="submit"],
.ss-school-tool button[type="submit"], .ss-school-tool input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="finance"] input[type="submit"]:hover,
.ss-school-tool button[type="submit"]:hover { background: #1b5223 !important; }
#body[data-ss-section="finance"] :is(input,button,select,textarea):disabled,
.ss-school-tool :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="finance"] :focus-visible,
.ss-school-tool :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="finance"] input[type="checkbox"],
#body[data-ss-section="finance"] input[type="radio"],
.ss-school-tool input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="finance"] a { text-underline-offset: 3px; }
#body[data-ss-section="finance"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="finance"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool table { font-variant-numeric: tabular-nums; }
.ss-school-tool :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="finance"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="finance"] { padding-bottom: 96px; }
    #body[data-ss-section="finance"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="finance"] .list-nav td { padding: 8px; }
    #body[data-ss-section="finance"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="finance"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="finance"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="finance"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool { padding: 12px; }
    .ss-school-tool :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="finance"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="finance"] { padding-bottom: 0; }
}



/* ===== assets/themes/SchoolSafeCodex/accounting-impeccable.css ===== */
/* Accounting presentation; native workflows and permissions are unchanged. */
#body[data-ss-section="accounting"], .ss-school-tool {
    --school-ink: #292d3d;
    --school-muted: #596075;
    --school-line: #dce0ee;
    --school-wash: #f2f3fa;
    --school-accent: #4e5990;
    --school-focus: #4e5990;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-accounting:not(.ss-open) > #ss_menu_accounting { display: none !important; }
#body[data-ss-section="accounting"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="accounting"] .ss-f13-kicker,
#body[data-ss-section="accounting"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="accounting"] .ss-f13 h2,
#body[data-ss-section="accounting"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="accounting"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="accounting"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="accounting"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="accounting"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="accounting"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="accounting"] .list-wrapper,
#body[data-ss-section="accounting"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="accounting"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="accounting"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="accounting"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="accounting"] .widefat tr:focus-within td { background: #f1f7ee !important; }
#body[data-ss-section="accounting"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="accounting"] .postbox > thead h3,
#body[data-ss-section="accounting"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="accounting"] fieldset { min-width: 0; }
#body[data-ss-section="accounting"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="accounting"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="accounting"] select,
#body[data-ss-section="accounting"] textarea,
.ss-school-tool input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool select, .ss-school-tool textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="accounting"] input::placeholder,
#body[data-ss-section="accounting"] textarea::placeholder,
.ss-school-tool input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="accounting"] input[type="submit"],
.ss-school-tool button[type="submit"], .ss-school-tool input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="accounting"] input[type="submit"]:hover,
.ss-school-tool button[type="submit"]:hover { background: #4e5990 !important; }
#body[data-ss-section="accounting"] :is(input,button,select,textarea):disabled,
.ss-school-tool :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="accounting"] :focus-visible,
.ss-school-tool :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="accounting"] input[type="checkbox"],
#body[data-ss-section="accounting"] input[type="radio"],
.ss-school-tool input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="accounting"] a { text-underline-offset: 3px; }
#body[data-ss-section="accounting"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="accounting"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool table { font-variant-numeric: tabular-nums; }
.ss-school-tool :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="accounting"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="accounting"] { padding-bottom: 96px; }
    #body[data-ss-section="accounting"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="accounting"] .list-nav td { padding: 8px; }
    #body[data-ss-section="accounting"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="accounting"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="accounting"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="accounting"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool { padding: 12px; }
    .ss-school-tool :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="accounting"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="accounting"] { padding-bottom: 0; }
}



/* ===== assets/themes/SchoolSafeCodex/people-impeccable.css ===== */
/* Personnel presentation; native workflows and permissions are unchanged. */
#body[data-ss-section="people"], .ss-school-tool {
    --school-ink: #352b31;
    --school-muted: #6b5962;
    --school-line: #eadce3;
    --school-wash: #fbf1f5;
    --school-accent: #9c446b;
    --school-focus: #9c446b;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-people:not(.ss-open) > #ss_menu_people { display: none !important; }
#body[data-ss-section="people"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="people"] .ss-f13-kicker,
#body[data-ss-section="people"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="people"] .ss-f13 h2,
#body[data-ss-section="people"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="people"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="people"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="people"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="people"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="people"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="people"] .list-wrapper,
#body[data-ss-section="people"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="people"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="people"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="people"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="people"] .widefat tr:focus-within td { background: #f1f7ee !important; }
#body[data-ss-section="people"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="people"] .postbox > thead h3,
#body[data-ss-section="people"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="people"] fieldset { min-width: 0; }
#body[data-ss-section="people"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="people"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="people"] select,
#body[data-ss-section="people"] textarea,
.ss-school-tool input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool select, .ss-school-tool textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="people"] input::placeholder,
#body[data-ss-section="people"] textarea::placeholder,
.ss-school-tool input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="people"] input[type="submit"],
.ss-school-tool button[type="submit"], .ss-school-tool input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="people"] input[type="submit"]:hover,
.ss-school-tool button[type="submit"]:hover { background: #9c446b !important; }
#body[data-ss-section="people"] :is(input,button,select,textarea):disabled,
.ss-school-tool :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="people"] :focus-visible,
.ss-school-tool :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="people"] input[type="checkbox"],
#body[data-ss-section="people"] input[type="radio"],
.ss-school-tool input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="people"] a { text-underline-offset: 3px; }
#body[data-ss-section="people"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="people"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool table { font-variant-numeric: tabular-nums; }
.ss-school-tool :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="people"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="people"] { padding-bottom: 96px; }
    #body[data-ss-section="people"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="people"] .list-nav td { padding: 8px; }
    #body[data-ss-section="people"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="people"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="people"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="people"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool { padding: 12px; }
    .ss-school-tool :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="people"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="people"] { padding-bottom: 0; }
}

#body[data-ss-page="Staff_Absences/AddAbsence"] .fixed-col { width: 100%; max-width: 100%; }
#body[data-ss-page="Staff_Absences/AddAbsence"] .fixed-col>tbody>tr>td {
    padding: 10px 12px; vertical-align: top; overflow-wrap: break-word;
}
#body[data-ss-page="Staff_Absences/AddAbsence"] :is(input,select,textarea) { max-width: 100%; box-sizing: border-box; }
#body[data-ss-page="Staff_Absences/AddAbsence"] textarea { width: 100%; min-height: 100px; }
#body[data-ss-page="Staff_Absences/AddAbsence"] .fixed-col select { margin: 4px 3px 4px 0; }
@media(max-width:700px) {
    #body[data-ss-page="Staff_Absences/AddAbsence"] .fixed-col>tbody>tr>td { padding: 8px 0; }
    #body[data-ss-page="Staff_Absences/AddAbsence"] .fixed-col td:has(select) { white-space: normal; }
}



/* ===== assets/themes/SchoolSafeCodex/inventory-impeccable.css ===== */
/* Branch presentation; native workflows and permissions are unchanged. */
#body[data-ss-section="inventory"], .ss-school-tool[data-ss-tool-section="inventory"] {
    --school-ink: #292d3d;
    --school-muted: #596075;
    --school-line: #eadbce;
    --school-wash: #fff5ed;
    --school-accent: #9a4f20;
    --school-focus: #9a4f20;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-inventory:not(.ss-open) > #ss_menu_inventory { display: none !important; }
#body[data-ss-section="inventory"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="inventory"] .ss-f13-kicker,
#body[data-ss-section="inventory"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="inventory"] .ss-f13 h2,
#body[data-ss-section="inventory"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="inventory"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="inventory"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="inventory"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="inventory"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="inventory"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="inventory"] .list-wrapper,
#body[data-ss-section="inventory"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="inventory"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="inventory"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="inventory"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="inventory"] .widefat tr:focus-within td { background: #fff5ed !important; }
#body[data-ss-section="inventory"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="inventory"] .postbox > thead h3,
#body[data-ss-section="inventory"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="inventory"] fieldset { min-width: 0; }
#body[data-ss-section="inventory"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="inventory"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="inventory"] select,
#body[data-ss-section="inventory"] textarea,
.ss-school-tool[data-ss-tool-section="inventory"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool[data-ss-tool-section="inventory"] select, .ss-school-tool[data-ss-tool-section="inventory"] textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="inventory"] input::placeholder,
#body[data-ss-section="inventory"] textarea::placeholder,
.ss-school-tool[data-ss-tool-section="inventory"] input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="inventory"] input[type="submit"],
.ss-school-tool[data-ss-tool-section="inventory"] button[type="submit"], .ss-school-tool[data-ss-tool-section="inventory"] input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="inventory"] input[type="submit"]:hover,
.ss-school-tool[data-ss-tool-section="inventory"] button[type="submit"]:hover { background: #9a4f20 !important; }
#body[data-ss-section="inventory"] :is(input,button,select,textarea):disabled,
.ss-school-tool[data-ss-tool-section="inventory"] :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="inventory"] :focus-visible,
.ss-school-tool[data-ss-tool-section="inventory"] :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="inventory"] input[type="checkbox"],
#body[data-ss-section="inventory"] input[type="radio"],
.ss-school-tool[data-ss-tool-section="inventory"] input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="inventory"] a { text-underline-offset: 3px; }
#body[data-ss-section="inventory"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="inventory"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool[data-ss-tool-section="inventory"] { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool[data-ss-tool-section="inventory"] :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="inventory"] h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="inventory"] :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool[data-ss-tool-section="inventory"] table { font-variant-numeric: tabular-nums; }
.ss-school-tool[data-ss-tool-section="inventory"] :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="inventory"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="inventory"] { padding-bottom: 96px; }
    #body[data-ss-section="inventory"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="inventory"] .list-nav td { padding: 8px; }
    #body[data-ss-section="inventory"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="inventory"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="inventory"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="inventory"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool[data-ss-tool-section="inventory"] { padding: 12px; }
    .ss-school-tool[data-ss-tool-section="inventory"] :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="inventory"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="inventory"] { padding-bottom: 0; }
}

#body[data-ss-section="inventory"] { --ss-page-accent: #9a4f20; }
#body[data-ss-section="inventory"] .widefat th { background: var(--school-wash) !important; color: var(--school-ink) !important; }
#body[data-ss-section="inventory"] .list-wrapper { position: relative; contain: inline-size; box-sizing: border-box; width: 100%; }




/* ===== assets/themes/SchoolSafeCodex/communication-impeccable.css ===== */
/* Branch presentation; native workflows and permissions are unchanged. */
#body[data-ss-section="communication"], .ss-school-tool[data-ss-tool-section="communication"] {
    --school-ink: #292d3d;
    --school-muted: #596075;
    --school-line: #d3e5ed;
    --school-wash: #eef8fc;
    --school-accent: #066e93;
    --school-focus: #066e93;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-communication:not(.ss-open) > #ss_menu_communication { display: none !important; }
#body[data-ss-section="communication"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="communication"] .ss-f13-kicker,
#body[data-ss-section="communication"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="communication"] .ss-f13 h2,
#body[data-ss-section="communication"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="communication"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="communication"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="communication"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="communication"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="communication"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="communication"] .list-wrapper,
#body[data-ss-section="communication"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="communication"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="communication"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="communication"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="communication"] .widefat tr:focus-within td { background: #eef8fc !important; }
#body[data-ss-section="communication"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="communication"] .postbox > thead h3,
#body[data-ss-section="communication"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="communication"] fieldset { min-width: 0; }
#body[data-ss-section="communication"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="communication"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="communication"] select,
#body[data-ss-section="communication"] textarea,
.ss-school-tool[data-ss-tool-section="communication"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool[data-ss-tool-section="communication"] select, .ss-school-tool[data-ss-tool-section="communication"] textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="communication"] input::placeholder,
#body[data-ss-section="communication"] textarea::placeholder,
.ss-school-tool[data-ss-tool-section="communication"] input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="communication"] input[type="submit"],
.ss-school-tool[data-ss-tool-section="communication"] button[type="submit"], .ss-school-tool[data-ss-tool-section="communication"] input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="communication"] input[type="submit"]:hover,
.ss-school-tool[data-ss-tool-section="communication"] button[type="submit"]:hover { background: #066e93 !important; }
#body[data-ss-section="communication"] :is(input,button,select,textarea):disabled,
.ss-school-tool[data-ss-tool-section="communication"] :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="communication"] :focus-visible,
.ss-school-tool[data-ss-tool-section="communication"] :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="communication"] input[type="checkbox"],
#body[data-ss-section="communication"] input[type="radio"],
.ss-school-tool[data-ss-tool-section="communication"] input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="communication"] a { text-underline-offset: 3px; }
#body[data-ss-section="communication"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="communication"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool[data-ss-tool-section="communication"] { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool[data-ss-tool-section="communication"] :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="communication"] h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="communication"] :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool[data-ss-tool-section="communication"] table { font-variant-numeric: tabular-nums; }
.ss-school-tool[data-ss-tool-section="communication"] :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="communication"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="communication"] { padding-bottom: 96px; }
    #body[data-ss-section="communication"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="communication"] .list-nav td { padding: 8px; }
    #body[data-ss-section="communication"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="communication"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="communication"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="communication"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool[data-ss-tool-section="communication"] { padding: 12px; }
    .ss-school-tool[data-ss-tool-section="communication"] :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="communication"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="communication"] { padding-bottom: 0; }
}

#body[data-ss-section="communication"] { --ss-page-accent: #066e93; }
#body[data-ss-section="communication"] .widefat th { background: var(--school-wash) !important; color: var(--school-ink) !important; }
#body[data-ss-section="communication"] .list-wrapper { position: relative; contain: inline-size; box-sizing: border-box; width: 100%; }




/* ===== assets/themes/SchoolSafeCodex/care-impeccable.css ===== */
/* Branch presentation; native workflows and permissions are unchanged. */
#body[data-ss-section="care"], .ss-school-tool[data-ss-tool-section="care"] {
    --school-ink: #292d3d;
    --school-muted: #596075;
    --school-line: #edd8e0;
    --school-wash: #fff2f6;
    --school-accent: #ad3d5b;
    --school-focus: #ad3d5b;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-care:not(.ss-open) > #ss_menu_care { display: none !important; }
#body[data-ss-section="care"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="care"] .ss-f13-kicker,
#body[data-ss-section="care"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="care"] .ss-f13 h2,
#body[data-ss-section="care"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="care"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="care"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="care"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="care"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="care"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="care"] .list-wrapper,
#body[data-ss-section="care"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="care"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="care"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="care"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="care"] .widefat tr:focus-within td { background: #fff2f6 !important; }
#body[data-ss-section="care"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="care"] .postbox > thead h3,
#body[data-ss-section="care"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="care"] fieldset { min-width: 0; }
#body[data-ss-section="care"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="care"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="care"] select,
#body[data-ss-section="care"] textarea,
.ss-school-tool[data-ss-tool-section="care"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool[data-ss-tool-section="care"] select, .ss-school-tool[data-ss-tool-section="care"] textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="care"] input::placeholder,
#body[data-ss-section="care"] textarea::placeholder,
.ss-school-tool[data-ss-tool-section="care"] input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="care"] input[type="submit"],
.ss-school-tool[data-ss-tool-section="care"] button[type="submit"], .ss-school-tool[data-ss-tool-section="care"] input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="care"] input[type="submit"]:hover,
.ss-school-tool[data-ss-tool-section="care"] button[type="submit"]:hover { background: #ad3d5b !important; }
#body[data-ss-section="care"] :is(input,button,select,textarea):disabled,
.ss-school-tool[data-ss-tool-section="care"] :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="care"] :focus-visible,
.ss-school-tool[data-ss-tool-section="care"] :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="care"] input[type="checkbox"],
#body[data-ss-section="care"] input[type="radio"],
.ss-school-tool[data-ss-tool-section="care"] input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="care"] a { text-underline-offset: 3px; }
#body[data-ss-section="care"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="care"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool[data-ss-tool-section="care"] { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool[data-ss-tool-section="care"] :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="care"] h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="care"] :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool[data-ss-tool-section="care"] table { font-variant-numeric: tabular-nums; }
.ss-school-tool[data-ss-tool-section="care"] :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="care"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="care"] { padding-bottom: 96px; }
    #body[data-ss-section="care"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="care"] .list-nav td { padding: 8px; }
    #body[data-ss-section="care"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="care"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="care"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="care"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool[data-ss-tool-section="care"] { padding: 12px; }
    .ss-school-tool[data-ss-tool-section="care"] :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="care"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="care"] { padding-bottom: 0; }
}

#body[data-ss-section="care"] { --ss-page-accent: #ad3d5b; }
#body[data-ss-section="care"] .widefat th { background: var(--school-wash) !important; color: var(--school-ink) !important; }
#body[data-ss-section="care"] .list-wrapper { position: relative; contain: inline-size; box-sizing: border-box; width: 100%; }





/* ===== assets/themes/SchoolSafeCodex/administration-impeccable.css ===== */
/* Branch presentation; native workflows and permissions are unchanged. */
#body[data-ss-section="administration"], .ss-school-tool[data-ss-tool-section="administration"] {
    --school-ink: #292d3d;
    --school-muted: #596075;
    --school-line: #dce2e7;
    --school-wash: #f3f5f7;
    --school-accent: #526170;
    --school-focus: #526170;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-administration:not(.ss-open) > #ss_menu_administration { display: none !important; }
#body[data-ss-section="administration"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="administration"] .ss-f13-kicker,
#body[data-ss-section="administration"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="administration"] .ss-f13 h2,
#body[data-ss-section="administration"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="administration"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="administration"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="administration"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="administration"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="administration"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="administration"] .list-wrapper,
#body[data-ss-section="administration"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="administration"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="administration"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="administration"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="administration"] .widefat tr:focus-within td { background: #f3f5f7 !important; }
#body[data-ss-section="administration"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="administration"] .postbox > thead h3,
#body[data-ss-section="administration"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="administration"] fieldset { min-width: 0; }
#body[data-ss-section="administration"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="administration"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="administration"] select,
#body[data-ss-section="administration"] textarea,
.ss-school-tool[data-ss-tool-section="administration"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool[data-ss-tool-section="administration"] select, .ss-school-tool[data-ss-tool-section="administration"] textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="administration"] input::placeholder,
#body[data-ss-section="administration"] textarea::placeholder,
.ss-school-tool[data-ss-tool-section="administration"] input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="administration"] input[type="submit"],
.ss-school-tool[data-ss-tool-section="administration"] button[type="submit"], .ss-school-tool[data-ss-tool-section="administration"] input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="administration"] input[type="submit"]:hover,
.ss-school-tool[data-ss-tool-section="administration"] button[type="submit"]:hover { background: #526170 !important; }
#body[data-ss-section="administration"] :is(input,button,select,textarea):disabled,
.ss-school-tool[data-ss-tool-section="administration"] :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="administration"] :focus-visible,
.ss-school-tool[data-ss-tool-section="administration"] :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="administration"] input[type="checkbox"],
#body[data-ss-section="administration"] input[type="radio"],
.ss-school-tool[data-ss-tool-section="administration"] input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="administration"] a { text-underline-offset: 3px; }
#body[data-ss-section="administration"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="administration"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool[data-ss-tool-section="administration"] { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool[data-ss-tool-section="administration"] :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="administration"] h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="administration"] :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool[data-ss-tool-section="administration"] table { font-variant-numeric: tabular-nums; }
.ss-school-tool[data-ss-tool-section="administration"] :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="administration"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="administration"] { padding-bottom: 96px; }
    #body[data-ss-section="administration"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="administration"] .list-nav td { padding: 8px; }
    #body[data-ss-section="administration"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="administration"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="administration"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="administration"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool[data-ss-tool-section="administration"] { padding: 12px; }
    .ss-school-tool[data-ss-tool-section="administration"] :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="administration"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="administration"] { padding-bottom: 0; }
}

#body[data-ss-section="administration"] { --ss-page-accent: #526170; }
#body[data-ss-section="administration"] .widefat th { background: var(--school-wash) !important; color: var(--school-ink) !important; }
#body[data-ss-section="administration"] .list-wrapper { position: relative; contain: inline-size; box-sizing: border-box; width: 100%; }





/* ===== assets/themes/SchoolSafeCodex/reports-impeccable.css ===== */
/* Branch presentation; native workflows and permissions are unchanged. */
#body[data-ss-section="reports"], .ss-school-tool[data-ss-tool-section="reports"] {
    --school-ink: #292d3d;
    --school-muted: #596075;
    --school-line: #e0e5cd;
    --school-wash: #f6f8ed;
    --school-accent: #5e6c1b;
    --school-focus: #5e6c1b;
    font-family: system-ui, Arial, sans-serif;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
body.modules #menu .adminmenu .ss-branch-reports:not(.ss-open) > #ss_menu_reports { display: none !important; }
#body[data-ss-section="reports"] .ss-f13 { margin: 0 0 20px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--school-line); background: transparent; box-shadow: none; animation: none; }
#body[data-ss-section="reports"] .ss-f13-kicker,
#body[data-ss-section="reports"] .ss-f13 > p:not(.ss-f13-kicker) { display: none; }
#body[data-ss-section="reports"] .ss-f13 h2,
#body[data-ss-section="reports"] .header1 h2 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--school-ink); }
#body[data-ss-section="reports"] .header1:has(+ .ss-f13) { display: none; }
#body[data-ss-section="reports"] .header1 { padding: 12px 0 16px; border-bottom: 1px solid var(--school-line); }
#body[data-ss-section="reports"] .list-wrapper { border-top: 1px solid var(--school-line); border-radius: 0; }
#body[data-ss-section="reports"] .list-nav { border: 0; background: var(--school-wash); }
#body[data-ss-section="reports"] .list-nav td { padding: 10px 12px; }
#body[data-ss-section="reports"] .list-wrapper,
#body[data-ss-section="reports"] .ss-school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
#body[data-ss-section="reports"] .widefat { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
#body[data-ss-section="reports"] .widefat th { padding: 12px 10px; background: var(--school-wash); color: var(--school-muted); font-weight: 600; font-size: 13px; text-transform: none; line-height: 1.4; }
#body[data-ss-section="reports"] .widefat td { padding: 10px; border: 0; border-bottom: 1px solid var(--school-line); vertical-align: middle; }
#body[data-ss-section="reports"] .widefat tr:focus-within td { background: #f6f8ed !important; }
#body[data-ss-section="reports"] .postbox-wrapper { margin: 20px 0; }
#body[data-ss-section="reports"] .postbox > thead h3,
#body[data-ss-section="reports"] legend { font-size: 16px; font-weight: 650; color: var(--school-ink); }
#body[data-ss-section="reports"] fieldset { min-width: 0; }
#body[data-ss-section="reports"] .legend-gray { color: var(--school-muted); font-size: 13px; line-height: 1.4; }
#body[data-ss-section="reports"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),
#body[data-ss-section="reports"] select,
#body[data-ss-section="reports"] textarea,
.ss-school-tool[data-ss-tool-section="reports"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ss-school-tool[data-ss-tool-section="reports"] select, .ss-school-tool[data-ss-tool-section="reports"] textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 9px 12px;
    background: #fff; color: var(--school-ink); border: 1px solid #a9beb5; border-radius: 5px;
    font-family: inherit; font-size: 14px; line-height: 1.5;
}
#body[data-ss-section="reports"] input::placeholder,
#body[data-ss-section="reports"] textarea::placeholder,
.ss-school-tool[data-ss-tool-section="reports"] input::placeholder { color: var(--school-muted); opacity: 1; }
#body[data-ss-section="reports"] input[type="submit"],
.ss-school-tool[data-ss-tool-section="reports"] button[type="submit"], .ss-school-tool[data-ss-tool-section="reports"] input[type="submit"] {
    background: var(--school-accent) !important; color: #fff !important; border-color: var(--school-accent) !important;
    font-weight: 600; min-height: 44px;
}
#body[data-ss-section="reports"] input[type="submit"]:hover,
.ss-school-tool[data-ss-tool-section="reports"] button[type="submit"]:hover { background: #5e6c1b !important; }
#body[data-ss-section="reports"] :is(input,button,select,textarea):disabled,
.ss-school-tool[data-ss-tool-section="reports"] :is(input,button,select,textarea):disabled { opacity: .65; cursor: not-allowed; }
#body[data-ss-section="reports"] :focus-visible,
.ss-school-tool[data-ss-tool-section="reports"] :focus-visible { outline: 3px solid var(--school-focus); outline-offset: 3px; }
#body[data-ss-section="reports"] input[type="checkbox"],
#body[data-ss-section="reports"] input[type="radio"],
.ss-school-tool[data-ss-tool-section="reports"] input[type="checkbox"] { accent-color: var(--school-accent); }
#body[data-ss-section="reports"] a { text-underline-offset: 3px; }
#body[data-ss-section="reports"] .list-wrapper a img.button { width: 20px; height: 20px; object-fit: contain; }
#body[data-ss-section="reports"] .schoolsafe-native-tool { background: #fff; border-radius: 0; }
.ss-school-tool[data-ss-tool-section="reports"] { margin: 0; padding: 16px; background: #fff; }
.ss-school-tool[data-ss-tool-section="reports"] :is(h1,h2) { font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="reports"] h3 { font-size: 16px; letter-spacing: 0; }
.ss-school-tool[data-ss-tool-section="reports"] :is(button,a.button) { min-height: 44px; border-radius: 5px; font-family: inherit; }
.ss-school-tool[data-ss-tool-section="reports"] table { font-variant-numeric: tabular-nums; }
.ss-school-tool[data-ss-tool-section="reports"] :is(label,legend) { color: var(--school-ink); }
@media (max-width: 700px) {
    body.modules:has(#body[data-ss-section="reports"]) #menu.hide:not(.slide) { display: none !important; }
    #body[data-ss-section="reports"] { padding-bottom: 96px; }
    #body[data-ss-section="reports"] :is(.header1 h2,.ss-f13 h2) { font-size: 20px; }
    #body[data-ss-section="reports"] .list-nav td { padding: 8px; }
    #body[data-ss-section="reports"] .widefat :is(td,th) { padding: 8px; }
    #body[data-ss-section="reports"] .widefat :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-width: 88px; }
    #body[data-ss-section="reports"] #general_table > tbody > tr { display: block; }
    #body[data-ss-section="reports"] #general_table > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; padding: 6px 0; }
    .ss-school-tool[data-ss-tool-section="reports"] { padding: 12px; }
    .ss-school-tool[data-ss-tool-section="reports"] :is(h1,h2) { font-size: 20px; overflow-wrap: anywhere; }
}
@media print {
    #body[data-ss-section="reports"] :is(.list-wrapper,.ss-school-table-scroll) { overflow: visible; }
    #body[data-ss-section="reports"] { padding-bottom: 0; }
}

#body[data-ss-section="reports"] { --ss-page-accent: #5e6c1b; }
#body[data-ss-section="reports"] .widefat th { background: var(--school-wash) !important; color: var(--school-ink) !important; }
#body[data-ss-section="reports"] .list-wrapper { position: relative; contain: inline-size; box-sizing: border-box; width: 100%; }

#body[data-ss-section="reports"] :is(form,fieldset,.postbox-wrapper) { max-width: 100%; min-width: 0; }
#body[data-ss-page="Reports/Calculations"] .reports-calculation-item {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; box-sizing: border-box; max-width: 100%;
    padding: 8px 10px; border: 1px solid var(--school-line);
    border-radius: 5px; background: var(--school-wash); color: var(--school-accent);
    font-size: 14px; line-height: 1.4; text-decoration: none;
}
#body[data-ss-page="Reports/Calculations"] .reports-calculation-item:hover {
    background: #e0e5cd; color: var(--school-ink);
}
#body[data-ss-page="Reports/Calculations"] :is(.reports-calculation-backspace,.reports-calculation-runquery,.reports-calculation-savescreen) {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; margin: 4px;
    border: 1px solid var(--school-line); border-radius: 5px; background: var(--school-wash);
}
#body[data-ss-section="reports"] :is(input,select,textarea,button,a.button) { letter-spacing: 0; }
#body[data-ss-section="reports"] :is(button,a.button,input[type="submit"]) {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 9px 14px; max-width: 100%;
    border-radius: 5px; white-space: normal; line-height: 1.35;
    transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}
#body[data-ss-section="reports"] :is(button,a.button,input[type="submit"]):hover:not(:disabled) {
    box-shadow: 0 3px 9px #292d3d18;
}
#body[data-ss-section="reports"] :is(label,legend) { overflow-wrap: break-word; }
#body[data-ss-section="reports"] .widefat :is(th,td) { overflow-wrap: break-word; }
#body[data-ss-section="reports"] .widefat tbody tr:hover td { background: var(--school-wash); }
#body[data-ss-section="reports"] input[type="checkbox"],
#body[data-ss-section="reports"] input[type="radio"] {
    width: 18px; height: 18px; margin: 4px 8px 4px 0; vertical-align: middle;
}
#body[data-ss-section="reports"] :is(input,textarea)::selection { background: #e0e5cd; color: var(--school-ink); }
@media (max-width: 700px) {
    #body[data-ss-section="reports"] .postbox-wrapper { margin: 12px 0; }
    #body[data-ss-section="reports"] form#search select {
        min-width: 0 !important; max-width: min(100%, 240px) !important;
    }
    #body[data-ss-section="reports"] form#search td:has(select[name*="discipline_entry"]) {
        white-space: normal !important;
    }
    #body[data-ss-section="reports"] form#search select[name*="discipline_entry"] {
        width: auto !important; margin: 3px 2px;
    }
    #body[data-ss-section="reports"] :is(button,a.button,input[type="submit"]) { margin: 3px; }
    #body[data-ss-section="reports"] .widefat td label { line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
    #body[data-ss-section="reports"] :is(button,a.button,input[type="submit"]) { transition: none; }
}





/* ===== assets/themes/SchoolSafeCodex/branch-form-layout.css ===== */
/* Reflow simple native forms, never grade matrices or log tables. */
#body[data-ss-section]:not([data-ss-section=""]):not([data-ss-section="pilotage"]) :is(.header2,.tabs) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#body[data-ss-section]:not([data-ss-section=""]):not([data-ss-section="pilotage"]) :is(input,select,textarea) { caret-color: var(--school-accent); }
#body[data-ss-section]:not([data-ss-section=""]):not([data-ss-section="pilotage"]) :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--school-focus); outline-offset: 2px; }
#body[data-ss-section]:not([data-ss-section=""]):not([data-ss-section="pilotage"]) .ss-page-explanation { max-width: 75ch; margin: 0 0 20px; padding: 12px 16px; line-height: 1.6; color: var(--school-ink); background: var(--school-wash); border: 1px solid var(--school-line); border-radius: 5px; }
.ss-school-tool:is([data-ss-tool-section="security"],[data-ss-tool-section="finance"]) > header { background: var(--school-accent) !important; color: #fff; padding: 8px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ss-school-tool:is([data-ss-tool-section="security"],[data-ss-tool-section="finance"]) > header :is(h1,h2) { font-size: 18px; margin: 0; color: #fff; }
.ss-school-tool:is([data-ss-tool-section="security"],[data-ss-tool-section="finance"]) > header a { color: #fff; }
.ss-school-tool[data-ss-tool-section="finance"] #fee-model-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: end; }
.ss-school-tool[data-ss-tool-section="finance"] #fee-model-form > label { display: grid; gap: 8px; min-width: 0; }
.ss-school-tool[data-ss-tool-section="finance"] #fee-model-form input { width: 100%; }
.ss-school-tool[data-ss-tool-section="finance"] #fee-model-form button { justify-self: start; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]), .ss-school-tool:is([data-ss-tool-section="school"],[data-ss-tool-section="pedagogy"],[data-ss-tool-section="security"],[data-ss-tool-section="finance"]) {
    font-family: system-ui, Arial, sans-serif;
}
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) fieldset,
.ss-school-tool:is([data-ss-tool-section="school"],[data-ss-tool-section="pedagogy"],[data-ss-tool-section="security"],[data-ss-tool-section="finance"]) fieldset {
    margin: 20px 0; padding: 16px; border: 1px solid var(--school-line); border-radius: 5px; min-width: 0;
}
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) legend { padding: 0 8px; color: var(--school-accent); }
.ss-form-grid { display: block; width: 100%; box-sizing: border-box; }
.ss-form-grid > tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; }
.ss-form-grid > tbody > tr { display: block !important; min-width: 0; margin: 0 !important; }
.ss-form-grid > tbody > tr > td { display: block !important; width: 100% !important; padding: 0 !important; box-sizing: border-box; }
.ss-form-grid .ss-form-pair > td:first-child { margin-bottom: 6px; font-weight: 600; }
.ss-form-grid .ss-form-span { grid-column: 1 / -1; }
.ss-form-grid :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),select,textarea) { max-width: 100%; box-sizing: border-box; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .header2 { padding: 12px 0; vertical-align: middle; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .header2 :is(input[type="submit"],button,select) { margin: 4px 8px 4px 0; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .center:has(> input[type="submit"]) { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin: 20px 0; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .widefat { font-variant-numeric: tabular-nums; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .widefat :is(td,th) { line-height: 1.5; }
#body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .list-nav td { padding: 12px; }
#body[data-ss-section="security"] .list-wrapper { position: relative; contain: inline-size; box-sizing: border-box; width: 100%; }
#body[data-ss-section="security"] .list-outer { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
    .ss-form-grid > tbody { grid-template-columns: minmax(0,1fr); gap: 16px; }
}
@media (max-width: 700px) {
    .ss-school-tool[data-ss-tool-section="finance"] #fee-model-form { grid-template-columns: minmax(0,1fr); }
    #body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) fieldset { padding: 12px; }
    #body:is([data-ss-section="school"],[data-ss-section="pedagogy"],[data-ss-section="security"],[data-ss-section="finance"],[data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .header2 { text-align: left; }
}
@media print { .ss-form-grid, .ss-form-grid > tbody { display: table; } }

#body[data-ss-section="school"] .ss-school-details { display: block; width: 100%; }
#body[data-ss-section="school"] .ss-school-details > tbody { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 24px; }
#body[data-ss-section="school"] .ss-school-details > tbody > tr { display: block; min-width: 0; }
#body[data-ss-section="school"] .ss-school-details > tbody > tr > td { display: block; width: 100%; padding: 0; box-sizing: border-box; }
#body[data-ss-section="school"] .ss-school-details .ss-form-span { grid-column: 1 / -1; }
#body[data-ss-section="school"] .ss-school-details > tbody > .ss-school-location-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
#body[data-ss-section="school"] :is(.general-info,.create-account) > tbody > tr > td { padding: 12px; }
#body[data-ss-section="school"] .general-info .legend-gray { display: block; margin: 6px 0 12px; }
#body[data-ss-section="school"] :is(table.general-info,table.create-account) { background: #fff !important; border: 0 !important; border-top: 1px solid var(--school-line) !important; border-radius: 0 !important; box-shadow: none !important; }
#body[data-ss-section="school"] h3.ss-f14-section { color: var(--school-accent); font-size: 16px; }
@media (max-width: 900px) {
    #body[data-ss-section="school"] .ss-school-details > tbody { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
    #body[data-ss-section="school"] .ss-school-details > tbody > .ss-school-location-row { grid-template-columns: minmax(0,1fr); }
    #body[data-ss-section="school"] :is(.general-info,.create-account) > tbody > tr,
    #body[data-ss-section="school"] :is(.general-info,.create-account) > tbody > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
}
#body[data-ss-section="people"] :is(table.general-info,table.create-account) { background: #fff !important; border: 0 !important; border-top: 1px solid var(--school-line) !important; border-radius: 0 !important; box-shadow: none !important; }
#body[data-ss-section="people"] :is(.general-info,.create-account) > tbody > tr > td { padding: 12px; }
#body:is([data-ss-section="accounting"],[data-ss-section="people"],[data-ss-section="inventory"],[data-ss-section="communication"],[data-ss-section="care"],[data-ss-section="administration"],[data-ss-section="reports"]) .widefat th { background: var(--school-wash) !important; color: var(--school-ink) !important; border-color: var(--school-line) !important; }
@media (max-width: 700px) {
    #body[data-ss-section="people"] :is(.general-info,.create-account) > tbody > tr,
    #body[data-ss-section="people"] :is(.general-info,.create-account) > tbody > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
}
@media print {
    #body[data-ss-section="school"] .ss-school-details, #body[data-ss-section="school"] .ss-school-details > tbody { display: table; }
}
.ss-school-tool[data-ss-tool-section="school"] #management-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 900px;
  margin-inline: auto;
}
.ss-school-tool[data-ss-tool-section="school"]:has(#management-form) > header {
  background: #08766b;
  padding: 12px 20px;
}
.ss-school-tool[data-ss-tool-section="school"] #management-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ss-school-tool[data-ss-tool-section="school"] #management-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.ss-school-tool[data-ss-tool-section="school"] #management-form input,
.ss-school-tool[data-ss-tool-section="school"] #management-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ss-school-tool[data-ss-tool-section="school"] #management-submit {
  justify-self: end;
  min-height: 44px;
  margin: 0;
}
@media (max-width: 700px) {
  .ss-school-tool[data-ss-tool-section="school"] #management-fields { grid-template-columns: minmax(0, 1fr); }
}



/* ===== assets/themes/SchoolSafeCodex/branch-details.css ===== */
/* Native secondary navigation; links, fields and handlers remain intact. */
#body[data-ss-section]:not([data-ss-section=""]) .h3multi {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px;
    margin: 16px 0; padding: 0; max-width: 100%;
    border-bottom: 1px solid var(--school-line);
}
#body[data-ss-section]:not([data-ss-section=""]) .h3multi h3 {
    display: flex; align-items: center; margin: 0; padding: 0;
    min-width: 0; max-width: 100%; font-size: 14px; line-height: 1.4;
    border: 0 !important; border-top: 2px solid transparent !important;
    background: transparent; box-shadow: none;
}
#body[data-ss-section]:not([data-ss-section=""]) .h3multi h3 > a {
    display: flex; align-items: center; box-sizing: border-box;
    min-height: 44px; padding: 10px 12px; max-width: 100%;
    white-space: normal; overflow-wrap: anywhere;
    color: var(--school-muted); text-decoration: none;
}
#body[data-ss-section]:not([data-ss-section=""]) .h3multi .h3selected {
    border-top-color: var(--school-accent) !important;
    background: var(--school-wash); color: var(--school-accent);
}
#body[data-ss-section]:not([data-ss-section=""]) .h3multi .h3selected > a {
    color: var(--school-accent); font-weight: 650;
    border-bottom: 0 !important; background: transparent;
}
#body[data-ss-section]:not([data-ss-section=""]) .h3multi a:hover {
    background: var(--school-wash); color: var(--school-accent);
}
#body[data-ss-section]:not([data-ss-section=""]) :is(input,textarea) {
    caret-color: var(--school-accent);
}
#body[data-ss-section]:not([data-ss-section=""]) ::selection {
    background: var(--school-wash); color: var(--school-ink);
}
#body[data-ss-section]:not([data-ss-section=""]) .list-wrapper {
    scrollbar-width: thin; scrollbar-color: var(--school-accent) var(--school-wash);
}
@media (max-width: 700px) {
    #body[data-ss-section]:not([data-ss-section=""]) .h3multi { gap: 4px; }
    #body[data-ss-section]:not([data-ss-section=""]) .h3multi h3 > a { padding: 8px 10px; }
}
@media print {
    #body[data-ss-section]:not([data-ss-section=""]) .h3multi { display: block; }
}



/* ===== assets/themes/SchoolSafeCodex/advanced-search.css ===== */
#body[data-ss-section] .ss-advanced-search {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  box-sizing: border-box;
}
#body .ss-search-wrapper { width: 100% !important; max-width: 1040px !important; margin-inline: auto; }
#body .ss-search-shell { width: 100% !important; max-width: 1040px; margin-inline: auto; }
#body .ss-advanced-search > table { width: 100%; }
#body .ss-search-criteria .ss-search-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#body .ss-advanced-search details {
  margin: 8px 0;
  border-bottom: 1px solid #d8e3df;
}
#body .ss-advanced-search summary {
  padding: 14px 16px;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  color: var(--school-accent, #08766b);
  background: var(--school-wash, #eef8f4);
  font-weight: 600;
}
#body .ss-advanced-search summary a { color: inherit !important; }
#body .ss-page-explanation,
#body .ss-advanced-search .ss-widget-explanation {
  margin: 0;
  padding: 12px 16px;
  color: #40515b;
  font-size: 14px;
  line-height: 1.6;
  background: var(--school-wash, #f6faf8);
  border-left: 3px solid var(--school-accent, #08766b);
}
#body .ss-page-explanation { margin: 0 0 18px; max-width: 1040px; box-sizing: border-box; }
#body .ss-help-settings { width: 100% !important; max-width: 760px !important; }
#body .ss-help-settings .popTable { padding: 20px !important; }
#body .ss-help-settings .popTable > table { width: 100%; }
#body .ss-help-settings .popTable > table td { padding: 8px; vertical-align: middle; }
#body .ss-help-settings input[type="number"] { width: 96px; max-width: 100%; }
@media (max-width: 700px) {
  #body .ss-help-settings .popTable { padding: 12px !important; }
  #body .ss-help-settings .popTable > table tr { display: flex; flex-wrap: wrap; align-items: center; }
}
#body .ss-advanced-search summary:focus-visible {
  outline: 2px solid var(--school-accent, #08766b);
  outline-offset: 2px;
}
#body .ss-advanced-search .ss-search-criteria {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
  border: 0;
}
#body .ss-search-criteria > tbody > tr > td {
  padding: 14px 16px !important;
  vertical-align: top;
  text-align: left !important;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #e4ebe8;
}
#body .ss-search-criteria > tbody > tr > td:first-child { width: 42%; }
#body .ss-search-criteria label { display: inline-block; margin: 4px 8px 4px 0; }
#body .ss-search-criteria input[type="number"] { width: 88px; max-width: 100%; }
#body .ss-search-criteria select,
#body .ss-search-criteria input:not([type="checkbox"]):not([type="radio"]),
#body .ss-search-criteria .select2-container { max-width: 100%; box-sizing: border-box; }
#body .ss-search-criteria .nobr { white-space: normal; }
#body .ss-search-criteria .nobr select { margin: 3px 2px; }
#body .ss-search-criteria table { max-width: 100%; }
@media (max-width: 700px) {
  #body .ss-search-criteria > tbody > tr { display: block; border-bottom: 1px solid #e4ebe8; }
  #body .ss-search-criteria > tbody > tr > td {
    display: block;
    width: auto !important;
    padding: 10px 12px !important;
    border: 0;
  }
  #body .ss-search-criteria > tbody > tr > td + td { padding-top: 0 !important; }
}



/* ===== assets/themes/SchoolSafeCodex/users-impeccable.css ===== */
/* Users retain native layouts and permissions, with their own identity. */
body.modules #menu .menu-module[data-ss-branch="users"] {
    --ss-branch: #ffc7b5;
    --ss-branch-ink: #a62f20;
}
.ss-users-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 20px; flex: 0 0 28px; }
body.modules #menu .menu-module[data-ss-branch="users"] .ss-context-heading strong::before { content: none; display: none; }
#body[data-ss-users] {
    --school-accent: #a62f20; --school-focus: #a62f20;
    --school-ink: #49231f; --school-muted: #714c45;
    --school-line: #eccbc1; --school-wash: #fff3ee;
    --ss-page-accent: #a62f20;
}
#body[data-ss-users] :is(input[type="submit"],button[type="submit"]) {
    background: #a62f20 !important; border-color: #a62f20 !important; color: #fff !important;
    min-height: 44px; padding: 9px 16px; border-radius: 5px;
}
#body[data-ss-users] :is(input[type="submit"],button[type="submit"]):hover { background: #842419 !important; }
#body[data-ss-users] :is(input,select,textarea):focus-visible { outline: 2px solid #a62f20; outline-offset: 2px; }
#body[data-ss-users] .widefat th { background: #fff3ee !important; color: #49231f !important; }
#body[data-ss-users] :is(.header2,.tabs) { gap: 12px; }
#body[data-ss-users] ::selection { background: #ffc7b5; color: #49231f; }
#body[data-ss-users] .ss-page-heading { border-color: #a62f20; background: #fff3ee; }
#body[data-ss-users] .ss-page-heading h2 { color: #a62f20; }
#body[data-ss-users] #general_table { max-width: 1040px; margin: 20px auto; }
#body[data-ss-users] :is(table.general-info,table.create-account) { margin-block: 16px; }
#body[data-ss-users] .legend-gray { display: block; margin: 6px 0 10px; color: #714c45; }
#body[data-ss-users] table.general-info > tbody > tr:first-child,
#body[data-ss-users] table.general-info > tbody > tr:first-child > td { display: block; width: 100%; box-sizing: border-box; }
#body[data-ss-users] table.general-info > tbody > tr:first-child > td:first-child { padding-bottom: 4px; }
#body[data-ss-users] table.general-info details { margin: 0; }
#body[data-ss-users] table.general-info summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #a62f20; }
#body[data-ss-users] table.general-info summary::before { content: '+'; margin-right: 8px; }
#body[data-ss-users] table.general-info details[open] > summary::before { content: '-'; }



/* ===== assets/themes/SchoolSafeCodex/secondary-surfaces.css ===== */
/* Final shared tokens also apply to embedded native tools. */
body.modules #menu [data-ss-branch="finance"] { --ss-branch: #f2cd7b; --ss-branch-ink: #805700; }
body.modules #menu [data-ss-branch="people"] { --ss-branch: #efa9e5; --ss-branch-ink: #920078; }
body.modules #menu [data-ss-branch="care"] { --ss-branch: #ffffff; --ss-branch-ink: #202124; }
#body[data-ss-section="finance"], .ss-school-tool[data-ss-tool-section="finance"] {
    --school-accent: #805700; --school-focus: #805700; --ss-page-accent: #805700;
    --school-ink: #453510; --school-muted: #695421; --school-line: #e2d5ae; --school-wash: #fff8e7;
}
#body[data-ss-section="people"]:not([data-ss-users]), .ss-school-tool[data-ss-tool-section="people"] {
    --school-accent: #920078; --school-focus: #920078; --ss-page-accent: #920078;
    --school-ink: #421b3c; --school-muted: #704264; --school-line: #e4c8de; --school-wash: #fff0fc;
}
#body[data-ss-section="care"], .ss-school-tool[data-ss-tool-section="care"] {
    --school-accent: #202124; --school-focus: #202124; --ss-page-accent: #202124;
    --school-ink: #202124; --school-muted: #535459; --school-line: #d6d6da; --school-wash: #f5f5f6;
}
#body:is([data-ss-section="finance"],[data-ss-section="people"],[data-ss-section="care"]) :is(input[type="submit"],button[type="submit"]) { background: var(--school-accent) !important; border-color: var(--school-accent) !important; color: #fff !important; }
#body:is([data-ss-section="finance"],[data-ss-section="people"],[data-ss-section="care"]) input[type="submit"]:hover { background: var(--school-accent) !important; filter: brightness(.85); }
.ss-secondary-surface { font-family: system-ui, Arial, sans-serif; color: var(--school-ink); padding: 16px; box-sizing: border-box; }
.ss-secondary-surface :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea),
.ss-school-tool :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { box-sizing: border-box; max-width: 100%; min-height: 44px; border-radius: 5px; }
.ss-secondary-surface :is(button,input[type="submit"],a.button) { min-height: 44px; padding: 9px 14px; border-radius: 5px; }
.ss-secondary-surface :is(button[type="submit"],input[type="submit"]) { color: #fff; background: var(--school-accent); border: 1px solid var(--school-accent); }
.ss-secondary-surface :is(input,select,textarea,button,a):focus-visible { outline: 2px solid var(--school-focus); outline-offset: 2px; }
.ss-secondary-surface .header2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block: 12px; }
.ss-secondary-surface .widefat { width: 100%; font-variant-numeric: tabular-nums; }
.ss-secondary-surface .widefat :is(th,td) { padding: 10px 12px; }
.ss-secondary-surface .widefat th { background: var(--school-wash); color: var(--school-ink); }
.ss-secondary-surface .list-wrapper { max-width: 100%; overflow-x: auto; }
.ss-secondary-surface fieldset { margin-block: 16px; padding: 16px; border: 1px solid var(--school-line); min-width: 0; }
.ss-secondary-surface legend { color: var(--school-accent); }
.ss-secondary-surface :is(h1,h2,h3,a) { color: var(--school-accent) !important; }
.ss-secondary-surface :is(h1,h2) { font-size: 20px; line-height: 1.4; margin: 0 0 16px; }
.ss-secondary-surface .ss-school-table-scroll { max-width: 100%; overflow-x: auto; }
#colorbox:has(.ss-secondary-surface) { max-width: calc(100vw - 24px); }
#colorbox:has(.ss-secondary-surface) :is(#cboxWrapper,#cboxContent) { max-width: 100%; }
#colorbox:has(.ss-secondary-surface) :is(#cboxTopCenter,#cboxBottomCenter) { max-width: 100%; }
#colorbox .ss-secondary-surface { max-width: calc(100vw - 56px); max-height: 80vh; overflow: auto; }
@media (max-width: 700px) {
    .ss-secondary-surface { padding: 12px; }
    .ss-secondary-surface .header2 { align-items: stretch; }
    .ss-secondary-surface .widefat :is(th,td) { padding: 8px; }
}



/* ===== assets/themes/SchoolSafeCodex/initial-render.css ===== */
/* Avoid painting the native layout before the local theme is ready. */
body.modules #menu:has(.adminmenu:not([data-ss-organized="1"])),
body.modules #body:not([data-ss-page]) {
    visibility: hidden;
    animation: ss-native-fallback 0s 6s forwards;
}
/* Keep native controls available if script initialization fails. */
@keyframes ss-native-fallback { to { visibility: visible; } }
body.modules #menu:has(.adminmenu[data-ss-organized="1"]),
body.modules #body[data-ss-page] { visibility: visible; animation: none; }



/* ===== assets/themes/SchoolSafeCodex/menu-final-details.css ===== */
/* Hide the selected-staff shortcut, without changing the native selection. */
body.modules #menu-top .current-person.staff { display:none!important; }
/* Native hover/focus rules must not reopen a panel marked closed. */
@media screen {
  body.modules #menu .adminmenu[data-ss-organized="1"] > .menu-module:not(.ss-open) > .wp-submenu {
    display:none!important; visibility:hidden!important; pointer-events:none!important;
  }
  body.modules #menu .adminmenu[data-ss-organized="1"] > .menu-module.ss-open > .wp-submenu {
    display:block!important; visibility:visible!important; pointer-events:auto!important;
  }
  body.modules #menu .wp-submenu { overscroll-behavior:contain; }
}
@media screen {
  body.modules #menu { background:transparent!important; }
  body.modules #menu-top,
  body.modules #menu .adminmenu { background:var(--ss-sidebar, #123488); }
  body.modules #menu .adminmenu { height:auto!important; min-height:0!important; padding-bottom:0!important; }
  body.modules #menu-top .ss-menu-emblem { width:58px!important; height:58px!important; flex:0 0 58px; }
  body.modules #menu-top .ss-menu-animated-logo { width:58px!important; height:58px!important; max-width:100%; }
  body.modules #menu-top .ss-brand-name { font-size:22px!important; }
  body.modules .ss-page-back { display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
  body.modules:has(#menu .menu-module.ss-open) #menu-top .ss-menu-emblem { width:44px!important; height:44px!important; flex-basis:44px; }
  body.modules:has(#menu .menu-module.ss-open) #menu-top .ss-menu-animated-logo { width:44px!important; height:44px!important; }
}



/* ===== assets/themes/SchoolSafeCodex/search-layout.css ===== */
/* Shared native searches: field layout must not reflow nested option groups. */
#body form#search #general_table { display: table !important; width: 100%; table-layout: fixed; border-collapse: collapse; }
#body form#search #general_table > tbody { display: table-row-group !important; }
#body form#search #general_table > tbody > tr { display: table-row !important; }
#body form#search #general_table > tbody > tr > td { display: table-cell !important; width: auto !important; padding: 8px !important; vertical-align: middle; }
#body form#search #general_table > tbody > tr > td:first-child { width: 30% !important; }
#body form#search #general_table > tbody > tr > td > label:not(:has(input)) { width: auto; }
#body form#search :is(input[type="checkbox"],input[type="radio"]) {
    width: 18px !important; min-width: 18px !important; max-width: 18px !important;
    height: 18px !important; min-height: 18px !important; max-height: 18px !important;
    padding: 0 !important; margin: 0 !important; flex: 0 0 18px;
    vertical-align: middle; appearance: auto; accent-color: var(--school-accent,#1459d9);
}
#body form#search label:has(> input[type="checkbox"]),
#body form#search label:has(> input[type="radio"]) {
    display: inline-flex !important; align-items: center; gap: 6px;
    width: auto !important; min-width: 0; min-height: 36px;
    white-space: normal; overflow-wrap: normal; margin: 4px 12px 4px 0;
}
#body form#search #general_table table:has(input[type="checkbox"]),
#body form#search #general_table table:has(input[type="radio"]) { display: block; width: 100%; }
#body form#search #general_table table:has(input[type="checkbox"]) > tbody,
#body form#search #general_table table:has(input[type="radio"]) > tbody { display: flex; flex-wrap: wrap; gap: 4px 12px; }
#body form#search #general_table table:has(input[type="checkbox"]) > tbody > tr,
#body form#search #general_table table:has(input[type="radio"]) > tbody > tr { display: contents; }
#body form#search #general_table table:has(input[type="checkbox"]) td,
#body form#search #general_table table:has(input[type="radio"]) td { display: block; width: auto !important; min-width: 64px; padding: 0 !important; }
#body form#search #general_table :is([hidden],[style*="display: none"],[style*="display:none"]) { display: none !important; }
@media(max-width:700px) {
    #body form#search #general_table > tbody > tr { display: block !important; margin-bottom: 12px; }
    #body form#search #general_table > tbody > tr > td { display: block !important; width: 100% !important; box-sizing: border-box; padding: 4px 0 !important; }
    #body form#search #general_table > tbody > tr > td:first-child:empty { display: none !important; }
}



/* ===== assets/themes/SchoolSafeCodex/header-controls.css ===== */
/* SchoolSafe header controls, 2026-10-14. Motion changes appearance, never position. */
html[data-ss-background="white"] { --ss-page-background: #fff; }
html[data-ss-background="blue"] { --ss-page-background: #dcecff; }
html[data-ss-background="gray"] { --ss-page-background: #eef0f3; }
html[data-ss-background="mint"] { --ss-page-background: #e5f5ed; }
html[data-ss-background="rose"] { --ss-page-background: #fbe9ef; }
html[data-ss-background="yellow"] { --ss-page-background: #fff5d9; }
html[data-ss-background] body.modules,
html[data-ss-background] body.modules #wrap,
html[data-ss-background] body.modules #body,
html[data-ss-background] body.modules #body .sscx-app {
    background: var(--ss-page-background) !important;
    transition: background-color .2s ease;
}
body.modules #footer,
body.modules #footerwrap { overflow: visible !important; }
.ss-header-tools { position: relative; }
#ss-header-jaspe { overflow:visible; }
body.modules #footer #ss-header-jaspe .ss-header-jaspe-portrait { position:relative;display:block;width:36px;height:36px;overflow:hidden;border-radius:50%; }
body.modules #footer #ss-header-jaspe .ss-header-jaspe-portrait img { position:absolute;width:84px;max-width:none;height:auto;left:-24px;top:-7px;filter:none; }
#ss-header-watch .ss-watch-icon { display:grid;place-items:center;width:22px;height:26px;border:2px solid currentColor;border-radius:6px;color:#245f94; }
#ss-header-watch .ss-watch-icon span { font:700 8px system-ui,sans-serif; }
@media(max-width:700px) { body.modules #footer .ss-desktop-companion { display:none !important; } }
body.modules #footer .ss-header-profile {
    transform: none !important;
    transition: background-color .18s ease, box-shadow .18s ease;
}
body.modules #footer .ss-header-tools .ss-header-action {
    flex: 0 0 44px;
    transform: none !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.modules #footer .ss-header-action:hover,
body.modules #footer .ss-header-action:focus-visible,
body.modules #footer .ss-header-profile:hover,
body.modules #footer .ss-header-profile:focus-visible {
    border-color: #7bace3;
    box-shadow: 0 0 0 4px rgba(46,125,210,.14), 0 3px 7px rgba(24,36,54,.12);
}
body.modules #footer .ss-header-action:active,
body.modules #footer .ss-header-profile:active { animation: ss-action-light .35s ease; }
body.modules #footer .ss-header-action[data-background="blue"] { background: #dcecff; border-color: #3978be; }
body.modules #footer .ss-header-action[data-background="gray"] { background: #eef0f3; border-color: #7b8897; }
body.modules #footer .ss-header-action[data-background="mint"] { background: #e5f5ed; border-color: #638674; }
body.modules #footer .ss-header-action[data-background="rose"] { background: #fbe9ef; border-color: #a57888; }
body.modules #footer .ss-header-action[data-background="yellow"] { background: #fff5d9; border-color: #9a8550; }
body.modules #footer .ss-header-tools .ss-header-tooltip {
    transition: opacity .18s ease;
    text-align: center;
}
body.modules #footer .ss-header-action[aria-expanded="true"] .ss-header-tooltip { visibility: hidden; opacity: 0; }
.ss-header-languages {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 160;
    width: 164px; padding: 6px; background: #fff; color: #172d40;
    border: 1px solid #d4dfeb; border-radius: 8px;
    box-shadow: 0 6px 20px rgba(24,36,54,.15);
}
.ss-header-languages[hidden] { display: none !important; }
body.modules #footer .ss-header-languages a {
    display: flex; align-items: center; min-height: 44px; padding: 8px 12px;
    color: #172d40; font-size: 14px; text-decoration: none; border-radius: 4px;
}
body.modules #footer .ss-header-languages a:hover,
body.modules #footer .ss-header-languages a:focus-visible { background: #edf4ff; outline: 2px solid #3978be; outline-offset: -2px; }
body.modules #footer .ss-header-languages a[aria-current="true"] { background: #dcecff; font-weight: 600; }
@keyframes ss-action-light {
    50% { box-shadow: 0 0 0 5px rgba(46,125,210,.22); }
}
@media(max-width:700px) {
    .ss-header-tools { gap: 6px; margin-right: 4px; }
}
@media(max-width:360px) {
    .ss-header-tools { gap: 4px; }
    body.modules #footer .ss-header-tools .ss-header-action { width: 36px !important; min-width: 36px; height: 44px; flex-basis: 36px; }
    .ss-header-profile { width: 36px; flex-basis: 36px; }
}
@media(prefers-reduced-motion:reduce) {
    html[data-ss-background] body.modules,
    html[data-ss-background] body.modules #wrap,
    html[data-ss-background] body.modules #body,
    html[data-ss-background] body.modules #body .sscx-app,
    body.modules #footer .ss-header-tools .ss-header-action,
    body.modules #footer .ss-header-profile,
    body.modules #footer .ss-header-tools .ss-header-tooltip { transition: none; animation: none; }
}



/* ===== assets/themes/SchoolSafeCodex/menu-themes.css ===== */
/* Shared theme surface; branch colors remain independent of the selected background. */
@media screen {
    html[data-ss-background] body.modules #menu,
    html[data-ss-background] body.modules #menu #menu-top,
    html[data-ss-background] body.modules #menu .adminmenu {
        background:var(--ss-page-background) !important;
        color:#173b5a;
        transition:background-color .2s ease;
    }
    html[data-ss-background] body.modules #menu .ss-brand-name { color:#173b5a; }
    html[data-ss-background] body.modules #menu .ss-brand-safe { color:var(--ss-nav-accent); }
    html[data-ss-background] body.modules #menu .adminmenu > .menu-module > .menu-top {
        background:transparent !important;
        color:#173b5a !important;
        border-color:color-mix(in srgb,var(--ss-branch-ink) 25%,var(--ss-page-background)) !important;
        border-left-color:var(--ss-branch-ink) !important;
    }
    html[data-ss-background] body.modules #menu .menu-module[data-ss-branch] > .menu-top .module-icon {
        background-color:var(--ss-branch-ink) !important;
    }
    html[data-ss-background] body.modules #menu .adminmenu > .menu-module > .menu-top:hover,
    html[data-ss-background] body.modules #menu .adminmenu > .ss-open > .menu-top {
        background:color-mix(in srgb,var(--ss-branch-ink) 10%,var(--ss-page-background)) !important;
        color:var(--ss-branch-ink) !important;
    }
    html[data-ss-background] body.modules #menu #ss-settings-button {
        background:transparent; color:#173b5a;
        border-color:var(--ss-nav-border); border-left-color:#526170;
    }
    html[data-ss-background] body.modules #menu #ss-settings-button::before { background-color:#526170; }
    html[data-ss-background] body.modules #menu #ss-settings-button:hover,
    html[data-ss-background] body.modules #menu #ss-settings-button[aria-expanded="true"] {
        background:color-mix(in srgb,var(--ss-nav-accent) 10%,var(--ss-page-background));
        color:var(--ss-nav-accent);
    }
    html[data-ss-background] body.modules #menu .menu-top:focus-visible,
    html[data-ss-background] body.modules #menu #ss-settings-button:focus-visible {
        outline:2px solid var(--ss-nav-accent); outline-offset:-3px;
    }
}
@media(prefers-reduced-motion:reduce) {
    html[data-ss-background] body.modules #menu,
    html[data-ss-background] body.modules #menu #menu-top,
    html[data-ss-background] body.modules #menu .adminmenu { transition:none; }
}
@media screen and (max-width:700px) {
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu.slide {
        width:min(374px,calc(100vw - 16px)) !important; right:auto !important; background:transparent !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .ss-open > .wp-submenu {
        left:64px !important; width:min(310px,calc(100vw - 80px)) !important;
        min-width:0 !important; padding:0 8px 12px !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu #menu-top,
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .adminmenu,
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .adminmenu > .menu-module > .menu-top {
        width:64px !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .wp-submenu a {
        white-space:normal; overflow-wrap:anywhere; font-size:13px;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .ss-context-heading {
        display:grid !important; grid-template-columns:minmax(0,1fr) 44px; padding:8px 0 !important; gap:4px;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .ss-context-heading strong {
        grid-column:1/-1; grid-row:2; width:100%; font-size:14px; overflow-wrap:normal;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .ss-context-close {
        grid-column:2; grid-row:1; width:44px !important; height:44px !important; min-width:44px;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="primary"] #menu.slide {
        width:min(220px,calc(100vw - 24px)) !important; right:auto !important; background:transparent !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="primary"] #menu.slide #menu-top,
    html[data-ss-background] body.modules[data-ss-mobile-panel="primary"] #menu.slide .adminmenu { width:100% !important; }
    body.modules[data-ss-mobile-panel="primary"] #menu .adminmenu > .menu-module > .menu-top { white-space:normal !important; }
    body.modules[data-ss-mobile-panel="primary"] #menu .ss-brand-name { font-size:16px !important; white-space:normal !important; }
}
@media screen {
    html[data-ss-background] body.modules #menu .wp-submenu {
        background:var(--ss-page-background) !important;
        color:var(--ss-text,#172333) !important;
    }
    html[data-ss-background] body.modules #menu .adminmenu .wp-submenu a {
        color:var(--ss-text,#172333) !important;
        background:transparent !important;
    }
    html[data-ss-background] body.modules #menu .wp-submenu .menu-inter {
        color:var(--ss-text,#172333) !important;
        background:color-mix(in srgb,var(--ss-branch-ink,#2455c6) 12%,var(--ss-page-background)) !important;
    }
}
/* Keep the native menu contents on phones; only its presentation changes. */
@media screen and (max-width:700px) {
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu.slide {
        width:min(312px,calc(100vw - 8px)) !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu #menu-top,
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .adminmenu > .menu-module > .menu-top,
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .adminmenu > .menu-module:not(.ss-open) {
        display:block !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .adminmenu {
        width:64px !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .ss-open > .wp-submenu {
        left:64px !important; right:auto !important; top:64px !important;
        width:min(248px,calc(100vw - 72px)) !important; padding:16px 10px !important;
        border-radius:0 !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .ss-context-heading {
        display:flex !important; align-items:center; justify-content:space-between;
        margin:-16px -10px 12px !important; padding:12px 16px !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .ss-context-heading strong {
        width:auto; font-size:18px;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu #menu-top {
        width:64px !important; height:64px; overflow:hidden;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu #menu-top > a {
        padding:4px !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .adminmenu > .menu-module > .menu-top {
        display:flex !important; width:64px !important;
        justify-content:center; min-height:44px !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .menu-top .ss-menu-label {
        display:none !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu #ss-settings-button {
        font-size:0 !important; overflow:hidden;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="context"] #menu .adminmenu {
        overflow-y:auto !important; overflow-x:hidden !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="primary"] #menu .menu-top .ss-menu-label {
        display:inline !important;
    }
    html[data-ss-background] body.modules[data-ss-mobile-panel="primary"] #menu .adminmenu > .menu-module > .menu-top {
        width:100% !important; justify-content:flex-start; gap:10px;
    }
}
@media screen {
    /* The fixed menu owns its spacing; the legacy plugin spacer must not paint. */
    body.modules #menu.fixedmenu-fixed + div,
    body.modules #menu + div[style*="float"] {
        display:none !important;
        width:0 !important; height:0 !important;
        background:transparent !important;
        pointer-events:none !important;
    }
}



/* ===== assets/themes/SchoolSafeCodex/night-theme.css ===== */
@media screen {
    html[data-ss-background="night"] {
        color-scheme:dark; --ss-page-background:#0b1e3b;
        --ss-nav-accent:#98ceff; --ss-nav-border:#405c82;
        --ss-text:#edf4ff; --ss-text-secondary:#b9cce5; --ss-line:#405c82;
        --ss-surface:#0b1e3b; --ss-surface-raised:#142e51;
    }
    html[data-ss-background="night"] body.modules #body { color:#edf4ff; }
    html[data-ss-background="night"] .sscx-app {
        --sscx-text:#edf4ff; --sscx-muted:#b9cce5; --sscx-surface:#142e51;
        --sscx-soft:#1c395e; --sscx-border:#405c82; --sscx-accent:#98ceff;
        color:#edf4ff !important;
    }
    html[data-ss-background="night"] body.modules :is(#menu .ss-brand-name,#menu .menu-top,#menu #ss-settings-button,#ss-mobile-navigation a,#ss-mobile-navigation button) { color:#edf4ff !important; }
    html[data-ss-background="night"] body.modules #menu .ss-brand-name,
    html[data-ss-background="night"] body.modules #menu .adminmenu > .menu-module > .menu-top,
    html[data-ss-background="night"] body.modules #menu #ss-settings-button,
    html[data-ss-background="night"] #ss-mobile-navigation a,
    html[data-ss-background="night"] #ss-mobile-navigation button { color:#edf4ff !important; }
    html[data-ss-background="night"] #menu .menu-top .module-icon { background-color:var(--ss-branch) !important; }
    html[data-ss-background="night"] #menu .menu-top { border-left-color:var(--ss-branch) !important; }
    html[data-ss-background="night"] body.modules #menu .menu-module[data-ss-branch] > .menu-top .module-icon { background-color:var(--ss-branch) !important; }
    html[data-ss-background="night"] body.modules #menu .adminmenu > .menu-module > .menu-top { border-left-color:var(--ss-branch) !important; }
    html[data-ss-background="night"] #menu .ss-open > .menu-top,
    html[data-ss-background="night"] #menu .menu-top:hover { color:var(--ss-branch) !important; }
    html[data-ss-background="night"] #menu .wp-submenu,
    html[data-ss-background="night"] #menu .ss-context-heading { background:#142e51 !important; color:#edf4ff !important; }
    html[data-ss-background="night"] #menu .wp-submenu a { color:#edf4ff !important; }
    html[data-ss-background="night"] #footer { background:#0b1e3b !important; }
    html[data-ss-background="night"] body.modules #footer .ss-header-action[data-background="night"] { background:#142e51; color:#edf4ff; border-color:#98ceff; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(h2,h3,h4,strong,dt,td,th) { color:#edf4ff !important; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(p,small,time,caption,.sscx-empty,.sscx-metric > span) { color:#b9cce5 !important; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(a,summary) { color:#98ceff !important; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(.sscx-metric,.ss-connected-metric,.sscx-shortcuts a,.sscx-table-scroll,.ss-dashboard-refresh) { background:#142e51 !important; border-color:#405c82 !important; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(thead,th,tr:nth-child(even)) { background:#1c395e !important; }
    html[data-ss-background="night"] #body :is(input:not([type="submit"]),select,textarea) { background:#142e51; color:#edf4ff; border-color:#617fa6; }
    html[data-ss-background="night"] #body input::placeholder { color:#b9cce5; }
    html[data-ss-background="night"] #ss-mobile-navigation .module-icon { filter:brightness(0) invert(1); }
    html[data-ss-background="night"] #ss-mobile-navigation .ss-nav-active { color:#98ceff !important; }
    html[data-ss-background="night"] #ss-jaspe-dialog .ss-jaspe-close { color:#edf4ff; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(.ss-dashboard-context,.ss-finance-metrics article,.ss-finance-analysis > section,.ss-finance-balances,.ss-reference-operation,.ss-reference-bottom > section,.ss-reference-alerts) { background:#142e51 !important; color:#edf4ff; border-color:#405c82 !important; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(.ss-dashboard-context span,.ss-dashboard-context label,.ss-dashboard-context strong,.ss-reference-operation span,.ss-reference-operation strong) { color:#edf4ff !important; }
    html[data-ss-background="night"] .ss-connected-dashboard :is(.ss-life-status,.ss-directory-groups a) { background:#1c395e; color:#98ceff !important; }
    html[data-ss-background="night"] .ss-connected-dashboard svg text { fill:#b9cce5; }
}



/* ===== assets/themes/SchoolSafeCodex/ss-effects.css ===== */
/* SchoolSafe — couche effets (GO 2026-10-28) : phase 1 = menus arrondis
   + bande d'actions rapides défilante. Les phases 2-3 (logo-fond, verre,
   animations) arriveront dans ce même fichier. */

/* --- La barre mobile : rayons généreux (fini le carré) --- */
#ss-mobile-navigation a, #ss-mobile-navigation button { border-radius: 14px; }
#ss-mobile-navigation { border-radius: 0 0 18px 18px; }
.ss-context-close { border-radius: 12px; }

/* --- Les boîtes et listes de menu (écrans RosarioSIS) --- */
.menu-module, .menu-group, .list, .list-container { border-radius: 16px; overflow: hidden; }
.list thead tr th:first-child { border-top-left-radius: 16px; }
.list thead tr th:last-child { border-top-right-radius: 16px; }
.list tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.list tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

/* --- La bande d'actions rapides (menu principal défilant) --- */
#ss-actions-rapides { margin: 0 0 14px; }
#ss-actions-rapides .ss-ar-titre { font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 8px; }
#ss-actions-rapides .ss-ar-bande { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
#ss-actions-rapides a.ss-ar-carte { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 88px;
  border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: inherit; text-align: center; padding: 10px 6px;
  transition: transform .18s ease, background .18s ease; }
#ss-actions-rapides a.ss-ar-carte:hover, #ss-actions-rapides a.ss-ar-carte:active { transform: translateY(-4px); background: rgba(255,255,255,.22); }
#ss-actions-rapides .ss-ar-icone { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
#ss-actions-rapides .ss-ar-libelle { font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* Sur machine : la bande devient une grille stable */
@media (min-width: 1024px) {
  #ss-actions-rapides .ss-ar-bande { overflow: visible; flex-wrap: wrap; }
  #ss-actions-rapides a.ss-ar-carte { width: 118px; min-height: 96px; }
}
/* SchoolSafe — couche effets (GO 2026-10-28) : phase 1 = menus arrondis
   + bande d'actions rapides défilante. Les phases 2-3 (logo-fond, verre,
   animations) arriveront dans ce même fichier. */

/* --- La barre mobile : rayons généreux (fini le carré) --- */
#ss-mobile-navigation a, #ss-mobile-navigation button { border-radius: 14px; }
#ss-mobile-navigation { border-radius: 0 0 18px 18px; }
.ss-context-close { border-radius: 12px; }

/* --- Les boîtes et listes de menu (écrans RosarioSIS) --- */
.menu-module, .menu-group, .list, .list-container { border-radius: 16px; overflow: hidden; }
.list thead tr th:first-child { border-top-left-radius: 16px; }
.list thead tr th:last-child { border-top-right-radius: 16px; }
.list tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.list tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

/* --- La bande d'actions rapides (menu principal défilant) --- */
#ss-actions-rapides { margin: 0 0 14px; }
#ss-actions-rapides .ss-ar-titre { font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 8px; }
#ss-actions-rapides .ss-ar-bande { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
#ss-actions-rapides a.ss-ar-carte { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 88px;
  border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: inherit; text-align: center; padding: 10px 6px;
  transition: transform .18s ease, background .18s ease; }
#ss-actions-rapides a.ss-ar-carte:hover, #ss-actions-rapides a.ss-ar-carte:active { transform: translateY(-4px); background: rgba(255,255,255,.22); }
#ss-actions-rapides .ss-ar-icone { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
#ss-actions-rapides .ss-ar-libelle { font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* Sur machine : la bande devient une grille stable */
@media (min-width: 1024px) {
  #ss-actions-rapides .ss-ar-bande { overflow: visible; flex-wrap: wrap; }
  #ss-actions-rapides a.ss-ar-carte { width: 118px; min-height: 96px; }
}

/* --- La barre mobile ne doit jamais couvrir les formulaires (bug telephone 2026-10-28) --- */
@media (max-width: 900px) {
  body { padding-bottom: 76px !important; }
}
/* SchoolSafe — couche effets (GO 2026-10-28) : phase 1 = menus arrondis
   + bande d'actions rapides défilante. Les phases 2-3 (logo-fond, verre,
   animations) arriveront dans ce même fichier. */

/* --- La barre mobile : rayons généreux (fini le carré) --- */
#ss-mobile-navigation a, #ss-mobile-navigation button { border-radius: 14px; }
#ss-mobile-navigation { border-radius: 0 0 18px 18px; }
.ss-context-close { border-radius: 12px; }

/* --- Les boîtes et listes de menu (écrans RosarioSIS) --- */
.menu-module, .menu-group, .list, .list-container { border-radius: 16px; overflow: hidden; }
.list thead tr th:first-child { border-top-left-radius: 16px; }
.list thead tr th:last-child { border-top-right-radius: 16px; }
.list tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.list tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

/* --- La bande d'actions rapides (menu principal défilant) --- */
#ss-actions-rapides { margin: 0 0 14px; }
#ss-actions-rapides .ss-ar-titre { font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 8px; }
#ss-actions-rapides .ss-ar-bande { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
#ss-actions-rapides a.ss-ar-carte { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 88px;
  border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: inherit; text-align: center; padding: 10px 6px;
  transition: transform .18s ease, background .18s ease; }
#ss-actions-rapides a.ss-ar-carte:hover, #ss-actions-rapides a.ss-ar-carte:active { transform: translateY(-4px); background: rgba(255,255,255,.22); }
#ss-actions-rapides .ss-ar-icone { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
#ss-actions-rapides .ss-ar-libelle { font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* Sur machine : la bande devient une grille stable */
@media (min-width: 1024px) {
  #ss-actions-rapides .ss-ar-bande { overflow: visible; flex-wrap: wrap; }
  #ss-actions-rapides a.ss-ar-carte { width: 118px; min-height: 96px; }
}

/* --- La barre mobile ne doit jamais couvrir les formulaires (bug telephone 2026-10-28) --- */
@media (max-width: 900px) {
  body { padding-bottom: 76px !important; }
}

/* --- L'AMBIANCE: le logo de l'ecole en fond floute (GO 2026-10-28, v1 ecole le Sage) --- */
html { background: #0c382b; }
body { background: transparent !important; }
body::before {
  content: ''; position: fixed; inset: -10%;
  background-image: var(--logo-ecole, none);
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(140%); z-index: -2;
  animation: ss-respiration 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: rgba(14, 74, 57, 0.85); z-index: -1; pointer-events: none;
}
@keyframes ss-respiration { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.05); opacity: 1; } }
:root { --logo-ecole: url("assets/school-logos/school_logo_3.jpg"); }
/* SchoolSafe — couche effets (GO 2026-10-28) : phase 1 = menus arrondis
   + bande d'actions rapides défilante. Les phases 2-3 (logo-fond, verre,
   animations) arriveront dans ce même fichier. */

/* --- La barre mobile : rayons généreux (fini le carré) --- */
#ss-mobile-navigation a, #ss-mobile-navigation button { border-radius: 14px; }
#ss-mobile-navigation { border-radius: 0 0 18px 18px; }
.ss-context-close { border-radius: 12px; }

/* --- Les boîtes et listes de menu (écrans RosarioSIS) --- */
.menu-module, .menu-group, .list, .list-container { border-radius: 16px; overflow: hidden; }
.list thead tr th:first-child { border-top-left-radius: 16px; }
.list thead tr th:last-child { border-top-right-radius: 16px; }
.list tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.list tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

/* --- La bande d'actions rapides (menu principal défilant) --- */
#ss-actions-rapides { margin: 0 0 14px; }
#ss-actions-rapides .ss-ar-titre { font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 8px; }
#ss-actions-rapides .ss-ar-bande { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
#ss-actions-rapides a.ss-ar-carte { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 88px;
  border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: inherit; text-align: center; padding: 10px 6px;
  transition: transform .18s ease, background .18s ease; }
#ss-actions-rapides a.ss-ar-carte:hover, #ss-actions-rapides a.ss-ar-carte:active { transform: translateY(-4px); background: rgba(255,255,255,.22); }
#ss-actions-rapides .ss-ar-icone { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
#ss-actions-rapides .ss-ar-libelle { font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* Sur machine : la bande devient une grille stable */
@media (min-width: 1024px) {
  #ss-actions-rapides .ss-ar-bande { overflow: visible; flex-wrap: wrap; }
  #ss-actions-rapides a.ss-ar-carte { width: 118px; min-height: 96px; }
}

/* --- La barre mobile ne doit jamais couvrir les formulaires (bug telephone 2026-10-28) --- */
@media (max-width: 900px) {
  body { padding-bottom: 76px !important; }
}

/* --- L'AMBIANCE: le logo de l'ecole en fond floute (GO 2026-10-28, v1 ecole le Sage) --- */
html { background: #0c382b; }
body { background: transparent !important; }
body::before {
  content: ''; position: fixed; inset: -10%;
  background-image: var(--logo-ecole, none);
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(140%); z-index: -2;
  animation: ss-respiration 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: rgba(14, 74, 57, 0.85); z-index: -1; pointer-events: none;
}
@keyframes ss-respiration { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.05); opacity: 1; } }
:root { --logo-ecole: url("assets/school-logos/school_logo_3.jpg"); }

/* --- Le logo quitte sa place native: l'ambiance le remplace (GO 2026-10-28) --- */
figure.ss-photo-school-logo { display: none; }
main.ss-photo-dashboard, #ss-photo-dashboard { background: transparent !important; }
#wrap, #body { background: transparent !important; }
/* SchoolSafe — couche effets (GO 2026-10-28) : phase 1 = menus arrondis
   + bande d'actions rapides défilante. Les phases 2-3 (logo-fond, verre,
   animations) arriveront dans ce même fichier. */

/* --- La barre mobile : rayons généreux (fini le carré) --- */
#ss-mobile-navigation a, #ss-mobile-navigation button { border-radius: 14px; }
#ss-mobile-navigation { border-radius: 0 0 18px 18px; }
.ss-context-close { border-radius: 12px; }

/* --- Les boîtes et listes de menu (écrans RosarioSIS) --- */
.menu-module, .menu-group, .list, .list-container { border-radius: 16px; overflow: hidden; }
.list thead tr th:first-child { border-top-left-radius: 16px; }
.list thead tr th:last-child { border-top-right-radius: 16px; }
.list tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.list tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

/* --- La bande d'actions rapides (menu principal défilant) --- */
#ss-actions-rapides { margin: 0 0 14px; }
#ss-actions-rapides .ss-ar-titre { font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 8px; }
#ss-actions-rapides .ss-ar-bande { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
#ss-actions-rapides a.ss-ar-carte { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 88px;
  border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: inherit; text-align: center; padding: 10px 6px;
  transition: transform .18s ease, background .18s ease; }
#ss-actions-rapides a.ss-ar-carte:hover, #ss-actions-rapides a.ss-ar-carte:active { transform: translateY(-4px); background: rgba(255,255,255,.22); }
#ss-actions-rapides .ss-ar-icone { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
#ss-actions-rapides .ss-ar-libelle { font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* Sur machine : la bande devient une grille stable */
@media (min-width: 1024px) {
  #ss-actions-rapides .ss-ar-bande { overflow: visible; flex-wrap: wrap; }
  #ss-actions-rapides a.ss-ar-carte { width: 118px; min-height: 96px; }
}

/* --- La barre mobile ne doit jamais couvrir les formulaires (bug telephone 2026-10-28) --- */
@media (max-width: 900px) {
  body { padding-bottom: 76px !important; }
}

/* --- L'AMBIANCE: le logo de l'ecole en fond floute (GO 2026-10-28, v1 ecole le Sage) --- */
html { background: #0c382b; }
body { background: transparent !important; }
body::before {
  content: ''; position: fixed; inset: -10%;
  background-image: var(--logo-ecole, none);
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(140%); z-index: -2;
  animation: ss-respiration 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: rgba(14, 74, 57, 0.85); z-index: -1; pointer-events: none;
}
@keyframes ss-respiration { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.05); opacity: 1; } }
:root { --logo-ecole: url("assets/school-logos/school_logo_3.jpg"); }

/* --- Le logo quitte sa place native: l'ambiance le remplace (GO 2026-10-28) --- */
figure.ss-photo-school-logo { display: none; }
main.ss-photo-dashboard, #ss-photo-dashboard { background: transparent !important; }
#wrap, #body { background: transparent !important; }

/* === Les styles d'ambiance LIQUID et CLAY (rediges par Gemini, installe par le superviseur, GO 2026-10-28) === */
/**
 * =================================================================ata
 * SCHOOLSAFE - AMBIANCES ROSARIOSIS (LIQUID & CLAYMORPHISM)
 * Cible : #body, table.list, main#ss-photo-dashboard et leurs conteneurs
 * Mobile-first : 390px et plus
 * ==================================================================
 */

/* ==================================================================
   1. VARIABLES COMMUNES & SOCLE DE BASE (Mobile-first 390px)
   ================================================================== */
:root {
    --ss-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base commune pour les conteneurs ciblés dans les deux ambiances */
body.ss-ambiance-liquid #body,
body.ss-ambiance-liquid table.list,
body.ss-ambiance-liquid main#ss-photo-dashboard,
body.ss-ambiance-liquid #body table.list,
body.ss-ambiance-liquid #body > div > div,
body.ss-ambiance-liquid main#ss-photo-dashboard > div,
body.ss-ambiance-clay #body,
body.ss-ambiance-clay table.list,
body.ss-ambiance-clay main#ss-photo-dashboard,
body.ss-ambiance-clay #body table.list,
body.ss-ambiance-clay #body > div > div,
body.ss-ambiance-clay main#ss-photo-dashboard > div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: var(--ss-transition);
}

/* Ajustements spécifiques pour les tableaux RosarioSIS sur mobile (390px) */
body.ss-ambiance-liquid table.list,
body.ss-ambiance-clay table.list {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
}


/* ==================================================================
   2. STYLE 1 : AMBIANCE LIQUID (Morphing & Glassmorphism)
   ================================================================== */

/* Définition de l'animation de morphing des coins (4 phases, 11s) */
@keyframes ss-liquid-morph {
    0% {
        border-radius: 24px 32px 28px 24px / 28px 24px 32px 26px;
    }
    33% {
        border-radius: 32px 24px 30px 28px / 24px 32px 26px 30px;
    }
    66% {
        border-radius: 26px 30px 24px 32px / 30px 26px 28px 24px;
    }
    100% {
        border-radius: 24px 32px 28px 24px / 28px 24px 32px 26px;
    }
}

/* Application de l'ambiance Liquid aux conteneurs */
body.ss-ambiance-liquid #body,
body.ss-ambiance-liquid table.list,
body.ss-ambiance-liquid main#ss-photo-dashboard,
body.ss-ambiance-liquid #body table.list,
body.ss-ambiance-liquid #body > div > div,
body.ss-ambiance-liquid main#ss-photo-dashboard > div {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: ss-liquid-morph 11s ease-in-out infinite;
    /* Garantie de lisibilité du texte sur fond flouté */
    color: inherit; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}


/* ==================================================================
   3. STYLE 2 : AMBIANCE CLAY (Claymorphism 3D)
   ================================================================== */

/* Application de l'ambiance Claymorphism aux conteneurs */
body.ss-ambiance-clay #body,
body.ss-ambiance-clay table.list,
body.ss-ambiance-clay main#ss-photo-dashboard,
body.ss-ambiance-clay #body table.list,
body.ss-ambiance-clay #body > div > div,
body.ss-ambiance-clay main#ss-photo-dashboard > div {
    border-radius: 32px;
    /* Fond dégradé doux assurant un contraste élevé pour la lecture */
    background: linear-gradient(135deg, rgba(240, 244, 248, 0.9), rgba(218, 226, 235, 0.9));
    
    /* Ombre portée externe + Double lueur interne (Inner Light & Inner Dark) */
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.20),
        inset 4px 4px 10px rgba(255, 255, 255, 0.60),
        inset -4px -4px 10px rgba(0, 0, 0, 0.12);
        
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Mode sombre automatique pour le Claymorphism (si activé dans RosarioSIS) */
@media (prefers-color-scheme: dark) {
    body.ss-ambiance-clay #body,
    body.ss-ambiance-clay table.list,
    body.ss-ambiance-clay main#ss-photo-dashboard,
    body.ss-ambiance-clay #body table.list,
    body.ss-ambiance-clay #body > div > div,
    body.ss-ambiance-clay main#ss-photo-dashboard > div {
        background: linear-gradient(135deg, rgba(30, 35, 45, 0.9), rgba(18, 22, 28, 0.9));
        box-shadow: 
            8px 8px 16px rgba(0, 0, 0, 0.45),
            inset 4px 4px 10px rgba(255, 255, 255, 0.10),
            inset -4px -4px 10px rgba(0, 0, 0, 0.50);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #f0f0f0;
    }
}


/* ==================================================================
   4. OPTIMISATIONS RESPONSIVE (Tablettes & Desktop > 768px)
   ================================================================== */
@media (min-width: 768px) {
    body.ss-ambiance-liquid #body,
    body.ss-ambiance-clay #body,
    body.ss-ambiance-liquid main#ss-photo-dashboard,
    body.ss-ambiance-clay main#ss-photo-dashboard {
        padding: 1.5rem;
    }
    
    body.ss-ambiance-liquid table.list,
    body.ss-ambiance-clay table.list {
        display: table;
        padding: 0;
    }
}
/* SchoolSafe — couche effets (GO 2026-10-28) : phase 1 = menus arrondis
   + bande d'actions rapides défilante. Les phases 2-3 (logo-fond, verre,
   animations) arriveront dans ce même fichier. */

/* --- La barre mobile : rayons généreux (fini le carré) --- */
#ss-mobile-navigation a, #ss-mobile-navigation button { border-radius: 14px; }
#ss-mobile-navigation { border-radius: 0 0 18px 18px; }
.ss-context-close { border-radius: 12px; }

/* --- Les boîtes et listes de menu (écrans RosarioSIS) --- */
.menu-module, .menu-group, .list, .list-container { border-radius: 16px; overflow: hidden; }
.list thead tr th:first-child { border-top-left-radius: 16px; }
.list thead tr th:last-child { border-top-right-radius: 16px; }
.list tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.list tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

/* --- La bande d'actions rapides (menu principal défilant) --- */
#ss-actions-rapides { margin: 0 0 14px; }
#ss-actions-rapides .ss-ar-titre { font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 8px; }
#ss-actions-rapides .ss-ar-bande { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
#ss-actions-rapides a.ss-ar-carte { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 88px;
  border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: inherit; text-align: center; padding: 10px 6px;
  transition: transform .18s ease, background .18s ease; }
#ss-actions-rapides a.ss-ar-carte:hover, #ss-actions-rapides a.ss-ar-carte:active { transform: translateY(-4px); background: rgba(255,255,255,.22); }
#ss-actions-rapides .ss-ar-icone { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
#ss-actions-rapides .ss-ar-libelle { font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* Sur machine : la bande devient une grille stable */
@media (min-width: 1024px) {
  #ss-actions-rapides .ss-ar-bande { overflow: visible; flex-wrap: wrap; }
  #ss-actions-rapides a.ss-ar-carte { width: 118px; min-height: 96px; }
}

/* --- La barre mobile ne doit jamais couvrir les formulaires (bug telephone 2026-10-28) --- */
@media (max-width: 900px) {
  body { padding-bottom: 76px !important; }
}

/* --- L'AMBIANCE: le logo de l'ecole en fond floute (GO 2026-10-28, v1 ecole le Sage) --- */
html { background: #0c382b; }
body { background: transparent !important; }
body::before {
  content: ''; position: fixed; inset: -10%;
  background-image: var(--logo-ecole, none);
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(140%); z-index: -2;
  animation: ss-respiration 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: rgba(14, 74, 57, 0.85); z-index: -1; pointer-events: none;
}
@keyframes ss-respiration { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.05); opacity: 1; } }
:root { --logo-ecole: url("assets/school-logos/school_logo_3.jpg"); }

/* --- Le logo quitte sa place native: l'ambiance le remplace (GO 2026-10-28) --- */
figure.ss-photo-school-logo { display: none; }
main.ss-photo-dashboard, #ss-photo-dashboard { background: transparent !important; }
#wrap, #body { background: transparent !important; }

/* === Les styles d'ambiance LIQUID et CLAY (rediges par Gemini, installe par le superviseur, GO 2026-10-28) === */
/**
 * =================================================================ata
 * SCHOOLSAFE - AMBIANCES ROSARIOSIS (LIQUID & CLAYMORPHISM)
 * Cible : #body, table.list, main#ss-photo-dashboard et leurs conteneurs
 * Mobile-first : 390px et plus
 * ==================================================================
 */

/* ==================================================================
   1. VARIABLES COMMUNES & SOCLE DE BASE (Mobile-first 390px)
   ================================================================== */
:root {
    --ss-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base commune pour les conteneurs ciblés dans les deux ambiances */
body.ss-ambiance-liquid #body,
body.ss-ambiance-liquid table.list,
body.ss-ambiance-liquid main#ss-photo-dashboard,
body.ss-ambiance-liquid #body table.list,
body.ss-ambiance-liquid #body > div > div,
body.ss-ambiance-liquid main#ss-photo-dashboard > div,
body.ss-ambiance-clay #body,
body.ss-ambiance-clay table.list,
body.ss-ambiance-clay main#ss-photo-dashboard,
body.ss-ambiance-clay #body table.list,
body.ss-ambiance-clay #body > div > div,
body.ss-ambiance-clay main#ss-photo-dashboard > div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: var(--ss-transition);
}

/* Ajustements spécifiques pour les tableaux RosarioSIS sur mobile (390px) */
body.ss-ambiance-liquid table.list,
body.ss-ambiance-clay table.list {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
}


/* ==================================================================
   2. STYLE 1 : AMBIANCE LIQUID (Morphing & Glassmorphism)
   ================================================================== */

/* Définition de l'animation de morphing des coins (4 phases, 11s) */
@keyframes ss-liquid-morph {
    0% {
        border-radius: 24px 32px 28px 24px / 28px 24px 32px 26px;
    }
    33% {
        border-radius: 32px 24px 30px 28px / 24px 32px 26px 30px;
    }
    66% {
        border-radius: 26px 30px 24px 32px / 30px 26px 28px 24px;
    }
    100% {
        border-radius: 24px 32px 28px 24px / 28px 24px 32px 26px;
    }
}

/* Application de l'ambiance Liquid aux conteneurs */
body.ss-ambiance-liquid #body,
body.ss-ambiance-liquid table.list,
body.ss-ambiance-liquid main#ss-photo-dashboard,
body.ss-ambiance-liquid #body table.list,
body.ss-ambiance-liquid #body > div > div,
body.ss-ambiance-liquid main#ss-photo-dashboard > div {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: ss-liquid-morph 11s ease-in-out infinite;
    /* Garantie de lisibilité du texte sur fond flouté */
    color: inherit; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}


/* ==================================================================
   3. STYLE 2 : AMBIANCE CLAY (Claymorphism 3D)
   ================================================================== */

/* Application de l'ambiance Claymorphism aux conteneurs */
body.ss-ambiance-clay #body,
body.ss-ambiance-clay table.list,
body.ss-ambiance-clay main#ss-photo-dashboard,
body.ss-ambiance-clay #body table.list,
body.ss-ambiance-clay #body > div > div,
body.ss-ambiance-clay main#ss-photo-dashboard > div {
    border-radius: 32px;
    /* Fond dégradé doux assurant un contraste élevé pour la lecture */
    background: linear-gradient(135deg, rgba(240, 244, 248, 0.9), rgba(218, 226, 235, 0.9));
    
    /* Ombre portée externe + Double lueur interne (Inner Light & Inner Dark) */
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.20),
        inset 4px 4px 10px rgba(255, 255, 255, 0.60),
        inset -4px -4px 10px rgba(0, 0, 0, 0.12);
        
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Mode sombre automatique pour le Claymorphism (si activé dans RosarioSIS) */
@media (prefers-color-scheme: dark) {
    body.ss-ambiance-clay #body,
    body.ss-ambiance-clay table.list,
    body.ss-ambiance-clay main#ss-photo-dashboard,
    body.ss-ambiance-clay #body table.list,
    body.ss-ambiance-clay #body > div > div,
    body.ss-ambiance-clay main#ss-photo-dashboard > div {
        background: linear-gradient(135deg, rgba(30, 35, 45, 0.9), rgba(18, 22, 28, 0.9));
        box-shadow: 
            8px 8px 16px rgba(0, 0, 0, 0.45),
            inset 4px 4px 10px rgba(255, 255, 255, 0.10),
            inset -4px -4px 10px rgba(0, 0, 0, 0.50);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #f0f0f0;
    }
}


/* ==================================================================
   4. OPTIMISATIONS RESPONSIVE (Tablettes & Desktop > 768px)
   ================================================================== */
@media (min-width: 768px) {
    body.ss-ambiance-liquid #body,
    body.ss-ambiance-clay #body,
    body.ss-ambiance-liquid main#ss-photo-dashboard,
    body.ss-ambiance-clay main#ss-photo-dashboard {
        padding: 1.5rem;
    }
    
    body.ss-ambiance-liquid table.list,
    body.ss-ambiance-clay table.list {
        display: table;
        padding: 0;
    }
}

/* --- Les actions rapides: plus petites, 2 lignes, tout visible (GO 2026-10-28) --- */
@media (max-width: 900px) {
	#ss-actions-rapides .ss-ar-bande { flex-wrap: wrap; overflow-x: visible; gap: 8px; }
	#ss-actions-rapides a.ss-ar-carte { width: calc(25% - 6px); min-width: 76px; min-height: 76px; padding: 8px 4px; }
	#ss-actions-rapides .ss-ar-icone { width: 32px; height: 32px; font-size: 1rem; }
	#ss-actions-rapides .ss-ar-libelle { font-size: .6rem; }
}
/* SchoolSafe — couche effets (GO 2026-10-28) : phase 1 = menus arrondis
   + bande d'actions rapides défilante. Les phases 2-3 (logo-fond, verre,
   animations) arriveront dans ce même fichier. */

/* --- La barre mobile : rayons généreux (fini le carré) --- */
#ss-mobile-navigation a, #ss-mobile-navigation button { border-radius: 14px; }
#ss-mobile-navigation { border-radius: 0 0 18px 18px; }
.ss-context-close { border-radius: 12px; }

/* --- Les boîtes et listes de menu (écrans RosarioSIS) --- */
.menu-module, .menu-group, .list, .list-container { border-radius: 16px; overflow: hidden; }
.list thead tr th:first-child { border-top-left-radius: 16px; }
.list thead tr th:last-child { border-top-right-radius: 16px; }
.list tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.list tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

/* --- La bande d'actions rapides (menu principal défilant) --- */
#ss-actions-rapides { margin: 0 0 14px; }
#ss-actions-rapides .ss-ar-titre { font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 8px; }
#ss-actions-rapides .ss-ar-bande { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
#ss-actions-rapides a.ss-ar-carte { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 88px;
  border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: inherit; text-align: center; padding: 10px 6px;
  transition: transform .18s ease, background .18s ease; }
#ss-actions-rapides a.ss-ar-carte:hover, #ss-actions-rapides a.ss-ar-carte:active { transform: translateY(-4px); background: rgba(255,255,255,.22); }
#ss-actions-rapides .ss-ar-icone { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
#ss-actions-rapides .ss-ar-libelle { font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* Sur machine : la bande devient une grille stable */
@media (min-width: 1024px) {
  #ss-actions-rapides .ss-ar-bande { overflow: visible; flex-wrap: wrap; }
  #ss-actions-rapides a.ss-ar-carte { width: 118px; min-height: 96px; }
}

/* --- La barre mobile ne doit jamais couvrir les formulaires (bug telephone 2026-10-28) --- */
@media (max-width: 900px) {
  body { padding-bottom: 76px !important; }
}

/* --- L'AMBIANCE: le logo de l'ecole en fond floute (GO 2026-10-28, v1 ecole le Sage) --- */
html { background: #0c382b; }
body { background: transparent !important; }
body::before {
  content: ''; position: fixed; inset: -10%;
  background-image: var(--logo-ecole, none);
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(140%); z-index: -2;
  animation: ss-respiration 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: rgba(14, 74, 57, 0.85); z-index: -1; pointer-events: none;
}
@keyframes ss-respiration { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.05); opacity: 1; } }
:root { --logo-ecole: url("assets/school-logos/school_logo_3.jpg"); }

/* --- Le logo quitte sa place native: l'ambiance le remplace (GO 2026-10-28) --- */
figure.ss-photo-school-logo { display: none; }
main.ss-photo-dashboard, #ss-photo-dashboard { background: transparent !important; }
#wrap, #body { background: transparent !important; }

/* === Les styles d'ambiance LIQUID et CLAY (rediges par Gemini, installe par le superviseur, GO 2026-10-28) === */
/**
 * =================================================================ata
 * SCHOOLSAFE - AMBIANCES ROSARIOSIS (LIQUID & CLAYMORPHISM)
 * Cible : #body, table.list, main#ss-photo-dashboard et leurs conteneurs
 * Mobile-first : 390px et plus
 * ==================================================================
 */

/* ==================================================================
   1. VARIABLES COMMUNES & SOCLE DE BASE (Mobile-first 390px)
   ================================================================== */
:root {
    --ss-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base commune pour les conteneurs ciblés dans les deux ambiances */
body.ss-ambiance-liquid #body,
body.ss-ambiance-liquid table.list,
body.ss-ambiance-liquid main#ss-photo-dashboard,
body.ss-ambiance-liquid #body table.list,
body.ss-ambiance-liquid #body > div > div,
body.ss-ambiance-liquid main#ss-photo-dashboard > div,
body.ss-ambiance-clay #body,
body.ss-ambiance-clay table.list,
body.ss-ambiance-clay main#ss-photo-dashboard,
body.ss-ambiance-clay #body table.list,
body.ss-ambiance-clay #body > div > div,
body.ss-ambiance-clay main#ss-photo-dashboard > div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: var(--ss-transition);
}

/* Ajustements spécifiques pour les tableaux RosarioSIS sur mobile (390px) */
body.ss-ambiance-liquid table.list,
body.ss-ambiance-clay table.list {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
}


/* ==================================================================
   2. STYLE 1 : AMBIANCE LIQUID (Morphing & Glassmorphism)
   ================================================================== */

/* Définition de l'animation de morphing des coins (4 phases, 11s) */
@keyframes ss-liquid-morph {
    0% {
        border-radius: 24px 32px 28px 24px / 28px 24px 32px 26px;
    }
    33% {
        border-radius: 32px 24px 30px 28px / 24px 32px 26px 30px;
    }
    66% {
        border-radius: 26px 30px 24px 32px / 30px 26px 28px 24px;
    }
    100% {
        border-radius: 24px 32px 28px 24px / 28px 24px 32px 26px;
    }
}

/* Application de l'ambiance Liquid aux conteneurs */
body.ss-ambiance-liquid #body,
body.ss-ambiance-liquid table.list,
body.ss-ambiance-liquid main#ss-photo-dashboard,
body.ss-ambiance-liquid #body table.list,
body.ss-ambiance-liquid #body > div > div,
body.ss-ambiance-liquid main#ss-photo-dashboard > div {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: ss-liquid-morph 11s ease-in-out infinite;
    /* Garantie de lisibilité du texte sur fond flouté */
    color: inherit; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}


/* ==================================================================
   3. STYLE 2 : AMBIANCE CLAY (Claymorphism 3D)
   ================================================================== */

/* Application de l'ambiance Claymorphism aux conteneurs */
body.ss-ambiance-clay #body,
body.ss-ambiance-clay table.list,
body.ss-ambiance-clay main#ss-photo-dashboard,
body.ss-ambiance-clay #body table.list,
body.ss-ambiance-clay #body > div > div,
body.ss-ambiance-clay main#ss-photo-dashboard > div {
    border-radius: 32px;
    /* Fond dégradé doux assurant un contraste élevé pour la lecture */
    background: linear-gradient(135deg, rgba(240, 244, 248, 0.9), rgba(218, 226, 235, 0.9));
    
    /* Ombre portée externe + Double lueur interne (Inner Light & Inner Dark) */
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.20),
        inset 4px 4px 10px rgba(255, 255, 255, 0.60),
        inset -4px -4px 10px rgba(0, 0, 0, 0.12);
        
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Mode sombre automatique pour le Claymorphism (si activé dans RosarioSIS) */
@media (prefers-color-scheme: dark) {
    body.ss-ambiance-clay #body,
    body.ss-ambiance-clay table.list,
    body.ss-ambiance-clay main#ss-photo-dashboard,
    body.ss-ambiance-clay #body table.list,
    body.ss-ambiance-clay #body > div > div,
    body.ss-ambiance-clay main#ss-photo-dashboard > div {
        background: linear-gradient(135deg, rgba(30, 35, 45, 0.9), rgba(18, 22, 28, 0.9));
        box-shadow: 
            8px 8px 16px rgba(0, 0, 0, 0.45),
            inset 4px 4px 10px rgba(255, 255, 255, 0.10),
            inset -4px -4px 10px rgba(0, 0, 0, 0.50);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #f0f0f0;
    }
}


/* ==================================================================
   4. OPTIMISATIONS RESPONSIVE (Tablettes & Desktop > 768px)
   ================================================================== */
@media (min-width: 768px) {
    body.ss-ambiance-liquid #body,
    body.ss-ambiance-clay #body,
    body.ss-ambiance-liquid main#ss-photo-dashboard,
    body.ss-ambiance-clay main#ss-photo-dashboard {
        padding: 1.5rem;
    }
    
    body.ss-ambiance-liquid table.list,
    body.ss-ambiance-clay table.list {
        display: table;
        padding: 0;
    }
}

/* --- Les actions rapides: plus petites, 2 lignes, tout visible (GO 2026-10-28) --- */
@media (max-width: 900px) {
	#ss-actions-rapides .ss-ar-bande { flex-wrap: wrap; overflow-x: visible; gap: 8px; }
	#ss-actions-rapides a.ss-ar-carte { width: calc(25% - 6px); min-width: 76px; min-height: 76px; padding: 8px 4px; }
	#ss-actions-rapides .ss-ar-icone { width: 32px; height: 32px; font-size: 1rem; }
	#ss-actions-rapides .ss-ar-libelle { font-size: .6rem; }
}

/* --- Les actions rapides: DEUX RANGÉES QUI DÉFILENT VERS LE CÔTÉ (GO 2026-10-28) --- */
@media (max-width: 900px) {
	#ss-actions-rapides .ss-ar-bande {
		display: grid;
		grid-auto-flow: column;
		grid-template-rows: repeat(2, auto);
		grid-auto-columns: 86px;
		gap: 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
	}
	#ss-actions-rapides .ss-ar-bande::-webkit-scrollbar { height: 0; }
	#ss-actions-rapides a.ss-ar-carte { width: 86px; min-height: 78px; scroll-snap-align: start; }
}


/* Lot D1a (08/11) : fondation du redesign (5 themes, surfaces, animations de la charte), toujours en dernier. */

/* ===== assets/themes/SchoolSafeCodex/ss-design.css ===== */

/* Lot D1a (08/11) : fondation du redesign SchoolSafe (charte docs/design/CHARTE_DESIGN_SCHOOLSAFE.md).
   Lot D3 (09/11) : un seul thème, « relief », en trois modes (html[data-ss-mode] : clair, sombre, nuit = bleu nuit
   SchoolSafe) et avec un fond flouté (html[data-ss-fond] : taches, photo, aucun). Les règles des anciens thèmes
   clair / photo / bleu / nuit sont retirées ; aucun verre (backdrop-filter) n'est plus appliqué dans l'application.
   Historique : cinq thèmes clair (défaut), photo, bleu, relief, nuit. Seuls le fond, les couleurs, les surfaces et les
   effets changent ; la disposition, la place des boutons et les couleurs d'alerte ne changent jamais.
   html[data-ss-theme] est posé par le gestionnaire de thèmes (scripts.js, en tête du fichier).
   Feuille importée en dernier : elle neutralise l'ancienne « ambiance » (logo flou + voile vert de ss-effects.css). */

/* ---------- 1. Variables communes (états : identiques dans tous les thèmes) ---------- */
html[data-ss-theme] {
    --ss-radius-card: 14px;
    --ss-radius-chip: 12px;
    --ss-ease: cubic-bezier(.2, .7, .2, 1);
    --ss-etat-attention-bg: #faeeda; --ss-etat-attention: #854f0b;
    --ss-etat-urgent-bg: #fcebeb;    --ss-etat-urgent: #a32d2d;
    --ss-etat-info-bg: #e6f1fb;      --ss-etat-info: #185fa5;
    --ss-etat-fait-bg: #e1f5ee;      --ss-etat-fait: #08766b;
    --ss-vert: #08766b; --ss-vert-2: #0d9488;
    --ss-photo-flou: 16px; --ss-photo-assombrir: .35;
}

/* Lot D3 (09/11) : thème unique « relief ». Cartes et boutons soulevés (ombre sombre en bas à droite, ombre claire
   en haut à gauche), champs creusés. --ss-ne-d / --ss-ne-l : les deux ombres ; --ss-champ : fond des champs ;
   --ss-voile : couleur (r, g, b) du voile posé sur le fond flouté. */
/* Mode clair (défaut) : style en relief de l'écran de connexion validé (lot D1a, choix A). */
html[data-ss-theme="relief"][data-ss-background] {
    color-scheme: light;
    --ss-bg: #e9eef3;
    --ss-ne-d: #c9d3de; --ss-ne-l: #ffffff;
    --ss-surface: #e9eef3; --ss-surface-2: #e9eef3; --ss-surface-raised: #e9eef3; --ss-champ: #e9eef3;
    --ss-text: #1b2533; --ss-text-2: #5d6b7e; --ss-text-secondary: #5d6b7e; --ss-text-3: #7b8796;
    --ss-page-text: #1b2533;
    --ss-accent: #08766b; --ss-link: #08766b; --ss-page-link: #08766b; --ss-focus: #08766b;
    --ss-border: transparent; --ss-line: #d3dbe4; --ss-nav-border: #d3dbe4; --ss-nav-accent: #08766b;
    --ss-shadow: 7px 7px 14px var(--ss-ne-d), -7px -7px 14px var(--ss-ne-l);
    --ss-shadow-petit: 4px 4px 8px var(--ss-ne-d), -4px -4px 8px var(--ss-ne-l);
    --ss-shadow-creux: inset 4px 4px 8px var(--ss-ne-d), inset -4px -4px 8px var(--ss-ne-l);
    --ss-page-background: #e9eef3;
    --ss-header-bg: #e9eef3; --ss-header-text: #263445; --ss-header-blur: 0px;
    --ss-chip-bg: #e9eef3; --ss-chip-text: #1b2533; --ss-chip-border: transparent;
    --ss-voile: 233, 238, 243;
}
/* Mode sombre : même relief, gris anthracite. */
html[data-ss-theme="relief"][data-ss-mode="sombre"][data-ss-background] {
    color-scheme: dark;
    --ss-bg: #1d232c;
    --ss-ne-d: #12161c; --ss-ne-l: #29313d;
    --ss-surface: #1d232c; --ss-surface-2: #222a35; --ss-surface-raised: #1d232c; --ss-champ: #1a2028;
    --ss-text: #e8edf3; --ss-text-2: #a3afbd; --ss-text-secondary: #a3afbd; --ss-text-3: #8794a3;
    --ss-page-text: #e8edf3;
    --ss-accent: #0b8a7c; --ss-link: #4fd1c0; --ss-page-link: #4fd1c0; --ss-focus: #4fd1c0;
    --ss-border: transparent; --ss-line: #2f3845; --ss-nav-border: #2f3845; --ss-nav-accent: #4fd1c0;
    --ss-vert: #0b8a7c; --ss-vert-2: #12b3a0;
    --ss-page-background: #1d232c;
    --ss-header-bg: #1d232c; --ss-header-text: #e8edf3;
    --ss-chip-bg: #1d232c; --ss-chip-text: #e8edf3;
    --ss-voile: 16, 20, 26;
}
/* Mode bleu nuit : les bleus de l'écran d'accueil SchoolSafe (#0b2a6f, #123d9c, #1d5fd1), accent bleu ciel. */
html[data-ss-theme="relief"][data-ss-mode="nuit"][data-ss-background] {
    color-scheme: dark;
    --ss-bg: #0e2257;
    --ss-ne-d: #081740; --ss-ne-l: #173276;
    --ss-surface: #0e2257; --ss-surface-2: #132a66; --ss-surface-raised: #0e2257; --ss-champ: #0b1c4a;
    --ss-text: #eef4ff; --ss-text-2: #b4c6ea; --ss-text-secondary: #b4c6ea; --ss-text-3: #8fa6d6;
    --ss-page-text: #eef4ff;
    --ss-accent: #1d5fd1; --ss-link: #8fe0ff; --ss-page-link: #8fe0ff; --ss-focus: #5ad1ff;
    --ss-border: transparent; --ss-line: #22407f; --ss-nav-border: #22407f; --ss-nav-accent: #8fe0ff;
    --ss-vert: #1d5fd1; --ss-vert-2: #3b82f6;
    --ss-page-background: #0e2257;
    --ss-header-bg: #0e2257; --ss-header-text: #eef4ff;
    --ss-chip-bg: #0e2257; --ss-chip-text: #eef4ff;
    --ss-voile: 9, 22, 60;
}

/* ---------- 2. Fond de page : la couleur du thème est portée par <html>, les conteneurs restent transparents ---------- */
/* Lot D1a (08/11) : remplace la « guerre des cascades » (styles réinjectés chaque seconde) par des règles plus fortes. */
html[data-ss-theme] { background: var(--ss-bg) !important; }
html[data-ss-theme] body,
html[data-ss-theme][data-ss-background] body.modules,
html[data-ss-theme][data-ss-background] body.modules #wrap,
html[data-ss-theme][data-ss-background] body.modules #body,
html[data-ss-theme][data-ss-background] body.modules #body .sscx-app,
html[data-ss-theme] div.mod,
html[data-ss-theme] body.modules main,
html[data-ss-theme] main.ss-photo-dashboard,
html[data-ss-theme] #ss-photo-dashboard { background: transparent !important; }
/* L'ancienne ambiance de ss-effects.css (logo flou en ::before, voile vert en ::after) est éteinte partout :
   le thème « photo » la remplace par une vraie couche réglable. */
html[data-ss-theme] body::before,
html[data-ss-theme] body::after { content: none !important; display: none !important; animation: none !important; }

/* Lot D3 (09/11) : fond flouté, une seule couche derrière tout (créée par scripts.js), selon html[data-ss-fond].
   « photo » : logo ou photo de l'école, floutée, qui flotte très lentement (~20 s), sous un voile de la couleur du mode.
   « taches » : quatre taches de couleur très douces (dégradés radiaux : aucun filtre coûteux), qui dérivent lentement. */
html[data-ss-fond="photo"] #ss-ambiance-fond {
    position: fixed; inset: -8%; z-index: -2; pointer-events: none;
    background: var(--ss-bg) center / cover no-repeat;
    /* Réglage « Flou » doublé (16 → 40 px) : le logo devient une lueur de couleur, pas une image lisible. */
    filter: blur(calc(var(--ss-photo-flou) * 2 + 8px)) saturate(1.15);
    transform: scale(1.04);
    animation: ss-photo-flotte 20s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes ss-photo-flotte {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0); }
}
html[data-ss-fond]:not([data-ss-fond="aucun"]) #ss-ambiance-voile {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: rgba(var(--ss-voile), .30);
}
html[data-ss-fond="photo"] #ss-ambiance-voile { background: rgba(var(--ss-voile), calc(.25 + var(--ss-photo-assombrir) * .9)); }
/* Modes foncés : voile plus fort, sinon les parties blanches du logo éblouissent sous les cartes. */
html[data-ss-fond="photo"]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #ss-ambiance-voile { background: rgba(var(--ss-voile), calc(.5 + var(--ss-photo-assombrir) * .65)); }
html[data-ss-theme]:not([data-ss-fond="photo"]) #ss-ambiance-fond,
html[data-ss-fond="aucun"] #ss-ambiance-voile { display: none !important; }
html[data-ss-theme] #ss-theme-decor { display: none; }
html[data-ss-fond="taches"] #ss-theme-decor {
    display: block; position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
html[data-ss-fond="taches"] #ss-theme-decor i {
    position: absolute; display: block; border-radius: 50%; opacity: .55;
    animation: ss-tache 26s ease-in-out infinite alternate; will-change: transform;
}
html[data-ss-fond="taches"]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #ss-theme-decor i { opacity: .38; }
html[data-ss-fond="taches"] #ss-theme-decor i:nth-child(1) { width: 70vmax; height: 70vmax; left: -28vmax; top: 4vh; background: radial-gradient(closest-side, var(--ss-tache-1, #12b3a0), transparent); }
html[data-ss-fond="taches"] #ss-theme-decor i:nth-child(2) { width: 52vmax; height: 52vmax; right: -18vmax; top: -22vmax; background: radial-gradient(closest-side, var(--ss-tache-2, #3b82f6), transparent); animation-delay: -7s; }
html[data-ss-fond="taches"] #ss-theme-decor i:nth-child(3) { width: 58vmax; height: 58vmax; right: -10vmax; bottom: -30vmax; background: radial-gradient(closest-side, var(--ss-tache-3, #f59e0b), transparent); animation-delay: -13s; }
html[data-ss-fond="taches"] #ss-theme-decor i:nth-child(4) { width: 40vmax; height: 40vmax; left: 26vw; bottom: -18vmax; background: radial-gradient(closest-side, var(--ss-tache-4, #ec4899), transparent); animation-delay: -4s; }
@keyframes ss-tache { to { transform: translate3d(4vmax, -3vmax, 0) scale(1.08); } }

/* Lot D3 (09/11) : plus aucun verre codé en dur dans l'application (barre du haut, barre du bas, cartes, JASPE…).
   Le seul flou est celui du fond ci-dessus. Les pages hors application (connexion) ne portent pas data-ss-theme. */
html[data-ss-theme] *, html[data-ss-theme] *::before, html[data-ss-theme] *::after {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* ---------- 3. Barre du haut (#footer), menu et barre du bas ---------- */
html[data-ss-theme] body.modules #footer,
html[data-ss-theme] body.modules #footerwrap {
    background: var(--ss-header-bg) !important;
    color: var(--ss-header-text);
    border-color: var(--ss-border) !important;
    -webkit-backdrop-filter: saturate(160%) blur(var(--ss-header-blur));
    backdrop-filter: saturate(160%) blur(var(--ss-header-blur));
}
html[data-ss-theme] body.modules #footerwrap { background: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-ss-theme="relief"] body.modules #footer { box-shadow: 0 4px 10px var(--ss-ne-d) !important; border-color: transparent !important; }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #footer .ss-header-profile { color: var(--ss-text); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #footer .ss-header-profile:hover { background: var(--ss-surface-2); }
html[data-ss-theme="relief"] #ss-mobile-navigation { box-shadow: 0 -4px 10px var(--ss-ne-d); border-top-color: transparent !important; }
/* Modes foncés : les surfaces codées en dur dans night-theme.css passent aux couleurs du mode. */
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #menu .wp-submenu,
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #menu .ss-context-heading { background: var(--ss-surface) !important; color: var(--ss-text) !important; }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #ss-mobile-navigation .ss-nav-active { color: var(--ss-nav-accent) !important; }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #menu .ss-open > .menu-top,
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #menu .menu-top:hover { color: var(--ss-nav-accent) !important; }

/* ---------- 4. Cartes : surfaces des conteneurs de contenu ---------- */
html[data-ss-theme] body.modules #body :is(.postbox, fieldset),
html[data-ss-theme] body.modules #body :is(table.widefat, table.list),
html[data-ss-theme] .ss-connected-dashboard :is(.sscx-metric, .ss-connected-metric, .ss-dashboard-context, .ss-finance-metrics article, .ss-finance-analysis > section, .ss-finance-balances, .ss-reference-operation),
html[data-ss-theme] main#ss-photo-dashboard > div {
    background-color: var(--ss-surface) !important;
    color: var(--ss-text);
    border-color: var(--ss-border) !important;
}
html[data-ss-theme] body.modules #body .postbox,
html[data-ss-theme] .ss-connected-dashboard :is(.sscx-metric, .ss-connected-metric, .ss-dashboard-context, .ss-finance-metrics article, .ss-finance-analysis > section, .ss-finance-balances),
html[data-ss-theme] main#ss-photo-dashboard > div {
    border-radius: var(--ss-radius-card);
    box-shadow: var(--ss-shadow);
}
/* Le texte des cartes suit la carte, le texte posé directement sur le fond suit le fond. */
html[data-ss-theme] body.modules #body { color: var(--ss-page-text); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body :is(h1, h2, h3, h4, legend, label, p, strong, td, small, .header2) { color: inherit; }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body a:not(.ss-header-action):not([class*="Button"]) { color: var(--ss-page-link); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body .widefat th,
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) .ss-connected-dashboard :is(thead, th, tr:nth-child(even)) { background: var(--ss-surface-2) !important; color: var(--ss-text); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), select, textarea) { color: var(--ss-text); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body input::placeholder { color: var(--ss-text-3); }

/* Relief : cartes et boutons soulevés, champs creusés. */
html[data-ss-theme="relief"] body.modules #body .postbox,
html[data-ss-theme="relief"] .ss-connected-dashboard :is(.sscx-metric, .ss-connected-metric, .ss-dashboard-context, .ss-finance-metrics article, .ss-finance-analysis > section, .ss-finance-balances) { border-color: transparent !important; }
html[data-ss-theme="relief"] body.modules #body :is(table.widefat, table.list, fieldset) { box-shadow: var(--ss-shadow-petit); border-color: transparent !important; }
html[data-ss-theme="relief"] body.modules #body :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
    background: var(--ss-champ); border-color: transparent; box-shadow: var(--ss-shadow-creux); border-radius: 10px;
}
html[data-ss-theme="relief"] body.modules #body :is(input[type="submit"], input[type="button"], button, .BottomButton) { box-shadow: var(--ss-shadow-petit); }
html[data-ss-theme="relief"] body.modules #body :is(input[type="submit"], input[type="button"], button, .BottomButton):active { box-shadow: var(--ss-shadow-creux); }

/* Lot D3 (09/11) : pages intérieures en relief dans les trois modes. interior-screens.css force #body et ses
   surfaces en blanc, branch-page-heading.css et interior-screens.css teintent en-têtes et lignes de tableaux en dur :
   ces couleurs suivent maintenant le mode (sinon texte clair sur fond blanc en sombre et bleu nuit). */
html[data-ss-theme="relief"] body.modules #body {
    --ss-surface: var(--ss-d2-surface) !important; --ss-surface-raised: var(--ss-d2-surface-raised) !important;
    --ss-ligne-paire: color-mix(in srgb, var(--ss-text) 4%, var(--ss-d2-surface));
    --ss-ligne-survol: color-mix(in srgb, var(--ss-accent) 12%, var(--ss-d2-surface));
}
html[data-ss-theme="relief"] body.modules #body .ss-page-heading {
    background: var(--ss-surface) !important; color: var(--ss-text); border-color: transparent !important;
    box-shadow: var(--ss-shadow-petit); border-radius: var(--ss-radius-card);
}
html[data-ss-theme="relief"] body.modules #body .ss-page-back { background: var(--ss-surface) !important; border-color: transparent !important; box-shadow: var(--ss-shadow-petit); color: var(--ss-text); }
html[data-ss-theme="relief"] body.modules #body .ss-page-back:active { box-shadow: var(--ss-shadow-creux); }
html[data-ss-theme="relief"] body.modules #body :is(table.widefat, table.list),
html[data-ss-theme="relief"] body.modules #body :is(table.widefat, table.list) > :is(tbody, thead, tfoot) > tr,
html[data-ss-theme="relief"] body.modules #body :is(table.widefat, table.list) > :is(tbody, tfoot) > tr > td { background: var(--ss-surface) !important; color: var(--ss-text); border-color: var(--ss-line) !important; }
html[data-ss-theme="relief"] body.modules #body :is(table.widefat, table.list) > tbody > tr:nth-child(even) > td { background: var(--ss-ligne-paire) !important; }
html[data-ss-theme="relief"] body.modules #body :is(table.widefat, table.list) > tbody > tr:is(:hover, :focus-within) > td { background: var(--ss-ligne-survol) !important; }
html[data-ss-theme="relief"] body.modules #body :is(table.widefat, table.list) :is(th, thead td) { background: var(--ss-surface-2) !important; color: var(--ss-text-2) !important; border-color: var(--ss-line) !important; }
html[data-ss-theme="relief"]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body :is(.ss-page-explanation, .ss-page-heading :is(h1, h2, p, span, strong)) { color: var(--ss-text) !important; }
/* Phrase d'aide, barre « Affichage complet » (td.header2) et barre de recherche / export des listes (table.list-nav). */
html[data-ss-theme="relief"] body.modules #body .ss-page-explanation { background: var(--ss-surface) !important; color: var(--ss-text-2) !important; border-color: transparent !important; box-shadow: var(--ss-shadow-creux); border-radius: 12px; }
html[data-ss-theme="relief"] body.modules #body :is(td.header2, table.list-nav, table.list-nav > tbody > tr > td) { background: var(--ss-surface) !important; color: var(--ss-text) !important; border-color: transparent !important; }
html[data-ss-theme="relief"] body.modules #body :is(td.header2, table.list-nav) { box-shadow: var(--ss-shadow-petit); border-radius: 12px; }
/* Boutons ronds de la barre du haut (messages, scanner…) et pastille du profil : en relief, couleur du mode. */
html[data-ss-theme="relief"] body.modules :is(#footer, #footerwrap) a.ss-header-action,
html[data-ss-theme="relief"] body.modules :is(#footer, #footerwrap) .ss-header-avatar {
    background: var(--ss-surface) !important; color: var(--ss-text) !important; border-color: transparent !important; box-shadow: var(--ss-shadow-petit);
}
html[data-ss-theme="relief"] body.modules :is(#footer, #footerwrap) a.ss-header-action:active { box-shadow: var(--ss-shadow-creux); }
/* Lot UD (09/11/2026) : fiche d'un utilisateur et pages d'origine à onglets — en-tête de carte (ss-f13), cadre à onglets
   (PopTable), tableau des informations générales, onglets et notes : surface du mode au lieu du blanc codé en dur. */
html[data-ss-theme="relief"] body.modules #body :is(header.ss-f13, td.popTable, table.general-info, table.general-info td) {
    background: var(--ss-surface) !important; color: var(--ss-text) !important; border-color: var(--ss-line) !important;
}
html[data-ss-theme="relief"] body.modules #body header.ss-f13 { box-shadow: var(--ss-shadow-petit); border-color: transparent !important; }
/* École (10/11/2026) : sur téléphone, les cases des lignes ordinaires (tr.st) flottent ; une ligne sans .st (ex. mot de
   passe de la fiche élève) remontait sous elles et son fond opaque cachait tout le formulaire (« Identité » vide). */
html[data-ss-theme] body.modules #body table.general-info > tbody > tr:not(.st) { clear: both; }
/* Ajouter un élève, étape 2 : le tableau « Scolarité » (table.enrollment) prend la surface du mode, comme l'identité. */
html[data-ss-theme="relief"] body.modules #body table.enrollment { background: var(--ss-surface) !important; color: var(--ss-text) !important; }
/* Vérification École (10/11/2026) : messages du logiciel (confirmations div.updated, erreurs div.error) restés blancs en
   mode sombre et bleu nuit, avec un texte clair : illisibles. Surface du mode, texte du mode. */
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body :is(div.updated, div.error) {
    background: var(--ss-surface-2, var(--ss-surface)) !important; color: var(--ss-text) !important; border-color: var(--ss-line) !important;
}
/* Vérification École (10/11/2026) : dans les pages de réglages de l'école (ex. « Nouvel évènement » du calendrier), les
   trois menus d'une date (jour, mois, année) prenaient chacun 100 % : mois et année sortaient de l'écran du téléphone. */
body[class*="modname-school-setup-"] .popTable span.nobr > select { width: auto !important; min-width: 0 !important; }
/* Fenêtre surgissante (colorbox) : l'image du bouton de fermeture montrait deux icônes ; un « × » lisible à la place. */
#cboxClose { background: none !important; text-indent: 0 !important; font-size: 0 !important; color: var(--ss-text, #1b2533) !important; }
#cboxClose::before { content: "×"; font-size: 30px; line-height: 44px; }
/* Le cadre du formulaire (postbox, 320 px au moins) dépassait la fenêtre surgissante sur téléphone. */
#cboxLoadedContent table.postbox { min-width: 0 !important; width: 100% !important; }
#cboxLoadedContent :is(input[type="text"], textarea) { max-width: 100%; box-sizing: border-box; }
html[data-ss-theme="relief"] body.modules #body :is(header.ss-f13 :is(h1, h2, h3, p, span, strong), table.general-info :is(td, label, span, b)) { color: inherit !important; }
html[data-ss-theme="relief"] body.modules #body :is(table.postbox > thead > tr > th, table.postbox th.center, span.uld) {
    background: var(--ss-surface-2) !important; color: var(--ss-text) !important; border-color: var(--ss-line) !important;
}
html[data-ss-theme="relief"] body.modules #body :is(div.note, .note-message, p.note) { background: var(--ss-surface) !important; color: var(--ss-text) !important; border-color: var(--ss-line) !important; }

/* Puce météo : lisible dans tous les thèmes (le style en ligne de scripts.js n'est pas !important). */
html[data-ss-theme] #ss-meteo-fixe {
    background: var(--ss-chip-bg) !important; color: var(--ss-chip-text) !important;
    border: 1px solid var(--ss-chip-border) !important;
}
html[data-ss-theme="relief"] #ss-meteo-fixe { box-shadow: var(--ss-shadow-petit) !important; }

/* ---------- 5. Dialogue « Apparence » ---------- */
#ss-apparence {
    box-sizing: border-box; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto;
    padding: 18px; border: 1px solid var(--ss-border, #dde3e0); border-radius: 18px;
    background: var(--ss-surface-raised, #fff); color: var(--ss-text, #172333);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
    font: 14px/1.45 "Segoe UI", Roboto, system-ui, sans-serif;
}
html[data-ss-theme="relief"] #ss-apparence { border-color: transparent; box-shadow: var(--ss-shadow), 0 18px 48px rgba(0, 0, 0, .22); }
html[data-ss-theme="relief"] #ss-apparence :is(fieldset, .ss-apparence-carte) { border-color: var(--ss-line); }
html[data-ss-theme="relief"] #ss-apparence button { background: var(--ss-surface); color: var(--ss-text); border-color: transparent; box-shadow: var(--ss-shadow-petit); }
html[data-ss-theme="relief"] #ss-apparence button:active { box-shadow: var(--ss-shadow-creux); }
html[data-ss-theme="relief"] #ss-apparence button.ss-apparence-principal { background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)); color: #ffffff; }
html[data-ss-theme="relief"] #ss-apparence .ss-apparence-segment { border-color: transparent; background: var(--ss-champ); box-shadow: var(--ss-shadow-creux); }
html[data-ss-theme="relief"] #ss-apparence .ss-apparence-segment input:checked + span { background: var(--ss-vert, #08766b); box-shadow: var(--ss-shadow-petit); }
#ss-apparence::backdrop { background: rgba(10, 20, 18, .45); }
#ss-apparence[open] { animation: ss-apparition .25s var(--ss-ease, ease) both; }
#ss-apparence h2 { margin: 0 0 4px; font-size: 19px; }
#ss-apparence .ss-apparence-aide { margin: 0 0 14px; color: var(--ss-text-2, #5d6b7e); font-size: 13px; }
#ss-apparence .ss-apparence-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; border: 0; }
#ss-apparence .ss-apparence-carte { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 8px; border: 2px solid var(--ss-border, #dde3e0); border-radius: 14px; cursor: pointer; transition: border-color .2s, transform .15s; }
#ss-apparence .ss-apparence-carte:active { transform: scale(.97); }
#ss-apparence .ss-apparence-carte input { position: absolute; opacity: 0; pointer-events: none; }
#ss-apparence .ss-apparence-carte:has(input:checked) { border-color: #08766b; box-shadow: 0 0 0 3px rgba(8, 118, 107, .18); }
#ss-apparence .ss-apparence-carte:has(input:focus-visible) { outline: 2px solid #08766b; outline-offset: 2px; }
#ss-apparence .ss-apparence-apercu { display: flex; align-items: flex-end; gap: 4px; height: 54px; padding: 8px; border-radius: 10px; }
#ss-apparence .ss-apparence-apercu span { flex: 1; height: 26px; border-radius: 6px; }
#ss-apparence .ss-apparence-apercu span:last-child { flex: .5; height: 14px; }
#ss-apparence .ss-apparence-nom { font-weight: 700; }
#ss-apparence .ss-apparence-phrase { font-size: 12px; color: var(--ss-text-2, #5d6b7e); }
#ss-apparence .ss-apparence-photo { margin: 0 0 14px; padding: 12px; border: 1px solid var(--ss-border, #dde3e0); border-radius: 14px; }
#ss-apparence .ss-apparence-photo legend { padding: 0 4px; font-weight: 700; }
/* Couleur du thème « clair » : six teintes prêtes et une couleur libre (choix du propriétaire, 08/11). */
#ss-apparence .ss-apparence-teinte { margin: 0 0 14px; padding: 12px; border: 1px solid var(--ss-border, #dde3e0); border-radius: 14px; }
#ss-apparence .ss-apparence-teinte legend { padding: 0 4px; font-weight: 700; }
#ss-apparence .ss-apparence-teintes { display: flex; flex-wrap: wrap; gap: 10px; }
#ss-apparence .ss-apparence-pastille { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 48px; cursor: pointer; }
#ss-apparence .ss-apparence-pastille input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
#ss-apparence .ss-apparence-pastille span, #ss-apparence .ss-apparence-libre input[type="color"] {
    box-sizing: border-box; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #c5ccd3; transition: transform .2s var(--ss-ease, ease), box-shadow .2s var(--ss-ease, ease);
}
#ss-apparence .ss-apparence-libre input[type="color"] { padding: 0; cursor: pointer; background: conic-gradient(#e11d48, #f59e0b, #16a34a, #0ea5e9, #6d28d9, #e11d48); }
#ss-apparence .ss-apparence-libre input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
#ss-apparence .ss-apparence-libre input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
#ss-apparence .ss-apparence-pastille input:checked + span,
#ss-apparence .ss-apparence-libre.is-actif input[type="color"] { box-shadow: 0 0 0 2px #172333; transform: scale(1.08); }
#ss-apparence .ss-apparence-pastille input:focus-visible + span,
#ss-apparence .ss-apparence-libre input:focus-visible { outline: 2px solid var(--ss-focus, #08766b); outline-offset: 3px; }
#ss-apparence .ss-apparence-pastille small { font-size: 12px; color: var(--ss-text-2, #5d6b7e); }
#ss-apparence .ss-apparence-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#ss-apparence button { min-height: 44px; padding: 0 14px; border: 1px solid #c9d3de; border-radius: 12px; background: #fff; color: #172333; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s; }
#ss-apparence button:active { transform: scale(.97); }
#ss-apparence button.ss-apparence-principal { border-color: #08766b; background: linear-gradient(135deg, #08766b, #0d9488); color: #fff; }
#ss-apparence .ss-apparence-reglage { display: grid; grid-template-columns: 90px 1fr 56px; align-items: center; gap: 8px; min-height: 44px; }
#ss-apparence .ss-apparence-reglage input[type="range"] { width: 100%; accent-color: var(--ss-accent, #08766b); }
#ss-apparence output { font-variant-numeric: tabular-nums; text-align: right; }
#ss-apparence .ss-apparence-message { min-height: 1.4em; margin: 6px 0 0; font-size: 13px; }
#ss-apparence .ss-apparence-message[data-type="erreur"] { color: var(--ss-etat-urgent, #a32d2d); }
#ss-apparence .ss-apparence-message[data-type="fait"] { color: var(--ss-etat-fait, #08766b); }
/* Lot D1b (08/11) : section « Confort », segments, interrupteurs et pied « Rétablir / Fermer ».
   Tout reste dans la largeur d'un téléphone de 360 px (aucun défilement horizontal). */
#ss-apparence { overflow-x: hidden; }
#ss-apparence *, #ss-apparence *::before, #ss-apparence *::after { box-sizing: border-box; }
#ss-apparence fieldset { min-width: 0; max-width: 100%; }
#ss-apparence .ss-apparence-info { margin: -6px 0 12px; padding: 8px 10px; border-radius: 10px; background: var(--ss-etat-info-bg, #e6f1fb); color: var(--ss-etat-info, #185fa5); font-size: 13px; }
#ss-apparence .ss-apparence-info[hidden] { display: none; }
#ss-apparence .ss-apparence-confort { margin: 0 0 14px; padding: 4px 12px 8px; border: 1px solid var(--ss-border, #dde3e0); border-radius: 14px; }
#ss-apparence .ss-apparence-confort legend { padding: 0 4px; font-weight: 700; }
#ss-apparence .ss-apparence-confort .ss-apparence-info { margin: 0 0 6px; }
#ss-apparence .ss-apparence-ligne { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 52px; padding: 6px 0; }
#ss-apparence .ss-apparence-ligne + .ss-apparence-ligne { border-top: 1px solid var(--ss-line, #e3e8eb); }
#ss-apparence .ss-apparence-libelle { display: grid; gap: 2px; flex: 1 1 150px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
#ss-apparence .ss-apparence-libelle small { font-size: 12px; font-weight: 400; color: var(--ss-text-2, #5d6b7e); }
#ss-apparence .ss-apparence-segment { display: inline-flex; flex: 0 1 auto; max-width: 100%; gap: 2px; padding: 2px; border: 1px solid var(--ss-border, #c9d3de); border-radius: 13px; background: var(--ss-surface-2, #f3f6f5); }
#ss-apparence .ss-apparence-segment label { position: relative; display: block; flex: 1 1 auto; cursor: pointer; }
#ss-apparence .ss-apparence-segment input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#ss-apparence .ss-apparence-segment span { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 10px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s; }
#ss-apparence .ss-apparence-segment input:checked + span { background: var(--ss-accent, #08766b); color: #ffffff; }
#ss-apparence .ss-apparence-segment input:focus-visible + span { outline: 2px solid var(--ss-focus, #08766b); outline-offset: 1px; }
#ss-apparence .ss-apparence-interrupteur { cursor: pointer; flex-wrap: nowrap; }
#ss-apparence .ss-apparence-interrupteur input { position: absolute; right: 0; top: 50%; width: 56px; height: 44px; margin: -22px 0 0; opacity: 0; cursor: pointer; }
#ss-apparence .ss-apparence-glissiere { position: relative; flex: 0 0 52px; width: 52px; height: 30px; border-radius: 15px; background: #6b7785; transition: background-color .2s; }
#ss-apparence .ss-apparence-glissiere::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ss-ease, ease); }
#ss-apparence .ss-apparence-interrupteur input:checked + .ss-apparence-glissiere { background: #08766b; }
#ss-apparence .ss-apparence-interrupteur input:checked + .ss-apparence-glissiere::after { transform: translateX(22px); }
#ss-apparence .ss-apparence-interrupteur input:focus-visible + .ss-apparence-glissiere { outline: 2px solid var(--ss-focus, #08766b); outline-offset: 2px; }
#ss-apparence .ss-apparence-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
#ss-apparence .ss-apparence-pied button { max-width: 100%; white-space: normal; }
#ss-apparence .ss-apparence-pied [data-action="fermer"] { margin-left: auto; }
@media (max-width: 700px) {
    #ss-apparence { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    #ss-apparence[open] { animation: ss-panneau-monte .3s var(--ss-ease, ease) both; }
}

/* ---------- 6. Animations de la charte (classes réutilisables) ---------- */
@keyframes ss-entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ss-apparition { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ss-panneau-monte { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ss-voile-entree { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-toast { 0% { opacity: 0; transform: translate(-50%, -16px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -16px); } }
@keyframes ss-reflet { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes ss-pulsation { 0%, 100% { box-shadow: 0 0 0 0 rgba(8, 118, 107, .35); } 50% { box-shadow: 0 0 0 10px rgba(8, 118, 107, 0); } }

/* Apparition en cascade : glissement + fondu, 50 ms d'écart entre les enfants. */
.ss-cascade > * { animation: ss-entree .35s var(--ss-ease, ease) both; }
.ss-cascade > :nth-child(2) { animation-delay: 50ms; }
.ss-cascade > :nth-child(3) { animation-delay: 100ms; }
.ss-cascade > :nth-child(4) { animation-delay: 150ms; }
.ss-cascade > :nth-child(5) { animation-delay: 200ms; }
.ss-cascade > :nth-child(6) { animation-delay: 250ms; }
.ss-cascade > :nth-child(7) { animation-delay: 300ms; }
.ss-cascade > :nth-child(8) { animation-delay: 350ms; }
.ss-cascade > :nth-child(n+9) { animation-delay: 400ms; }
/* Bouton, tuile ou carte qui s'enfonce au toucher (transformation seule : la disposition ne bouge pas). */
.ss-press, html[data-ss-theme] body.modules #body :is(input[type="submit"], input[type="button"], button),
html[data-ss-theme] #ss-mobile-navigation :is(a, button), html[data-ss-theme] #ss-actions-rapides a.ss-ar-carte { transition: transform .15s var(--ss-ease, ease); }
.ss-press:active, html[data-ss-theme] body.modules #body :is(input[type="submit"], input[type="button"], button):active,
html[data-ss-theme] #ss-mobile-navigation :is(a, button):active { transform: scale(.97); }
/* Panneau qui monte du bas, fond assombri. */
.ss-sheet-up { animation: ss-panneau-monte .3s var(--ss-ease, ease) both; }
.ss-voile { position: fixed; inset: 0; background: rgba(10, 20, 18, .45); animation: ss-voile-entree .25s ease both; }
/* Message de confirmation qui glisse en haut puis disparaît (3 s). */
.ss-toast {
    position: fixed; top: 64px; left: 50%; z-index: 1000; max-width: min(420px, calc(100vw - 24px));
    padding: 10px 16px; border-radius: 12px; background: var(--ss-etat-fait-bg, #e1f5ee); color: var(--ss-etat-fait, #08766b);
    font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); animation: ss-toast 3s var(--ss-ease, ease) both; pointer-events: none;
}
/* Chargement en « reflet » au lieu d'une page blanche. */
.ss-skeleton {
    border-radius: 8px; color: transparent !important;
    background: linear-gradient(90deg, var(--ss-surface-2, #f3f6f5) 25%, var(--ss-surface, #fff) 50%, var(--ss-surface-2, #f3f6f5) 75%);
    background-size: 400% 100%; animation: ss-reflet 1.2s linear infinite;
}
.ss-pulse { animation: ss-pulsation 2.6s ease-in-out infinite; }
/* Anneau de focus et champ actif entouré de vert (couleur d'accent du thème). */
html[data-ss-theme] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ss-focus); outline-offset: 2px; }
html[data-ss-theme] body.modules #body :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
    border-color: var(--ss-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ss-focus) 22%, transparent);
}
html[data-ss-theme="relief"] body.modules #body :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
    box-shadow: var(--ss-shadow-creux), 0 0 0 3px color-mix(in srgb, var(--ss-focus) 30%, transparent);
}

/* ---------- 7. Moins d'animations demandé par l'appareil : tout s'arrête ---------- */
@media (prefers-reduced-motion: reduce) {
    html[data-ss-theme] *, html[data-ss-theme] *::before, html[data-ss-theme] *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    html[data-ss-theme] :is(#ss-ambiance-fond, #ss-theme-decor, #ss-theme-decor *) { animation: none !important; will-change: auto !important; }
    html[data-ss-theme] #ss-theme-decor::before { animation: none !important; }
    /* Le message reste visible ; le script qui l'affiche le retire après 3 s. */
    html[data-ss-theme] .ss-toast { animation: none !important; transform: translateX(-50%); }
    html[data-ss-theme] #ss-fete { animation: none !important; }
}

/* ---------- 8. Lot D1b (08/11) : taille du texte (A− 0,9 / A 1 / A+ 1,15) ---------- */
/* Seul le texte du contenu change (pas de zoom CSS) : boutons, barre du haut et menu gardent leur taille et leur place.
   Échelle relative sur #body : le texte hérité et les titres en « em » (FlatSIS) suivent ; les en-têtes de tableau
   (14 px dans FlatSIS) et les champs (13,33 px par défaut du navigateur) reçoivent la même échelle. Les textes fixés
   en px par une feuille de module ne changent pas. */
html[data-ss-texte="petit"] { --ss-texte-k: .9; }
html[data-ss-texte="grand"] { --ss-texte-k: 1.15; }
html:is([data-ss-texte="petit"], [data-ss-texte="grand"]) body.modules #body { font-size: calc(100% * var(--ss-texte-k)); }
html:is([data-ss-texte="petit"], [data-ss-texte="grand"]) body.modules #body :is(.widefat th, .widefat th a, .widefat th label, .widefat th span) { font-size: calc(14px * var(--ss-texte-k)) !important; }
html:is([data-ss-texte="petit"], [data-ss-texte="grand"]) body.modules #body :is(input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
    font-size: calc(13.333px * var(--ss-texte-k));
}
/* Les mots longs passent à la ligne au lieu d'élargir la page. */
html[data-ss-texte="grand"] body.modules #body :is(p, li, td, label) { overflow-wrap: anywhere; }

/* ---------- 9. Lot D1b (08/11) : plein soleil, prioritaire sur le thème choisi ---------- */
/* Fond blanc, texte noir, bordures foncées, police plus épaisse ; aucune transparence, aucun flou, aucun décor animé. */
html[data-ss-soleil="on"][data-ss-theme][data-ss-background] {
    color-scheme: light;
    --ss-bg: #ffffff;
    --ss-surface: #ffffff; --ss-surface-2: #ffffff; --ss-surface-raised: #ffffff;
    --ss-text: #000000; --ss-text-2: #1a1a1a; --ss-text-secondary: #1a1a1a; --ss-text-3: #2b2b2b;
    --ss-page-text: #000000;
    --ss-accent: #005a51; --ss-link: #003f9e; --ss-page-link: #003f9e; --ss-focus: #000000;
    --ss-border: #1f2933; --ss-line: #3a4550; --ss-nav-border: #1f2933; --ss-nav-accent: #005a51;
    --ss-shadow: none; --ss-shadow-petit: none; --ss-shadow-creux: none;
    --ss-page-background: #ffffff;
    --ss-header-bg: #ffffff; --ss-header-text: #000000; --ss-header-blur: 0px;
    --ss-chip-bg: #ffffff; --ss-chip-text: #000000; --ss-chip-border: #1f2933;
}
html[data-ss-soleil="on"] body.modules { color: #000000; font-weight: 500; }
html[data-ss-soleil="on"] body.modules #body :is(p, li, td, th, label, legend, span, small, a, input, select, textarea) { font-weight: 600; text-shadow: none !important; }
html[data-ss-soleil="on"] body.modules #body :is(.postbox, fieldset, table.widefat, table.list),
html[data-ss-soleil="on"] .ss-connected-dashboard :is(.sscx-metric, .ss-connected-metric, .ss-dashboard-context) {
    border: 2px solid #1f2933 !important; box-shadow: none !important; background-color: #ffffff !important;
}
html[data-ss-soleil="on"] body.modules #body :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
    background: #ffffff !important; color: #000000 !important; border: 2px solid #1f2933 !important; box-shadow: none !important;
}
html[data-ss-soleil="on"] body.modules #body a:not([class*="Button"]) { text-decoration: underline; }
html[data-ss-soleil="on"] body.modules #footer { border-bottom: 2px solid #1f2933 !important; box-shadow: none !important; }
html[data-ss-soleil="on"] *,
html[data-ss-soleil="on"] *::before,
html[data-ss-soleil="on"] *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-ss-soleil="on"] :is(#ss-ambiance-fond, #ss-ambiance-voile, #ss-theme-decor, #ss-fete) { display: none !important; }
html[data-ss-soleil="on"] #ss-apparence { border: 2px solid #1f2933; }
html[data-ss-soleil="on"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #000000; outline-offset: 2px; }

/* ---------- 10. Lot D1b (08/11) : économie de données (réseau lent ou choix « Toujours ») ---------- */
/* Aucune photo ni décor chargé (le script ne crée pas les couches), animations et transitions coupées. */
html[data-ss-econome="on"] :is(#ss-ambiance-fond, #ss-ambiance-voile, #ss-theme-decor, #ss-fete) { display: none !important; }
html[data-ss-econome="on"] *,
html[data-ss-econome="on"] *::before,
html[data-ss-econome="on"] *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .001ms !important;
}
html[data-ss-econome="on"] * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ---------- 11. Lot D1b (08/11) : décor des fêtes, bandeau fin en haut du contenu ---------- */
#ss-fete {
    position: relative; box-sizing: border-box; display: flex; align-items: center; gap: 8px;
    max-width: 100%; min-height: 44px; margin: 0 0 12px; padding: 4px 0 0 14px; overflow: hidden;
    border: 1px solid var(--ss-border, #dde3e0); border-radius: 12px;
    background: var(--ss-surface, #ffffff); color: var(--ss-text, #172333);
    font: 600 14px/1.35 "Segoe UI", Roboto, system-ui, sans-serif;
    animation: ss-entree .35s var(--ss-ease, ease) both;
}
/* Liseré de couleurs et motif léger de points. */
#ss-fete::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #08766b, #f2b705, #08766b); }
#ss-fete::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: radial-gradient(circle, rgba(8, 118, 107, .14) 1.5px, transparent 2px) 0 0 / 18px 18px;
}
#ss-fete[data-fete="independance"]::before { background: linear-gradient(100deg, #007fff 0 42%, #f7d618 42% 47%, #ce1021 47% 57%, #f7d618 57% 62%, #007fff 62%); }
#ss-fete[data-fete="independance"]::after { background: radial-gradient(circle, rgba(0, 127, 255, .16) 1.5px, transparent 2px) 0 0 / 18px 18px; }
#ss-fete[data-fete="noel"]::before { background: linear-gradient(90deg, #b91c1c, #15803d, #b91c1c); }
#ss-fete[data-fete="nouvel-an"]::before { background: linear-gradient(90deg, #b8860b, #f2d16b, #b8860b); }
#ss-fete .ss-fete-texte { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; padding: 8px 0; overflow-wrap: anywhere; }
#ss-fete .ss-fete-masquer {
    position: relative; z-index: 1; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0;
    border: 0; background: transparent; color: inherit; font: 400 24px/1 system-ui, sans-serif; cursor: pointer;
}
#ss-fete .ss-fete-masquer:hover { background: rgba(0, 0, 0, .06); }
html[data-ss-theme="relief"] #ss-fete { border-color: transparent; box-shadow: var(--ss-shadow-petit); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #ss-fete::after { opacity: .25; }

/* ---------- 12. Lot D2 (08/11) : accueil, menu, barre du bas, boutons fixes JASPE et Watch ---------- */
/* Maquette validée : docs/maquettes/application-v4.html et tableau-de-bord-v3.html ; charte § 2, 3, 4, 7, 9.
   Toutes les couleurs passent par les variables --ss-* (relief en 3 modes, teinte libre, plein soleil, économie de données).
   Couleurs de rubrique (charte § 3) : les 13 rubriques actuelles gardent leur nom ; leur couleur suit la rubrique
   de la charte la plus proche, en attendant le regroupement en 7 rubriques (à valider par le propriétaire). */
/* interior-screens.css redéfinit --ss-surface en blanc sur #body : ces alias gardent la surface du thème choisi
   (calculée sur <html>) pour l'accueil, quel que soit le thème. */
html[data-ss-theme] { --ss-onglet-h: 60px; --ss-d2-surface: var(--ss-surface); --ss-d2-surface-raised: var(--ss-surface-raised); }
.ss-cache-visuel { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ss-icone { flex: 0 0 auto; display: block; }
#menu .menu-module { --ss-rubrique: #475569; }
#menu .menu-module:is([data-ss-branch="pilotage"]) { --ss-rubrique: #08766b; }
#menu .menu-module:is([data-ss-branch="school"], [data-ss-branch="users"], [data-ss-branch="people"]) { --ss-rubrique: #0f766e; }
#menu .menu-module[data-ss-branch="pedagogy"] { --ss-rubrique: #2563eb; }
#menu .menu-module[data-ss-branch="security"] { --ss-rubrique: #b45309; }
#menu .menu-module:is([data-ss-branch="finance"], [data-ss-branch="accounting"]) { --ss-rubrique: #15803d; }
#menu .menu-module[data-ss-branch="communication"] { --ss-rubrique: #7c3aed; }
#menu .menu-module[data-ss-branch="care"] { --ss-rubrique: #db2777; }
#menu .menu-module:is([data-ss-branch="reports"], [data-ss-branch="administration"], [data-ss-branch="inventory"]) { --ss-rubrique: #475569; }

/* 12.1 Boutons ronds fixes JASPE et Watch, sur toutes les pages (charte § 2). */
html[data-ss-theme]:not([data-ss-prodeli]) body.modules #footer :is(#ss-header-jaspe, #ss-header-watch) { display: none !important; }
/* Opérateurs ProDéli (style #ss-central-chrome de Warehouse.php) : leur présentation ne change pas. */
html[data-ss-prodeli] #ss-compagnons { display: none !important; }
#ss-compagnons {
    position: fixed; right: 10px; bottom: 24px; z-index: 2500;
    display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
}
#ss-compagnons > button {
    pointer-events: auto; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 56px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
    color: var(--ss-text, #172333); font: 700 11px/1.2 "Segoe UI", Roboto, system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ss-ease, ease);
}
#ss-compagnons > button:active { transform: scale(.92); }
#ss-compagnons > button > span:last-child {
    padding: 1px 7px; border-radius: 10px; background: var(--ss-surface, #fff); color: var(--ss-text, #172333);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
#ss-compagnons .ss-jaspe-portrait {
    position: relative; display: block; box-sizing: border-box; width: 52px; height: 52px; overflow: hidden; border-radius: 50%;
    border: 3px solid #ffffff; background: linear-gradient(135deg, #08766b, #14b8a6);
    box-shadow: 0 6px 18px rgba(8, 118, 107, .3); animation: ss-d2-jaspe 2.6s ease-in-out infinite;
}
#ss-compagnons .ss-jaspe-portrait img { position: absolute; width: 112px; max-width: none; height: auto; left: -32px; top: -9px; }
@keyframes ss-d2-jaspe {
    0%, 100% { box-shadow: 0 6px 18px rgba(8, 118, 107, .3), 0 0 0 0 rgba(20, 184, 166, .38); }
    50% { box-shadow: 0 6px 18px rgba(8, 118, 107, .3), 0 0 0 9px rgba(20, 184, 166, 0); }
}
#ss-compagnons .ss-compagnon-rond {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--ss-border, #dde3e0); background: var(--ss-surface, #fff); color: var(--ss-text, #172333);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
html[data-ss-theme="relief"] #ss-compagnons .ss-compagnon-rond { box-shadow: var(--ss-shadow-petit); border-color: transparent; }
#ss-compagnons > button[aria-expanded="true"] :is(.ss-jaspe-portrait, .ss-compagnon-rond) { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 2px; }
#ss-compagnons > button:focus-visible { outline: none; }
#ss-compagnons > button:focus-visible :is(.ss-jaspe-portrait, .ss-compagnon-rond) { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 2px; }
/* Le panneau JASPE et la fenêtre Watch s'ouvrent à gauche des boutons ronds, sans les couvrir. */
@media screen and (min-width: 701px) {
    html[data-ss-theme] #ss-jaspe-dialog[open] { right: 84px !important; bottom: 20px !important; }
    html[data-ss-theme] #ss-watch-dialog { right: 84px; bottom: 20px; }
}
@media print { #ss-compagnons { display: none !important; } }

/* 12.2 Barre du bas du téléphone : Accueil · profil · action · Messages · Menu. */
@media screen and (max-width: 700px) {
    html[data-ss-theme] #ss-mobile-navigation {
        grid-template-columns: repeat(var(--ss-onglets, 5), minmax(0, 1fr)) !important;
        height: calc(var(--ss-onglet-h) + env(safe-area-inset-bottom)); min-height: var(--ss-onglet-h);
        background: var(--ss-d2-surface) !important; border-top: 1px solid var(--ss-border) !important;
    }
    html[data-ss-theme] #ss-mobile-navigation :is(a, button) {
        position: relative; gap: 2px; min-height: 48px; color: var(--ss-text-2) !important; font: 600 11px/1.25 "Segoe UI", Roboto, system-ui, sans-serif;
    }
    html[data-ss-theme] #ss-mobile-navigation .ss-icone { transition: transform .3s var(--ss-ease, ease); }
    html[data-ss-theme] #ss-mobile-navigation :is(.ss-nav-active, #ss-mobile-menu[aria-expanded="true"]) { color: var(--ss-accent) !important; }
    html[data-ss-theme] #ss-mobile-navigation :is(.ss-nav-active, #ss-mobile-menu[aria-expanded="true"]) .ss-icone { transform: translateY(-2px); }
    html[data-ss-theme] #ss-mobile-navigation :is(.ss-nav-active, #ss-mobile-menu[aria-expanded="true"])::before {
        content: ""; position: absolute; top: -4px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px;
        background: currentColor; animation: ss-entree .3s var(--ss-ease, ease) both;
    }
    html[data-ss-theme] #ss-mobile-navigation .ss-nav-active > :first-child { transform: none; }
    html[data-ss-theme] body.modules { padding-bottom: calc(var(--ss-onglet-h) + 8px + env(safe-area-inset-bottom)); }
    #ss-compagnons { bottom: calc(var(--ss-onglet-h) + 14px + env(safe-area-inset-bottom)); }
    /* Barre du haut du téléphone : logo, température, cloche, profil ; le reste est dans Menu › Mon compte. */
    html[data-ss-theme] body.modules #footerwrap .ss-header-tools > .ss-dans-mon-compte,
    html[data-ss-theme] body.modules #footerwrap .ss-header-tools > #ss-header-languages { display: none !important; }
}

/* 12.3 Température dans la barre du haut (remplace la puce flottante). */
html[data-ss-theme] #ss-meteo-fixe {
    position: static !important; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
    min-height: 44px; padding: 0 8px; border: 0 !important; border-radius: 22px; box-shadow: none !important;
    background: transparent !important; color: var(--ss-header-text) !important; text-decoration: none;
    font: 600 13px/1 "Segoe UI", Roboto, system-ui, sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; cursor: pointer;
}
html[data-ss-theme] #ss-meteo-fixe:hover { background: color-mix(in srgb, var(--ss-header-text) 10%, transparent) !important; }
body > #ss-meteo-fixe { position: fixed !important; top: 8px; right: 10px; z-index: 80; }
@media print { #ss-meteo-fixe { display: none !important; } }

/* 12.4 Le menu : recherche, rubriques en cartes de couleur avec leur nombre de fonctions, Mon compte (charte § 3). */
#menu .ss-menu-entete { display: none; }
html[data-ss-theme] body.modules #menu #ss-menu-recherche {
    position: relative; display: flex; align-items: center; gap: 8px; box-sizing: border-box; margin: 6px 10px 8px;
    padding: 0 12px; min-height: 46px; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-chip, 12px);
    background: var(--ss-surface-2); color: var(--ss-text-2);
}
html[data-ss-theme] body.modules #menu #ss-menu-recherche input {
    flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0 !important; outline: 0; box-shadow: none !important;
    background: transparent !important; color: var(--ss-text); font: 14px "Segoe UI", Roboto, system-ui, sans-serif;
}
html[data-ss-theme] body.modules #menu #ss-menu-recherche:focus-within { border-color: var(--ss-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ss-focus) 22%, transparent); }
html[data-ss-theme] body.modules #menu #ss-menu-recherche input::placeholder { color: var(--ss-text-3); }
#menu.ss-menu-cherche .adminmenu { display: none !important; }
html[data-ss-theme] body.modules #menu #ss-menu-resultats {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 10px 10px; padding: 0; list-style: none;
}
html[data-ss-theme] body.modules #menu #ss-menu-resultats a {
    display: flex; flex-direction: column; gap: 2px; min-height: 44px; box-sizing: border-box; padding: 9px 10px; border-radius: 12px;
    color: var(--ss-text) !important; text-decoration: none; background: transparent; transition: background-color .2s;
}
html[data-ss-theme] body.modules #menu #ss-menu-resultats a:hover { background: var(--ss-surface-2); }
html[data-ss-theme] body.modules #menu #ss-menu-resultats strong { font: 600 14px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; }
html[data-ss-theme] body.modules #menu #ss-menu-resultats small { color: var(--ss-text-2); font-size: 12px; line-height: 1.35; }
html[data-ss-theme] body.modules #menu #ss-menu-resultats .ss-menu-vide { padding: 12px 10px; color: var(--ss-text-2); font-size: 13px; }

/* Rubrique : icône de couleur, nom, nombre de fonctions, flèche. */
html[data-ss-theme] body.modules #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top {
    display: grid !important; grid-template-columns: 34px minmax(0, 1fr) 16px; grid-template-rows: auto auto;
    column-gap: 10px; align-items: center; box-sizing: border-box; min-height: 52px; height: auto !important;
    padding: 8px 10px !important; white-space: normal; text-transform: none;
}
html[data-ss-theme] body.modules #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top :is(.module-icon, .ss-users-icon) { display: none !important; }
html[data-ss-theme] body.modules #menu.ss-d2-menu .menu-top .ss-rubrique-icone {
    grid-column: 1; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 10px; background: var(--ss-rubrique); color: #ffffff;
}
html[data-ss-theme] body.modules #menu.ss-d2-menu .menu-top .ss-rubrique-icone .ss-icone { width: 19px; height: 19px; }
html[data-ss-theme] body.modules #menu.ss-d2-menu .menu-top .ss-menu-label { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; line-height: 1.25; }
html[data-ss-theme] body.modules #menu.ss-d2-menu .menu-top:not([data-ss-nombre]) .ss-menu-label { grid-row: 1 / 3; }
html[data-ss-theme] body.modules #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top[data-ss-nombre]::after {
    content: attr(data-ss-nombre) !important; display: block !important; position: static !important; grid-column: 2; grid-row: 2;
    width: auto !important; height: auto !important; margin: 1px 0 0 !important; border: 0 !important; background: none !important;
    color: var(--ss-text-2); font: 400 12px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; transform: none !important; opacity: 1 !important;
}
html[data-ss-theme] body.modules #menu.ss-d2-menu .menu-top .ss-rubrique-fleche { grid-column: 3; grid-row: 1 / 3; color: var(--ss-text-3); transition: transform .2s var(--ss-ease, ease); }
html[data-ss-theme] body.modules #menu.ss-d2-menu .menu-top .ss-rubrique-fleche .ss-icone { width: 16px; height: 16px; }
html[data-ss-theme] body.modules #menu.ss-d2-menu .ss-open > .menu-top .ss-rubrique-fleche { transform: rotate(90deg); }
html[data-ss-theme] body.modules #menu.ss-d2-menu .adminmenu > .ss-settings-row { display: none !important; }

/* Mon compte, en bas du menu. */
html[data-ss-theme] body.modules #menu .adminmenu > .ss-mon-compte-ligne { display: block; list-style: none; margin: 10px 0 0; padding: 0 10px 12px; }
#ss-mon-compte h3 { margin: 6px 2px 8px; color: var(--ss-text-2); font: 600 13px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
#ss-mon-compte .ss-compte-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #menu #ss-mon-compte .ss-compte-tuiles > :is(a, button) {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box;
    min-height: 64px; margin: 0; padding: 8px 4px; border: 1px solid transparent; border-radius: 12px;
    background: var(--ss-surface-2) !important; color: var(--ss-text) !important; text-align: center; text-decoration: none;
    font: 600 12px/1.25 "Segoe UI", Roboto, system-ui, sans-serif; cursor: pointer; box-shadow: none;
    transition: transform .2s var(--ss-ease, ease), background-color .2s;
}
html[data-ss-theme] body.modules #menu #ss-mon-compte .ss-compte-tuiles > :is(a, button):active { transform: scale(.95); }
html[data-ss-theme] body.modules #menu #ss-mon-compte .ss-compte-tuiles .ss-icone { color: var(--ss-accent); }
#ss-mon-compte .ss-compte-langues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#ss-mon-compte .ss-compte-langues[hidden] { display: none; }
html[data-ss-theme] body.modules #menu #ss-mon-compte .ss-compte-langues a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--ss-border); border-radius: 22px;
    background: var(--ss-d2-surface) !important; color: var(--ss-text) !important; text-decoration: none; font-size: 13px;
}
html[data-ss-theme] body.modules #menu #ss-mon-compte .ss-compte-langues a[aria-current="true"] { border-color: var(--ss-accent); font-weight: 700; }

/* Ordinateur : menu à gauche, rubriques en lignes claires. */
@media screen and (min-width: 701px) {
    html[data-ss-theme] body.modules #menu.ss-d2-menu .adminmenu > .menu-module { flex: 0 0 auto !important; height: auto !important; overflow: visible !important; }
    html[data-ss-theme] body.modules #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top { margin: 2px 8px !important; width: auto !important; border-radius: 12px !important; }
}

/* Ordinateur, rubrique ouverte : le menu se réduit à ses icônes (comportement existant de compact-menu.css). */
@media screen and (min-width: 701px) {
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open) #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top {
        display: flex !important; justify-content: center; width: 52px !important; margin: 3px auto !important; padding: 8px !important;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open) #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top::after,
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open) #menu.ss-d2-menu .menu-top .ss-rubrique-fleche,
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open) #menu.ss-d2-menu :is(#ss-menu-recherche, #ss-menu-resultats, .ss-mon-compte-ligne) { display: none !important; }
}
/* Téléphone : panneau qui monte du bas, fond assombri (charte § 3 et § 7). */
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu.slide {
        inset: auto 0 calc(var(--ss-onglet-h) + env(safe-area-inset-bottom)) 0 !important;
        top: auto !important; width: 100% !important; height: auto !important;
        max-height: calc(100dvh - var(--ss-onglet-h) - 48px - env(safe-area-inset-bottom)) !important;
        display: flex !important; flex-direction: column; align-items: stretch; box-sizing: border-box;
        padding: 0 4px 10px !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain;
        border-radius: 22px 22px 0 0 !important; background: var(--ss-d2-surface-raised) !important; color: var(--ss-text);
        box-shadow: 0 0 0 100vmax rgba(10, 20, 18, .45) !important; z-index: 95 !important;
        animation: ss-panneau-monte .35s var(--ss-ease, ease) both;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .ss-menu-entete {
        position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
        flex: 0 0 auto; padding: 16px 10px 6px; background: inherit; color: var(--ss-text);
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .ss-menu-entete strong { font: 700 17px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; }
    #menu .ss-menu-poignee { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--ss-line); }
    html[data-ss-theme] body.modules #menu .ss-menu-fermer {
        display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -4px -6px 0; padding: 0;
        border: 0; border-radius: 50%; background: transparent; color: var(--ss-text-2); cursor: pointer;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu #menu-top {
        flex: 0 0 auto; width: auto !important; margin: 0 !important; background: transparent !important; order: 0;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu #menu-top > a:has(.logo) { display: none !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu {
        flex: 0 0 auto; display: grid !important; gap: 8px; width: auto !important; min-height: auto; overflow: visible !important;
        margin: 4px 0 0 !important; padding: 0 10px !important; background: transparent !important; box-shadow: none !important;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > .menu-module { margin: 0 !important; border: 0 !important; background: transparent !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top {
        grid-template-columns: 40px minmax(0, 1fr) 16px; column-gap: 12px; min-height: 64px; padding: 12px !important; margin: 0 !important;
        border: 0 !important; border-radius: 14px !important; background: var(--ss-surface-2) !important; color: var(--ss-text) !important;
        font: 700 14px/1.3 "Segoe UI", Roboto, system-ui, sans-serif !important; box-shadow: none !important;
        transition: transform .2s var(--ss-ease, ease), background-color .2s;
    }
    html[data-ss-theme="relief"] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top { box-shadow: var(--ss-shadow-petit) !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top:active { transform: scale(.98); }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .menu-top .ss-rubrique-icone { width: 40px; height: 40px; border-radius: 12px; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .menu-top .ss-rubrique-icone .ss-icone { width: 21px; height: 21px; }
    /* Apparition en cascade des rubriques (50 ms d'écart). */
    body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li { animation: ss-entree .35s var(--ss-ease, ease) both; }
    body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li:nth-child(2) { animation-delay: 50ms; }
    body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li:nth-child(3) { animation-delay: 100ms; }
    body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li:nth-child(4) { animation-delay: 150ms; }
    body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li:nth-child(5) { animation-delay: 200ms; }
    body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li:nth-child(n+6) { animation-delay: 250ms; }
    /* Intérieur d'une rubrique : panneau du bas, fonction = nom clair + phrase d'aide. */
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu { background: rgba(10, 20, 18, .45) !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu :is(.ss-menu-entete, #ss-menu-recherche, #ss-menu-resultats, .ss-mon-compte-ligne) { display: none !important; }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top,
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > li:not(.ss-open),
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu #menu-top { display: none !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu { background: transparent !important; box-shadow: none !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .ss-open > .wp-submenu {
        inset: auto 0 calc(var(--ss-onglet-h) + env(safe-area-inset-bottom)) 0 !important; top: auto !important;
        max-height: calc(100dvh - var(--ss-onglet-h) - 48px - env(safe-area-inset-bottom)) !important;
        width: 100% !important; padding: 0 14px 14px !important; border: 0 !important; border-radius: 22px 22px 0 0 !important;
        background: var(--ss-d2-surface-raised) !important; color: var(--ss-text); animation: ss-panneau-monte .35s var(--ss-ease, ease) both;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu .ss-context-heading {
        padding: 18px 0 10px !important; margin: 0 !important; background: inherit !important; color: var(--ss-text) !important; border-bottom: 0 !important;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu .ss-context-heading::before {
        content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--ss-line);
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu .ss-context-close {
        border: 0 !important; border-radius: 50% !important; background: var(--ss-surface-2) !important; color: var(--ss-text) !important;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu .menu-inter { color: var(--ss-text-2) !important; font: 600 13px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; padding: 12px 4px 6px !important; background: transparent !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu a {
        min-height: 44px; border: 0 !important; border-radius: 12px !important; padding: 10px 8px !important; color: var(--ss-text) !important; background: transparent !important;
        animation: ss-entree .35s var(--ss-ease, ease) both;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu a:hover,
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu #selectedMenuLink { background: var(--ss-surface-2) !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu a .ss-link-hint { color: var(--ss-text-2) !important; }
}

/* 12.5 Accueil (modèle « Tableau de bord », charte § 4). */
#ss-accueil { box-sizing: border-box; max-width: 1100px; margin: 0 auto 8px; padding: 14px 0 0; color: var(--ss-page-text); font-family: "Segoe UI", Roboto, system-ui, sans-serif; }
#ss-accueil *, #ss-accueil *::before, #ss-accueil *::after { box-sizing: border-box; }
/* L'en-tête n'est pas animé : une animation en cours ferait passer le bouton fixe « action principale » sous les tuiles. */
#ss-accueil.ss-cascade > .ss-accueil-entete { animation: none; }
#ss-accueil .ss-accueil-entete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
#ss-accueil .ss-accueil-salut { min-width: 0; flex: 1 1 220px; }
html[data-ss-theme] body.modules #body #ss-accueil h1 { margin: 0; color: var(--ss-page-text); font: 700 20px/1.25 "Segoe UI", Roboto, system-ui, sans-serif; overflow-wrap: anywhere; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-contexte { margin: 3px 0 0; color: var(--ss-page-text); opacity: .78; font-size: 13px; overflow-wrap: anywhere; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px;
    background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)); color: #ffffff !important; text-decoration: none;
    font: 600 15px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; box-shadow: 0 6px 16px rgba(8, 118, 107, .28); transition: transform .2s var(--ss-ease, ease);
}
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-action:active { transform: scale(.97); }
#ss-accueil .ss-accueil-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-chiffre {
    display: flex; flex-direction: column; gap: 1px; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 12px;
    background: var(--ss-surface-2); color: var(--ss-text) !important; text-decoration: none; border: 1px solid var(--ss-border);
    transition: transform .25s var(--ss-ease, ease);
}
html[data-ss-theme] body.modules #body #ss-accueil a.ss-chiffre:active { transform: scale(.97); }
#ss-accueil .ss-chiffre-libelle { color: var(--ss-text-2); font-size: 12px; line-height: 1.3; }
#ss-accueil .ss-chiffre-valeur { font-size: 20px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#ss-accueil .ss-chiffre-valeur.ss-chiffre-long { font-size: 15px; }
#ss-accueil .ss-chiffre-detail { color: var(--ss-text-3); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-bloc-titre {
    margin: 18px 0 8px; padding: 0; border: 0; background: none; color: var(--ss-page-text); opacity: .8;
    font: 600 13px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; text-transform: none; letter-spacing: 0; scroll-margin-top: 64px;
}
html[data-ss-theme] body.modules #body button.ss-accueil-suite { max-width: 1100px; margin: 24px auto 12px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-carte { padding: 4px 12px; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-card, 14px); background: var(--ss-d2-surface) !important; color: var(--ss-text); box-shadow: var(--ss-shadow); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-ligne {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 6px; margin: 0 -6px; border-radius: 10px;
    color: var(--ss-text) !important; text-decoration: none; font-size: 13px; transition: background-color .2s;
}
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-ligne + .ss-accueil-ligne { border-top: 1px solid var(--ss-line); border-radius: 0; }
html[data-ss-theme] body.modules #body #ss-accueil a.ss-accueil-ligne:hover { background: var(--ss-surface-2); }
#ss-accueil .ss-accueil-ligne > .ss-icone { color: var(--ss-text-2); }
#ss-accueil .ss-accueil-ligne-texte { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
#ss-accueil .ss-accueil-ligne-texte small, #ss-accueil .ss-accueil-ligne-detail { color: var(--ss-text-2); font-size: 12px; }
#ss-accueil .ss-accueil-ligne-detail { flex: 0 1 auto; text-align: right; }
#ss-accueil .ss-accueil-fleche { color: var(--ss-text-3); }
#ss-accueil .ss-pastille { flex: 0 0 auto; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
#ss-accueil .ss-pastille[data-etat="urgent"] { background: var(--ss-etat-urgent-bg); color: var(--ss-etat-urgent); }
#ss-accueil .ss-pastille[data-etat="attention"] { background: var(--ss-etat-attention-bg); color: var(--ss-etat-attention); }
#ss-accueil .ss-pastille[data-etat="info"] { background: var(--ss-etat-info-bg); color: var(--ss-etat-info); }
#ss-accueil .ss-pastille[data-etat="fait"] { background: var(--ss-etat-fait-bg); color: var(--ss-etat-fait); }
#ss-accueil .ss-accueil-vide { margin: 10px 0; color: var(--ss-text-2); font-size: 13px; }
#ss-accueil .ss-accueil-acces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-acces a.ss-ar-carte {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-width: 0; min-height: 76px;
    margin: 0; padding: 12px 4px; border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-surface-2);
    color: var(--ss-text) !important; text-align: center; text-decoration: none; box-shadow: none; transform: none;
    transition: transform .2s var(--ss-ease, ease), background-color .2s;
}
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-acces a.ss-ar-carte:hover { background: var(--ss-etat-fait-bg); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body #ss-accueil .ss-accueil-acces a.ss-ar-carte:hover { background: var(--ss-surface-2); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-acces a.ss-ar-carte:active { transform: scale(.94); }
#ss-accueil .ss-ar-carte .ss-ar-icone { display: flex; width: auto; height: auto; margin: 0; padding: 0; background: none; color: var(--ss-accent); font-size: 0; }
#ss-accueil .ss-ar-carte .ss-ar-libelle { font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
#ss-accueil .ss-accueil-duo { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; }
#ss-accueil .ss-accueil-outils { display: grid; gap: 8px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-outil {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px 12px; border: 1px solid var(--ss-border); border-radius: 14px;
    background: var(--ss-d2-surface); color: var(--ss-text) !important; text-decoration: none; box-shadow: var(--ss-shadow);
    transition: transform .2s var(--ss-ease, ease);
}
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-outil:active { transform: scale(.98); }
#ss-accueil .ss-accueil-outil > .ss-icone { color: var(--ss-accent); }
#ss-accueil .ss-accueil-outil > span { display: flex; flex-direction: column; min-width: 0; }
#ss-accueil .ss-accueil-outil strong { font-size: 13px; }
#ss-accueil .ss-accueil-outil small { color: var(--ss-text-2); font-size: 12px; overflow-wrap: anywhere; }
html[data-ss-theme="relief"] #ss-accueil :is(.ss-accueil-carte, .ss-accueil-outil) { border-color: transparent; }
/* 12/11/2026 : Dictionnaire et Images libres s'ouvrent dans le bloc « Outils » (plus de page à part) ; météo en bulle. */
html[data-ss-theme] body.modules #body #ss-accueil button.ss-accueil-outil { width: 100%; margin: 0; font: inherit; text-align: left; cursor: pointer; }
html[data-ss-theme] body.modules #body #ss-accueil button.ss-accueil-outil[aria-expanded="true"] { border-color: var(--ss-accent); }
#ss-accueil .ss-outil-panneau { padding: 4px 2px 6px; }
#ss-accueil .ss-outil-panneau[hidden] { display: none; }
#ss-accueil .ss-outil-recherche { display: flex; gap: 8px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-outil-recherche input {
    flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--ss-border); border-radius: 12px;
    background: var(--ss-surface-2); color: var(--ss-text); font-size: 16px; box-shadow: none;
}
html[data-ss-theme] body.modules #body #ss-accueil :is(.ss-outil-go, a.ss-outil-telecharger) {
    display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
    background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)); color: #ffffff !important; font-weight: 700;
}
html[data-ss-theme] body.modules #body #ss-accueil .ss-outil-go { flex: 0 0 auto; height: 44px; margin: 0; padding: 0 16px; font-size: 14px; }
html[data-ss-theme] body.modules #body #ss-accueil a.ss-outil-telecharger { min-height: 36px; border-radius: 10px; font-size: 13px; }
#ss-accueil .ss-outil-resultat { margin-top: 10px; color: var(--ss-text); font-size: 14px; line-height: 1.45; }
#ss-accueil .ss-outil-mot { margin: 0 0 4px; color: var(--ss-accent); font-size: 18px; font-weight: 800; }
#ss-accueil .ss-outil-nature { margin: 8px 0 2px; font-weight: 700; }
#ss-accueil .ss-outil-sens { margin: 0; padding-left: 20px; }
#ss-accueil .ss-outil-sens li { margin: 3px 0; }
#ss-accueil .ss-outil-source { margin: 10px 0 0; color: var(--ss-text-2); font-size: 12px; }
#ss-accueil .ss-outil-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#ss-accueil .ss-outil-image { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-surface-2); }
#ss-accueil .ss-outil-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ss-border); }
#ss-accueil .ss-outil-image figcaption { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: space-between; gap: 6px; padding: 6px 8px 8px; }
#ss-accueil .ss-outil-image small { color: var(--ss-text-2); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
@media screen and (min-width: 900px) { #ss-accueil .ss-outil-images { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#ss-meteo-bulle {
    position: fixed; z-index: 3000; max-width: 260px; padding: 8px 12px; border: 1px solid var(--ss-border, #d0d7de); border-radius: 12px;
    background: var(--ss-d2-surface, #ffffff); color: var(--ss-text, #1f2933); font: 13px/1.4 system-ui, sans-serif; box-shadow: var(--ss-shadow, 0 4px 14px rgba(0, 0, 0, .15));
}
@media print { #ss-meteo-bulle { display: none !important; } }
html[data-ss-theme="relief"] #ss-accueil :is(.ss-chiffre, .ss-ar-carte) { border-color: transparent !important; box-shadow: var(--ss-shadow-petit) !important; }
/* Le bandeau d'origine est vide une fois ses tuiles déplacées. */
#ss-actions-rapides[hidden] { display: none !important; }
/* Téléphone : action principale fixe au-dessus de la barre du bas. */
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-action {
        position: fixed; left: 12px; right: 76px; bottom: calc(var(--ss-onglet-h) + 10px + env(safe-area-inset-bottom)); z-index: 85;
    }
    html[data-ss-theme] body.modules:has(#ss-accueil-action) { padding-bottom: calc(var(--ss-onglet-h) + 72px + env(safe-area-inset-bottom)); }
}
@media screen and (min-width: 900px) {
    #ss-accueil .ss-accueil-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #ss-accueil .ss-accueil-acces { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
    #ss-accueil .ss-accueil-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-ss-theme] body.modules #body #ss-accueil h1 { font-size: 22px; }
}
@media print { #ss-accueil .ss-accueil-action { position: static !important; } }

/* 12.6 Plein soleil : bordures foncées, aucune ombre ; JASPE ne pulse plus. */
html[data-ss-soleil="on"] #ss-accueil :is(.ss-accueil-carte, .ss-accueil-outil, .ss-chiffre, .ss-ar-carte),
html[data-ss-soleil="on"] body.modules #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top,
html[data-ss-soleil="on"] #ss-mon-compte .ss-compte-tuiles > :is(a, button) { border: 2px solid #1f2933 !important; box-shadow: none !important; }
html[data-ss-soleil="on"] #ss-compagnons :is(.ss-jaspe-portrait, .ss-compagnon-rond) { animation: none; box-shadow: none; border: 2px solid #1f2933; }
html[data-ss-soleil="on"] #ss-compagnons > button > span:last-child { border: 1px solid #1f2933; box-shadow: none; }
html[data-ss-soleil="on"] #ss-accueil .ss-accueil-action { box-shadow: none !important; background: #005a51 !important; }
/* Économie de données et moins d'animations : couvert par les règles générales (§ 7 et § 10), pulsation comprise. */

/* Lot D2 (08/11) : ancien tableau de bord rangé derrière « Voir tout le détail » (fermé par défaut, rien supprimé). */
.ss-detail-ferme > .ss-accueil-suite ~ * { display: none !important; }
button.ss-accueil-suite {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 18px 0 12px;
    padding: 10px 14px; border: 1px solid var(--ss-border, #dde3e0); border-radius: 12px; cursor: pointer;
    background: var(--ss-d2-surface, var(--ss-surface, #fff)); color: var(--ss-accent, #08766b); font: inherit; font-weight: 700;
}
button.ss-accueil-suite:focus-visible { outline: 2px solid var(--ss-focus, #08766b); outline-offset: 2px; }
/* Lot D2 (08/11) : sur téléphone, la fin de l'accueil reste au-dessus du bouton principal et de la barre du bas. */
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules #body:has(#ss-accueil-action) { padding-bottom: calc(var(--ss-onglet-h, 68px) + 96px + env(safe-area-inset-bottom)) !important; }
}
/* Lot D2 (08/11) : sur ordinateur, une marge à droite pour que JASPE et Watch ne cachent pas le contenu. */
@media screen and (min-width: 701px) {
    html[data-ss-theme] body.modules #body { padding-right: 76px !important; box-sizing: border-box; }
}
/* Lot D2 (08/11) : sur téléphone, JASPE et Watch s'effacent pendant que le menu est ouvert (ils cachaient le texte). */
@media screen and (max-width: 700px) {
    body:has(#ss-mobile-menu[aria-expanded="true"]) #ss-compagnons { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Accueil, détail du tableau de bord (10/11/2026) : stabilisation. */
/* La salutation est déjà donnée par l'accueil (et « Bonjour, Administrateur » était faux le soir et pour les autres profils). */
body.modules #body:has(> #ss-accueil) .ss-photo-greeting { display: none !important; }
/* Détail ouvert sur téléphone : le bouton principal reprend sa place en haut, il ne recouvre plus le détail. */
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules #body.ss-detail-ouvert #ss-accueil .ss-accueil-action { position: static; width: 100%; }
}
/* Surfaces du détail aux couleurs du kit (avant : cartes bleu marine à part). */
html[data-ss-theme] body.modules:has(#ss-accueil):has(#ss-photo-dashboard) {
    --photo-panel: var(--ss-d2-surface); --photo-ink: var(--ss-text); --photo-muted: var(--ss-text-2);
    --photo-line: var(--ss-border); --photo-soft: var(--ss-surface-2);
}
/* Champs du détail visibles (recherche du répertoire, date des scans). */
html[data-ss-theme] body.modules #body .ss-dashboard-details input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
    padding: 0 12px; border: 1px solid var(--ss-border) !important; border-radius: 10px; background: var(--ss-surface-2) !important; color: var(--ss-text) !important;
}
/* Onglets du détail : l'onglet ouvert se voit, la barre défile sans déborder. */
html[data-ss-theme] body.modules #body .ss-dashboard-details > nav { scrollbar-width: thin; }
html[data-ss-theme] body.modules #body .ss-dashboard-details > nav a[aria-current] { color: var(--ss-accent) !important; border-color: var(--ss-accent); }
/* Téléphone : les groupes du répertoire tiennent sur une ligne qui défile (avant : un mur de 24 boutons). */
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules #body .ss-dashboard-details .ss-directory-groups { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    html[data-ss-theme] body.modules #body .ss-dashboard-details .ss-directory-groups a { flex: none; white-space: nowrap; }
    #ss-photo-birthdays ul { scrollbar-width: none; }
    #ss-photo-birthdays ul::-webkit-scrollbar { display: none; }
    html[data-ss-theme] body.modules #body #ss-photo-dashboard { max-width: 100%; overflow-x: clip; }
}
/* Tableau de bord complet (10/11/2026) : libellés des champs lisibles sur le fond du tableau. */
html[data-ss-theme] body.modules #body .ss-dashboard-details form label { color: var(--photo-muted, inherit); }
html[data-ss-theme] body.modules #body .ss-dashboard-details > nav { scrollbar-width: none; }
html[data-ss-theme] body.modules #body .ss-dashboard-details > nav::-webkit-scrollbar { display: none; }

/* Tableau de bord complet, onglet Finances (10/11/2026) : le libellé, le montant et la note occupent toute la largeur de
   la carte (avant : rangés sur deux colonnes étroites, le montant coupé au milieu du nombre). */
html[data-ss-theme] body.modules #body .ss-dashboard-details .ss-finance-metrics > article { grid-template-columns: minmax(0, 1fr) auto; }
html[data-ss-theme] body.modules #body .ss-dashboard-details .ss-finance-metrics > article > :is(span, strong, small) { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body .ss-dashboard-details .ss-finance-metrics > article > strong { overflow-wrap: normal; font-size: clamp(1.05rem, 1.7vw, 1.5rem); }

/* Accueil (10/11/2026) : sur téléphone, le nom « SchoolSafe » de l'en-tête n'est plus recouvert par la météo ;
   la météo cède la place (texte coupé par « … ») au lieu du nom. */
@media (max-width: 767px) {
  #footerwrap > .ss-photo-mobile-brand { flex: 0 0 auto !important; }
  #footerwrap > #ss-meteo-fixe { flex: 0 1 auto !important; min-width: 0 !important; overflow: hidden; }
  #footerwrap > #ss-meteo-fixe .ss-meteo-valeur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===== Tableau de bord entier au kit (10/11/2026, demande du propriétaire) =====
   Tout le tableau de bord, jusqu'en bas, reprend les surfaces de l'accueil : même fond, mêmes rayons, mêmes ombres,
   mêmes titres, mêmes boutons. Aucune information n'est retirée ni déplacée : présentation seulement. */
/* Titres : même couleur et mêmes tailles que l'accueil. */
html[data-ss-theme] body.modules #body :is(#ss-photo-dashboard, .sscx-overview) :is(h1, h2, h3, h4) { color: var(--ss-text) !important; letter-spacing: 0; }
html[data-ss-theme] body.modules #body #ss-photo-dashboard .ss-photo-hero :is(h1, h2) { font-size: 22px !important; font-weight: 700 !important; line-height: 1.25 !important; }
html[data-ss-theme] body.modules #body .ss-dashboard-details > :is(header, div) > h2, html[data-ss-theme] body.modules #body .ss-dashboard-details > h2 { font-size: 22px !important; font-weight: 700 !important; }
html[data-ss-theme] body.modules #body .ss-dashboard-details h3 { font-size: 16px !important; font-weight: 600 !important; }
html[data-ss-theme] body.modules #body .ss-dashboard-details h4 { font-size: 14px !important; font-weight: 600 !important; }
html[data-ss-theme] body.modules #body .ss-dashboard-details { border-color: var(--ss-line, transparent) !important; color: var(--ss-text); }
/* Tuiles qui se touchent (chiffres, modules) : comme les chiffres clés de l'accueil. */
html[data-ss-theme] body.modules #body #ss-photo-dashboard :is(a.ss-photo-metric, a.ss-photo-module) {
    border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-surface-2) !important;
    color: var(--ss-text) !important; box-shadow: var(--ss-shadow-petit) !important; transition: transform .2s var(--ss-ease, ease);
}
html[data-ss-theme] body.modules #body #ss-photo-dashboard :is(a.ss-photo-metric, a.ss-photo-module):active { transform: scale(.97); box-shadow: var(--ss-shadow-creux) !important; }
/* Cartes posées sur le fond de la page : rayon et relief des cartes de l'accueil. */
html[data-ss-theme] body.modules #body :is(.ss-closing-finance > article, .ss-finance-metrics > article, .ss-finance-analysis > section, .ss-finance-balances, .ss-budget-summary, .ss-dashboard-native-totals details) {
    border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important; background: var(--ss-d2-surface) !important;
    color: var(--ss-text) !important; box-shadow: var(--ss-shadow-petit) !important;
}
/* Panneaux rangés dans une carte (graphiques, alertes, vie de l'école) : en creux, même rayon partout. */
html[data-ss-theme] body.modules #body :is(#ss-photo-dashboard, #ss-accueil) :is(section.ss-photo-chart, #ss-photo-alerts, .ss-photo-school-life > section, #ss-photo-birthdays > section, #ss-photo-top-ten) {
    border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-d2-surface) !important; box-shadow: var(--ss-shadow-creux) !important;
}
html[data-ss-theme] body.modules #body :is(#ss-photo-dashboard, #ss-accueil) #ss-photo-birthdays { box-shadow: none !important; }
html[data-ss-theme] body.modules #body :is(#ss-photo-dashboard, #ss-accueil) .ss-birthday-visual li { border-radius: 12px !important; }
html[data-ss-theme] body.modules #body :is(#ss-photo-dashboard, #ss-accueil) .ss-birthday-visual li time { border-radius: 10px !important; background: var(--ss-etat-fait-bg) !important; }
/* Pastilles d'icône : plus de halo bleu, la teinte du kit. */
html[data-ss-theme] body.modules #body #ss-photo-dashboard .ss-photo-icon { box-shadow: none !important; background: color-mix(in srgb, var(--ss-accent) 12%, transparent) !important; }
html[data-ss-theme] body.modules #body #ss-photo-dashboard a.ss-photo-module .ss-photo-icon { border-radius: 10px !important; }
/* Boutons : le bouton principal de l'accueil, partout. */
html[data-ss-theme] body.modules #body #ss-photo-dashboard :is(a.ss-photo-primary, .ss-directory-search button, .ss-finance-period button, .ss-dashboard-details form button[type="submit"], .ss-dashboard-details form input[type="submit"]) {
    min-height: 44px; border: 0 !important; border-radius: 12px !important; background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)) !important;
    color: #ffffff !important; font-weight: 600; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body #ss-photo-dashboard :is(button.ss-photo-theme, .ss-dashboard-search button) { border-radius: 12px !important; }
html[data-ss-theme] body.modules #body #ss-photo-dashboard form.ss-dashboard-search { border-radius: 12px !important; }
/* Pastilles de groupe (répertoires, périodes) : les puces du kit ; celle qui est choisie prend la couleur d'accent. */
html[data-ss-theme] body.modules #body .ss-dashboard-details .ss-directory-groups a {
    min-height: 40px; display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-chip, 12px) !important;
    background: var(--ss-surface-2) !important; color: var(--ss-text) !important; font-size: 13px; text-decoration: none; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body .ss-dashboard-details .ss-directory-groups a:is([aria-current], .is-active, .active, .ss-active) {
    color: var(--ss-accent) !important; font-weight: 600; box-shadow: var(--ss-shadow-creux) !important;
}
/* Tableaux du détail : les en-têtes et les lignes des listes du kit (plus de bandeau blanc ou bleu clair). */
html[data-ss-theme] body.modules #body .ss-dashboard-details table { color: var(--ss-text) !important; border-collapse: collapse; }
html[data-ss-theme] body.modules #body .ss-dashboard-details table :is(thead, thead tr) { background: transparent !important; }
html[data-ss-theme] body.modules #body .ss-dashboard-details table th {
    background: transparent !important; color: var(--ss-text-2) !important; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--ss-line, rgba(0, 0, 0, .1)) !important;
}
html[data-ss-theme] body.modules #body .ss-dashboard-details table td { color: var(--ss-text) !important; border-bottom: 1px solid var(--ss-line, rgba(0, 0, 0, .08)) !important; }
html[data-ss-theme] body.modules #body .ss-dashboard-details table tbody tr:last-child > td { border-bottom: 0 !important; }
html[data-ss-theme] body.modules #body .ss-dashboard-details :is(.ss-directory-scroll, .sscx-table-scroll) {
    border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important; background: var(--ss-d2-surface) !important; box-shadow: var(--ss-shadow-petit) !important;
}
/* Blocs du logiciel sous le tableau (note, avertissement, listes) : mêmes cartes, plus de cadre blanc ni de trait bleu. */
html[data-ss-theme] body.modname-misc-portal-php #body > :is(.updated, .error) {
    border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important; background: var(--ss-d2-surface) !important;
    color: var(--ss-text) !important; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modname-misc-portal-php #body .list-wrapper { border: 0 !important; background: transparent !important; }
html[data-ss-theme] body.modname-misc-portal-php #body table.list { border-radius: var(--ss-radius-card, 14px) !important; }
/* Liens d'action du tableau (« Accéder », « Voir tout », « Réinitialiser », noms dans les listes) : la couleur d'accent du kit. */
html[data-ss-theme] body.modules #body :is(#ss-photo-dashboard, .sscx-overview) a:not(.ss-photo-metric):not(.ss-photo-module):not(.ss-photo-primary):not(.button):not([aria-current]):not(.ss-photo-alert) { color: var(--ss-accent); }
html[data-ss-theme] body.modules #body #ss-photo-dashboard a.ss-photo-module :is(small, em, span:last-child) { color: var(--ss-accent); }
/* Tableau de bord de l'enseignant et du parent : mêmes cartes, mêmes tuiles et mêmes titres que celui de la direction. */
html[data-ss-theme] body.modules #body > header.ss-dashboard-context {
    border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important; background: var(--ss-d2-surface) !important;
    color: var(--ss-text) !important; box-shadow: var(--ss-shadow) !important;
}
html[data-ss-theme] body.modules #body > header.ss-dashboard-context form.ss-dashboard-search { border-radius: 12px !important; background: transparent !important; }
html[data-ss-theme] body.modules #body .sscx-role-overview .sscx-overview-header h2 { font-size: 22px !important; font-weight: 700 !important; line-height: 1.25 !important; color: var(--ss-text) !important; }
html[data-ss-theme] body.modules #body .sscx-role-overview h3 { font-size: 16px !important; font-weight: 600 !important; color: var(--ss-text) !important; }
html[data-ss-theme] body.modules #body .sscx-role-overview .sscx-badge { border-radius: 20px !important; background: var(--ss-etat-info-bg) !important; color: var(--ss-etat-info) !important; padding: 2px 8px; }
html[data-ss-theme] body.modules #body .sscx-role-overview a.ss-dashboard-refresh {
    border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-surface-2) !important; color: var(--ss-text) !important; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body .sscx-role-overview > :is(section, footer > section, .sscx-overview-summary > section, .sscx-overview-summary > aside):not(.ss-dashboard-details),
html[data-ss-theme] body.modules #body .sscx-role-overview > footer.sscx-overview-footer > section,
html[data-ss-theme] body.modules #body .sscx-role-overview > .sscx-overview-summary > :is(section, aside) {
    margin: 0 0 14px !important; padding: 14px 16px !important; border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important;
    background: var(--ss-d2-surface) !important; color: var(--ss-text) !important; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body .sscx-role-overview > footer.sscx-overview-footer { border: 0 !important; padding: 0 !important; background: transparent !important; }
html[data-ss-theme] body.modules #body .sscx-role-overview :is(.sscx-overview-summary aside, .ss-native-dashboard) section.ss-school-life { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
html[data-ss-theme] body.modules #body :is(.sscx-shortcuts a, nav.ss-portal-actions a) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ss-border) !important; border-radius: 12px !important;
    background: var(--ss-surface-2) !important; color: var(--ss-text) !important; font-weight: 600; font-size: 13px; text-decoration: none; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body :is(.sscx-shortcuts a, nav.ss-portal-actions a):active { box-shadow: var(--ss-shadow-creux) !important; }
html[data-ss-theme] body.modules #body nav.ss-portal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
html[data-ss-theme] body.modules #body .sscx-role-overview nav.ss-dashboard-tabs a { color: var(--ss-text-2) !important; }
html[data-ss-theme] body.modules #body .sscx-role-overview nav.ss-dashboard-tabs a:is([aria-current], .active, .is-active) { color: var(--ss-accent) !important; border-color: var(--ss-accent) !important; }
/* Accueil : un titre de ligne n'est plus coupé au milieu d'un mot (« Rattrapage / s » sur téléphone). */
#ss-accueil .ss-accueil-ligne-titre { overflow-wrap: normal; word-break: keep-all; }
#ss-accueil .ss-accueil-ligne-texte { flex: 0 0 auto; max-width: 62%; }
#ss-accueil .ss-accueil-ligne:has(.ss-pastille) .ss-accueil-ligne-texte { flex: 1 1 auto; max-width: none; }
#ss-accueil .ss-accueil-ligne-detail { min-width: 0; margin-left: auto; text-align: right; }
/* Tableaux et liens du tableau de l'enseignant et du parent : mêmes en-têtes, liens à la couleur d'accent même déjà visités. */
html[data-ss-theme] body.modules #body .sscx-role-overview table { color: var(--ss-text) !important; border-collapse: collapse; }
html[data-ss-theme] body.modules #body .sscx-role-overview table :is(thead, thead tr, th) { background: transparent !important; }
html[data-ss-theme] body.modules #body .sscx-role-overview table th { color: var(--ss-text-2) !important; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--ss-line, rgba(0, 0, 0, .1)) !important; }
html[data-ss-theme] body.modules #body .sscx-role-overview table td { color: var(--ss-text) !important; border-bottom: 1px solid var(--ss-line, rgba(0, 0, 0, .08)) !important; }
html[data-ss-theme] body.modules #body :is(#ss-photo-dashboard, .sscx-role-overview) :is(td, li, p, h3, header, .ss-school-life) > a:is(:link, :visited):not(.button):not([class*="ss-photo-"]) { color: var(--ss-accent) !important; }

/* ===== Tableau classé (11/11/2026, demande du propriétaire) =====
   Chaque information une seule fois : les répétitions (chiffres, alertes, raccourcis, bandeau d'accueil du bas) sont
   retirées de l'affichage par le composeur ; les parties du bas sont titrées et numérotées comme celles du haut. */
html[data-ss-theme] body.modules #body .ss-doublon { display: none !important; }
/* 13/11/2026 (propriétaire : « trois cases que tu as mis au fond… ramène-les au-dessus, là où il y a des cases ») :
   sur téléphone, le tableau photo range « Matières », « Recettes du mois » et « Alertes suivies » dans un bandeau du
   bas, créé après le composeur. Ces chiffres sont déjà dans les cases du haut : le bandeau du bas n'est plus montré. */
html[data-ss-theme] body.modules #body.ss-detail-ouvert .ss-photo-secondary-metrics { display: none !important; }
html[data-ss-theme] body.modules #body .ss-tableau-titre {
    margin: 22px 0 10px !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--ss-page-text) !important; opacity: .8;
    font: 600 13px/1.3 "Segoe UI", Roboto, system-ui, sans-serif !important; text-transform: none; letter-spacing: 0; scroll-margin-top: 64px;
}
/* Bandeau complet des chiffres : 2 par ligne sur téléphone, 3 sur tablette, 5 sur ordinateur. */
@media screen and (min-width: 600px) { #ss-accueil .ss-accueil-chiffres.ss-chiffres-complet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media screen and (min-width: 900px) { #ss-accueil .ss-accueil-chiffres.ss-chiffres-complet { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
#ss-accueil .ss-accueil-chiffres.ss-chiffres-complet .ss-chiffre-valeur { font-size: 18px; }
/* Sans le bandeau d'accueil du bas, la barre de recherche et de contexte ouvre directement la suite du tableau. */
html[data-ss-theme] body.modules #body #ss-photo-dashboard > .ss-photo-toolbar { margin-top: 14px; }
html[data-ss-theme] body.modules #body #ss-photo-dashboard .ss-photo-grid > .ss-photo-core > .ss-photo-charts { margin-top: 0; }
@media screen and (min-width: 900px) {
    html[data-ss-theme] body.modules #body #ss-photo-dashboard .ss-photo-charts:has(> .ss-doublon) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ===== Élèves (11/11/2026) : liste et fiche de l'élève au kit ===== */
/* Liste des élèves sur téléphone : une carte par élève (avant : tableau retourné, un élève par colonne, à faire
   défiler de côté). */
@media screen and (max-width: 736px) {
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer .list-wrapper { overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt { display: block !important; width: 100% !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > thead { display: none !important; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody { display: block !important; width: 100% !important; overflow: visible !important; white-space: normal !important; float: none !important; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr {
        display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; width: auto !important; min-height: 48px; margin: 0 0 8px !important; padding: 12px 14px !important;
        border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-surface-2) !important; box-shadow: var(--ss-shadow-petit) !important; box-sizing: border-box;
    }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td {
        display: block !important; width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important;
        color: var(--ss-text-2) !important; font-size: 13px; white-space: normal !important; text-align: left !important;
    }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td:first-child { flex: 1 1 100%; font-size: 15px; font-weight: 600; color: var(--ss-text) !important; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td:first-child a { display: block; color: var(--ss-text) !important; text-decoration: none; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td[data-ss-th]:not(:first-child)::before { content: attr(data-ss-th) " : "; }
}
/* Fiche : le nom est déjà dans la carte du haut ; la ligne d'origine ne garde que la note et le bouton. */
html[data-ss-theme] body.modules #body:has(> .ss-fiche-personne) form:is(#student, #staff) > table.header { border: 0 !important; background: transparent !important; box-shadow: none !important; }
html[data-ss-theme] body.modules #body:has(> .ss-fiche-personne) form:is(#student, #staff) > table.header td.header2:first-child { display: none !important; }
html[data-ss-theme] body.modules #body:has(> .ss-fiche-personne) form:is(#student, #staff) > table.header td.header2.align-right {
    display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; padding: 0 !important; text-align: left;
}
html[data-ss-theme] body.modules #body:has(> .ss-fiche-personne) form:is(#student, #staff) > table.header td.header2.align-right > .legend-gray { flex: 1 1 240px; font-size: 12px; line-height: 1.4; color: var(--ss-text-2) !important; }
/* Famille et récupération : bandeaux, titres, cartes et boutons du kit (avant : bleu clair, jaune, blanc). */
html[data-ss-theme] body.modules #body .ssft-intro { border: 0 !important; border-radius: 12px !important; background: var(--ss-etat-info-bg) !important; color: var(--ss-etat-info) !important; }
/* 12/11/2026 : texte de la couleur de son bandeau (avant : texte clair du mode sombre sur fond clair, illisible). */
html[data-ss-theme] body.modules #body .ssft-alert { border: 0 !important; border-radius: 12px !important; background: var(--ss-etat-attention-bg) !important; color: var(--ss-etat-attention) !important; }
html[data-ss-theme] body.modules #body h3.ssft-heading { color: var(--ss-text) !important; font-size: 16px !important; font-weight: 600 !important; }
html[data-ss-theme] body.modules #body h3.ssft-heading small { color: var(--ss-text-2) !important; }
html[data-ss-theme] body.modules #body article.ssft-card {
    border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important; background: var(--ss-surface-2) !important; color: var(--ss-text) !important; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body .ssft-photo.ssft-photo-empty { border-radius: 12px !important; background: var(--ss-d2-surface) !important; color: var(--ss-text-2) !important; box-shadow: var(--ss-shadow-creux) !important; }
html[data-ss-theme] body.modules #body button.ssft-action {
    min-height: 40px; padding: 0 14px; border: 1px solid var(--ss-border) !important; border-radius: 10px !important; background: var(--ss-surface) !important; color: var(--ss-text) !important; font-weight: 600; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body button.ssft-action:active { box-shadow: var(--ss-shadow-creux) !important; }
/* Onglets de la fiche : les champs complémentaires (Médical…) sur la surface du kit, sans cadre crème ni trait orange. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info { border: 0 !important; border-radius: var(--ss-radius-card, 14px) !important; background: transparent !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .h3multi h3.title { color: var(--ss-text-2) !important; background: transparent !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .h3multi h3.title.h3selected { color: var(--ss-accent) !important; border-color: var(--ss-accent) !important; }
/* Zone de texte avec « Écrire / Aperçu » : l'intitulé du champ n'est plus posé sur les deux onglets. */
html[data-ss-theme] body.modules #body td:has(> .md-preview) { padding-top: 24px !important; }
html[data-ss-theme] body.modules #body .md-preview a.tab { border-color: var(--ss-line, transparent) !important; background: transparent !important; color: var(--ss-text-2) !important; }
html[data-ss-theme] body.modules #body .md-preview a.tab.disabled { color: var(--ss-accent) !important; border-bottom-color: var(--ss-accent) !important; }
@media screen and (max-width: 736px) {
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody { max-width: none !important; min-width: 100% !important; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr { width: 100% !important; max-width: none !important; }
}
/* Toutes les listes du logiciel sur téléphone (hors Finance, qui a son gabarit) : une carte par ligne, chaque
   information sur sa ligne avec son nom ; plus de tableau retourné à faire défiler de côté. */
@media screen and (max-width: 736px) {
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td { flex: 1 1 100%; overflow-wrap: anywhere; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td:empty { display: none !important; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { max-width: 100%; }
    html[data-ss-theme] body.modules #body:not([data-ss-section="finance"]) .list-outer table.list.rt > tbody > tr > td[data-ss-th]:not(:first-child)::before { color: var(--ss-text-2); font-size: 12px; }
}
/* Messages du logiciel (note, avertissement) sur toutes les pages : la carte du kit, plus de cadre blanc. */
html[data-ss-theme] body.modules #body :is(.updated, .error):not(.ss-doublon) {
    border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important; background: var(--ss-d2-surface) !important;
    color: var(--ss-text) !important; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body .updated { border-left: 4px solid var(--ss-accent) !important; }
html[data-ss-theme] body.modules #body .error { border-left: 4px solid #c0392b !important; }
/* École : onglets d'un groupe de pages (même forme que les onglets du tableau de bord). */
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets {
    display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-card, 14px); background: var(--ss-d2-surface); box-shadow: var(--ss-shadow-creux);
}
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets::-webkit-scrollbar { display: none; }
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets a {
    flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 10px;
    color: var(--ss-text-2) !important; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets a[aria-current] { background: var(--ss-surface-2); color: var(--ss-accent) !important; box-shadow: var(--ss-shadow-petit); }
@media print { #body nav.ss-groupe-onglets { display: none !important; } }

/* ===== École, propositions 1 à 3 (11/11/2026) ===== */
/* Recherche : pastille aux initiales dans les suggestions ; champ « chercher un autre élève » au-dessus de la fiche. */
.ssus-list .ssus-item { display: flex; align-items: center; gap: 10px; }
.ssus-list .ssus-av { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
    background: color-mix(in srgb, var(--ss-accent, #08766b) 16%, transparent); color: var(--ss-accent, #08766b); font-size: 12px; font-weight: 700; }
.ssus-list .ssus-name { flex: 1 1 auto; min-width: 0; }
html[data-ss-theme] body.modules #body > .ssus-box.ssus-fiche { margin: 0 0 12px; position: relative; }
html[data-ss-theme] body.modules #body > .ssus-box.ssus-fiche .ssus-input { width: 100%; min-height: 44px; box-sizing: border-box; }
@media print { #body > .ssus-box.ssus-fiche { display: none !important; } }
/* Liste des élèves : pastille du dossier sous le nom. */
html[data-ss-theme] body.modules #body .list-outer.students .ssus-dossier { display: inline-block; margin: 4px 0 0 8px; font-size: 11px; font-weight: 600; white-space: normal; vertical-align: middle; }
@media screen and (max-width: 736px) { html[data-ss-theme] body.modules #body .list-outer.students .ssus-dossier { display: block; width: fit-content; margin: 6px 0 2px; } }
/* Carte Famille de la fiche : intitulé de chaque partie. */
html[data-ss-theme] body.modules #body .ss-fiche-eleve .fp-famille-t { margin: 8px 0 2px; font-weight: 600; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body .list-outer.students .ssus-dossier { padding: 2px 8px; border-radius: 20px; }
html[data-ss-theme] body.modules #body .list-outer.students .ssus-dossier.ss-k-p--att { background: var(--ss-etat-attention-bg); color: #7a4b00 !important; }
html[data-ss-theme] body.modules #body .list-outer.students .ssus-dossier.ss-k-p--ok { background: var(--ss-etat-fait-bg); color: #085041 !important; }

/* ===== École : importer des élèves (11/11/2026) ===== */
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-carte { margin: 0 0 14px; padding: 14px 16px; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-t { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ss-text); }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ss-border); border-radius: 12px; cursor: pointer;
    background: var(--ss-surface-2); color: var(--ss-text) !important; font: 600 14px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; text-decoration: none; box-shadow: var(--ss-shadow-petit);
}
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-btn--fort { border: 0; background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)); color: #ffffff !important; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-btn:disabled { opacity: .55; cursor: default; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-btn:focus-within { outline: 2px solid var(--ss-accent); outline-offset: 2px; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-coller { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 8px; padding: 10px 12px; border-radius: 12px; font: 13px/1.4 ui-monospace, Consolas, monospace; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-reglages { margin: 8px 0 12px; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-reglages select { min-height: 44px; margin-top: 4px; max-width: 100%; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-liste { max-height: 60vh; overflow-y: auto; margin: 0 -6px 12px; padding: 0 6px; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-ligne { align-items: flex-start; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-avis { display: block; color: #a4510a; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-accord { display: block; margin: 10px 0; font-size: 14px; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-accord input { width: 20px; height: 20px; vertical-align: middle; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-import-barre { display: block; width: 100%; height: 10px; margin: 8px 0 12px; }
html[data-ss-theme] body.modules #body .ss-import-eleves .ss-cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Pages d'origine au gabarit (11/11/2026, demande du propriétaire : harmoniser en profondeur) =====
   Deux générations de pages coexistaient : celles du gabarit (titre simple, aide discrète, bouton d'action doré) et
   celles d'origine (titre encadré avec logo, aide dans une boîte, bouton vert). Les secondes prennent l'aspect des
   premières : présentation seulement, mêmes champs, mêmes boutons, mêmes adresses. */
html[data-ss-theme] body.modules #body > header.ss-page-heading {
    display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 18px 0 0 !important; border: 0 !important; border-radius: 0 !important;
    background: none !important; box-shadow: none !important;
}
html[data-ss-theme] body.modules #body > header.ss-page-heading > img.ss-animated-brand { display: none !important; }
html[data-ss-theme] body.modules #body > header.ss-page-heading > :is(h1, h2) {
    flex: 1 1 auto; min-width: 0; margin: 0 !important; padding: 0 !important; color: var(--ss-text) !important;
    font: 700 20px/1.25 system-ui, "Segoe UI", Roboto, Arial, sans-serif !important; letter-spacing: 0; text-transform: none;
}
html[data-ss-theme] body.modules #body > header.ss-page-heading > .ss-page-back {
    flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-surface-2) !important; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body > p.ss-page-explanation {
    margin: 4px 0 14px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--ss-text-2) !important; font-size: 13px !important; line-height: 1.45;
}
/* Bouton principal du logiciel (« Enregistrer », « Rechercher »…) : le bouton d'action du gabarit, partout. */
html[data-ss-theme] body.modules #body :is(input, button, a).button-primary {
    min-height: 44px; padding: 0 18px !important; border: 0 !important; border-radius: 12px !important;
    background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)) !important; color: #ffffff !important;
    font-weight: 600 !important; box-shadow: var(--ss-shadow-petit) !important; cursor: pointer;
}
html[data-ss-theme] body.modules #body :is(input, button, a).button-primary:active { transform: scale(.98); }
html[data-ss-theme] body.modules #body :is(input, button, a).button-primary:disabled { opacity: .55; cursor: default; }
html[data-ss-soleil="on"] body.modules #body :is(input, button, a).button-primary { background: var(--ss-accent, #005a51) !important; box-shadow: none !important; }
/* Titre d'un bloc de formulaire d'origine (« COMPLEXE SCOLAIRE LE SAGE », onglets d'un écran) : titre de section du kit. */
html[data-ss-theme] body.modules #body .postbox-wrapper .h3multi h3.title:only-child,
html[data-ss-theme] body.modules #body .postbox-wrapper > .postbox > thead h3 { color: var(--ss-text) !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0; }
/* Un écran qui a déjà son sélecteur du gabarit (Niveaux, Tranches horaires) ne reçoit pas une seconde barre d'onglets. */
html[data-ss-theme] body.modules #body:has(.ss-k-choix) nav.ss-groupe-onglets { display: none !important; }

/* ===== École en profondeur (11/11/2026) : retour, onglets de groupe, noms de champs, images ===== */
/* Bouton de retour : toujours au début, à gauche du titre (il était tout à droite sur les pages d'origine). */
html[data-ss-theme] body.modules #body > header.ss-page-heading > .ss-page-back { order: -1; }
/* Onglets d'un groupe de pages : la même forme que le sélecteur du gabarit (pastilles), sur toutes les pages. */
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets {
    display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow-x: auto; scrollbar-width: none;
}
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets a {
    flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--ss-border); border-radius: 999px; background: var(--ss-surface-2);
    color: var(--ss-text) !important; font-size: 13px; font-weight: 600; box-shadow: var(--ss-shadow-petit);
}
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets a[aria-current] { background: var(--ss-text); color: var(--ss-bg, #e9eef3) !important; box-shadow: none; }
html[data-ss-theme] body.modules #body .ss-gabarit > nav.ss-groupe-onglets { margin-top: 10px; }
/* Nom d'un champ au-dessus du champ, partout. */
html[data-ss-theme] body.modules #body .ss-etiquette-haut { display: block; margin: 0 0 4px; }
html[data-ss-theme] body.modules #body .ss-etiquette-haut .legend-gray, html[data-ss-theme] body.modules #body span.legend-gray.ss-etiquette-haut { font-size: 12px; font-weight: 600; color: var(--ss-text-2) !important; }
/* Outil d'image : ligne d'information, aperçu d'un logo sur damier (fond transparent). */
.ss-photo-cropper .ss-photo-info { margin: 6px 0 0; font-size: 12px; color: var(--ss-text-2, #5d6b7e); }
.ss-photo-cropper--logo canvas, img.ss-photo-preview--logo {
    background-color: #fff; background-image: linear-gradient(45deg, #e3e7ee 25%, transparent 25%, transparent 75%, #e3e7ee 75%), linear-gradient(45deg, #e3e7ee 25%, transparent 25%, transparent 75%, #e3e7ee 75%);
    background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
img.ss-photo-preview--logo { display: block; width: 96px; height: 96px; margin-top: 8px; border-radius: 12px; }
/* Outil d'image : son bouton principal est le bouton d'action du kit. */
.ss-photo-cropper .ss-photo-ok { border: 0 !important; border-radius: 12px !important; background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)) !important; color: #fff !important; font-weight: 600; }
.ss-photo-cropper button { min-height: 44px; border-radius: 12px; }
html[data-ss-theme] body.modules #body .ss-champ-haut { flex-direction: column !important; }
/* Configuration du logiciel et écrans du même gabarit d'origine : le bandeau « SchoolSafe · Espace scolaire » (logo,
   retour au tableau de bord, langue, déconnexion) répétait l'en-tête de l'application ; il n'est plus affiché. Le
   titre de l'écran et le nom de l'école restent. */
html[data-ss-theme] body.modules #body header.ss-native-workspace-header > .ss-native-workspace-top { display: none !important; }
html[data-ss-theme] body.modules #body header.ss-native-workspace-header { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html[data-ss-theme] body.modules #body header.ss-native-workspace-header :is(h1, h2) { font: 600 16px/1.3 system-ui, "Segoe UI", Roboto, Arial, sans-serif !important; color: var(--ss-text) !important; margin: 4px 0 0 !important; }
/* Valeur d'un champ déjà rempli (clic pour modifier) : la surface du kit, plus de fond blanc bleuté. */
html[data-ss-theme] body.modules #body div.onclick { border-color: var(--ss-line, transparent) !important; background: var(--ss-surface-2) !important; border-radius: 10px !important; }
/* Bouton secondaire d'origine (« OK », « Annuler ») : mêmes coins et même hauteur que les autres boutons. */
html[data-ss-theme] body.modules #body form input[type="submit"]:not(.button-primary):not(.ss-k-action), html[data-ss-theme] body.modules #body form input[type="button"]:not(.button-primary):not(.ss-k-action) { min-height: 44px; padding: 0 16px; border-radius: 12px !important; }

/* ===== École, derniers écrans (11/11/2026) ===== */
/* Calendrier : plus de fond blanc ni de trait orange autour de la liste des jours. */
html[data-ss-theme] body.modules #body table#calendar.ss-cal-liste { border: 0 !important; background: transparent !important; }
/* Formulaire d'inscription des parents : lignes sur la surface du kit (avant : cases blanches). */
html[data-ss-theme] body.modules #body[data-ss-page="Custom/Registration"] form :is(tr.st, tr.st > td) { background: transparent !important; }
/* Liens de la recherche (« Afficher tous les élèves », « Recherche avancée ») : boutons secondaires du kit. */
html[data-ss-theme] body.modules #body .ssus-tools .ssus-link {
    min-height: 40px; padding: 0 14px; border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-surface-2) !important;
    color: var(--ss-accent) !important; font-weight: 600; text-decoration: none !important; box-shadow: var(--ss-shadow-petit) !important;
}

/* ===== Pédagogie (11/11/2026) : retour, boutons, mise en page du téléphone ===== */
/* Écrans du gabarit : bouton de retour au début, à gauche du titre (même bouton que les pages d'origine). */
html[data-ss-theme] body.modules #body .ss-gabarit > header.ss-k-entete > .ss-k-ligne-titre { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-ss-theme] body.modules #body .ss-gabarit > header.ss-k-entete > .ss-k-ligne-titre > .ss-k-titre { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
html[data-ss-theme] body.modules #body .ss-gabarit > header.ss-k-entete .ss-page-back {
    flex: 0 0 auto; width: 44px; height: 44px; margin: 0; border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-surface-2) !important; box-shadow: var(--ss-shadow-petit) !important;
}
@media print { html[data-ss-theme] body.modules #body .ss-gabarit .ss-page-back { display: none !important; } }
/* Synthèse du bulletin : boutons du kit (avant : tous bleu foncé, la règle générale des boutons passait devant). */
html[data-ss-theme] body.modules #body .ss-gabarit .sb-btn {
    min-height: 44px; padding: 0 18px !important; border: 0 !important; border-radius: 12px !important; font-weight: 600 !important;
    background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)) !important; color: #ffffff !important; box-shadow: var(--ss-shadow-petit) !important;
}
html[data-ss-theme] body.modules #body .ss-gabarit .sb-btn.light { background: var(--ss-surface-2) !important; color: var(--ss-text) !important; border: 1px solid var(--ss-border) !important; }
html[data-ss-soleil="on"] body.modules #body .ss-gabarit .sb-btn:not(.light) { background: var(--ss-accent, #005a51) !important; box-shadow: none !important; }
/* Rien ne dépasse de l'écran : les blocs suivent la largeur (avant : 793 px dans un écran de 375, la fin coupée). */
html[data-ss-theme] body.modules #body .ss-gabarit .sb { grid-template-columns: minmax(0, 1fr); }
html[data-ss-theme] body.modules #body .ss-gabarit .sb > *, html[data-ss-theme] body.modules #body .ss-gabarit .sb-box > * { min-width: 0; }
html[data-ss-theme] body.modules #body .ss-gabarit .sb-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
html[data-ss-theme] body.modules #body .ss-gabarit .sb-chips a { flex: 0 0 auto; }
html[data-ss-theme] body.modules #body .ss-gabarit .sb-box form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
html[data-ss-theme] body.modules #body .ss-gabarit .sb-box form label:has(> input[type="radio"]) { flex-direction: row; align-items: center; }
/* Téléphone : les tableaux de Pédagogie en cartes, une ligne par carte, chaque valeur avec le nom de sa colonne. */
@media screen and (max-width: 736px) {
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] :is(.sb-wrap, div:has(> table)) { overflow: visible !important; }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table { display: block !important; width: 100% !important; border: 0 !important; background: transparent !important; }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table > thead { display: none !important; }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table > tbody { display: block !important; }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table > tbody > tr {
        display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; margin: 0 0 10px; padding: 12px 14px;
        border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-surface-2); box-shadow: var(--ss-shadow-petit);
    }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table > tbody > tr > td {
        display: flex !important; flex-direction: column; gap: 2px; min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: left !important;
    }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table > tbody > tr > td:first-child { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table > tbody > tr > td:has(input[type="text"], select, textarea) { grid-column: 1 / -1; }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table > tbody > tr > td[data-ss-th]:not(:first-child)::before { content: attr(data-ss-th); font-size: 12px; font-weight: 600; color: var(--ss-text-2); }
    html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section="pedagogy"] table :is(input[type="text"], select) { width: 100% !important; max-width: none !important; }
}
/* Téléphone : le dernier bouton d'une page n'est plus caché sous les bulles JASPE et Watch (bas à droite). */
@media screen and (max-width: 768px) {
    html[data-ss-theme] body.modules #body { padding-bottom: 232px !important; }
}

/* ===== Sécurité (11/11/2026) : plus de bleu de l'ancien thème ===== */
/* L'ancien thème « SchoolSafe » colore boutons d'envoi, liens actifs et cases en bleu fixe (#023fbf) ; avec le thème
   Relief, cette couleur devient celle de l'école (même couleur que les boutons du kit), partout dans l'application. */
html[data-ss-theme] { --ss-brand-secondary: var(--ss-accent, #08766b); }
html[data-ss-theme] body.modules #body .ss-gabarit :is(button, input)[type="submit"]:not(.ss-k-action):not(.light):not([class*="secondaire"]) {
    border: 0 !important; border-radius: 12px !important; min-height: 44px; padding: 0 18px !important; font-weight: 600 !important;
    background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)) !important; color: #fff !important; box-shadow: var(--ss-shadow-petit) !important;
}
/* Vues d'une même page (Personnes de récupération : Par élève · Photos des parents) : mêmes pastilles que les onglets de groupe. */
html[data-ss-theme] body.modules #body nav.ss-onglets-vue { display: flex; flex-wrap: nowrap; gap: 6px; margin: 10px 0 14px; padding: 0; border: 0; background: none; box-shadow: none; overflow-x: auto; scrollbar-width: none; }
html[data-ss-theme] body.modules #body nav.ss-onglets-vue a {
    flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ss-border); border-radius: 999px; background: var(--ss-surface-2);
    color: var(--ss-text) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; box-shadow: var(--ss-shadow-petit);
}
html[data-ss-theme] body.modules #body nav.ss-onglets-vue a[aria-current] { background: var(--ss-text); color: var(--ss-bg, #e9eef3) !important; box-shadow: none; }
/* Filtre d'origine (dates) remis sous le titre et les filtres du gabarit : une carte discrète, sur une ou deux lignes. */
html[data-ss-theme] body.modules #body .ss-gabarit > form.ss-k-filtre-origine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--ss-surface-2); box-shadow: var(--ss-shadow-petit); font-size: 13px; }
html[data-ss-theme] body.modules #body .ss-gabarit > form.ss-k-filtre-origine :is(table, tbody, tr, td) { display: contents; }

/* ===== Communication (11/11/2026) ===== */
/* Champ d'un écran du gabarit sans classe du kit (Annonces : titre, texte, dates) : il était de la couleur du fond,
   donc invisible. Il devient creusé comme les autres champs. */
html[data-ss-theme] body.modules #body .ss-gabarit :is(input:not([type]), input[type="text"], input[type="date"], input[type="time"], input[type="number"], input[type="email"], input[type="search"], input[type="url"], textarea, select):is(:not([class]), [class=""]) {
    min-height: 46px; box-sizing: border-box; border: 0 !important; border-radius: 12px !important; background: var(--ss-surface-2) !important;
    box-shadow: var(--ss-shadow-creux) !important; color: var(--ss-text) !important; padding: 8px 12px !important; font: inherit;
}
html[data-ss-theme] body.modules #body .ss-gabarit textarea:is(:not([class]), [class=""]) { min-height: 110px; }
/* Page de confirmation (toutes les suppressions) : titre normal, bouton qui agit explicite, « Annuler » secondaire. */
html[data-ss-theme] body.modules #body td.popTable { padding: 16px !important; }
html[data-ss-theme] body.modules #body .postbox:has(td.popTable) h3.title { text-transform: none !important; letter-spacing: 0 !important; font-size: 16px !important; }
html[data-ss-theme] body.modules #body td.popTable h4 { font-size: 15px !important; color: var(--ss-text) !important; }
html[data-ss-theme] body.modules #body td.popTable form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
html[data-ss-theme] body.modules #body td.popTable input:is(.ss-confirme-danger, .ss-confirme-oui, .ss-confirme-non) {
    min-height: 46px !important; padding: 0 20px !important; border: 0 !important; border-radius: 12px !important; font-weight: 700 !important; cursor: pointer; box-shadow: var(--ss-shadow-petit) !important; text-transform: none !important; letter-spacing: 0 !important;
}
html[data-ss-theme] body.modules #body td.popTable input.ss-confirme-danger { background: #b91c1c !important; color: #fff !important; }
html[data-ss-theme] body.modules #body td.popTable input.ss-confirme-oui { background: linear-gradient(135deg, var(--ss-vert, #08766b), var(--ss-vert-2, #0d9488)) !important; color: #fff !important; }
html[data-ss-theme] body.modules #body td.popTable input.ss-confirme-non { background: var(--ss-surface-2) !important; color: var(--ss-text) !important; }

/* ===== Vie scolaire (11/11/2026) ===== */
/* Menus du jour : le jour d'aujourd'hui au kit (avant : fond rose fixe). */
html[data-ss-theme] body.modules #body a.vs-jour.vs-auj { background: var(--ss-surface-2) !important; box-shadow: var(--ss-shadow-creux), inset 4px 0 0 var(--ss-accent, #08766b) !important; }
/* Servir les repas : photo du plat à la place des initiales quand elle existe. */
html[data-ss-theme] body.modules #body .vs-ph.vs-ph-photo { padding: 0 !important; overflow: hidden; background: var(--ss-surface-2) !important; }
html[data-ss-theme] body.modules #body .vs-ph.vs-ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Transport (11/11/2026) : dans les écrans du gabarit, les cases à cocher dessinées par l'ancien thème (FlatSIS,
   carré bleu #298cba de 16 px dans une case de 24) prennent la couleur de la rubrique et toute la case. */
html[data-ss-theme] body.modules #body .ss-gabarit input[type="checkbox"]::before { width: 100%; height: 100%; border-radius: 6px; border-color: var(--ss-text-2, #6b7280); background: var(--ss-surface-2, #fff); }
html[data-ss-theme] body.modules #body .ss-gabarit input[type="checkbox"]:checked::before { background: var(--k-rub, var(--ss-accent, #08766b)); border-color: var(--k-rub, var(--ss-accent, #08766b)); box-shadow: inset 0 0 0 3px var(--ss-surface-2, #fff); }
html[data-ss-theme] body.modules #body .ss-gabarit input[type="checkbox"]:focus-visible::before { border-color: var(--k-rub, var(--ss-accent, #08766b)); }
/* Accueil de la direction (nuit du 11/11/2026, priorités du propriétaire) : « Vie de l'école » juste après « À faire ».
   Top 10 et Rattrapages côte à côte sur ordinateur, Anniversaires et Palmarès des classes sur toute la largeur ;
   une seule colonne sur téléphone. Les blocs gardent leur propre présentation. */
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie > .ss-photo-school-life { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie > .ss-photo-school-life > * { order: 0; margin: 0; min-width: 0; }
@media (min-width: 900px) {
  html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie > .ss-photo-school-life { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie > .ss-photo-school-life > :is(#ss-photo-birthdays, .ss-palmares-visual) { grid-column: 1 / -1; }
}
/* Enseignant et parent : calendrier et annonces remontés dans « Vie de l'école » ont la même carte que Rattrapages. */
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie [id^="ss-vie-flux-"] { padding: 14px 16px !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie [id^="ss-vie-flux-"] > h3 { font-size: 16px !important; margin: 0 0 8px !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie [id^="ss-vie-flux-"] li { font-size: 13px !important; color: var(--ss-text-2) !important; margin: 0 !important; padding: 6px 0 !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie .ss-remediation-visual { padding: 14px 16px !important; min-height: 0 !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie .ss-remediation-visual > header { flex-wrap: wrap; gap: 6px 12px; }
/* Parent : « Anniversaires de mes enfants » remonté seul (sans le cadre de la direction) : même carte que les autres. */
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie .ss-photo-school-life > .ss-birthday-visual { padding: 14px 16px !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie .ss-photo-school-life > .ss-birthday-visual summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 16px !important; font-weight: 700; cursor: pointer; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie .ss-photo-school-life > .ss-birthday-visual summary small { flex-basis: 100%; font-size: 12px; font-weight: 400; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-vie .ss-photo-school-life > * { min-height: 0 !important; height: auto !important; }
/* Menus sur téléphone (nuit du 11/11/2026, demande du propriétaire) : comme sur ordinateur. Le menu et les sous-menus
   glissent depuis la gauche (avant : panneau montant du bas, « venu de nulle part ») ; une rubrique ouverte garde la
   colonne d'icônes des rubriques à gauche et son panneau à côté, titre et bouton de fermeture en haut ; les fonctions
   sont des cartes du kit, comme sur ordinateur. Remplace le panneau du bas de la charte D2 (§ 3 et § 7). */
@keyframes ss-panneau-gauche { from { transform: translateX(-100%); } to { transform: none; } }
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu.slide {
        inset: 0 auto calc(var(--ss-onglet-h) + env(safe-area-inset-bottom)) 0 !important; top: 0 !important;
        width: min(86vw, 340px) !important; height: auto !important; max-height: none !important;
        border-radius: 0 22px 22px 0 !important; box-shadow: 0 0 0 100vmax rgba(10, 20, 18, .45) !important;
        animation: ss-panneau-gauche .3s var(--ss-ease, ease) both !important;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .ss-menu-poignee { display: none !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu.slide {
        inset: 0 0 calc(var(--ss-onglet-h) + env(safe-area-inset-bottom)) 0 !important; width: 100% !important; height: auto !important;
        max-height: none !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: hidden !important;
        background: rgba(10, 20, 18, .45) !important; animation: none !important;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu {
        position: fixed !important; left: 0; top: 0; bottom: calc(var(--ss-onglet-h) + env(safe-area-inset-bottom));
        display: flex !important; flex-direction: column; gap: 4px; width: 64px !important; margin: 0 !important; padding: 10px 6px !important;
        overflow: visible !important; background: var(--ss-d2-surface-raised) !important; animation: ss-panneau-gauche .28s var(--ss-ease, ease) both;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > li.menu-module {
        display: block !important; margin: 0 !important; border: 0 !important; background: transparent !important;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > li:not(.menu-module) { display: none !important; }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top {
        display: flex !important; justify-content: center; align-items: center; width: 52px !important; min-height: 52px;
        margin: 0 auto !important; padding: 8px !important; border-radius: 14px !important; background: transparent !important;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .ss-open > .menu-top {
        background: var(--ss-surface-2) !important; box-shadow: var(--ss-shadow-creux) !important;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .menu-top :is(.ss-menu-label, .ss-rubrique-fleche),
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top::after { display: none !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .ss-open > .wp-submenu {
        position: fixed !important; inset: 0 auto calc(var(--ss-onglet-h) + env(safe-area-inset-bottom)) 64px !important; top: 0 !important;
        width: min(calc(100vw - 82px), 330px) !important; height: auto !important; max-height: none !important; overflow-y: auto !important;
        padding: 0 12px 16px !important; border-radius: 0 22px 22px 0 !important; box-shadow: 12px 0 32px rgba(10, 20, 18, .18) !important;
        animation: ss-panneau-gauche .32s var(--ss-ease, ease) both;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu .ss-context-heading { position: sticky !important; top: 0; z-index: 2; padding: 16px 2px 10px !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .wp-submenu .ss-context-heading::before { display: none !important; }
}
/* Fonctions d'un sous-menu en cartes du kit, sur téléphone et sur ordinateur (même aspect partout). */
html[data-ss-theme] body.modules #menu.ss-d2-menu .ss-open > .wp-submenu a:not(.ss-context-close) {
    margin: 0 0 8px !important; padding: 12px !important; border: 0 !important; border-radius: 14px !important; background: var(--ss-surface-2) !important;
}
html[data-ss-theme="relief"] body.modules #menu.ss-d2-menu .ss-open > .wp-submenu a:not(.ss-context-close) { box-shadow: var(--ss-shadow-petit) !important; }
html[data-ss-theme] body.modules #menu.ss-d2-menu .ss-open > .wp-submenu a:not(.ss-context-close):active { transform: scale(.98); }
html[data-ss-theme] body.modules #menu.ss-d2-menu .ss-open > .wp-submenu #selectedMenuLink {
    box-shadow: var(--ss-shadow-creux) !important; outline: 2px solid color-mix(in srgb, var(--ss-rubrique, var(--ss-accent)) 40%, transparent);
}
@media screen and (max-width: 700px) {
    /* Colonne d'icônes : la rubrique de la page en cours montrait aussi l'icône d'origine du logiciel (deux icônes). */
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top :is(.module-icon, .ss-users-icon) { display: none !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top .ss-rubrique-icone { flex: 0 0 34px; width: 34px; height: 34px; }
}
/* Rubrique de la page en cours : l'icône d'origine du logiciel (branch-icons.css) s'ajoutait à l'icône de couleur, sur
   ordinateur et sur téléphone (corrigé pour Transport seulement dans ss-kit.css) : retirée pour toutes les rubriques. */
html body.modules #menu.ss-d2-menu .adminmenu > .menu-module[data-ss-branch] > #selectedModuleLink :is(.module-icon, .ss-users-icon) { display: none !important; }
/* Titres des parties d'un sous-menu (« 1 · Élèves ») : sans bande blanche, comme sur téléphone. */
html[data-ss-theme] body.modules #menu.ss-d2-menu .ss-open > .wp-submenu .menu-inter {
    background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--ss-text-2) !important;
    font: 600 13px/1.3 "Segoe UI", Roboto, system-ui, sans-serif !important; padding: 12px 4px 6px !important; text-transform: none !important;
}
/* Panneau « Profil et paramètres » (nuit du 12/11) : liens en cartes du kit, comme les sous-menus ; « Mes préférences »
   et « À propos de SchoolSafe » étaient collés sur une même ligne. */
html[data-ss-theme] body.modules #ss-native-settings :is(.ss-profile-section a, a.ss-preferences-link, a.ss-about-link) {
    display: flex !important; align-items: center; box-sizing: border-box; width: 100%; min-height: 44px; margin: 0 0 8px !important;
    padding: 10px 12px !important; border-radius: 14px !important; background: var(--ss-surface-2) !important; color: var(--ss-text) !important;
    font: 600 13px/1.3 "Segoe UI", Roboto, system-ui, sans-serif !important; text-decoration: none !important; white-space: normal;
}
html[data-ss-theme="relief"] body.modules #ss-native-settings :is(.ss-profile-section a, a.ss-preferences-link, a.ss-about-link) { box-shadow: var(--ss-shadow-petit) !important; }
html[data-ss-theme] body.modules #ss-native-settings :is(.ss-profile-section a, a.ss-preferences-link, a.ss-about-link):active { transform: scale(.98); }
/* Cases à cocher de toute l'application au kit (nuit du 12/11, avis Transport n° 4) : la règle du gabarit s'applique
   aussi aux pages d'origine (Passage à l'année suivante, listes…), qui gardaient le petit carré bleu de l'ancien thème. */
html[data-ss-theme] body.modules #body input[type="checkbox"]::before { width: 100%; height: 100%; border-radius: 6px; border-color: var(--ss-text-2, #6b7280); background: var(--ss-surface-2, #fff); }
html[data-ss-theme] body.modules #body input[type="checkbox"]:checked::before { background: var(--k-rub, var(--ss-accent, #08766b)); border-color: var(--k-rub, var(--ss-accent, #08766b)); box-shadow: inset 0 0 0 3px var(--ss-surface-2, #fff); }
html[data-ss-theme] body.modules #body input[type="checkbox"]:focus-visible::before { border-color: var(--k-rub, var(--ss-accent, #08766b)); }
html[data-ss-theme] body.modules #body input[type="checkbox"]:disabled::before { opacity: .45; }

/* 12/11/2026 (propriétaire) — haut de l'accueil : « école · année · date » en petit sous « Bonjour » (l'école et l'année
   se touchent pour en changer), recherche d'élève fine juste dessous ; plus de grand bloc en bas de page. */
html[data-ss-theme] body.modules #body #ss-accueil select.ss-contexte-choix { display: inline-block; vertical-align: baseline; }
html[data-ss-theme] body.modules #body #ss-accueil select.ss-contexte-choix {
    -webkit-appearance: none; appearance: none; width: auto; max-width: 62vw; min-width: 0; height: auto; min-height: 0;
    margin: 0; padding: 0 15px 0 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right center / 9px 6px !important;
    font: inherit; font-weight: 600; color: inherit; line-height: 1.5; cursor: pointer; text-overflow: ellipsis;
    text-decoration: underline dotted; text-underline-offset: 3px;
}
html[data-ss-theme] body.modules #body #ss-accueil select.ss-contexte-choix:focus-visible { outline: 2px solid var(--ss-accent, #0f766e); outline-offset: 2px; }
html[data-ss-theme] body.modules #body #ss-accueil form.ss-accueil-recherche {
    order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: 2px; margin: 2px 0 0; padding: 0 4px 0 12px;
    min-height: 0; height: 40px; border-radius: 12px; box-shadow: var(--ss-shadow-petit, none);
}
html[data-ss-theme] body.modules #body #ss-accueil form.ss-accueil-recherche input[name="last"] {
    flex: 1; height: 38px; min-height: 0; margin: 0; padding: 0 4px !important; font-size: 14px; border: 0 !important;
    background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
}
html[data-ss-theme] body.modules #body #ss-accueil form.ss-accueil-recherche button {
    width: 34px; height: 34px; min-height: 0; padding: 0 !important; box-shadow: none !important; background: transparent !important;
}
html[data-ss-theme] body.modules #body #ss-accueil form.ss-accueil-recherche button img { width: 18px; height: 18px; }
@media screen and (min-width: 701px) { html[data-ss-theme] body.modules #body #ss-accueil form.ss-accueil-recherche { max-width: 560px; } }
/* « Informations de connexion » descend en bas de page, en petit. */
html[data-ss-theme] body.modules #body > details.ss-connexion-bas { margin: 18px 0 6px; font-size: 12px; opacity: .8; }
/* Téléphone : la direction a « Scanner » dans la barre du bas ; il n'est pas répété dans « Actions ». */
@media screen and (max-width: 700px) {
    body:has(#ss-mobile-navigation a[href*="scanner-native"], #ss-mobile-navigation a[href*="SchoolSafe/Scan"], #ss-mobile-navigation a[href*="SchoolSafe%2FScan"]) #ss-header-scan { display: none !important; }
}
/* Logo du haut (téléphone) pour l'enseignant et le parent, comme la direction. */
#footerwrap > .ss-entete-marque { display: none; }
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules #footerwrap > .ss-entete-marque { display: flex; align-items: center; gap: 6px; margin-right: auto; text-decoration: none; color: var(--ss-page-text); pointer-events: auto; }
    html[data-ss-theme] body.modules #footerwrap > .ss-entete-marque img { width: 34px; height: 34px; object-fit: contain; }
    html[data-ss-theme] body.modules #footerwrap > .ss-entete-marque strong { font-size: 18px; font-weight: 800; }
    html[data-ss-theme] body.modules #footerwrap > .ss-entete-marque strong span { color: #b8892b; }
}
#footerwrap .ss-header-action.ss-sans-action, .ss-header-action.ss-sans-action { display: none !important; }
/* Scanner flottant (ordinateur) au-dessus de JASPE et de Watch, même dessin que Watch. */
#ss-compagnons > a#ss-scan-flottant {
    pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 56px; text-decoration: none;
    color: var(--ss-text, #172333); font: 700 11px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; transition: transform .2s var(--ss-ease, ease);
}
#ss-compagnons > a#ss-scan-flottant:active { transform: scale(.92); }
#ss-compagnons > a#ss-scan-flottant > span:last-child { padding: 1px 7px; border-radius: 10px; background: var(--ss-surface, #fff); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
#ss-compagnons > a#ss-scan-flottant:focus-visible { outline: none; }
#ss-compagnons > a#ss-scan-flottant:focus-visible .ss-compagnon-rond { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 2px; }
#ss-compagnons > a#ss-scan-flottant svg { width: 22px; height: 22px; }
@media screen and (max-width: 700px) { #ss-compagnons > a#ss-scan-flottant { display: none; } }
@media screen and (min-width: 701px) { html body.modules #ss-header-scan { display: none !important; } }
/* 12/11/2026 — enseignant : « Ma classe en bref » (carrés) et « Mes classes » (une carte par classe). */
#ss-accueil .ss-ens-carres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media screen and (min-width: 700px) { #ss-accueil .ss-ens-carres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre {
    display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; aspect-ratio: 1 / .82; padding: 12px;
    border-radius: 14px; background: var(--ss-surface-2); color: var(--ss-text) !important; text-decoration: none; border: 1px solid var(--ss-border);
    border-top: 4px solid var(--ss-border); box-shadow: var(--ss-shadow-petit, none); transition: transform .25s var(--ss-ease, ease);
}
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre:active { transform: scale(.97); }
#ss-accueil .ss-ens-carre .ss-ens-libelle { font-size: 13px; font-weight: 600; color: var(--ss-text-2); line-height: 1.25; }
#ss-accueil .ss-ens-carre .ss-ens-valeur { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#ss-accueil .ss-ens-carre .ss-ens-valeur.ss-ens-long { font-size: 19px; }
#ss-accueil .ss-ens-carre small { font-size: 12px; color: var(--ss-text-2); line-height: 1.3; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre.ss-ens-urgent { border-top-color: #c2410c; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre.ss-ens-urgent .ss-ens-valeur { color: #c2410c; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre.ss-ens-attention { border-top-color: #b8892b; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre.ss-ens-ok { border-top-color: #0f766e; }
#ss-accueil .ss-ens-classes { display: grid; gap: 10px; }
@media screen and (min-width: 900px) { #ss-accueil .ss-ens-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-classe { padding: 14px; border-radius: 14px; background: var(--ss-surface-2); border: 1px solid var(--ss-border); box-shadow: var(--ss-shadow-petit, none); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-classe h3 { margin: 0 0 2px; font-size: 16px; color: var(--ss-text); }
#ss-accueil .ss-ens-classe p { margin: 0 0 10px; font-size: 13px; color: var(--ss-text-2); }
#ss-accueil .ss-ens-classe div { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-classe div a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--ss-surface); border: 1px solid var(--ss-border); color: var(--ss-text) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-suivi { justify-self: start; font-size: 14px; font-weight: 600; }
/* 12/11/2026 — Mon compte : photo de profil (avatar rond, bouton d'envoi au kit). */
.ss-gabarit .fp-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ss-gabarit .fp-av:has(img) { overflow: hidden; padding: 0; }
.ss-gabarit .fp-photo { display: grid; gap: 6px; }
.ss-gabarit .fp-photo label.ss-k-btn { position: relative; margin: 0; cursor: pointer; }
.ss-gabarit .fp-photo .fp-photo-champ { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ss-gabarit .fp-photo button.ss-k-btn { margin: 0; }
.ss-gabarit .fp-photo small { color: var(--k-txt3); font-size: 12.5px; }
/* 12/11/2026 — accueil du parent : une carte par enfant (photo, classe, état du jour) et ses carrés lumineux. */
:is(#ss-accueil, .ss-kid) .ss-parent-enfants { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
:is(#ss-accueil, .ss-kid) .ss-parent-enfants[data-enfants="1"] { grid-auto-flow: row; overflow: visible; }
@media screen and (max-width: 899px) { :is(#ss-accueil, .ss-kid) .ss-parent-enfants:not([data-enfants="1"]) { grid-auto-columns: 90%; } }
@media screen and (min-width: 900px) { :is(#ss-accueil, .ss-kid) .ss-parent-enfants { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } :is(#ss-accueil, .ss-kid) .ss-parent-enfants[data-enfants="1"] { grid-template-columns: minmax(0, 1fr); } }
:is(#ss-accueil, .ss-kid) .ss-pe-enfant { scroll-snap-align: start; display: grid; gap: 10px; min-width: 0; }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carte {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--ss-text) !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ss-accent, #0f766e) 14%, var(--ss-surface-2)), var(--ss-surface-2));
    border: 1px solid color-mix(in srgb, var(--ss-accent, #0f766e) 35%, var(--ss-border)); box-shadow: 0 8px 24px color-mix(in srgb, var(--ss-accent, #0f766e) 18%, transparent);
}
:is(#ss-accueil, .ss-kid) .ss-pe-photo { flex: none; width: 92px; height: 92px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: var(--ss-accent, #0f766e); color: #fff; font-size: 30px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ss-accent, #0f766e) 30%, transparent); }
:is(#ss-accueil, .ss-kid) .ss-pe-photo img { width: 100%; height: 100%; object-fit: cover; }
:is(#ss-accueil, .ss-kid) .ss-pe-id { display: grid; gap: 2px; min-width: 0; }
:is(#ss-accueil, .ss-kid) .ss-pe-id strong { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
:is(#ss-accueil, .ss-kid) .ss-pe-id small { font-size: 13px; color: var(--ss-text-2); }
:is(#ss-accueil, .ss-kid) .ss-pe-etat { justify-self: start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: 12.5px; font-weight: 600; background: var(--ss-surface); border: 1px solid var(--ss-border); }
:is(#ss-accueil, .ss-kid) .ss-pe-etat.ss-pe-ok { color: #0f766e; border-color: #0f766e55; background: #0f766e14; }
:is(#ss-accueil, .ss-kid) .ss-pe-etat.ss-pe-attention { color: #a16207; border-color: #b8892b55; background: #b8892b14; }
:is(#ss-accueil, .ss-kid) .ss-pe-etat.ss-pe-urgent { color: #c2410c; border-color: #c2410c55; background: #c2410c14; }
:is(#ss-accueil, .ss-kid) .ss-pe-fleche { margin-left: auto; font-size: 26px; color: var(--ss-text-2); }
:is(#ss-accueil, .ss-kid) .ss-pe-carres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media screen and (max-width: 420px) { :is(#ss-accueil, .ss-kid) .ss-pe-carres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ss-text) !important;
    background: var(--ss-surface-2); border: 1px solid var(--ss-border); border-top: 4px solid var(--ss-border); transition: transform .25s var(--ss-ease, ease);
}
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre:active { transform: scale(.97); }
:is(#ss-accueil, .ss-kid) .ss-pe-carre span { font-size: 12.5px; font-weight: 600; color: var(--ss-text-2); }
:is(#ss-accueil, .ss-kid) .ss-pe-carre b { font-size: 22px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
:is(#ss-accueil, .ss-kid) .ss-pe-carre b.ss-pe-long { font-size: 15px; }
:is(#ss-accueil, .ss-kid) .ss-pe-carre small { font-size: 11.5px; color: var(--ss-text-2); line-height: 1.25; }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre.ss-pe-ok { border-top-color: #0f766e; box-shadow: 0 6px 16px #0f766e1f; }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre.ss-pe-ok b { color: #0f766e; }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre.ss-pe-attention { border-top-color: #d97706; box-shadow: 0 6px 16px #d977061f; }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre.ss-pe-attention b { color: #b45309; }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre.ss-pe-urgent { border-top-color: #c2410c; box-shadow: 0 6px 16px #c2410c24; }
html[data-ss-theme] body.modules #body :is(#ss-accueil, .ss-kid) .ss-pe-carre.ss-pe-urgent b { color: #c2410c; }
/* 12/11/2026 (propriétaire) : un seul modèle de menu. Sur téléphone, le menu reprend la colonne de l'ordinateur :
   220 px de large (avant : 86 % de l'écran), mêmes lignes (34 px d'icône, texte 13 px, 8 px × 10 px), même sous-menu. */
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu.slide { width: 220px !important; border-radius: 0 18px 18px 0 !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li.menu-module { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li.menu-module > .menu-top {
        display: grid !important; grid-template-columns: 34px minmax(0, 1fr) 16px !important; align-items: center; gap: 0 10px !important;
        min-height: 0 !important; margin: 2px 8px !important; padding: 8px 10px !important; border-radius: 12px !important;
        font-size: 13px !important; font-weight: 600 !important; line-height: 1.25 !important;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li.menu-module > .menu-top .ss-rubrique-icone {
        width: 34px !important; height: 34px !important; min-width: 0 !important; border-radius: 10px !important;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li.menu-module > .menu-top .ss-rubrique-icone svg { width: 18px !important; height: 18px !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li.menu-module > .menu-top .ss-menu-label { font-size: 13px !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="primary"] #menu.ss-d2-menu .adminmenu > li.menu-module > .menu-top .ss-menu-label small { font-size: 11px !important; }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .ss-open > .wp-submenu { width: min(calc(100vw - 82px), 280px) !important; }
}
/* Écran d'un enfant (Mes enfants) : choix de l'enfant numéroté, puis sa carte en haut. */
.ss-gabarit .ss-choix-enfants { display: grid; gap: 10px; }
html #body .ss-gabarit .ss-choix-enfants a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--k-carte); border: 1px solid var(--k-bord); box-shadow: var(--ss-shadow, none); color: var(--k-txt) !important; text-decoration: none; }
.ss-gabarit .ss-choix-enfants .ss-ce-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--k-vert); color: #fff; font-weight: 800; }
.ss-gabarit .ss-choix-enfants .ss-ce-photo { flex: none; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--k-doux); font-weight: 700; }
.ss-gabarit .ss-choix-enfants .ss-ce-photo img { width: 100%; height: 100%; object-fit: cover; }
.ss-gabarit .ss-choix-enfants b { display: block; font-size: 17px; }
.ss-gabarit .ss-choix-enfants small { color: var(--k-txt3); font-size: 13px; }
.ss-gabarit .ss-choix-enfants .ss-ce-fleche { margin-left: auto; font-size: 24px; color: var(--k-txt3); }
.ss-kid .ss-parent-enfants[data-seul] { display: grid; grid-auto-flow: row; overflow: visible; }
/* 12/11/2026 (propriétaire) : carrés de l'enseignant plus petits, trois par ligne sur téléphone, détails sur deux lignes. */
#ss-accueil .ss-ens-carres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media screen and (max-width: 359px) { #ss-accueil .ss-ens-carres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre { aspect-ratio: auto; justify-content: flex-start; gap: 2px; padding: 9px 9px 10px; border-radius: 12px; border-top-width: 3px; }
#ss-accueil .ss-ens-carre .ss-ens-libelle { font-size: 11.5px; }
#ss-accueil .ss-ens-carre .ss-ens-valeur { font-size: 21px; margin: 1px 0 2px; }
#ss-accueil .ss-ens-carre .ss-ens-valeur.ss-ens-long { font-size: 14px; }
#ss-accueil .ss-ens-carre small { font-size: 10.5px; line-height: 1.3; }
@media screen and (min-width: 900px) { #ss-accueil .ss-ens-carres { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* 12/11/2026 (propriétaire) : logo ou photo de fond CENTRÉ, entier (jamais étiré ni coupé), à la taille choisie dans
   Apparence (« Taille », 30 à 100 %) ; le flou suit exactement le curseur (0 = net), le voile règle la visibilité. */
html[data-ss-fond="photo"] #ss-ambiance-fond {
    inset: auto !important; left: 50% !important; top: 50% !important;
    width: min(calc(var(--ss-photo-taille, 70) * 1vw), calc(var(--ss-photo-taille, 70) * .9vh)) !important; aspect-ratio: 1 !important; height: auto !important;
    background: var(--ss-bg) center / contain no-repeat !important;
    filter: blur(var(--ss-photo-flou, 16px)) !important;
    transform: translate(-50%, -50%) !important; animation: ss-photo-respire 24s ease-in-out infinite alternate !important;
}
@media screen and (max-width: 700px) {
    html[data-ss-fond="photo"] #ss-ambiance-fond { width: min(calc(var(--ss-photo-taille, 70) * 1.25vw), 96vw, 80vh) !important; }
}
@keyframes ss-photo-respire { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.04); } }
html[data-ss-econome="on"] #ss-ambiance-fond, html.ss-reduit #ss-ambiance-fond { animation: none !important; }
/* 12/11/2026 : un seul logo en haut (celui du tableau photo de la direction l'emporte) ; « School » lisible en mode sombre. */
html[data-ss-theme] body.modules #footerwrap:has(.ss-photo-mobile-brand) > .ss-entete-marque { display: none !important; }
html[data-ss-theme] body.modules #footer #footerwrap .ss-photo-mobile-brand strong { color: var(--ss-page-text, #172333) !important; }
html[data-ss-theme] body.modules #footer #footerwrap .ss-photo-mobile-brand strong span { color: #b8892b !important; }
/* 12/11/2026 — prise directe d'une photo (à côté de la galerie) et sa fenêtre d'appareil photo. */
html[data-ss-theme] body.modules .ss-prise-directe { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin: 8px 0 0; padding: 0 16px; border-radius: 12px; border: 1px solid var(--ss-border, #dde3e0); background: var(--ss-surface, #fff); color: var(--ss-text, #172333); font: 600 14px/1.2 inherit; cursor: pointer; }
.ss-prise-dialogue { width: min(94vw, 520px); padding: 16px; border: 0; border-radius: 18px; background: var(--ss-surface, #fff); color: var(--ss-text, #172333); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.ss-prise-dialogue::backdrop { background: rgba(10, 20, 18, .6); }
.ss-prise-dialogue h2 { margin: 0 0 10px; font-size: 18px; }
.ss-prise-dialogue video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #0b1220; }
.ss-prise-dialogue .ss-prise-etat { margin: 8px 0; font-size: 13px; color: var(--ss-text-2, #5b6b7c); }
.ss-prise-dialogue .ss-prise-actions { display: grid; gap: 8px; }
.ss-prise-dialogue .ss-prise-actions button { min-height: 46px; border-radius: 14px; border: 1px solid var(--ss-border, #dde3e0); background: var(--ss-surface-2, #f6f8f7); color: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.ss-prise-dialogue .ss-prise-actions [data-action="prendre"] { background: var(--ss-accent, #0f766e); color: #fff; border-color: transparent; }
.ss-prise-dialogue .ss-prise-actions button:disabled { opacity: .5; }
html[data-ss-theme] body.modules .ss-prise-dialogue h2 { color: var(--ss-text, #172333) !important; }
/* 12/11/2026 — visage à la sortie : état et boutons dans « Photos des parents » ; résultat au scanner. */
.ss-photos-personne .ss-visage-etat { display: block; margin-top: 4px; font-size: 12px; color: var(--ss-text-2, #5b6b7c); }
.ss-photos-personne .ss-visage-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
html[data-ss-theme] body.modules .ss-visage-btn { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--ss-accent, #0f766e); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
html[data-ss-theme] body.modules .ss-visage-btn--doux { background: var(--ss-surface-2, #f6f8f7); color: var(--ss-text, #172333); border: 1px solid var(--ss-border, #dde3e0); }
.scan-visage-resultat { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.scan-visage-resultat.meme { background: #e7f6f1; color: #0f5e4f; }
.scan-visage-resultat.a_verifier, .scan-visage-resultat.aucun_visage { background: #fff6e0; color: #8a5a00; }
.scan-visage-resultat.different { background: #fdecec; color: #8a1c1c; }
/* 12/11/2026 — inscription : identifiant et matricule donnés automatiquement ; compte de l'élève facultatif. */
html[data-ss-theme] body.modules #body input.ss-champ-auto { background: var(--ss-surface-2, #f6f8f7) !important; color: var(--ss-text-2, #5b6b7c) !important; font-style: italic; cursor: default; }
html[data-ss-theme] body.modules #body .ss-note-compte { display: block; margin-top: 4px; font-size: 12px; color: var(--ss-text-2, #5b6b7c); }
/* 12/11/2026 — compte de l'enfant créé par le parent. */
.ss-gabarit .ss-compte-enfant details summary { cursor: pointer; font-weight: 700; color: var(--k-vert, #0f766e); padding: 6px 0; }
.ss-gabarit .ss-ce-form { display: grid; gap: 10px; margin-top: 8px; }
.ss-gabarit .ss-ce-champ { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--k-txt2, #405064); }
.ss-gabarit .ss-ce-champ input { min-height: 44px; padding: 0 12px; border: 1px solid var(--k-bord, #dde3e0); border-radius: 12px; background: var(--k-doux, #f6f8f7); font-size: 15px; color: var(--k-txt, #172333); }
html[data-ss-theme] body.modules #body .ss-gabarit .ss-ce-form button { min-height: 46px; border: 0; border-radius: 14px; background: var(--k-vert, #0f766e); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
html[data-ss-theme] body.modules #body .ss-gabarit .ss-ce-form button.light { background: var(--k-doux, #f6f8f7); color: var(--k-txt, #172333); border: 1px solid var(--k-bord, #dde3e0); }

/* Téléphone, lot 2 (14/11/2026, validé par le propriétaire) : fiches d'un élève et d'une personne.
   Retour à gauche du titre, pastilles qui font sauter à une partie (toutes visibles, sur plusieurs lignes), titres de
   partie lisibles. Rien n'est replié ni retiré. */
html[data-ss-theme] body.modules #body > header.ss-fiche-entete { display: flex; align-items: center; gap: 10px; }
html[data-ss-theme] body.modules #body > header.ss-fiche-entete > h2 { flex: 1 1 auto; min-width: 0; margin: 0; }
html[data-ss-theme] body.modules #body > header.ss-fiche-entete > .ss-fiche-retour {
    flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; text-decoration: none;
}
/* Harmonisation (demande du propriétaire, 14/11/2026) : toutes les pastilles ont la même largeur et la même hauteur. */
html[data-ss-theme] body.modules #body .ss-fiche-sauts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; padding: 0; }
html[data-ss-theme] body.modules #body .ss-fiche-sauts > button {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 6px; border: 0; border-radius: 14px;
    background: var(--ss-surface, #fff); color: var(--ss-text, #172333); box-shadow: var(--ss-shadow-petit, 0 1px 3px rgba(0, 0, 0, .12));
    font: 600 14px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; text-align: center; white-space: normal; overflow-wrap: normal; cursor: pointer;
}
@media (min-width: 701px) { html[data-ss-theme] body.modules #body .ss-fiche-sauts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
html[data-ss-theme] body.modules #body .ss-fiche-sauts > button:active { box-shadow: var(--ss-shadow-creux, inset 0 1px 3px rgba(0, 0, 0, .18)); }
html[data-ss-theme] body.modules #body .ss-fiche-personne > h3.fp-sec-t,
html[data-ss-theme] body.modules #body .ss-fiche-personne details.fu-sec { scroll-margin-top: 64px; }
@media (max-width: 700px) {
    html[data-ss-theme] body.modules #body .ss-fiche-personne > h3.ss-k-sec.fp-sec-t { font-size: 15px !important; color: var(--ss-text, #172333) !important; }
}
@media print { html[data-ss-theme] body.modules #body .ss-fiche-sauts, html[data-ss-theme] body.modules #body .ss-fiche-retour { display: none !important; } }
/* JASPE et Watch : à leur place et à leur taille ; à demi effacés seulement pendant que l'on fait défiler. */
#ss-compagnons { transition: opacity .25s var(--ss-ease, ease); }
#ss-compagnons.ss-defile { opacity: .35; }
/* Sous-pages de la fiche élève (14/11/2026) : bouton de la partie affichée, et parties rangées sous un autre bouton. */
html[data-ss-theme] body.modules #body .ss-fiche-pages > button[aria-current="page"] { background: var(--ss-accent, #08766b); color: #fff; box-shadow: var(--ss-shadow-creux, inset 0 1px 3px rgba(0, 0, 0, .18)); }
html[data-ss-theme] body.modules #body .ss-fiche-personne > [hidden], html[data-ss-theme] body.modules #body .ss-fiche-personne .fu-secs > [hidden], html[data-ss-theme] body.modules #body form:is(#student, #staff)[hidden], html[data-ss-theme] body.modules #body form:is(#student, #staff) thead[hidden] { display: none !important; }
/* Harmonisation (14/11/2026) : sous-page « Famille et récupération » — boutons de même taille, sur deux colonnes. */
html[data-ss-theme] body.modules #body .ssft-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #body .ssft-actions > .ssft-action { width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 8px !important; font-size: 14px !important; line-height: 1.15; white-space: normal; text-align: center; }
/* « Supprimer » séparé de « Enregistrer » : seul, tout en bas de la fiche, avec son avertissement. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-supprimer { margin: 28px 0 8px; padding: 14px; border-radius: 14px; background: var(--ss-etat-urgent-bg, #fcebeb); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-supprimer > p { margin: 0 0 10px; color: var(--ss-etat-urgent, #a32d2d); font-size: 14px; line-height: 1.4; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-supprimer > input, html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-supprimer > button, html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-supprimer > a { display: block; width: 100%; height: 48px; margin: 0; color: var(--ss-etat-urgent, #a32d2d) !important; font-weight: 700; text-align: center; }
@media (max-width: 700px) { html[data-ss-theme] body.modules #body .ssft-actions { grid-template-columns: minmax(0, 1fr); } }
/* Fiche élève, sous-page « Adresses et contacts » (14/11/2026) : sur téléphone, les deux colonnes étroites de l écran d origine
   passent l une sous l autre ; chaque ligne fait toute la largeur ; les « Ajouter … » sont des boutons de même taille. */
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address, html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address > td { display: block; width: 100% !important; padding: 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address .ss-school-table-scroll { overflow: visible !important; margin: 0 0 14px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat, html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat > tbody { display: block; width: 100% !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin: 0 0 8px; padding: 0 10px; box-sizing: border-box; border-radius: 14px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > th { flex: 1 1 auto; padding: 6px 0; border: 0; background: none; text-align: left; font-size: 15px; font-weight: 700; color: var(--ss-text, #172333); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td { display: block; flex: 0 0 auto; padding: 0 !important; border: 0 !important; background: none !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td:empty, html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > th:empty, html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr:empty { display: none; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td:nth-child(2), html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td.ss-champ-haut { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr.highlight, html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr.highlight-hover { background: var(--ss-surface, #fff); box-shadow: var(--ss-shadow-petit, 0 1px 3px rgba(0, 0, 0, .12)); height: auto; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr.highlight-hover:has(img[src*="add_button"]) { height: 48px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td > a { display: block; min-width: 44px; padding: 14px 0; line-height: 20px; font-size: 14px; font-weight: 600; text-decoration: none; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td > a.arrow { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 48px; padding: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat img.button { width: 20px; height: 20px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr:has(> td.ss-champ-haut), html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr:has(> td > div[id^="divvalues"]) { flex-wrap: wrap; padding: 6px 10px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td.ss-champ-haut, html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat tr > td:has(> div[id^="divvalues"]) { flex: 1 1 100%; }
}
/* Fiche élève, sous-pages « Médical » et « Informations générales » (14/11/2026) : sur téléphone, un champ par ligne, toute la largeur. */
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info, html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info > tbody { display: block; width: 100% !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info > tbody > tr { display: flex !important; flex-direction: column; gap: 0; margin: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info > tbody > tr > td { flex: 0 0 auto; width: 100% !important; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info > tbody > tr > td:empty { display: none; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info input[type=text], html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info input[type=tel], html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info input[type=email], html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info input[type=number], html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info input[type=password], html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info select, html[data-ss-theme] body.modules #body form:is(#student, #staff) table.other-info textarea { width: 100% !important; max-width: 100% !important; min-height: 48px; box-sizing: border-box; }
}
/* Fiche élève, « Informations générales » en parties titrées (14/11/2026) : un champ par ligne, séparés d un trait. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition { margin: 0; padding: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe { padding: 4px 14px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ { padding: 12px 0; border-bottom: 1px solid var(--ss-line, #d3dbe4); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ:last-child { border-bottom: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ input[type=text], html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ input[type=password], html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ input[type=tel], html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ input[type=email], html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ select, html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ textarea { width: 100% !important; max-width: 100% !important; min-height: 48px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .enrollment-records { margin: 8px 0 4px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) > .postbox-wrapper[hidden], html[data-ss-theme] body.modules #body form:is(#student, #staff) table.header input[hidden] { display: none !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > .legend-gray, html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .no-input-value, html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > div[id^="div"] { font-size: 15px; color: var(--ss-text, #172333); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick { display: flex; flex-direction: column; min-height: 48px; justify-content: center; cursor: pointer; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick > .legend-gray { order: -1; display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; text-transform: none; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick > br { display: none; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div[id^="div"] label { display: block; width: 100%; margin: 0 0 8px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div[id^="div"] input[type=text] { width: 100% !important; max-width: 100% !important; min-height: 48px; box-sizing: border-box; }
/* Demande du propriétaire (14/11/2026) : « Nom usuel » à côté du nom, comme Prénom et Postnom sont côte à côte. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--ss-line, #d3dbe4); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo > .ss-fiche-champ { padding: 0; border: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo.ss-ouvert { grid-template-columns: minmax(0, 1fr); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo td > .ss-fiche-champ { padding: 0; border: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo td > .ss-fiche-champ input[type=text] { width: 100% !important; min-height: 48px; box-sizing: border-box; }
/* Demande du propriétaire (14/11/2026) : fiches compactes, moins de défilement — champs courts deux par ligne, espaces resserrés. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; padding: 2px 14px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > * { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ { grid-column: auto; padding: 8px 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ:has(input[type=file]), html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ:has(textarea), html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ:has(div[id^="div"] select), html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ:has(table), html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ:has(img) { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo { padding: 8px 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition h3.ss-k-sec { margin: 10px 0 6px !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > .legend-gray, html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > label, html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick > .legend-gray { margin: 0 0 2px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick { min-height: 44px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo table tr { display: flex !important; flex-wrap: wrap; column-gap: 12px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo table tr > td { flex: 0 0 calc(50% - 6px); width: calc(50% - 6px) !important; float: none !important; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-duo table tr > td input[type=text] { width: 100% !important; box-sizing: border-box; }
/* Carte « Photo » compacte (14/11/2026) : la photo à gauche, les deux boutons de même taille à droite. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ:has(> img.user-photo) { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; align-items: start; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > img.user-photo { grid-column: 1; grid-row: 1; width: 84px; height: 112px; object-fit: cover; border-radius: 12px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ:has(> img.user-photo) > details { grid-column: 2; grid-row: 1; min-width: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .user-photo-form { display: grid; gap: 8px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .user-photo-form > br { display: none; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .user-photo-form > input[type=file], html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .user-photo-form > button { width: 100% !important; max-width: 100%; height: 48px; min-height: 48px; margin: 0; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .user-photo-form > label { font-size: 12px; line-height: 1.3; }
/* Carte « Inscription » compacte (14/11/2026, règle 8) : interlignes resserrés, bandeau « Résultat » réduit à une ligne de texte,
   marges vides retirées autour du dossier, jour / mois / année sur une ligne de même largeur, motif du retrait sur toute la largeur.
   Aucun champ retiré. À 375 px : 492 → 412 px. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > label { line-height: 1.3; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > label > .legend-gray { display: block; margin: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > label + input { display: block; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ > br { display: none; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick > span:not(.legend-gray) { line-height: 1.35; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .enrollment-records { margin: 6px 0 8px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records table.list-nav { margin: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records table.list-nav td { padding: 0 0 4px !important; background: none !important; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records table.list { margin: 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records table.list > tbody > tr { padding: 8px 12px !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records table.list > tbody > tr:last-child { margin-bottom: 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records td:has(select) > div.nobr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; white-space: normal; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records td:has(select) > div.nobr > span.nobr { display: flex; flex: 1 1 100%; align-items: center; gap: 6px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records td:has(select) > div.nobr > span.nobr > select { flex: 1 1 0; min-width: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .enrollment-records td:has(select) > div.nobr > select { flex: 1 1 0; min-width: 0; max-width: none !important; }
/* Carte « Compte de l élève » compacte (14/11/2026, règle 8) : « Mot de passe » et « Dernière connexion » côte à côte ; le nom
   « Mot de passe » au-dessus de son champ comme les autres ; le cadenas (montrer / cacher) dans le champ, à droite. 255 → 187 px. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ:has(.password-input-wrapper), html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-groupe > .ss-fiche-champ:has(> .no-input-value > img.button) { grid-column: auto; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .password-input-wrapper { position: relative; display: flex; flex-direction: column; width: 100%; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .password-input-wrapper > label { order: -1; display: block; margin: 0 0 2px; line-height: 1.3; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .password-input-wrapper > label > .legend-gray { display: block; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .password-input-wrapper > input { width: 100% !important; max-width: 100% !important; min-height: 48px; padding-right: 44px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .password-input-wrapper > img.password-toggle { position: absolute; top: 19px; right: 0; bottom: auto; left: auto; width: 16px; height: 16px; margin: 0; padding: 16px 14px; box-sizing: content-box; background: transparent; cursor: pointer; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .password-input-wrapper > .password-strength-bars { margin: 4px 0 0; }
/* Fiche élève, « Médical » rangé comme « Informations générales » (14/11/2026, règle 8) : une carte « Santé » (champs courts deux
   par ligne, zones de texte moins hautes qui grandissent avec le texte), puis les trois listes de l onglet sous leur titre.
   Sur téléphone, chaque ligne de liste est une carte à deux colonnes : nom du champ au-dessus, date sur toute la largeur. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ textarea { height: 84px; min-height: 84px; max-height: 240px; field-sizing: content; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .md-preview { margin: 0 0 4px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick:has(> .checkbox-label) { font-size: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick > .checkbox-label { order: -1; display: block; margin: 0 0 2px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ div.onclick:has(> .checkbox-label) > span.uld { font-size: 15px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer { margin: 0 0 4px; }
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list-nav { margin: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list-nav td { padding: 0 8px 4px !important; background: none !important; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list-nav td b { font-weight: 400; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list { margin: 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: dense; gap: 6px 12px !important; position: relative; padding: 8px 12px !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr:last-child { margin-bottom: 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td { grid-column: auto; min-width: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td:has(select[name^="day_"]), html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td:nth-child(2):last-child { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td:first-child:not(:has(input, select, textarea)) { position: absolute; top: 4px; right: 10px; width: auto !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td::before { display: block; margin: 0 0 2px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td > input[type=text], html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td > select { width: 100% !important; max-width: none !important; min-height: 48px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td > span.nobr { display: flex; align-items: center; gap: 6px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td > span.nobr > select { flex: 1 1 0; min-width: 0; min-height: 48px; }
}
/* Fiches rangées en cartes : plus de lignes vides autour (sauts de ligne d origine, ligne du haut sans message). */
html[data-ss-theme] body.modules #body form:is(#student, #staff):has(> .ss-fiche-edition) > br { display: none; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) > table.header[hidden] { display: none !important; }
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer.nurse-visits table.list > tbody > tr > td:last-child { grid-column: 1 / -1; }
/* « Enregistrer » de la fiche élève sur téléphone : à gauche, 222 × 48 px comme les boutons d action de la fiche ;
   il ne passe plus sous les bulles JASPE et Watch, qui occupent le bord droit (à partir de 311 px). */
html[data-ss-theme] body.modules #body form:is(#student, #staff) > div.center { justify-content: flex-start; margin: 12px 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) > div.center > input[type=submit] { width: 222px; height: 48px; margin: 0; font-size: 15px; }
}
@media (max-width: 700px) {
/* Ligne déjà enregistrée d une liste : le « − » (supprimer la ligne) a sa colonne à droite, 44 × 44 px, sans recouvrir la valeur. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr:has(> td:first-child > a) { padding-right: 56px !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td:first-child:has(> a) { top: 50%; right: 6px; transform: translateY(-50%); }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition > .list-outer table.list > tbody > tr > td:first-child > a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
}
/* Règle 8 appliquée aux autres sous-pages de la fiche élève, sur téléphone (14/11/2026). Aucun champ, aucun bouton retiré. */
@media (max-width: 700px) {
/* « Adresses et contacts », bloc « Adresse » : Rue sur toute la largeur ; Ville | Département et Code postal | Téléphone côte à côte. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id*="valuesaddress"]) > tbody { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; padding: 0 10px 6px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id*="valuesaddress"]) > tbody > tr { display: contents !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id*="valuesaddress"]) > tbody > tr > th, html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id*="valuesaddress"]) > tbody > tr > td { grid-column: 1 / -1; min-width: 0; padding: 6px 0 !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id*="valuesaddress"]) > tbody > tr > td:has([id$="CITY"], [id$="STATE"], [id$="ZIPCODE"], [id$="PHONE"]) { grid-column: auto; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id*="valuesaddress"]) > tbody > tr > td input[type=text] { width: 100% !important; max-width: 100% !important; min-height: 48px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat .legend-gray { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
/* Les quatre cases de l adresse (domicile, ramassage, dépose, adresse postale) : deux par ligne, icône, nom et coche sur une ligne. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id^="divvaluesstudents_join_address"], input[name*="students_join_address"]) > tbody { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px 10px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id^="divvaluesstudents_join_address"], input[name*="students_join_address"]) > tbody > tr { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px; min-height: 48px; margin: 0 !important; padding: 4px 8px !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id^="divvaluesstudents_join_address"], input[name*="students_join_address"]) > tbody > tr > td { flex: 0 0 auto !important; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id^="divvaluesstudents_join_address"], input[name*="students_join_address"]) > tbody > tr > td:nth-child(2) { flex: 1 1 0 !important; min-width: 0; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id^="divvaluesstudents_join_address"], input[name*="students_join_address"]) > tbody > tr div.onclick { flex-direction: row; align-items: center; gap: 6px; min-height: 40px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id^="divvaluesstudents_join_address"], input[name*="students_join_address"]) > tbody > tr div.onclick > .checkbox-label { order: -1; flex: 1 1 0; min-width: 0; margin: 0; font-size: 13px; line-height: 1.25; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) tr.address table.widefat:has([id^="divvaluesstudents_join_address"], input[name*="students_join_address"]) > tbody > tr div.onclick > span.uld { flex: 0 0 auto; height: auto; min-height: 0; padding: 0; border: 0; box-shadow: none; background: none; }
/* « Scolarité » : deux boutons d une même partie côte à côte (Fiche de la classe | Emploi du temps, etc.). */
html[data-ss-theme] body.modules #body .ss-fiche-eleve .fu-corps:has(> a.ss-k-btn + a.ss-k-btn) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
html[data-ss-theme] body.modules #body .ss-fiche-eleve .fu-corps:has(> a.ss-k-btn + a.ss-k-btn) > * { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body .ss-fiche-eleve .fu-corps:has(> a.ss-k-btn + a.ss-k-btn) > a.ss-k-btn { grid-column: auto; padding: 0 8px; text-align: center; line-height: 1.15; }
/* « Famille et récupération » : une place libre ne garde pas un grand cadre vide ; titres moins espacés. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ssft .ssft-card.ssft-empty .ssft-photo-empty { height: 48px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ssft .ssft-heading { margin: 14px 0 8px; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ssft { margin: 0 0 8px; }
/* Sous-pages d origine : plus de grand vide entre les boutons du haut et le contenu. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) > .postbox-wrapper { margin: 8px 0 12px; }
}
/* Modes sombre et bleu nuit, fiche élève (14/11/2026) : le nom d un champ de saisie gardait un gris fixe, presque invisible sur fond
   foncé ; les petites icônes noires ou bleu foncé de l écran d origine (cadenas, calendrier, maison, car, +, −) s éclaircissent. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ .legend-gray { color: var(--ss-text-2, #5d6b7e); }
html[data-ss-mode="sombre"] body.modules #body form:is(#student, #staff) img.button, html[data-ss-mode="nuit"] body.modules #body form:is(#student, #staff) img.button { filter: invert(1) hue-rotate(180deg); }
/* Onglet « Commentaires » de l enseignant (14/11/2026) : la zone de texte d origine fait 500 px, plus que l écran du téléphone. */
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body form:is(#student, #staff) > .postbox-wrapper > table.postbox:has(td.popTable > table > tbody > tr > td > textarea), html[data-ss-theme] body.modules #body form:is(#student, #staff) > .postbox-wrapper > table.postbox:has(td.popTable > table > tbody > tr > td > textarea) > tbody { display: block; width: 100% !important; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) td.popTable > table:has(> tbody > tr > td > textarea), html[data-ss-theme] body.modules #body form:is(#student, #staff) td.popTable > table:has(> tbody > tr > td > textarea) > tbody { display: block; width: 100% !important; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) td.popTable > table:has(> tbody > tr > td > textarea) > tbody > tr { width: 100% !important; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) td.popTable > table:has(> tbody > tr > td > textarea) > tbody > tr > td { flex: 1 1 100%; width: 100% !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) td.popTable > table:has(> tbody > tr > td > textarea) .md-preview { width: 100% !important; min-width: 0; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) td.popTable > table:has(> tbody > tr > td > textarea) textarea { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
}
/* Fiche du personnel (14/11/2026, validée par le propriétaire) : boutons de Pointage, Empreinte et Paie deux par ligne, tous
   de même taille (boutons du même genre : même largeur, même hauteur, en colonnes) ; un bouton seul garde la même largeur. */
html[data-ss-theme] body.modules #body .ss-fiche-personne:not(.ss-fiche-eleve) > .ss-k-carte:has(> a.ss-k-btn) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
html[data-ss-theme] body.modules #body .ss-fiche-personne:not(.ss-fiche-eleve) > .ss-k-carte:has(> a.ss-k-btn) > * { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body .ss-fiche-personne:not(.ss-fiche-eleve) > .ss-k-carte:has(> a.ss-k-btn) > p { margin: 0; }
html[data-ss-theme] body.modules #body .ss-fiche-personne:not(.ss-fiche-eleve) > .ss-k-carte > a.ss-k-btn { grid-column: auto; display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 8px; box-sizing: border-box; font-size: 14px; line-height: 1.15; white-space: normal; text-align: center; }
/* Fiche du personnel, « Classes et emploi du temps » (14/11/2026, demande du propriétaire : titulaire de classe, pas de cours).
   « Cours donnés » : sur téléphone, Cours | Classe sur une ligne, la salle dessous (seulement si elle existe).
   « Emploi du temps de la semaine » : une carte par tranche horaire, jours regroupés, chaque classe avec ses cours. */
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body form#staff .postbox-wrapper table.list > tbody > tr:has(> td):not(.thead-repeat) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
html[data-ss-theme] body.modules #body form#staff .postbox-wrapper table.list > tbody > tr > td { grid-column: 1 / -1; min-width: 0; width: auto !important; }
html[data-ss-theme] body.modules #body form#staff .postbox-wrapper table.list > tbody > tr > td:nth-child(1) { grid-row: 1; grid-column: 1; }
html[data-ss-theme] body.modules #body form#staff .postbox-wrapper table.list > tbody > tr > td:nth-child(2) { grid-row: 1; grid-column: 2; text-align: right; }
html[data-ss-theme] body.modules #body form#staff table.list > tbody > tr > td[data-ss-vide] { display: none !important; }
}
html[data-ss-theme] body.modules #body form#staff h3.ss-edt-titre { margin: 16px 0 8px !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1.45 !important; color: var(--ss-text-2, #5d6b7e) !important; }
html[data-ss-theme] body.modules #body form#staff p.ss-edt-note { margin: 0 0 6px; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-tranche { margin: 0 0 10px; padding: 12px 14px; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-heure { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ss-text, #172333); }
html[data-ss-theme] body.modules #body form#staff .ss-edt-jours + .ss-edt-jours { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ss-line, #d3dbe4); }
html[data-ss-theme] body.modules #body form#staff .ss-edt-quand { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 10px; background: var(--ss-surface-2, #eef2f6); font-size: 13px; font-weight: 700; color: var(--ss-accent, #08766b); }
html[data-ss-theme] body.modules #body form#staff .ss-edt-classe { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-classe:last-child { margin-bottom: 0; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-classe > b { display: block; color: var(--ss-text, #172333); }
html[data-ss-theme] body.modules #body form#staff .ss-edt-classe > span { display: block; color: var(--ss-text-2, #5d6b7e); }
/* Fiches élève et personnel (14/11/2026) : quand une photo existe, « Photo de l utilisateur » (qui ouvre Choisir / Prendre une
   photo) n était qu une ligne de texte de 20 px ; elle devient une zone de 48 px, facile à toucher. */
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ:has(> img.user-photo) > details > summary { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--ss-surface-2, #eef2f6); box-shadow: var(--ss-shadow-petit, 0 1px 3px rgba(0, 0, 0, .12)); font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
html[data-ss-theme] body.modules #body form:is(#student, #staff) .ss-fiche-edition .ss-fiche-champ:has(> img.user-photo) > details[open] > summary { margin: 0 0 8px; }
/* « Rechercher ou télécharger la liste des cours » (fiche du personnel) : bouton de 48 px, la liste d origine s ouvre dessous. */
html[data-ss-theme] body.modules #body form#staff details.ss-edt-detail { margin: 0 0 10px; }
html[data-ss-theme] body.modules #body form#staff details.ss-edt-detail > summary { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--ss-surface-2, #eef2f6); box-shadow: var(--ss-shadow-petit, 0 1px 3px rgba(0, 0, 0, .12)); font-size: 14px; font-weight: 600; cursor: pointer; }
html[data-ss-theme] body.modules #body form#staff details.ss-edt-detail[open] > summary { margin: 0 0 8px; }
/* « Ajouter un cours » et « Cours que vous vous êtes ajoutés » (fiche du personnel, 14/11/2026) : liste sur toute la largeur,
   boutons 222 × 48 px comme les autres boutons d action des fiches. */
html[data-ss-theme] body.modules #body form#staff .ss-edt-ajout { margin: 0 0 10px; padding: 12px 14px; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-ajout > .ss-k-note { margin: 0 0 10px; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-label { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form#staff .ss-edt-ajout select { display: block; width: 100% !important; max-width: 100% !important; min-height: 48px; margin: 0 0 10px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-ajout button.ss-k-btn { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; height: 48px; margin: 0; padding: 0 10px; font-size: 14px; line-height: 1.15; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-pris { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--ss-line, #d3dbe4); }
html[data-ss-theme] body.modules #body form#staff .ss-edt-pris:first-of-type { border-top: 0; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-pris > span { flex: 1 1 160px; min-width: 0; font-size: 14px; }
/* « Ajouter un cours » : le nom du champ au-dessus ; Classe, Nom et Domaine sur toute la largeur, Abrégé | Maxima côte à côte. */
html[data-ss-theme] body.modules #body form#staff .ss-edt-champs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; margin: 0 0 12px; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-champs > label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body form#staff .ss-edt-champs > label.ss-edt-large { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-champs input[type=text], html[data-ss-theme] body.modules #body form#staff .ss-edt-champs select { width: 100% !important; max-width: 100% !important; min-height: 48px; margin: 0; box-sizing: border-box; font-size: 15px; font-weight: 400; }
html[data-ss-theme] body.modules #body form#staff .ss-edt-ajout > .ss-edt-pris:first-of-type { margin-top: 10px; }
/* Paie de la fiche du personnel (14/11/2026) : titres de carte, salaire de base en champs courts deux par ligne, boutons 222 × 48. */
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-titre { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--ss-text, #172333); }
html[data-ss-theme] body.modules #body .ss-fiche-personne > .ss-k-carte > .ss-paie-titre { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; margin: 8px 0 0; }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form > label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form input, html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form select { width: 100% !important; max-width: 100% !important; min-height: 48px; margin: 0; box-sizing: border-box; font-size: 15px; font-weight: 400; }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie button.ss-k-btn { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; height: 48px; margin: 8px 0 0; padding: 0 10px; font-size: 14px; line-height: 1.15; }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form > button.ss-k-btn { grid-column: 1 / -1; margin: 0; }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form > label.ss-paie-large, html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form > label.ss-paie-case { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form > label.ss-paie-case { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; font-size: 14px; color: var(--ss-text, #172333); }
html[data-ss-theme] body.modules #body .ss-fiche-personne .ss-paie-form > label.ss-paie-case > input { width: 22px !important; min-height: 22px; height: 22px; flex: none; }
/* Fiche élève, « Ce qui manque » harmonisé (14/11/2026, règle 9) : étapes en boutons de même taille, deux par ligne ;
   leurs explications en petit dessous ; boutons des formulaires sur place (photo, adresse, cartes) à 222 × 48 px. */
html[data-ss-theme] body.modules #body .fp-etapes .fp-etapes-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 10px 0 6px; }
html[data-ss-theme] body.modules #body .fp-etapes a.fp-etape-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 0; padding: 0 8px; box-sizing: border-box; font-size: 14px; line-height: 1.15; text-align: center; }
html[data-ss-theme] body.modules #body .fp-etapes .fp-etapes-aide { margin: 0 0 8px; padding: 0 0 0 18px; font-size: 12.5px; line-height: 1.35; color: var(--ss-text-2, #5d6b7e); }
html[data-ss-theme] body.modules #body .fp-etapes .fp-etapes-aide li { margin: 0 0 2px; }
html[data-ss-theme] body.modules #body .fp-etapes button, html[data-ss-theme] body.modules #body .fp-etapes input[type=submit], html[data-ss-theme] body.modules #body .fp-etapes a.ss-k-btn:not(.fp-etape-btn) { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; height: 48px; min-height: 48px; margin: 4px 0; padding: 0 10px; box-sizing: border-box; font-size: 14px; line-height: 1.15; }
@media (min-width: 701px) { html[data-ss-theme] body.modules #body .fp-etapes .fp-etapes-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html[data-ss-theme] body.modules #body .fp-etapes a.fp-etape-btn { background: var(--ss-surface, #fff); color: var(--ss-text, #172333); border-radius: 14px; box-shadow: var(--ss-shadow-petit, 0 1px 3px rgba(0, 0, 0, .12)); font-weight: 600; text-decoration: none; }
html[data-ss-theme] body.modules #body .fp-etapes form.fu-adresse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; }
html[data-ss-theme] body.modules #body .fp-etapes form.fu-adresse > label { min-width: 0; }
html[data-ss-theme] body.modules #body .fp-etapes form.fu-adresse > label input { width: 100% !important; min-height: 48px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body .fp-etapes form.fu-adresse > button, html[data-ss-theme] body.modules #body .fp-etapes form.fu-form > button { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body .fp-etapes .fu-fichier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
html[data-ss-theme] body.modules #body .fp-etapes .fu-fichier > * { width: 100% !important; max-width: 100%; min-width: 0; margin: 0 !important; box-sizing: border-box; }
html[data-ss-theme] body.modules #body .fp-etapes .fu-fichier > label { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }

/* ===== Recherche commune (14/11/2026, règle 9) : « Afficher tous… » et « Recherche avancée » de même taille, en deux colonnes égales ===== */
html[data-ss-theme] body.modules #body .ssus-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
html[data-ss-theme] body.modules #body .ssus-tools .ssus-link { width: 100%; height: 48px; min-height: 48px; padding: 0 8px; box-sizing: border-box; line-height: 1.15; text-align: center; }

/* Retours (14/11/2026, docs/analyse/RETOURS_ANALYSE_20261114.md) : flèche à gauche d'un titre simple d'écran (sans en-tête),
   même taille et même aspect que les autres retours. */
html[data-ss-theme] body.modules #body .ss-ligne-retour { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
html[data-ss-theme] body.modules #body .ss-ligne-retour > :is(h1, h2) { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
html[data-ss-theme] body.modules #body .ss-ligne-retour > .ss-page-back {
    flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0;
    border: 1px solid var(--ss-border) !important; border-radius: 12px !important; background: var(--ss-surface-2) !important; box-shadow: var(--ss-shadow-petit) !important;
}
@media print { html[data-ss-theme] body.modules #body .ss-ligne-retour > .ss-page-back { display: none !important; } }
/* 15/11/2026 (règle 9, « Comptes et accès ») : onglets de groupe (Comptes et accès, Champs des fiches, Année, niveaux et
   horaires) en colonnes égales sur une rangée, 48 px, texte centré qui passe à la ligne ; plus rien ne dépasse l'écran. */
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: visible; }
html[data-ss-theme] body.modules #body nav.ss-groupe-onglets a { height: 48px !important; min-height: 48px !important; padding: 0 6px !important; white-space: normal; text-align: center; line-height: 1.15 !important; font-size: 13px !important; }
/* Comptes de l'école : filtres en 3 colonnes égales de 48 px (au lieu d'une file qui dépasse), textes à 13 px au moins. */
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-filtres:has(a.ss-k-filtre[href*="ss_vue=comptes"]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; }
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-filtres:has(a.ss-k-filtre[href*="ss_vue=comptes"]) .ss-k-filtre { height: 48px !important; min-height: 48px !important; padding: 0 4px !important; display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; font-size: 13px !important; line-height: 1.15; }
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-carte:has(> a.ss-k-ligne[href*="Users/User.php&staff_id"]) :is(small, .ss-k-p, .ss-k-av) { font-size: 13px; }
/* 15/11/2026 (Outils rares › « Champs des fiches », règle 9) : les trois pages des champs (élève, utilisateur, école) :
   lignes de la liste à 48 px, bouton « Ajouter » 222 × 48, « Enregistrer » 222 × 48, champs de saisie à 48 px. */
body:is(.modname-students-studentfields-php, .modname-users-userfields-php, .modname-school-setup-schoolfields-php) #body table.list td > a { display: flex; align-items: center; min-height: 48px; font-size: 15px; }
body:is(.modname-students-studentfields-php, .modname-users-userfields-php, .modname-school-setup-schoolfields-php) #body a:has(> img[alt="Ajouter"]) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 222px; max-width: 100%; min-height: 48px; border-radius: 12px; background: var(--ss-accent, #08766b); color: #fff !important; font-weight: 700; text-decoration: none; }
body:is(.modname-students-studentfields-php, .modname-users-userfields-php, .modname-school-setup-schoolfields-php) #body a:has(> img[alt="Ajouter"])::after { content: "Ajouter"; }
body:is(.modname-students-studentfields-php, .modname-users-userfields-php, .modname-school-setup-schoolfields-php) #body a:has(> img[alt="Ajouter"]) img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
body:is(.modname-students-studentfields-php, .modname-users-userfields-php, .modname-school-setup-schoolfields-php) #body :is(input[type=text], input[type=number], select, textarea) { min-height: 48px !important; }
body:is(.modname-students-studentfields-php, .modname-users-userfields-php, .modname-school-setup-schoolfields-php) #body :is(.legend-gray, .legend-red, small, label) { font-size: 13px !important; }
body:is(.modname-students-studentfields-php, .modname-users-userfields-php, .modname-school-setup-schoolfields-php) #body input[type=submit] { width: 222px; max-width: 100%; min-height: 48px !important; }
/* 15/11/2026 (Outils rares › « Configuration du logiciel », règle 9) : page d'origine des réglages (formulaire à onglets
   « &tab= ») : onglets en 3 colonnes égales de 48 px, un seul « Enregistrer » 222 × 48, champs 48 px, étiquettes 13 px. */
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi > h3 { margin: 0; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi > h3 > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px !important; min-height: 48px !important; text-align: center; font-size: 14px !important; box-sizing: border-box; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) input[type=submit] { width: 222px; max-width: 100%; min-height: 48px !important; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) :is(input[type=text], input[type=number], select) { min-height: 48px !important; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) :is(.legend-gray, .legend-red, small, .ss-f10-note, .tooltip i) { font-size: 13px !important; }
/* 15/11/2026 (Outils rares › « Modifier plusieurs élèves à la fois », règles 8 et 9) : deux champs courts par ligne, les
   champs larges (zone de texte, date en plusieurs listes, tableau) sur toute la largeur ; champs 48 px ; cases des élèves
   24 px ; un seul « Enregistrer » 222 × 48 ; textes 13 px. */
body.modname-students-assignotherinfo-php #body table.widefat.center > tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
body.modname-students-assignotherinfo-php #body table.widefat.center > tbody > tr { display: block; min-width: 0; }
body.modname-students-assignotherinfo-php #body table.widefat.center > tbody > tr > td { display: block; padding: 0; min-width: 0; }
body.modname-students-assignotherinfo-php #body table.widefat.center > tbody > tr:has(textarea, select ~ select, table) { grid-column: 1 / -1; }
body.modname-students-assignotherinfo-php #body table.widefat.center :is(input[type=text], input[type=number], input[type=date], select, textarea) { min-height: 48px !important; width: 100%; max-width: 100%; box-sizing: border-box; }
body.modname-students-assignotherinfo-php #body input[type=checkbox] { width: 24px; height: 24px; }
body.modname-students-assignotherinfo-php #body input[type=submit] { width: 222px; max-width: 100%; min-height: 48px !important; }
body.modname-students-assignotherinfo-php #body :is(.legend-gray, .legend-red, small, label, .ss-etiquette-haut) { font-size: 13px !important; }
/* Dates (jour, mois, année) : sur toute la largeur, trois listes en colonnes égales. */
body.modname-students-assignotherinfo-php #body table.widefat.center > tbody > tr:has(span.nobr select) { grid-column: 1 / -1; }
body.modname-students-assignotherinfo-php #body table.widefat.center span.nobr:has(select) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; white-space: normal; }
/* Le choix de la catégorie, seul sur sa ligne, en pleine largeur. */
body.modname-students-assignotherinfo-php #body table.widefat.center > tbody > tr:has(select[name="category_id"]) { grid-column: 1 / -1; }

/* 15/11/2026 — Configuration du logiciel et Réglages du carnet de notes harmonisés (« A ») : onglets en boutons égaux
   (3 par ligne sur téléphone, tous sur une ligne sur ordinateur), cases et champs visibles tout de suite (scripts.js,
   ouvrirChampsReglages), une case par ligne de 48 px, explications écrites sous le réglage (plus de bulle « i » à toucher),
   champs courts deux par ligne, titres en écriture normale, « Enregistrer » 222 × 48 à gauche. */
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi > h3 { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi > h3 > a { border: 1px solid var(--ss-border, #dde3e0) !important; border-radius: 12px !important; background: var(--ss-surface-2, #fff) !important; color: var(--ss-text, #172333) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important; box-shadow: var(--ss-shadow-petit, none); }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi > h3.h3selected > a { background: var(--ss-text, #172333) !important; color: var(--ss-bg, #e9eef3) !important; border-color: var(--ss-text, #172333) !important; box-shadow: none; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi > h3::after, body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) div.h3multi > h3 > a::after { display: none !important; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) legend { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; font-weight: 700 !important; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) .tooltip { position: static !important; display: block !important; width: auto !important; height: auto !important; margin: 4px 0 0 !important; background: none !important; border: 0 !important; cursor: default; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) .tooltip::before { display: none !important; content: none !important; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) .tooltip i { position: static !important; display: block !important; visibility: visible !important; opacity: 1 !important; width: auto !important; max-width: none !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; transform: none !important; font-style: normal !important; font-weight: 400 !important; font-size: 13px !important; line-height: 1.4; color: var(--ss-muted, #5b6770) !important; text-transform: none !important; white-space: normal !important; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) label.checkbox-label { display: flex !important; align-items: center; gap: 10px; min-height: 48px; font-size: 14px !important; line-height: 1.35; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) input[type=checkbox] { width: 24px !important; height: 24px !important; min-width: 24px; flex: none; margin: 0 !important; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) :is(select, input[type=text], input[type=number]) { width: 100% !important; max-width: 100% !important; min-height: 48px !important; box-sizing: border-box; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) div.center:has(> input[type=submit]) { text-align: left !important; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) input[type=submit] { width: 222px !important; max-width: 100%; min-height: 48px !important; margin: 0 !important; }
body.modname-school-setup-configuration-php #body table.ss-cfg-deux, body.modname-school-setup-configuration-php #body table.ss-cfg-deux > tbody { display: block; }
body.modname-school-setup-configuration-php #body table.ss-cfg-deux > tbody > tr, body.modname-school-setup-configuration-php #body tr.st { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: start; }
body.modname-school-setup-configuration-php #body table.ss-cfg-deux > tbody > tr > td, body.modname-school-setup-configuration-php #body tr.st > td { display: block !important; width: auto !important; padding: 6px 0 !important; min-width: 0; }
body.modname-school-setup-configuration-php #body table.ss-cfg-deux > tbody > tr > td[colspan] { grid-column: 1 / -1; }
body.modname-school-setup-configuration-php #body .ss-cfg-logo { display: flex; align-items: center; gap: 12px; }
body.modname-grades-configuration-php #body .postbox > h3, body.modname-grades-configuration-php #body table.postbox > thead h3 { display: none !important; }
body.modname-grades-configuration-php #body input[type=number] { width: 100% !important; }
body.modname-school-setup-configuration-php #body .ss-cfg-logo > div { flex: 1; min-width: 0; }
:is(body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]), body.modname-grades-configuration-php #body) div.center:has(> input[type=submit]) { display: flex !important; justify-content: flex-start !important; }
body.modname-school-setup-configuration-php #body:has(form[action*="School_Setup/Configuration.php&tab="]) fieldset table { width: 100% !important; }
body.modname-school-setup-configuration-php #body small.ss-cfg-aide { display: block; margin-top: 4px; font-size: 13px !important; line-height: 1.4; color: var(--ss-muted, #5b6770); }
body.modname-grades-configuration-php #body form :is(.legend-gray, .legend-red, label, small, td) { font-size: 13px !important; }
body.modname-grades-configuration-php #body form label.checkbox-label { font-size: 14px !important; }
body.modname-school-setup-configuration-php #body table.ss-cfg-deux input[type=time] { display: block; width: 100% !important; min-height: 48px !important; box-sizing: border-box; margin-top: 4px; }

/* 15/11/2026 — Rôles et droits, liste des fonctionnalités : une ligne par fonctionnalité (nom + phrase), ses cases à
   droite (Ouvrir · Voir/Modifier · Faire · Voir/Enregistrer/Corriger), recherche et « Tout ouvrir » en haut (48 px).
   Sur téléphone, les cases passent sous le nom. */
.ss-gabarit .ut-outils { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; margin: 0 0 10px; }
.ss-gabarit .ut-outils .ut-recherche { min-height: 48px !important; height: 48px; box-sizing: border-box; width: 100%; padding: 0 12px; border-radius: 12px; border: 1px solid var(--k-bord, #dde3e0); font-size: 15px; }
.ss-gabarit .ut-outils .ut-tout { min-height: 48px !important; height: 48px; margin: 0; border-radius: 12px; border: 1px solid var(--k-bord, #dde3e0); background: var(--k-surface, #fff); font-weight: 700; font-size: 14px; }
.ss-gabarit .ut-tache { grid-template-columns: minmax(0, 1fr) auto !important; }
.ss-gabarit .ut-tache small { font-size: 13px !important; }
.ss-gabarit .ut-cases { display: flex; gap: 4px; justify-content: flex-end; }
html .ss-gabarit .ut-cases label { min-width: 62px; flex-direction: column; gap: 2px; font-size: 13px !important; }
.ss-gabarit .ut-cases .ut-vide { display: inline-block; min-width: 62px; }
.ss-gabarit .ut-tache.ut-cache { display: none; }
@media (max-width: 480px) {
	.ss-gabarit .ut-tache { grid-template-columns: minmax(0, 1fr) !important; }
	.ss-gabarit .ut-cases { justify-content: flex-start; }
}

/* 16/11/2026 (propriétaire : « Les emojis, c'est ancien. Il faut mettre les emojis des nouvelles sortes ») : les petites
   images d'origine du thème (btn/*.png, jeu « Gemicon ») sont remplacées partout par des icônes au trait, du même style que
   celles de l'application. L'image reste à sa place (même lien, même action, même texte « alt ») : seul son dessin change. */
img[src$="/btn/house_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M3 10.5 12 3l9 7.5%22/><path d=%22M5 9.5V21h14V9.5%22/><path d=%22M9.5 21v-6h5v6%22/></svg>"); object-fit: contain; }
img[src$="/btn/bus_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%224%22 y=%223%22 width=%2216%22 height=%2214%22 rx=%222%22/><path d=%22M4 11h16M8 17v3M16 17v3%22/><path d=%22M8 14h.01M16 14h.01%22/></svg>"); object-fit: contain; }
img[src$="/btn/mailbox_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%225%22 width=%2218%22 height=%2214%22 rx=%222%22/><path d=%22m3 7 9 6 9-6%22/></svg>"); object-fit: contain; }
img[src$="/btn/check_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231e8e5a%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M20 6 9 17l-5-5%22/></svg>"); object-fit: contain; }
img[src$="/btn/check_button_black.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231e8e5a%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M20 6 9 17l-5-5%22/></svg>"); object-fit: contain; }
img[src$="/btn/x_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M18 6 6 18M6 6l12 12%22/></svg>"); object-fit: contain; }
img[src$="/btn/x_button_black.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M18 6 6 18M6 6l12 12%22/></svg>"); object-fit: contain; }
img[src$="/btn/add_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231e8e5a%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22M12 8v8M8 12h8%22/></svg>"); object-fit: contain; }
img[src$="/btn/remove_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22M8 12h8%22/></svg>"); object-fit: contain; }
img[src$="/btn/help.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22M9.6 9a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .9-1 1.6v.6%22/><path d=%22M12 17h.01%22/></svg>"); object-fit: contain; }
img[src$="/btn/info.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22M12 16v-4M12 8h.01%22/></svg>"); object-fit: contain; }
img[src$="/btn/calendar.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/><path d=%22M16 3v4M8 3v4M3 10h18%22/></svg>"); object-fit: contain; }
img[src$="/btn/phone_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z%22/></svg>"); object-fit: contain; }
img[src$="/btn/down_phone_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z%22/></svg>"); object-fit: contain; }
img[src$="/btn/pencil_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M17 3a2.8 2.8 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z%22/></svg>"); object-fit: contain; }
img[src$="/btn/print.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M6 9V2h12v7%22/><path d=%22M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2%22/><rect x=%226%22 y=%2214%22 width=%2212%22 height=%228%22/></svg>"); object-fit: contain; }
img[src$="/btn/download.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4%22/><path d=%22m7 10 5 5 5-5M12 15V3%22/></svg>"); object-fit: contain; }
img[src$="/btn/star_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23b7791f%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z%22/></svg>"); object-fit: contain; }
img[src$="/btn/warning_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23b7791f%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22m10.3 3.9-8.2 14A2 2 0 0 0 3.8 21h16.4a2 2 0 0 0 1.7-3.1l-8.2-14a2 2 0 0 0-3.4 0z%22/><path d=%22M12 9v4M12 17h.01%22/></svg>"); object-fit: contain; }
img[src$="/btn/user_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%228%22 r=%224%22/><path d=%22M4 21a8 8 0 0 1 16 0%22/></svg>"); object-fit: contain; }
img[src$="/btn/key_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%227.5%22 cy=%2215.5%22 r=%225.5%22/><path d=%22m21 2-9.6 9.6M15.5 7.5l3 3L22 7l-3-3%22/></svg>"); object-fit: contain; }
img[src$="/btn/locked.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%2211%22 width=%2218%22 height=%2211%22 rx=%222%22/><path d=%22M7 11V7a5 5 0 0 1 10 0v4%22/></svg>"); object-fit: contain; }
img[src$="/btn/unlocked.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%2211%22 width=%2218%22 height=%2211%22 rx=%222%22/><path d=%22M7 11V7a5 5 0 0 1 9.9-1%22/></svg>"); object-fit: contain; }
img[src$="/btn/clock_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22M12 7v5l3 2%22/></svg>"); object-fit: contain; }
img[src$="/btn/comment_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z%22/></svg>"); object-fit: contain; }
img[src$="/btn/picture_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%222%22/><circle cx=%229%22 cy=%229%22 r=%222%22/><path d=%22m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21%22/></svg>"); object-fit: contain; }
img[src$="/btn/settings_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%223%22/><path d=%22M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1%22/></svg>"); object-fit: contain; }
img[src$="/btn/folder_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.7-.9l-.8-1.2A2 2 0 0 0 7.9 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z%22/></svg>"); object-fit: contain; }
img[src$="/btn/up_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22m18 15-6-6-6 6%22/></svg>"); object-fit: contain; }
img[src$="/btn/down_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22m6 9 6 6 6-6%22/></svg>"); object-fit: contain; }
img[src$="/btn/next.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22m9 18 6-6-6-6%22/></svg>"); object-fit: contain; }
img[src$="/btn/back.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22m15 18-6-6 6-6%22/></svg>"); object-fit: contain; }
img[src$="/btn/heart_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7z%22/></svg>"); object-fit: contain; }
img[src$="/btn/basket_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M5 11h14l-1.5 9h-11z%22/><path d=%22m9 11 3-7 3 7%22/></svg>"); object-fit: contain; }
img[src$="/btn/briefcase_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%222%22 y=%227%22 width=%2220%22 height=%2214%22 rx=%222%22/><path d=%22M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16%22/></svg>"); object-fit: contain; }
img[src$="/btn/calculator_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%224%22 y=%222%22 width=%2216%22 height=%2220%22 rx=%222%22/><path d=%22M8 6h8M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01%22/></svg>"); object-fit: contain; }
img[src$="/btn/clipboard_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%228%22 y=%222%22 width=%228%22 height=%224%22 rx=%221%22/><path d=%22M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2%22/></svg>"); object-fit: contain; }
img[src$="/btn/compass_rose_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%2210%22/><path d=%22m16.2 7.8-2.1 6.3-6.3 2.1 2.1-6.3z%22/></svg>"); object-fit: contain; }
img[src$="/btn/emergency_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c0392b%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%224%22/><path d=%22M12 8v8M8 12h8%22/></svg>"); object-fit: contain; }
img[src$="/btn/md_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%224%22/><path d=%22M12 8v8M8 12h8%22/></svg>"); object-fit: contain; }
img[src$="/btn/gavel_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22m14 13-7.5 7.5a2.1 2.1 0 0 1-3-3L11 10%22/><path d=%22m16 16 6-6M8 8l6-6M9 7l8 8M21 11l-8-8%22/></svg>"); object-fit: contain; }
img[src$="/btn/label_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z%22/><path d=%22M7.5 7.5h.01%22/></svg>"); object-fit: contain; }
img[src$="/btn/music_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M9 18V5l12-2v13%22/><circle cx=%226%22 cy=%2218%22 r=%223%22/><circle cx=%2218%22 cy=%2216%22 r=%223%22/></svg>"); object-fit: contain; }
img[src$="/btn/screen_button.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%222%22 y=%223%22 width=%2220%22 height=%2214%22 rx=%222%22/><path d=%22M8 21h8M12 17v4%22/></svg>"); object-fit: contain; }
img[src$="/btn/chart_icon.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M3 3v18h18%22/><path d=%22m7 15 4-4 3 3 5-6%22/></svg>"); object-fit: contain; }
img[src$="/btn/visualize.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z%22/><circle cx=%2212%22 cy=%2212%22 r=%223%22/></svg>"); object-fit: contain; }
img[src$="/btn/logout.png"] { content: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234f6272%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4%22/><path d=%22m16 17 5-5-5-5M21 12H9%22/></svg>"); object-fit: contain; }

/* 16/11/2026 (propriétaire : « l'enseignant est juste en vue seul ») : « Adresses et contacts » en lecture (enseignant, parent)
   prend la même disposition que pour la direction : Rue sur toute la largeur, puis deux informations par ligne ; les quatre
   cases (Domicile, Ramassage, Dépose, Adresse postale) deux par ligne. */
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body form#student tr.address table.widefat.width-100p:not(:has([id*="valuesaddress"])):has(td.ss-champ-haut) > tbody { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
html[data-ss-theme] body.modules #body form#student tr.address table.widefat.width-100p:not(:has([id*="valuesaddress"])):has(td.ss-champ-haut) > tbody > tr { display: contents !important; }
html[data-ss-theme] body.modules #body form#student tr.address table.widefat.width-100p:not(:has([id*="valuesaddress"])):has(td.ss-champ-haut) > tbody > tr > :is(td, th) { display: block !important; width: auto !important; min-width: 0; grid-column: auto; }
html[data-ss-theme] body.modules #body form#student tr.address table.widefat.width-100p:not(:has([id*="valuesaddress"])):has(td.ss-champ-haut) > tbody > tr > th, html[data-ss-theme] body.modules #body form#student tr.address table.widefat.width-100p:not(:has([id*="valuesaddress"])):has(td.ss-champ-haut) > tbody > tr:nth-child(2) > td, html[data-ss-theme] body.modules #body form#student tr.address table.widefat.width-100p:not(:has([id*="valuesaddress"])):has(td.ss-champ-haut) > tbody > tr > td.valign-top { grid-column: 1 / -1; }
html[data-ss-theme] body.modules #body form#student tr.address table.widefat.valign-middle:not(.cellpadding-5):has(img[src*="house_button"]):not(:has(input)) > tbody { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
html[data-ss-theme] body.modules #body form#student tr.address table.widefat.valign-middle:not(.cellpadding-5):has(img[src*="house_button"]):not(:has(input)) > tbody > tr { display: flex !important; align-items: center; gap: 6px; min-height: 48px; margin: 0; }
}

/* 16/11/2026 (loi de travail B3 et B8 ; contrôle du profil enseignant, étape 2) : pages de tous les jours de l'enseignant
   (Ma journée et l'appel, cahier de textes, notes du bulletin, synthèse, scanner, Ma cantine, Mon compte) et styles communs
   du gabarit. Aucun texte utile sous 13 px ; boutons d'un même groupe à 48 px, en colonnes égales. */
html[data-ss-theme] body.modules #body .ss-gabarit :is(p.ss-k-note, small, .ss-k-p, a.ss-k-filtre, label.ss-k-etiquette, dt, .sb-av-p, .ss-scan-actif, .pd-choix span) { font-size: max(13px, 1em) !important; }
html[data-ss-theme] body.modules #body .ss-gabarit :is(p.ss-k-note, small, .ss-k-p, a.ss-k-filtre, label.ss-k-etiquette, .sb-av-p, .ss-scan-actif) { font-size: 13px !important; }
/* Appel : « Tous présents » et « Non scannés absents » côte à côte, même taille. */
html[data-ss-theme] body.modules #body .ss-gabarit .pd-appoint { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #body .ss-gabarit .pd-appoint button { width: 100%; min-height: 48px; margin: 0; }
/* Pastilles de choix (périodes, filtres) : colonnes égales de 48 px ; leur titre sur toute la largeur. */
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-filtres:has(> a.ss-k-filtre) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-filtres:has(> a.ss-k-filtre) > :not(a) { grid-column: 1 / -1; margin: 4px 0 0 !important; }
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-filtres > a.ss-k-filtre { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; box-sizing: border-box; margin: 0; padding: 4px 6px; }
/* Notes du bulletin : « Reprendre les propositions » est un bouton (pas un lien) ; deux notes par ligne sur téléphone. */
html[data-ss-theme] body.modules #body .ss-gabarit #ss-nb-reprendre { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; min-height: 48px; box-sizing: border-box; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--k-filet, #d5dde3); background: var(--ss-surface-2, #f2f5f7); color: var(--ss-text, inherit); font-weight: 600; text-decoration: none; text-align: center; line-height: 1.2; }
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body .ss-gabarit .pe-grille, html[data-ss-theme] body.modules #body .ss-gabarit .pe-grille tbody { display: block; }
html[data-ss-theme] body.modules #body .ss-gabarit .pe-grille thead { display: none; }
html[data-ss-theme] body.modules #body .ss-gabarit .pe-grille tbody tr { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 10px 12px; border-top: 1px solid var(--k-filet, #e3e8ec); }
html[data-ss-theme] body.modules #body .ss-gabarit .pe-grille tbody td { display: flex !important; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 0 !important; border: 0 !important; text-align: left; }
html[data-ss-theme] body.modules #body .ss-gabarit .pe-grille tbody td:first-child { grid-column: 1 / -1; padding: 0 !important; }
html[data-ss-theme] body.modules #body .ss-gabarit .pe-grille input { width: 100% !important; min-height: 48px; box-sizing: border-box; }
}
/* Synthèse du bulletin : ses boutons en colonnes égales de 48 px. */
html[data-ss-theme] body.modules #body .ss-gabarit div:has(> button.sb-btn) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #body .ss-gabarit button.sb-btn { width: 100%; min-height: 48px !important; margin: 0; white-space: normal; line-height: 1.2; }
/* Scanner : les modes en colonnes égales, tous les boutons à 48 px. */
html[data-ss-theme] body.modules #body .ss-scan-modes { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #body :is(.ss-scan-modes, .scan-actions, .scan-viewfinder-idle) button { min-height: 48px !important; }
/* Mon compte : la photo (choisir ou prendre) à 48 px. */
html[data-ss-theme] body.modules #body .ss-gabarit .fp-photo :is(label.ss-k-btn, button.ss-prise-directe) { min-height: 48px; box-sizing: border-box; }
/* Notes du bulletin : la règle commune de Pédagogie (« une case de saisie sur toute la largeur ») cède ici : deux notes par ligne. */
@media (max-width: 700px) {
html[data-ss-theme] body.modules #body .ss-gabarit[data-ss-section] .pe-grille > tbody > tr > td:not(:first-child) { grid-column: auto !important; }
}
/* Synthèse : boutons de même hauteur même quand un texte passe sur deux lignes ; scanner : « Vérifier le code » à 48 px. */
html[data-ss-theme] body.modules #body .ss-gabarit div:has(> button.sb-btn) { grid-auto-rows: 1fr; }
html[data-ss-theme] body.modules #body .scan-actions button { height: 48px !important; min-height: 48px !important; }
/* Tuiles du gabarit (ex. « Mon compte » : Ma fiche, Mot de passe, Apparence, Préférences) : libellés à 13 px. */
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-tuile > div { font-size: 13px !important; }
/* 16/11/2026 (loi B3 ; fiche élève › Scolarité, direction et enseignant) : boutons des parties à 48 px ; un bouton seul fait 222 px. */
html[data-ss-theme] body.modules #body .ss-fiche-eleve .fu-sec .fu-corps a.ss-k-btn { height: 48px !important; min-height: 48px !important; box-sizing: border-box; }
html[data-ss-theme] body.modules #body .ss-fiche-eleve .fu-sec .fu-corps a.ss-k-btn:only-of-type { width: 222px !important; max-width: 100%; }

/* ===== 16/11/2026 — Écrans d'origine harmonisés partout (loi de travail B3, B4, B5, B8 ; étape 4 de l'enseignant) ===== */
/* B8 : noms des champs en écriture normale, 13 px au moins — anciens écrans (dessus ou dessous du champ) et gabarit. */
html[data-ss-theme] body.modules #body :is(.legend-gray, .legend-red, .ss-etiquette-haut, .ss-etiquette-haut .legend-gray) { font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; font-variant: normal !important; }
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-etiquette { font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; }
/* Gabarit : deux champs courts côte à côte (ex. départ | retour d'une sortie) ; « Garder en brouillon » en bouton 222 × 48. */
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-paire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; align-items: end; }
html[data-ss-theme] body.modules #body .ss-gabarit p.ss-so-brouillon { margin: 16px 0 0; }
html[data-ss-theme] body.modules #body .ss-gabarit p.ss-so-brouillon > button.ss-k-btn.ss-k-btn { width: 222px; max-width: 100%; height: 48px; min-height: 48px; margin: 0; }
/* B3 : onglets d'origine (Préférences, fiches, réglages…) en boutons égaux de 48 px, écriture normale. */
html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3 + h3) { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3 + h3) > h3 { margin: 0 !important; border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3 + h3) > h3 > a { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 48px !important; min-height: 48px !important; padding: 0 8px !important; box-sizing: border-box; border: 1px solid var(--ss-border, #dde3e0) !important; border-radius: 12px !important; background: var(--ss-surface-2, #fff) !important; color: var(--ss-text, #172333) !important; font-size: 14px !important; font-weight: 700 !important; text-align: center; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important; }
html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3 + h3) > h3.h3selected > a { background: var(--ss-text, #172333) !important; color: var(--ss-bg, #e9eef3) !important; border-color: var(--ss-text, #172333) !important; }
html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3 + h3) > h3::after, html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3 + h3) > h3 > a::after { display: none !important; }
/* Éditeur de commentaires : « Écrire » | « Aperçu » en deux boutons égaux. */
html[data-ss-theme] body.modules #body .md-preview:has(> a.tab) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
html[data-ss-theme] body.modules #body .md-preview a.tab { display: flex !important; align-items: center; justify-content: center; height: 48px !important; min-height: 48px; padding: 0 8px !important; box-sizing: border-box; margin: 0 !important; border: 1px solid var(--ss-border, #dde3e0) !important; border-radius: 12px !important; font-size: 14px !important; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important; }
/* Mot de passe (Préférences et écrans d'origine) : nom au-dessus, champ pleine largeur de 48 px, œil dans le champ. */
html[data-ss-theme] body.modules #body .password-input-wrapper { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 420px; }
html[data-ss-theme] body.modules #body .password-input-wrapper > br { display: none; }
html[data-ss-theme] body.modules #body .password-input-wrapper > label { order: -1; display: block; margin: 0 0 2px; line-height: 1.3; }
html[data-ss-theme] body.modules #body .password-input-wrapper > input { width: 100% !important; max-width: 100% !important; height: 48px; min-height: 48px; padding-right: 48px; box-sizing: border-box; }
html[data-ss-theme] body.modules #body .password-input-wrapper > img.password-toggle { position: absolute; top: 19px; right: 0; width: 16px; height: 16px; margin: 0; padding: 16px 14px; box-sizing: content-box; cursor: pointer; }
/* B4 : un seul « Enregistrer », en bas, à gauche (celui du haut est retiré par scripts.js quand il double celui du bas). */
html[data-ss-theme] body.modules #body form div.center:has(> input[type="submit"]:only-of-type) { text-align: left; justify-content: flex-start !important; }
/* Règles du mot de passe (8 caractères…) : 13 px. */
html[data-ss-theme] body.modules #body ul.ut-regles li { font-size: 13px !important; }
html[data-ss-theme] body.modules #body form div.center > input[type="submit"]:only-of-type { min-width: 222px; max-width: 100%; min-height: 48px; white-space: normal; }
@media (max-width: 699px) {
    /* B5 : en lecture, deux informations courtes par ligne (Informations de l'école, Année et périodes…). Hors fiches
       élève et personnel (rangées en cartes). Une image, un trait, un tableau ou une ligne sans nom prennent toute la largeur. */
    html[data-ss-theme] body.modules #body table:not(form:is(#student, #staff) table):not(:has(input:not([type="hidden"]):not([type="file"]):not(:disabled), select:not(:disabled), textarea:not(:disabled))):has(> tbody > tr > td.ss-champ-haut) > tbody { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 12px; }
    html[data-ss-theme] body.modules #body table:not(form:is(#student, #staff) table):not(:has(input:not([type="hidden"]):not([type="file"]):not(:disabled), select:not(:disabled), textarea:not(:disabled))):has(> tbody > tr > td.ss-champ-haut) > tbody > tr { display: contents !important; }
    html[data-ss-theme] body.modules #body table:not(form:is(#student, #staff) table):not(:has(input:not([type="hidden"]):not([type="file"]):not(:disabled), select:not(:disabled), textarea:not(:disabled))):has(> tbody > tr > td.ss-champ-haut) > tbody > tr > td { display: block !important; width: auto !important; min-width: 0; padding: 0 !important; overflow-wrap: anywhere; grid-column: auto; }
    html[data-ss-theme] body.modules #body table:not(form:is(#student, #staff) table):not(:has(input:not([type="hidden"]):not([type="file"]):not(:disabled), select:not(:disabled), textarea:not(:disabled))):has(> tbody > tr > td.ss-champ-haut) > tbody > tr > td:is(:not(.ss-champ-haut), :has(img, hr, table)) { grid-column: 1 / -1; }
    html[data-ss-theme] body.modules #body table:not(form:is(#student, #staff) table):not(:has(input:not([type="hidden"]):not([type="file"]):not(:disabled), select:not(:disabled), textarea:not(:disabled))):has(> tbody > tr > td.ss-champ-haut) td.ss-champ-haut img:not(.button) { max-height: 120px; width: auto; }
    /* Onglets d'origine : deux par ligne au plus sur téléphone. */
    html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3 + h3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-ss-theme] body.modules #body div.h3multi:not([hidden]):has(> h3:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Calendrier : « Lister les événements » est un bouton (B3), sous le choix du mois. */
html[data-ss-theme] body.modules #body a[href*="School_Setup/Calendar.php"][href*="modfunc=list_events"] { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; height: 48px; margin: 8px 0 0; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--ss-border, #dde3e0); border-radius: 12px; background: var(--ss-surface-2, #fff); color: var(--ss-text, #172333) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
/* Choix segmentés du gabarit (Gratuite | Payante…) : écriture normale de 13 px (loi B8, plus récente que la maquette du kit). */
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-seg > label > span { font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; }
/* 16/11/2026 (loi B3, B4, B5 ; listes de classe, trombinoscope, recherche d'élèves) : bouton « Créer… » gardé en haut,
   bouton seul 222 × 48 à gauche ; « Choisir les champs (N) » 222 × 48 ; la zone vide de l'ordre des champs n'apparaît
   que lorsqu'un champ est choisi. */
html[data-ss-theme] body.modules #body form td.header2 > input.ss-action-haut { display: inline-flex !important; align-items: center; justify-content: center; width: 222px !important; max-width: 100%; min-height: 48px !important; height: 48px !important; margin: 4px 0; white-space: normal; font-size: 14px; }
html[data-ss-theme] body.modules #body form td.header2:has(> input.ss-action-haut) { text-align: left !important; }
html[data-ss-theme] body.modules #body button.ss-champs-bouton { display: flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; min-height: 48px; margin: 12px 0 8px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; border-radius: 14px; border: 1px solid var(--ss-border, rgba(0,0,0,.12)); background: var(--ss-surface, #fff); color: inherit; cursor: pointer; }
html[data-ss-theme] body.modules #body button.ss-champs-bouton[aria-expanded="true"] { background: var(--ss-primary, #0f766e); color: #fff; border-color: transparent; }
html[data-ss-theme] body.modules #body table.postbox[hidden] { display: none !important; }
html[data-ss-theme] body.modules #body table.header:has(#names_div:empty) { display: none !important; }
/* 16/11/2026 (loi B11) : icônes au trait des tuiles (Mon compte, compte créé) à la place des anciens symboles. */
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-tuile i svg.ss-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
/* 16/11/2026 (propriétaire, « Oui, fais-la ») : « Mon argent » de l'enseignant, sous « Mes classes ». Même carte que les
   classes ; textes ≥ 13 px ; boutons 222 × 48 ; montants masqués (•••) jusqu'à « Voir les montants ». */
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent { padding: 14px; border-radius: 14px; background: var(--ss-surface-2); border: 1px solid var(--ss-border); box-shadow: var(--ss-shadow-petit, none); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent h3 { margin: 14px 0 6px; font-size: 15px; color: var(--ss-text); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent :is(.ss-argent-voir, .ss-argent-salaire) { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--ss-surface); border: 1px solid var(--ss-border); color: var(--ss-text) !important; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent .ss-argent-salaire { margin-top: 14px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-cases small { display: block; font-size: 13px; color: var(--ss-text-2); line-height: 1.25; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-cases b { display: block; margin-top: 2px; font-size: 15px; color: var(--ss-text); overflow-wrap: anywhere; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-mois + .ss-argent-mois { margin-top: 12px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-barre { height: 8px; margin: 10px 0 4px; border-radius: 99px; background: var(--ss-border); overflow: hidden; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-barre > span { display: block; height: 100%; border-radius: 99px; background: var(--ss-primary, #0f766e); }
html[data-ss-theme] body.modules #body #ss-accueil :is(.ss-argent-note, .ss-argent-vide) { display: block; margin: 4px 0 0; font-size: 13px; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-liste { list-style: none; margin: 0; padding: 0; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ss-border); font-size: 14px; color: var(--ss-text); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-liste li:last-child { border-bottom: 0; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-liste li small { font-size: 13px; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-argent-liste li b { white-space: nowrap; text-align: right; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent:not(.ss-voir) .ss-m-v { display: none; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent:not(.ss-voir) .ss-m::before { content: "•••"; letter-spacing: 2px; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent.ss-voir .ss-argent-voir { background: var(--ss-primary, #0f766e); color: #fff !important; border-color: transparent; }
/* 16/11/2026 (propriétaire : « ça doit se plier, devenir petit ; quand on appuie sur voir les montants, ça s'ouvre en
   détail ») : « Mon argent » replié d'office (seul le bouton reste) ; ouvert au toucher, replié au second toucher. */
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent:not(.ss-voir) > :not(.ss-argent-voir) { display: none !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-argent:not(.ss-voir) { padding: 10px 14px; }
/* 16/11/2026 (propriétaire) : « Vie de l'école » de l'enseignant pliée comme « Mon argent » : seul le titre de chaque carte
   reste ; toucher le titre ouvre la carte (flèche tournée), second toucher la replie. */
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie:not(.ss-vie-ouvert) > :not(header):not(h3) { display: none !important; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie > :is(header, h3) { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0 !important; cursor: pointer; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie > :is(header, h3)::after { content: ""; margin-left: auto; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .7; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie.ss-vie-ouvert > :is(header, h3)::after { transform: rotate(-135deg); }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie > header > a { order: 2; font-size: 13px; }
/* 16/11/2026 (propriétaire : « dispose les anniversaires comme dans l'écran de l'administrateur principal ») : même
   disposition que assets/css/schoolsafe-photo-dashboard.css (chargé seulement pour la direction) — cartes côte à côte de
   170 px qui défilent, date en pastille avec trait doré ; textes ≥ 13 px (loi B8). Chevron des cartes pliées en dernier. */
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays { margin: 0; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays > .ss-birthday-visual { margin: 0; padding: 12px 14px !important; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 48px; font-size: 16px !important; font-weight: 700; color: var(--ss-text); cursor: pointer; list-style: none; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays summary::-webkit-details-marker { display: none; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .7; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays details[open] summary::after { transform: rotate(-135deg); }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays summary small { flex-basis: 100%; order: 3; font-size: 13px; font-weight: 400; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays ul { display: flex; gap: 12px; list-style: none; margin: 10px 0 0; padding: 0 0 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li { flex: 0 0 170px; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--ss-surface); color: var(--ss-text); }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li.ss-life-empty { flex-basis: 100%; font-size: 13px; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays :is(li div, time) { display: grid; gap: 3px; font-size: 13px; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li small { font-size: 13px; color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays time { flex-shrink: 0; border-left: 3px solid var(--ss-or, #c8a24a); padding-left: 8px; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie > :is(header, h3)::after { order: 2; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie > header > a { order: 1; margin-left: auto; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie > header > a + * , html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-vie-plie > header:has(> a)::after { margin-left: 8px; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li div { min-width: 0; overflow-wrap: anywhere; }
/* 16/11/2026 (propriétaire : « en vertical, pas en longueur ; ça circule en vertical ») : deux cartes par ligne, les
   suivantes en dessous ; plus de défilement de côté. */
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; scroll-snap-type: none; padding: 0; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li { flex: none; min-width: 0; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li.ss-life-empty { grid-column: 1 / -1; }
/* 16/11/2026 (propriétaire : « les premières cases sont plus grosses que les suivantes ; harmonise ») : toutes les cases
   de « Ma classe en bref » ont la même hauteur (la plus haute de la grille). */
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carres { grid-auto-rows: 1fr; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-ens-carre { height: 100%; box-sizing: border-box; }
/* 16/11/2026 (propriétaire : « diminue encore un peu la taille de Anniversaires de mes élèves ») : carte et pastilles plus
   petites, textes toujours ≥ 13 px. */
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays > .ss-birthday-visual { padding: 8px 12px !important; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays summary { min-height: 44px; font-size: 15px !important; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays ul { gap: 8px; margin-top: 6px; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li { gap: 8px; padding: 6px 8px; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays time { gap: 0; padding: 2px 6px; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays time b { font-size: 18px; line-height: 1.1; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays li strong { font-size: 13px; line-height: 1.2; }
html[data-ss-theme] body.modules #body #ss-accueil-vie #ss-photo-birthdays :is(li div, time) { gap: 1px; }
/* 16/11/2026 (scanner de l'enseignant : Entrée, Récupération, Vérification) : boutons de tâche en colonnes égales de
   48 px ; un mot n'est jamais coupé (« Récupération » se coupait à 375 px). */
html[data-ss-theme] body.modules #body .ss-scan .ss-scan-modes button { padding: 0 6px; font-size: 13px; overflow-wrap: normal; word-break: keep-all; hyphens: none; min-height: 48px; }
/* 16/11/2026 (« harmonise les pages », loi B3 B5) : « Devoirs et travaux › Corriger » sur téléphone. Chaque élève : nom en
   haut ; Note (avec « / 20 » sur la même ligne) | Rendu ; Appréciation sur toute la largeur ; Copie corrigée | Vu. Boutons :
   « Scanner les copies » seul 222 × 48 ; « Enregistrer les notes » | « Fermer » en 2 colonnes égales de 48 px. */
@media screen and (max-width: 700px) {
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(3) { grid-column: 1; grid-row: 2; flex-flow: row wrap; align-items: center; gap: 2px 6px; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(3)::before { flex-basis: 100%; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(3) input { width: 76px !important; min-height: 44px; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(2) { grid-column: 2; grid-row: 2; display: flex !important; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(5) { grid-column: 1; grid-row: 4; }
  html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) .ss-table tbody td:nth-child(6) { grid-column: 2; grid-row: 4; display: flex !important; }
}
html[data-ss-theme] body.modules #body .ss-btn.ssc-ouvrir { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; min-height: 48px; }
html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html[data-ss-theme] body.modules #body form:has(> input[name="action"][value="noter"]) > div:last-child > .ss-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0; box-sizing: border-box; }
/* 16/11/2026 (propriétaire : « Top 10 comme Mon argent ») : palmarès de l'enseignant replié derrière « Voir le palmarès »
   (même bouton que « Voir les montants », 222 × 48) ; ouvert au toucher, replié au second toucher. */
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-palmares-plie:not(.ss-palmares-ouvert) > :not(header):not(.ss-palmares-voir) { display: none !important; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-palmares-voir { display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; min-height: 48px; margin: 6px 0 4px; padding: 0 14px; border-radius: 12px; background: var(--ss-surface); border: 1px solid var(--ss-border); color: var(--ss-text) !important; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-palmares-ouvert .ss-palmares-voir { background: var(--ss-primary, #0f766e); color: #fff !important; border-color: transparent; }
html[data-ss-theme] body.modules #body #ss-accueil-vie .ss-palmares-list small { font-size: 13px !important; } /* 16/11/2026 loi B8 */
/* 16/11/2026 (plan « Cours », C4 ; loi B3, B8) : « Matières, cours et classes » — titres de colonnes en écriture normale ;
   « Enregistrer » bouton seul 222 × 48. */
html[data-ss-theme] body.modname-scheduling-courses-php #body :is(table.widefat th, .list-wrapper th, th) { text-transform: none !important; letter-spacing: normal !important; font-size: 13px !important; }
html[data-ss-theme] body.modname-scheduling-courses-php #body input[type="submit"] { min-width: 222px; min-height: 48px !important; max-width: 100%; }
html[data-ss-theme] body.modname-scheduling-courses-php #body th :is(a, span) { text-transform: none !important; letter-spacing: normal !important; font-size: 13px !important; } /* 16/11/2026 C4 : le lien du titre de colonne portait les majuscules */
/* 16/11/2026 (propriétaire : « ouvrir une page pour remplir, voir tout le contenu ») : grande page d'écriture du cahier de
   textes et du cahier de préparation — plein écran, texte 16 px (pas de zoom du téléphone), « Terminé » | « Annuler » 48 px. */
.ss-grand-editeur { position: fixed; inset: 0; z-index: 10050; display: flex; flex-direction: column; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)); background: var(--ss-surface, #fff); color: var(--ss-text, #1b2533); box-sizing: border-box; }
.ss-grand-editeur .ss-ge-tete h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.ss-grand-editeur .ss-ge-texte { flex: 1 1 auto; width: 100%; min-height: 0; box-sizing: border-box; resize: none; font: inherit; font-size: 16px; line-height: 1.5; padding: 12px; border-radius: 12px; border: 1px solid var(--ss-border, #c9d6dc); background: var(--ss-surface-2, #f6f8fa); color: inherit; }
.ss-grand-editeur .ss-ge-compte { font-size: 13px; color: var(--ss-text-2, #5b6876); text-align: right; }
.ss-grand-editeur .ss-ge-bas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ss-grand-editeur .ss-ge-bas button { min-height: 48px; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; border: 1px solid var(--ss-border, #c9d6dc); background: var(--ss-surface-2, #f1f4f7); color: inherit; }
.ss-grand-editeur .ss-ge-bas .ss-ge-ok { background: var(--ss-primary, #0f766e); color: #fff; border-color: transparent; }
html.ss-ge-ouvert, html.ss-ge-ouvert body { overflow: hidden !important; }
/* 17/11/2026 (nuit, loi B8) : titres de colonnes des listes d'origine (ListOutput) en écriture normale dans toute
   l'application — le lien du titre portait les majuscules (vu : Année et périodes, Matières, cours et classes). */
html[data-ss-theme] body.modules #body th.list-column-title, html[data-ss-theme] body.modules #body th.list-column-title :is(a, span) { text-transform: none !important; letter-spacing: normal !important; font-size: 13px !important; }
/* 17/11/2026 (nuit, loi B3) : « Créer le devoir » bouton seul 222 × 48 (avant 129 × 44). */
html[data-ss-theme] body.modules #body .ss-btn.ss-creer-devoir { width: 222px; max-width: 100%; min-height: 48px !important; }
/* 17/11/2026 (nuit, loi B8) : titres d'onglets des tableaux d'origine (.h3multi : « Présence », « Tou(te)s ») en
   écriture normale partout. */
html[data-ss-theme] body.modules #body .h3multi h3.title, html[data-ss-theme] body.modules #body .h3multi h3.title a { text-transform: none !important; letter-spacing: normal !important; }
/* 17/11/2026 (nuit, loi B2) : tableau « Voir les chiffres » de l'accueil (Rubrique | Total) tenu dans l'écran (avant
   620 px de large à 375 px). */
html[data-ss-theme] body.modules #body .ss-personal-stats details table { min-width: 0 !important; width: 100% !important; }
html[data-ss-theme] body.modules #body .ss-personal-stats details td, html[data-ss-theme] body.modules #body .ss-personal-stats details th { overflow-wrap: anywhere; }
/* 17/11/2026 (nuit, profil parent, lois B8 et B3) : textes à 13 px au moins et sans majuscules sur les pages du parent
   (Personnes de récupération, fiche Mon enfant, frais, historique du compte, menus), titres de colonnes des listes
   d'origine de toutes sortes, bouton seul « Envoyer à l'école » 222 × 48. Présentation seulement. */
html[data-ss-theme] body.modules #body .ssft-role { text-transform: none !important; letter-spacing: normal !important; font-size: 13px !important; }
html[data-ss-theme] body.modules #body .ssft-heading small,
html[data-ss-theme] body.modules #body .ss-pe-carte .ss-pe-etat, html[data-ss-theme] body.modules #body .ss-pe-carre span,
html[data-ss-theme] body.modules #body .ss-card .ss-tag,
html[data-ss-theme] body.modules #body .ss-fin-chiffre :is(small, em), html[data-ss-theme] body.modules #body :is(td.ss-fin-quand, td.ss-fin-quand .proper-date, td.ss-fin-quoi),
html[data-ss-theme] body.modules #body .vs-puces .vs-vide { font-size: 13px !important; }
html[data-ss-theme] body.modules #body th[class*="list-column"], html[data-ss-theme] body.modules #body th[class*="list-column"] :is(a, span) { text-transform: none !important; letter-spacing: normal !important; }
html[data-ss-theme] body.modules #body form.co-form .ss-k-barre .ss-k-action:only-child { width: 222px; max-width: 100%; min-height: 48px !important; }
/* 17/11/2026 (nuit, profil direction, lois B8, B3, B2) : présentation seulement.
   Onglets du kit (« Un élève / Une classe », « Soldes / Relevés », « Recette / Dépense »…) en écriture normale 13 px ;
   initiales et filtres des listes du kit, état du personnel à 13 px ; boutons Confirmer / Refuser des signalements et
   Envoyer des courriers à 48 px de haut ; « Utiliser pour cette école » sans majuscules ; dates du journal des
   connexions sur plusieurs lignes au lieu de déborder. */
html[data-ss-theme] body.modules #body .ss-gabarit .ss-k-choix a { text-transform: none !important; letter-spacing: normal !important; font-size: 13px !important; }
html[data-ss-theme] body.modules #body .ss-gabarit :is(.ss-k-ligne .ss-k-av, .ss-k-filtre span),
html[data-ss-theme] body.modules #body .pe-ligne .pe-p { font-size: 13px !important; }
html[data-ss-theme] body.modules #body form.co-decision .ss-k-action,
html[data-ss-theme] body.modules #body .ss-chips form .ss-btn { min-height: 48px !important; }
html[data-ss-theme] body.modules.modname-discipline-disciplineform-php #body td a b { text-transform: none !important; letter-spacing: normal !important; }
html[data-ss-theme] body.modules.modname-school-setup-accesslog-php #body td.header1 h2 { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; }
html[data-ss-theme] body.modules.modname-school-setup-accesslog-php #body td.header1 h2 .nobr { white-space: normal; }
/* 17/11/2026 (nuit, profil direction, loi B8, 2e partie) : détail des chiffres du kit (Transport, cantine), filtres
   actifs, état des pointages, lien « Ancienne page » de l'inscription à 13 px. (L'aperçu réduit de l'écran de la cantine
   est une miniature de la télévision : laissé.) */
html[data-ss-theme] body.modules #body .ss-k-chiffres .ss-k-chiffre em,
html[data-ss-theme] body.modules #body .ss-k-filtres .ss-k-filtre,
html[data-ss-theme] body.modules #body .ss-pp-etat,
html[data-ss-theme] body.modules #body .ins-ancien a { font-size: 13px !important; }
/* 17/11/2026 (nuit, loi B11) : icône au trait dans les boutons du kit (« Pointage manuel », « Imprimer… » à la place
   de ＋ et 🖨). */
html[data-ss-theme] body.modules #body :is(.ss-k-action, .ss-btn, .button-primary, a.button) svg.ss-ic { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 6px; }

/* 17/11/2026 (P1, P2) : prénoms des enfants à toucher (parent avec plusieurs enfants). */
.ss-enfants-choix{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.ss-enfants-choix button{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--ss-border,rgba(0,0,0,.08));background:var(--ss-surface-2,#eef2f1);color:var(--ss-text,#1f2a28);font:inherit;font-size:14px;text-transform:none;cursor:pointer} /* 17/11 : couleurs du thème (mode sombre lisible) */
.ss-enfants-choix button.on{background:var(--k-vert,#1f7a4d);border-color:transparent;color:#fff}
@media screen and (min-width:900px){#ss-accueil .ss-enfants-choix{display:none}}
/* 17/11/2026 (P5) : « Mes enfants » dans le compte du parent. */
.ss-parent-mes-enfants{margin:8px 0 14px}.ss-parent-mes-enfants h3{margin:0 0 8px;font-size:16px;text-transform:none}
/* 17/11/2026 (essai enseignant, fiche › Adresses) : « Carte » en écriture normale (B8). */
a.onclick-map-it, a.onclick-map-it b { text-transform: none !important; letter-spacing: normal !important; }
/* 17/11/2026 (essai enseignant, Signaler un incident) : « Prévenir les parents » et « Envoyer l'incident par email à » en écriture normale (B8). */
:is(.modname-discipline-makereferral-php, .modname-discipline-referrals-php) :is(label, label *, fieldset legend, td.ss-champ-haut, td.ss-champ-haut *) { text-transform: none !important; letter-spacing: normal !important; }
/* 17/11/2026 (propriétaire : « tous les papiers doivent se suivre ») : impression depuis l'application (échéancier, fiches,
   mode d'emploi…) : « Page X sur Y » en bas de chaque page, titres de colonnes répétés, aucune ligne de tableau coupée. */
@page { @bottom-right { content: "Page " counter(page) " sur " counter(pages); font: 8pt Arial, sans-serif; color: #405064; } }
@media print { thead { display: table-header-group; } tfoot { display: table-footer-group; } tr, .ss-k-ligne, .ss-k-carte { break-inside: avoid; page-break-inside: avoid; } h1, h2, h3 { break-after: avoid; page-break-after: avoid; } }
/* 17/11/2026 (propriétaire : « le bouton signaler une absence a pris beaucoup de place, diminue sa taille ; agrandis la photo
   de son enfant : dès qu'il arrive, il doit voir son enfant plus grand ») — accueil du parent seulement. */
html[data-ss-theme] body.modules #body #ss-accueil:has(#ss-parent-enfants) .ss-accueil-action {
    position: static !important; width: auto !important; justify-self: start; align-self: flex-start; min-height: 44px; padding: 0 16px;
    font-size: 14px; border-radius: 999px; box-shadow: 0 3px 10px rgba(8, 118, 107, .22); margin: 4px 0 8px;
}
html[data-ss-theme] body.modules:has(#ss-parent-enfants) { padding-bottom: calc(var(--ss-onglet-h, 68px) + 16px + env(safe-area-inset-bottom)) !important; }
html[data-ss-theme] body.modules #body:has(#ss-parent-enfants) { padding-bottom: calc(var(--ss-onglet-h, 68px) + 16px + env(safe-area-inset-bottom)) !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-pe-carte { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 10px 14px; }
#ss-accueil .ss-pe-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 280px; border-radius: 16px; font-size: 64px; }
#ss-accueil .ss-pe-photo img { object-position: center 25%; }
#ss-accueil .ss-pe-id { text-align: center; justify-items: center; padding: 0 28px; }
#ss-accueil .ss-pe-id strong { font-size: 22px; }
#ss-accueil .ss-pe-fleche { position: absolute; right: 16px; bottom: 16px; margin: 0; }
/* 17/11/2026 (propriétaire : « à côté du bouton signaler une absence… les logos de l'école apparaissent automatiquement ») :
   accueil du parent, le bouton à gauche, le logo de la fiche de l'école à droite, sur la même ligne. */
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-action-logo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; width: 100%; justify-self: stretch; align-self: stretch; box-sizing: border-box; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-action-logo .ss-accueil-action { margin: 0; }
#ss-accueil .ss-ecole-logo { height: 64px; width: auto; max-width: 40%; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; border: 1px solid var(--ss-border, rgba(0, 0, 0, .08)); flex: 0 0 auto; }
/* 17/11/2026 (propriétaire, 2e passage : « le logo doit être grand, qu'il occupe toute cette place vide… les boutons
   mes enfants : un seul bouton qui s'ouvre et qui se retire ») : à gauche le bouton d'absence et, dessous, le petit
   bouton du prénom ; à droite le logo de l'école en grand. */
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-action-logo { align-items: stretch; }
#ss-accueil .ss-aal-gauche { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
#ss-accueil .ss-ecole-logo { height: auto; width: 46%; max-width: 220px; min-height: 120px; max-height: 170px; aspect-ratio: 1 / 1; padding: 6px; border-radius: 18px; }
.ss-enfant-menu { position: relative; }
.ss-enfant-menu .ss-enfant-menu-btn { display: inline-flex; font: inherit; text-transform: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--ss-border, rgba(0, 0, 0, .08)); background: var(--ss-surface-2, #eef2f1); color: var(--ss-text, #1f2a28); font-size: 14px; cursor: pointer; }
.ss-enfant-menu .ss-enfant-menu-btn::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E") center / contain no-repeat; }
.ss-enfant-menu .ss-enfant-menu-btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; transition: transform .15s; }
.ss-enfant-menu.ss-ouvert .ss-enfant-menu-btn::after { transform: rotate(-135deg) translateY(-2px); }
.ss-enfant-menu-liste[hidden] { display: none; }
.ss-enfant-menu-liste { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 160px; display: grid; gap: 2px; padding: 6px; border-radius: 14px;
    background: var(--ss-surface, #fff); border: 1px solid var(--ss-border, rgba(0, 0, 0, .08)); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.ss-enfant-menu-liste button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ss-text, #1f2a28); font: inherit; font-size: 14px; text-align: left; text-transform: none; cursor: pointer; }
.ss-enfant-menu-liste button.on { background: var(--k-vert, #1f7a4d); color: #fff; }
@media screen and (min-width: 900px) { #ss-accueil .ss-enfant-menu { display: none; } }
/* 17/11/2026 (« Oui, construis ») : sous la carte de l'enfant, « À faire pour <prénom> » (orange) et « Nouvelles ». */
#ss-accueil .ss-pe-bloc { margin: 12px 0 0; display: grid; gap: 6px; }
#ss-accueil .ss-pe-bloc-titre { margin: 0; font-size: 15px; font-weight: 700; color: var(--ss-text, #1f2a28); }
#ss-accueil .ss-pe-ligne { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 14px; text-decoration: none;
    font-size: 14px; line-height: 1.35; color: var(--ss-text, #1f2a28); background: var(--ss-surface-2, #eef2f1); border: 1px solid var(--ss-border, rgba(0, 0, 0, .08)); }
#ss-accueil .ss-pe-ligne .ss-ic { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#ss-accueil .ss-pe-afaire .ss-pe-ligne { background: rgba(232, 150, 30, .14); border-color: rgba(232, 150, 30, .45); }
#ss-accueil .ss-pe-afaire .ss-pe-ligne .ss-ic { color: #c97a10; }
#ss-accueil .ss-pe-nouvelles .ss-pe-ligne .ss-ic { color: var(--k-vert, #1f7a4d); }
/* 17/11/2026 : mode nuit, le titre « Palmarès · Top 10 » de « Vie de l'école » était bleu foncé sur fond bleu foncé. */
html[data-ss-mode="nuit"] .ss-palmares-visual > header h3 { color: var(--ss-text, #eef4ff) !important; }
html[data-ss-mode="nuit"] .ss-palmares-visual > header img { filter: invert(1) brightness(1.6); }
/* 17/11/2026 (propriétaire, maquette de l'accueil enseignant validée) : photo de l'enseignant en grand avec son rôle ;
   « Faire l'appel » et la recherche en petit à gauche, logo de l'école en grand à droite ; récupération en une ligne. */
#ss-accueil .ss-prof-carte { display: flex; align-items: center; gap: 14px; padding: 12px; margin: 0 0 12px; border-radius: 18px;
    background: var(--ss-surface-2, #eef2f1); border: 1px solid var(--ss-border, rgba(0, 0, 0, .08)); }
#ss-accueil .ss-prof-carte .ss-accueil-salut { min-width: 0; margin: 0; }
#ss-accueil .ss-prof-photo { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: #fff; background: var(--k-vert, #1f7a4d); border: 3px solid var(--ss-surface, #fff); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
#ss-accueil .ss-prof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
#ss-accueil .ss-prof-role { margin: 2px 0 0; font-size: 14px; color: var(--ss-text-secondary, #5b6b68); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-prof-rangee .ss-accueil-action {
    position: static !important; width: auto !important; max-width: 100%; min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 999px; margin: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-prof-rangee form.ss-accueil-recherche { width: 100%; max-width: 100%; margin: 0; flex: 0 0 auto; height: auto; min-height: 0; align-items: center; border-radius: 999px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-prof-rangee form.ss-accueil-recherche input[name="last"] { min-height: 44px; font-size: 14px; border-radius: 999px; }
html[data-ss-theme] body.modules:has(.ss-prof-rangee), html[data-ss-theme] body.modules #body:has(.ss-prof-rangee) { padding-bottom: calc(var(--ss-onglet-h, 68px) + 16px + env(safe-area-inset-bottom)) !important; }
details.ss-recup-plie { margin: 0 0 12px; border-radius: 14px; background: rgba(232, 150, 30, .14); border: 1px solid rgba(232, 150, 30, .45); color: var(--ss-text, #1f2a28); font-size: 14px; }
details.ss-recup-plie > summary { min-height: 44px; display: flex; align-items: center; padding: 0 14px; cursor: pointer; font-weight: 700; color: #b36a08; }
details.ss-recup-plie > p { margin: 0 14px; font-size: 13px; }
details.ss-recup-plie > ul { margin: 6px 0 10px; padding: 0 14px 0 32px; line-height: 1.5; }
html[data-ss-mode="nuit"] details.ss-recup-plie > summary { color: #f2b45a; }
/* 17/11/2026 (propriétaire : « la photo doit être plus grande… pas obligatoire en rond… forme lobée ou le coin… épate-moi ») :
   la photo occupe tout le coin gauche de la carte, bord droit en courbe organique ; derrière, une seconde forme plus claire
   décalée donne du relief ; un petit liseré de la couleur du thème suit la courbe. Texte à droite, sur le fond de la carte. */
#ss-accueil .ss-prof-carte { position: relative; overflow: hidden; isolation: isolate; align-items: stretch; gap: 0; padding: 0; min-height: 172px; border-radius: 22px;
    background: linear-gradient(135deg, var(--ss-surface-2, #eef2f1) 0%, var(--ss-surface, #fff) 100%); }
#ss-accueil .ss-prof-carte::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: calc(46% + 22px);
    background: var(--k-vert, #1f7a4d); opacity: .22; border-radius: 0 64% 52% 0 / 0 58% 42% 0; }
#ss-accueil .ss-prof-carte::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
    background: var(--k-vert, #1f7a4d); opacity: .08; }
#ss-accueil .ss-prof-photo { flex: 0 0 46%; width: 46%; height: auto; min-height: 172px; align-self: stretch; border: 0; box-shadow: 4px 0 0 0 var(--k-vert, #1f7a4d);
    border-radius: 0 58% 46% 0 / 0 52% 48% 0; font-size: 56px; letter-spacing: 1px;
    background: linear-gradient(160deg, var(--k-vert, #1f7a4d), #0d5a37); }
#ss-accueil .ss-prof-photo img { object-position: center 20%; }
#ss-accueil .ss-prof-carte .ss-accueil-salut { flex: 1 1 auto; align-self: center; padding: 14px 14px 14px 18px; }
#ss-accueil .ss-prof-carte .ss-accueil-salut h1 { font-size: 21px; line-height: 1.2; margin: 0 0 4px; }
#ss-accueil .ss-prof-role { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; font-size: 13px; line-height: 1.35;
    background: rgba(31, 122, 77, .12); color: var(--ss-text, #1f2a28); }
@media screen and (min-width: 700px) { #ss-accueil .ss-prof-photo, #ss-accueil .ss-prof-carte::before { flex-basis: 220px; width: 220px; } #ss-accueil .ss-prof-carte::before { width: 242px; } }
/* 17/11/2026 (propriétaire, maquette validée « VALIDE ») : accueil de l'enseignant et des postes de l'école, sous l'en-tête.
   Plus serré, plus coloré, rien de caché : « Aujourd'hui » en cartes de couleur, classes avec leurs élèves en ronds,
   « Mon argent » en bande, « Vie de l'école » en pastilles qui s'ouvrent, accès rapides en boutons fins. */
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-bloc { margin-top: 0 !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-bloc-titre { display: flex; align-items: center; gap: 8px; font-size: 15px !important; font-weight: 700 !important;
    color: var(--ss-text, #1f2a28) !important; text-transform: none !important; letter-spacing: 0 !important; margin: 16px 0 8px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-bloc-titre::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--k-vert, #1f7a4d); }

/* Aujourd'hui : cartes de couleur selon l'état, 2 par ligne, compactes. */
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carres { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre { min-height: 0 !important; padding: 10px 12px !important; border-radius: 16px !important; border: 0 !important; box-shadow: none !important;
    display: flex !important; flex-direction: column; gap: 1px; text-decoration: none; background: rgba(52, 110, 200, .12) !important; color: #234f96 !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre::before, html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre::after { display: none !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre.ss-ens-ok { background: rgba(31, 122, 77, .13) !important; color: #17603c !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre.ss-ens-attention { background: rgba(232, 150, 30, .17) !important; color: #8a5208 !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre.ss-ens-urgent { background: rgba(214, 69, 69, .14) !important; color: #a12a2a !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre :is(.ss-ens-libelle, .ss-ens-valeur, small) { color: inherit !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-libelle { font-size: 13px !important; font-weight: 700; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-valeur { font-size: 24px !important; line-height: 1.15; margin: 0 !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-valeur.ss-ens-long { font-size: 19px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre small { font-size: 13px !important; line-height: 1.3; opacity: .9; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre { color: #b9d2ff !important; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre.ss-ens-ok { color: #9be3bd !important; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre.ss-ens-attention { color: #f6c27a !important; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-carre.ss-ens-urgent { color: #f5a3a3 !important; }

/* Mes classes : en-tête (nom, effectif, présents) et élèves en ronds à droite ; boutons en pastilles. */
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe { padding: 12px !important; border-radius: 16px !important; margin: 0 0 8px !important;
    background: var(--ss-surface, #fff) !important; border: 1px solid var(--ss-border, rgba(0, 0, 0, .08)) !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .05) !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe h3 { font-size: 15px !important; margin: 0 !important; line-height: 1.25; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe p { margin: 2px 0 0 !important; font-size: 13px; color: var(--ss-text-secondary, #5b6b68); }
#ss-accueil .ss-ens-ronds { display: inline-flex; flex: 0 0 auto; padding-left: 8px; }
#ss-accueil .ss-ens-rond { width: 34px; height: 34px; margin-left: -9px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; border: 2px solid var(--ss-surface, #fff); background: #e6f1fb; color: #0c447c; }
#ss-accueil .ss-ens-rond img { width: 100%; height: 100%; object-fit: cover; }
#ss-accueil .ss-ens-rond-1 { background: #fcebe4; color: #712b13; } #ss-accueil .ss-ens-rond-2 { background: #e1f5ee; color: #085041; }
#ss-accueil .ss-ens-rond-3 { background: #eeedfe; color: #3c3489; } #ss-accueil .ss-ens-rond-plus { background: var(--ss-surface-2, #eef2f1); color: var(--ss-text, #1f2a28); }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe > div:last-child a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; text-decoration: none; background: transparent; color: var(--ss-text, #1f2a28) !important; border: 1px solid var(--ss-border-strong, rgba(0, 0, 0, .18)); }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe > div:last-child a:first-child { background: var(--k-vert, #1f7a4d); color: #fff !important; border-color: transparent; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-suivi { display: inline-flex; margin: 2px 0 0; font-size: 14px; font-weight: 600; }

/* Mon argent : bande de trois cases masquées ; « Voir les montants » ouvre le détail. */
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-argent { padding: 10px 12px !important; border-radius: 16px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-argent:not(.ss-voir) > .ss-argent-resume { display: grid !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-argent.ss-voir > .ss-argent-resume { display: none !important; }
#ss-accueil .ss-argent-resume { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; margin: 0 0 8px; }
#ss-accueil .ss-argent-resume small { display: block; font-size: 13px; line-height: 1.2; color: var(--ss-text-secondary, #5b6b68); }
#ss-accueil .ss-argent-resume b { display: block; font-size: 16px; letter-spacing: 2px; color: var(--ss-text, #1f2a28); }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-argent .ss-argent-voir { width: 100% !important; min-height: 44px !important; border-radius: 999px !important; }

/* Vie de l'école : pastilles côte à côte ; une pastille ouverte prend toute la largeur. */
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section:not([hidden]) { flex: 0 0 auto; max-width: 100%; margin: 0 !important; min-height: 0 !important;
    padding: 0 14px !important; border-radius: 999px !important; box-shadow: none !important; border: 1px solid var(--ss-border, rgba(0, 0, 0, .1)) !important; background: var(--ss-surface, #fff) !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section :is(header, h3) { min-height: 44px !important; font-size: 14px !important; gap: 6px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section img { width: 18px !important; height: 18px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section:is(.ss-vie-ouvert, .ss-palmares-ouvert, :has(.ss-vie-ouvert)) {
    flex-basis: 100%; border-radius: 16px !important; padding: 4px 14px 12px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-palmares-plie:not(.ss-palmares-ouvert) > header { display: none !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-palmares-plie:not(.ss-palmares-ouvert) { padding: 0 !important; border: 0 !important; background: transparent !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-palmares-voir { width: auto !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 999px !important;
    background: rgba(232, 150, 30, .17) !important; color: #8a5208 !important; border: 0 !important; font-weight: 600; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-photo-birthdays { padding: 0 !important; border: 0 !important; background: transparent !important; }

/* Accès rapides : boutons fins, deux par ligne, icône de couleur à gauche. */
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a { flex-direction: row !important; justify-content: flex-start !important; align-items: center; gap: 8px !important;
    min-height: 48px !important; padding: 6px 10px !important; border-radius: 14px !important; text-align: left !important; box-shadow: none !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a .ss-ar-icone { flex: 0 0 32px; width: 32px !important; height: 32px !important; border-radius: 10px !important; margin: 0 !important;
    display: grid !important; place-items: center; background: rgba(31, 122, 77, .14) !important; color: #1f7a4d !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a .ss-ar-icone svg { width: 18px !important; height: 18px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a .ss-ar-libelle { font-size: 13px !important; line-height: 1.2; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a:nth-child(4n+2) .ss-ar-icone { background: rgba(214, 69, 69, .13) !important; color: #c0392b !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a:nth-child(4n+3) .ss-ar-icone { background: rgba(232, 150, 30, .16) !important; color: #b36a08 !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a:nth-child(4n) .ss-ar-icone { background: rgba(52, 110, 200, .14) !important; color: #2c5fb4 !important; }
/* 17/11/2026 (suite) : en-tête des classes sur une ligne ; pastilles de « Vie de l'école » en couleur (visibles sur le fond). */
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe-tete > div { display: block !important; min-width: 0; flex: 1 1 auto; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe-tete > div > :is(h3, p) { display: block !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section#ss-vie-flux-1:not([hidden]) { background: rgba(52, 110, 200, .13) !important; border-color: transparent !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section#ss-vie-rattrapage:not([hidden]) { background: rgba(110, 90, 200, .13) !important; border-color: transparent !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section#ss-vie-flux-0:not([hidden]) { background: rgba(214, 69, 69, .1) !important; border-color: transparent !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section#ss-photo-birthdays:not([hidden]) { padding: 0 !important; border: 0 !important; background: transparent !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-vie-anniversaires { padding: 0 14px !important; border-radius: 999px !important; border: 0 !important; box-shadow: none !important; background: rgba(31, 122, 77, .13) !important; margin: 0 !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-vie-anniversaires summary { min-height: 44px; display: flex; align-items: center; gap: 6px; font-size: 14px; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-vie-anniversaires summary small { display: none; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-vie-anniversaires:has(details[open]) { border-radius: 16px !important; padding: 0 14px 10px !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section#ss-photo-birthdays:has(details[open]) { flex-basis: 100%; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-photo-school-life > section :is(header, h3) { color: var(--ss-text, #1f2a28) !important; }
html[data-ss-theme] body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-accueil-acces > a { background: var(--ss-surface, #fff) !important; border: 1px solid var(--ss-border, rgba(0, 0, 0, .1)) !important; }
/* 17/11/2026 : modes sombre et bleu nuit — pastilles orange (palmarès) et textes des pastilles lisibles. */
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body #ss-accueil:has(.ss-prof-carte) #ss-accueil-vie .ss-palmares-voir { color: #f6c27a !important; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body #ss-accueil:has(.ss-prof-carte) .ss-ens-classe > div:last-child a:not(:first-child) { color: var(--ss-text, #eef4ff) !important; }
/* 17/11/2026 : accueil du parent, bouton « absences à justifier » qui se plie et se déplie. */
#ss-accueil .ss-pe-plie-btn { width: 100%; font: inherit; text-align: left; cursor: pointer; }
#ss-accueil .ss-pe-plie-att > .ss-pe-plie-btn { background: rgba(232, 150, 30, .14); border-color: rgba(232, 150, 30, .45); }
#ss-accueil .ss-pe-plie-att > .ss-pe-plie-btn .ss-ic { color: #c97a10; }
#ss-accueil .ss-pe-chevron { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; flex: 0 0 auto; }
#ss-accueil .ss-pe-plie-ouvert .ss-pe-chevron { transform: rotate(-135deg); }
#ss-accueil .ss-pe-plie-liste { display: grid; gap: 6px; margin: 6px 0 0 14px; }
#ss-accueil .ss-pe-plie-liste[hidden] { display: none; }
#ss-accueil .ss-pe-plie-liste .ss-pe-ligne { min-height: 44px; justify-content: space-between; }
#ss-accueil .ss-pe-a-justifier b { padding: 4px 12px; border-radius: 999px; background: var(--k-vert, #1f7a4d); color: #fff; font-size: 13px; }
#ss-accueil .ss-pe-reponse b { font-size: 13px; }
#ss-accueil .ss-pe-etat-ok { color: #1f7a4d; } #ss-accueil .ss-pe-etat-att { color: #b36a08; } #ss-accueil .ss-pe-etat-urg { color: #c0392b; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #ss-accueil .ss-pe-etat-ok { color: #9be3bd; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #ss-accueil .ss-pe-etat-att { color: #f6c27a; }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #ss-accueil .ss-pe-etat-urg { color: #f5a3a3; }


/* Lot FIN1 (08/11) : rubrique Finance au modèle de la charte (maquette finance-v1 validée), après la fondation. */

/* ===== assets/themes/SchoolSafeCodex/ss-finance.css ===== */

/* Lot FIN1 (08/11) : rubrique Finance au modèle de la charte (maquette validée docs/maquettes/finance-v1.html ;
   charte docs/design/CHARTE_DESIGN_SCHOOLSAFE.md § 4 « Liste » et « Formulaire », § 5 à § 9).
   Présentation seulement : les éléments sont posés par le bloc « Lot FIN1 » de scripts.js. Toutes les couleurs
   passent par les variables --ss-* (5 thèmes, teinte libre, plein soleil, économie de données). Les surfaces des
   cartes utilisent --ss-d2-surface (surface du thème calculée sur <html>) car interior-screens.css redéfinit
   --ss-surface en blanc sur #body. Importée après ss-design.css. */

/* ---------- 0. Éléments natifs gardés mais masqués (toujours dans le formulaire) ---------- */
body.modules #body[data-ss-section="finance"] .ss-fin-natif,
body.modules #body[data-ss-section="finance"] .ss-fin-masque { display: none !important; }

/* ---------- 1. Titres, aides, boutons communs ---------- */
#body[data-ss-section="finance"] .ss-fin-sec {
    margin: 18px 0 8px; padding: 0; border: 0; background: none; color: var(--ss-page-text); opacity: .8;
    font: 600 13px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; letter-spacing: 0; text-transform: none;
}
#body[data-ss-section="finance"] .ss-fin-note,
#body[data-ss-section="finance"] .ss-fin-aide { margin: 6px 2px 0; color: var(--ss-page-text); opacity: .78; font-size: 13px; line-height: 1.4; }
#body[data-ss-section="finance"] .ss-fin-vide {
    margin: 10px 0; padding: 14px; border: 1px dashed var(--ss-border); border-radius: 12px;
    background: var(--ss-d2-surface); color: var(--ss-text-2); font-size: 13px;
}
#body[data-ss-section="finance"] .ss-fin-vide[hidden] { display: none; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] a.ss-fin-bouton {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 8px 16px;
    border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-d2-surface); color: var(--ss-link) !important;
    font: 600 14px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; text-decoration: none; transition: transform .15s var(--ss-ease, ease);
}
#body[data-ss-section="finance"] button.ss-fin-bouton {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 8px 14px;
    border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-d2-surface); color: var(--ss-link);
    font: 600 14px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; cursor: pointer; transition: transform .15s var(--ss-ease, ease);
}
#body[data-ss-section="finance"] .ss-fin-bouton:active { transform: scale(.97); }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-pastille {
    display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap;
    background: var(--ss-etat-info-bg); color: var(--ss-etat-info);
}
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-pastille[data-etat="reste"] { background: var(--ss-etat-attention-bg); color: var(--ss-etat-attention); }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-pastille[data-etat="ajour"] { background: var(--ss-etat-fait-bg); color: var(--ss-etat-fait); }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-pastille:is([data-etat="trop"], [data-etat="credit"]) { background: var(--ss-etat-info-bg); color: var(--ss-etat-info); }

/* Action principale « Encaisser un paiement » : fixe au-dessus de la barre du bas sur téléphone. */
html[data-ss-theme] body.modules #body[data-ss-section="finance"] a.ss-fin-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 50px; margin: 16px 0 4px; padding: 0 20px;
    border-radius: 14px; background: linear-gradient(135deg, var(--ss-vert), var(--ss-vert-2)); color: var(--ss-surface-raised) !important;
    font: 700 15px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; text-decoration: none; box-shadow: var(--ss-shadow);
    transition: transform .15s var(--ss-ease, ease);
}
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body[data-ss-section="finance"] a.ss-fin-action { color: var(--ss-text) !important; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] a.ss-fin-action:active { transform: scale(.98); }
html[data-ss-soleil="on"] body.modules #body[data-ss-section="finance"] a.ss-fin-action { background: var(--ss-accent) !important; color: var(--ss-surface) !important; box-shadow: none; text-decoration: none; }
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules #body[data-ss-section="finance"] a.ss-fin-action {
        position: fixed; left: 12px; right: 76px; bottom: calc(var(--ss-onglet-h) + 10px + env(safe-area-inset-bottom)); z-index: 85; margin: 0;
    }
    html[data-ss-theme] body.modules #body[data-ss-section="finance"]:has(.ss-fin-action) { padding-bottom: calc(var(--ss-onglet-h) + 96px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- 2. Accueil de la rubrique (page de recherche de « Frais d'un élève ») ---------- */
#ss-fin-accueil { box-sizing: border-box; max-width: 1100px; margin: 0 0 8px; padding: 12px 0 0; color: var(--ss-page-text); font-family: "Segoe UI", Roboto, system-ui, sans-serif; }
#ss-fin-accueil *, #ss-fin-accueil *::before, #ss-fin-accueil *::after { box-sizing: border-box; }
html[data-ss-theme] body.modules #body #ss-fin-accueil h2 { margin: 0; color: var(--ss-page-text); font: 700 20px/1.25 "Segoe UI", Roboto, system-ui, sans-serif; }
#ss-fin-accueil .ss-fin-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-ss-theme] body.modules #body #ss-fin-accueil a.ss-fin-tuile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 8px;
    border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-d2-surface); color: var(--ss-text) !important;
    font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; overflow-wrap: anywhere;
    box-shadow: var(--ss-shadow); transition: transform .15s var(--ss-ease, ease);
}
#ss-fin-accueil a.ss-fin-tuile .ss-icone { color: var(--ss-link); }
html[data-ss-theme] body.modules #body #ss-fin-accueil a.ss-fin-tuile:active { transform: scale(.97); }
#ss-fin-accueil .ss-fin-parties { display: grid; gap: 8px; }
#ss-fin-accueil .ss-fin-partie { border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-d2-surface); color: var(--ss-text); box-shadow: var(--ss-shadow); }
#ss-fin-accueil .ss-fin-partie > summary {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; cursor: pointer; list-style: none; border-radius: 12px;
}
#ss-fin-accueil .ss-fin-partie > summary::-webkit-details-marker { display: none; }
#ss-fin-accueil .ss-fin-partie > summary:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 2px; }
#ss-fin-accueil .ss-fin-num {
    flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--ss-etat-fait-bg); color: var(--ss-etat-fait); font-size: 11px; font-weight: 700;
}
#ss-fin-accueil .ss-fin-partie-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#ss-fin-accueil .ss-fin-partie-texte b { font-size: 14px; font-weight: 600; }
#ss-fin-accueil .ss-fin-partie-texte small { color: var(--ss-text-2); font-size: 12px; overflow-wrap: anywhere; }
#ss-fin-accueil .ss-fin-fl { flex: none; color: var(--ss-text-3); transition: transform .2s var(--ss-ease, ease); }
#ss-fin-accueil .ss-fin-partie[open] .ss-fin-fl { transform: rotate(90deg); }
#ss-fin-accueil .ss-fin-partie ul { margin: 0; padding: 0 12px 8px 46px; list-style: none; }
#ss-fin-accueil .ss-fin-partie li + li { border-top: 1px solid var(--ss-line); }
html[data-ss-theme] body.modules #body #ss-fin-accueil .ss-fin-partie a {
    display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 0; color: var(--ss-link) !important; text-decoration: none;
}
#ss-fin-accueil .ss-fin-partie a b { font-size: 14px; font-weight: 600; }
#ss-fin-accueil .ss-fin-partie a small { color: var(--ss-text-2); font-size: 12px; }
@media screen and (min-width: 900px) {
    #ss-fin-accueil .ss-fin-tuiles { grid-template-columns: repeat(3, minmax(0, 180px)); }
    #ss-fin-accueil .ss-fin-parties { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    html[data-ss-theme] body.modules #body #ss-fin-accueil h2 { font-size: 22px; }
}

/* ---------- 3. Encaisser un paiement (modèle Formulaire) ---------- */
#body[data-ss-section="finance"] .ss-fin-saisie,
#body[data-ss-section="finance"] .ss-fin-confirme { box-sizing: border-box; max-width: 640px; margin: 4px 0 8px; font-family: "Segoe UI", Roboto, system-ui, sans-serif; }
#body[data-ss-section="finance"] .ss-fin-saisie *, #body[data-ss-section="finance"] .ss-fin-confirme * { box-sizing: border-box; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] a.ss-fin-sujet {
    display: block; border: 1px solid var(--ss-border); border-radius: 14px; background: var(--ss-d2-surface); color: var(--ss-text) !important;
    text-decoration: none; box-shadow: var(--ss-shadow); transition: transform .15s var(--ss-ease, ease);
}
html[data-ss-theme] body.modules #body[data-ss-section="finance"] a.ss-fin-sujet:active { transform: scale(.99); }
#body[data-ss-section="finance"] .ss-fin-sujet-haut { display: flex; align-items: center; gap: 12px; padding: 12px; }
#body[data-ss-section="finance"] .ss-fin-av {
    flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--ss-etat-fait-bg); color: var(--ss-etat-fait); font-weight: 700; font-size: 16px;
}
#body[data-ss-section="finance"] .ss-fin-sujet-nom { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
#body[data-ss-section="finance"] .ss-fin-sujet-nom b { font-size: 15px; }
#body[data-ss-section="finance"] .ss-fin-sujet-nom small { color: var(--ss-text-2); font-size: 12px; }
#body[data-ss-section="finance"] .ss-fin-reste { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ss-line); }
#body[data-ss-section="finance"] .ss-fin-reste > span { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; }
#body[data-ss-section="finance"] .ss-fin-reste > span + span { border-left: 1px solid var(--ss-line); }
#body[data-ss-section="finance"] .ss-fin-reste small { color: var(--ss-text-2); font-size: 11px; }
#body[data-ss-section="finance"] .ss-fin-reste b { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#body[data-ss-section="finance"] .ss-fin-reste .ss-fin-du b { color: var(--ss-etat-attention); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body[data-ss-section="finance"] .ss-fin-reste .ss-fin-du b { color: var(--ss-text); }

#body[data-ss-section="finance"] .ss-fin-champ { display: block; margin: 12px 0 0; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-etiquette {
    display: block; margin: 0 0 5px; color: var(--ss-page-text); opacity: .85;
    font: 700 11px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-saisie :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select) {
    display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border-radius: 12px; font-size: 15px;
}
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-saisie input.ss-fin-montant-saisi { min-height: 56px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
#body[data-ss-section="finance"] .ss-fin-sous-etiquette { display: block; margin: 8px 0 4px; color: var(--ss-page-text); opacity: .78; font-size: 12px; }
#body[data-ss-section="finance"] .ss-fin-date-aide,
#body[data-ss-section="finance"] .ss-fin-aide-champ { display: block; margin: 4px 2px 0; color: var(--ss-page-text); opacity: .75; font-size: 12px; }
#body[data-ss-section="finance"] .ss-fin-date-aide:empty { display: none; }
/* Monnaie reçue : deux boutons segmentés. */
#body[data-ss-section="finance"] .ss-fin-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-surface-2); }
#body[data-ss-section="finance"] .ss-fin-seg button {
    min-height: 44px; margin: 0; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ss-text-2);
    font: 600 15px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; cursor: pointer; transition: background-color .2s, transform .15s var(--ss-ease, ease);
}
#body[data-ss-section="finance"] .ss-fin-seg button[aria-checked="true"] { background: var(--ss-d2-surface-raised); color: var(--ss-link); box-shadow: var(--ss-shadow); }
#body[data-ss-section="finance"] .ss-fin-seg button:active { transform: scale(.97); }
#body[data-ss-section="finance"] .ss-fin-seg button:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 1px; }
html[data-ss-soleil="on"] #body[data-ss-section="finance"] .ss-fin-seg button[aria-checked="true"] { outline: 2px solid var(--ss-text); }
/* Options repliées. */
#body[data-ss-section="finance"] .ss-fin-plus { margin: 12px 0 0; border: 1px dashed var(--ss-border); border-radius: 12px; background: var(--ss-d2-surface); color: var(--ss-text); }
#body[data-ss-section="finance"] .ss-fin-plus > summary { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--ss-text-2); font-size: 13px; cursor: pointer; }
#body[data-ss-section="finance"] .ss-fin-plus > summary:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 2px; }
#body[data-ss-section="finance"] .ss-fin-plus[open] { padding: 0 12px 12px; }
#body[data-ss-section="finance"] .ss-fin-plus[open] > summary { margin: 0 -12px; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-plus .ss-fin-etiquette,
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-plus .ss-fin-aide-champ,
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-plus label { color: var(--ss-text); }
#body[data-ss-section="finance"] .ss-fin-plus .ss-fin-case label,
#body[data-ss-section="finance"] .ss-fin-plus .checkbox-label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; text-transform: none; letter-spacing: 0; }
#body[data-ss-section="finance"] .ss-fin-plus input[type="checkbox"] { width: 22px; height: 22px; }
#body[data-ss-section="finance"] .ss-fin-plus .onclick { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; cursor: pointer; }
/* « Enregistrer » fixe en bas du formulaire. */
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-enregistrer {
    position: sticky; bottom: 10px; z-index: 30; max-width: 640px; margin: 12px 0; text-align: left;
}
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-enregistrer input[type="submit"] {
    width: 100%; min-height: 50px; border: 0 !important; border-radius: 14px;
    background: linear-gradient(135deg, var(--ss-vert), var(--ss-vert-2)) !important; color: var(--ss-surface-raised) !important;
    font: 700 15px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; box-shadow: var(--ss-shadow); transition: transform .15s var(--ss-ease, ease);
}
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body[data-ss-section="finance"] .ss-fin-enregistrer input[type="submit"] { color: var(--ss-text) !important; }
html[data-ss-soleil="on"] body.modules #body[data-ss-section="finance"] .ss-fin-enregistrer input[type="submit"] { background: var(--ss-accent) !important; color: var(--ss-surface) !important; box-shadow: none; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-enregistrer input[type="submit"]:active { transform: scale(.98); }
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-enregistrer { position: fixed; left: 12px; right: 76px; bottom: calc(var(--ss-onglet-h, 68px) + 10px + env(safe-area-inset-bottom)); margin: 0; max-width: none; }
    html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-enregistrer input[type="submit"] { width: 100%; }
    html[data-ss-theme] body.modules #body[data-ss-section="finance"]:has(.ss-fin-enregistrer) { padding-bottom: calc(var(--ss-onglet-h, 68px) + 96px + env(safe-area-inset-bottom)) !important; }
}
/* Confirmation après l'enregistrement. */
#body[data-ss-section="finance"] .ss-fin-confirme {
    padding: 16px; border: 1px solid var(--ss-border); border-radius: 14px; background: var(--ss-d2-surface); color: var(--ss-text);
    text-align: center; box-shadow: var(--ss-shadow); animation: ss-entree .35s var(--ss-ease, ease) both;
}
#body[data-ss-section="finance"] .ss-fin-coche { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--ss-etat-fait-bg); color: var(--ss-etat-fait); font-size: 30px; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-confirme h3 { margin: 0 0 4px; color: var(--ss-text); font-size: 16px; }
#body[data-ss-section="finance"] .ss-fin-confirme-montant { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
#body[data-ss-section="finance"] .ss-fin-confirme > small { display: block; color: var(--ss-text-2); }
#body[data-ss-section="finance"] .ss-fin-confirme .ss-fin-reste { margin: 12px 0; text-align: left; border: 1px solid var(--ss-line); border-radius: 12px; }
#body[data-ss-section="finance"] .ss-fin-confirme a.ss-fin-bouton { width: 100%; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-confirme .ss-fin-note { color: var(--ss-text-2); }
.ss-fin-toast { top: 60px; }

/* Totaux de l'élève (frais, payé, reste par monnaie) : carte lisible, jamais additionnés. */
html[data-ss-theme] body.modules #body[data-ss-section="finance"] table.student-billing-totals {
    border-collapse: separate; border-spacing: 0; border: 1px solid var(--ss-border); border-radius: 12px; overflow: hidden;
    background: var(--ss-d2-surface) !important; color: var(--ss-text); font-variant-numeric: tabular-nums;
}
html[data-ss-theme] body.modules #body[data-ss-section="finance"] table.student-billing-totals :is(th, td) { padding: 8px 10px; border-bottom: 1px solid var(--ss-line); color: var(--ss-text); background: transparent; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] table.student-billing-totals th { color: var(--ss-text-2); font-size: 12px; }

/* Liste des paiements : une carte par paiement (le tableau transposé défilait sur le côté sur téléphone,
   et s'empilait en une colonne sur ordinateur). Plusieurs cartes par ligne sur grand écran. */
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes { display: block !important; width: 100% !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > thead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); float: none !important; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody { display: grid !important; gap: 8px; max-width: none !important; overflow: visible !important; white-space: normal !important; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr {
        display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 10px 12px;
        border: 1px solid var(--ss-border) !important; border-radius: 12px; background: var(--ss-d2-surface) !important; color: var(--ss-text);
        animation: ss-entree .35s var(--ss-ease, ease) both;
    }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr.ss-fin-masque { display: none !important; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td {
        display: block !important; height: auto !important; min-width: 0; padding: 4px 0 !important; border: 0 !important; background: transparent !important;
        line-height: 1.35 !important; white-space: normal !important; overflow: visible !important; overflow-wrap: anywhere; color: var(--ss-text);
    }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td:empty { display: none !important; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td[data-ss-libelle]::before {
        content: attr(data-ss-libelle); display: block; margin-bottom: 1px; color: var(--ss-text-2);
        font: 700 10px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase;
    }
    /* Actions (annuler, rembourser) en tête, sur toute la largeur ; montant en grand. */
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td:not([data-ss-libelle]) { grid-column: 1 / -1; display: flex !important; gap: 4px; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td:not([data-ss-libelle]) a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td[data-ss-libelle]:first-of-type,
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td:not([data-ss-libelle]) + td[data-ss-libelle] { grid-column: 1 / -1; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td :is(input, select) { max-width: 100% !important; min-height: 44px; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td .onclick { min-height: 32px; }
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody > tr > td a[href*="schoolsafe-receipt"] {
        display: inline-flex; align-items: center; min-height: 44px; padding: 2px 12px; border-radius: 999px; background: var(--ss-etat-fait-bg); color: var(--ss-etat-fait) !important; font-weight: 700; font-size: 12px; text-decoration: none;
    }
    body.modules #body[data-ss-section="finance"] .list-outer.payments .list-wrapper { overflow: visible !important; border: 0 !important; }
@media screen and (min-width: 900px) {
    body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-cartes.ss-fin-cartes > tbody { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ---------- 4. Listes larges : résultats de recherche d'élève, soldes, caisse du jour (modèle Liste) ---------- */
body.modules #body[data-ss-section="finance"][data-ss-page] .list-outer:has(table.ss-fin-lignes) .list-wrapper { overflow: visible !important; border: 0 !important; max-width: 100%; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes {
    display: block !important; width: 100% !important; max-width: 760px; margin: 0; border: 1px solid var(--ss-border) !important; border-radius: 14px;
    background: var(--ss-d2-surface) !important; color: var(--ss-text); box-shadow: var(--ss-shadow); overflow: hidden;
}
/* En-tête : gardé comme barre « Trier par » (les liens de tri de Rosario restent utilisables). */
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > thead { display: block !important; float: none !important; max-width: none !important; border-bottom: 1px solid var(--ss-line); background: var(--ss-surface-2); }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > thead > tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 2px 8px; border: 0 !important; background: transparent !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > thead > tr::before { content: "Trier par :"; padding: 0 4px; color: var(--ss-text-2); font-size: 12px; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > thead > tr > th {
    display: block !important; height: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important;
    color: var(--ss-text-2) !important; font-size: 12px !important; line-height: 1.2 !important; white-space: nowrap; position: static !important;
}
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > thead > tr > th a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--ss-link) !important; line-height: 1.2 !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody { display: block !important; max-width: none !important; overflow: visible !important; white-space: normal !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr {
    position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px;
    min-height: 56px; padding: 9px 34px 9px 58px; border: 0 !important; border-top: 1px solid var(--ss-line) !important; background: transparent !important;
    transition: background-color .2s, transform .15s var(--ss-ease, ease);
}
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr:first-child { border-top: 0 !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr[hidden] { display: none !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.thead-repeat { display: none !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td {
    display: block !important; grid-column: 1; height: auto !important; min-width: 0; padding: 0 !important; border: 0 !important;
    background: transparent !important; color: var(--ss-text-2); font-size: 12px; line-height: 1.35 !important;
    white-space: normal !important; overflow: visible !important; overflow-wrap: anywhere; position: static !important; text-align: left;
}
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td.ss-cache-visuel { position: absolute !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td.ss-fin-nom { grid-row: 1; color: var(--ss-text); font-size: 14px; font-weight: 600; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td.ss-fin-nom a { color: var(--ss-text) !important; text-decoration: none; }
/* Toute la ligne est cliquable : le lien du nom couvre la ligne. */
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-clic > td.ss-fin-nom a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-clic > td.ss-fin-nom a:focus-visible { outline: none; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-clic:focus-within { box-shadow: inset 0 0 0 3px var(--ss-focus); }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-clic:hover { background: var(--ss-surface-2) !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-clic:active { transform: scale(.99); }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-clic::after {
    content: "›"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ss-text-3); font-size: 22px; line-height: 1;
}
/* Pastille d'initiales. */
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td[data-ss-initiales]::before {
    content: attr(data-ss-initiales); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%; background: var(--ss-etat-fait-bg); color: var(--ss-etat-fait); font-size: 12px; font-weight: 700;
}
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td.ss-fin-meta[data-ss-num]::after { content: " · " attr(data-ss-num); }
/* Montant à droite (soldes). */
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td.ss-fin-solde {
    grid-column: 2; grid-row: 1 / span 3; display: flex !important; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right;
    color: var(--ss-text); font-size: 13px; font-variant-numeric: tabular-nums;
}
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr[data-ss-etat="reste"] > td.ss-fin-solde b { color: var(--ss-etat-attention); }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr[data-ss-etat="trop"] > td.ss-fin-solde b { color: var(--ss-etat-info); }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td.ss-fin-solde b { color: var(--ss-text); }
html[data-ss-soleil="on"] body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr > td.ss-fin-solde b { color: var(--ss-text); }
/* Ligne de total, en bas, dans les deux monnaies. */
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-total {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px !important; background: var(--ss-surface-2) !important; animation: none;
}
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-total > td { grid-column: auto; color: var(--ss-text); font-size: 13px; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-total > td.ss-fin-cellule-vide { display: none !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-total > td:last-child { display: flex !important; flex-direction: column; align-items: flex-end; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-soldes.ss-fin-soldes > tbody > tr.ss-fin-total > td:first-child b { display: none; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes > tbody > tr.ss-fin-total > td[data-ss-libelle]::before { content: attr(data-ss-libelle); display: block; color: var(--ss-text-2); font-weight: 600; font-size: 12px; }
/* Export et recherche de Rosario : en action secondaire, sous la liste. */
body.modules #body[data-ss-section="finance"] .list-outer.ss-fin-liste { display: flex; flex-direction: column; }
body.modules #body[data-ss-section="finance"] .list-outer.ss-fin-liste > .list-nav { order: 2; margin-top: 8px; border-radius: 12px; }
body.modules #body[data-ss-section="finance"] .list-outer.ss-fin-liste > .list-wrapper { order: 1; }
/* Recherche et filtres en pastilles. */
#body[data-ss-section="finance"] .ss-fin-filtres { max-width: 760px; margin: 4px 0 10px; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] input.ss-fin-chercher { display: block; width: 100%; box-sizing: border-box; min-height: 46px; padding: 8px 12px; border-radius: 12px; font-size: 15px; }
#body[data-ss-section="finance"] .ss-fin-pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
#body[data-ss-section="finance"] .ss-fin-pastilles > button,
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-fin-pastilles > select.ss-fin-classe {
    flex: none; width: auto; min-height: 44px; margin: 0; padding: 6px 12px; border: 1px solid var(--ss-chip-border); border-radius: 999px;
    background: var(--ss-chip-bg); color: var(--ss-chip-text); font: 600 12px/1.2 "Segoe UI", Roboto, system-ui, sans-serif; cursor: pointer;
}
#body[data-ss-section="finance"] .ss-fin-pastilles > button[aria-pressed="true"] { background: var(--ss-text); color: var(--ss-d2-surface); border-color: var(--ss-text); }
#body[data-ss-section="finance"] .ss-fin-pastilles > button:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 2px; }

/* Caisse du jour : jour, chiffres USD et FC séparés, opérations. */
#body[data-ss-section="finance"] .ss-fin-jour {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; margin: 4px 0 10px; padding: 4px;
    border: 1px solid var(--ss-border); border-radius: 12px; background: var(--ss-d2-surface); color: var(--ss-text);
}
#body[data-ss-section="finance"] .ss-fin-jour-texte { flex: 1 1 140px; min-width: 0; text-align: center; font-size: 15px; }
#body[data-ss-section="finance"] .ss-fin-jour-fleche {
    flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: var(--ss-surface-2); color: var(--ss-text);
    font: 400 24px/1 "Segoe UI", Roboto, system-ui, sans-serif; cursor: pointer; transition: transform .15s var(--ss-ease, ease);
}
#body[data-ss-section="finance"] .ss-fin-jour-fleche:active { transform: scale(.94); }
#body[data-ss-section="finance"] .ss-fin-jour-fleche:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 1px; }
#body[data-ss-section="finance"] .ss-fin-jour .ss-fin-jour-auj { flex: 1 1 100%; }
#body[data-ss-section="finance"] .ss-fin-periode { max-width: 760px; margin: 0 0 10px; }
#body[data-ss-section="finance"] .ss-fin-periode table.header { width: 100%; }
#body[data-ss-section="finance"] .ss-fin-periode table.header td { display: block; padding: 6px 0; color: var(--ss-text); }
#body[data-ss-section="finance"] .ss-fin-periode .nobr { white-space: normal; display: inline-flex; flex-wrap: wrap; gap: 4px; }
#body[data-ss-section="finance"] .ss-fin-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 760px; }
#body[data-ss-section="finance"] .ss-fin-chiffre {
    display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border: 1px solid var(--ss-border); border-radius: 12px;
    background: var(--ss-d2-surface); color: var(--ss-text); animation: ss-entree .35s var(--ss-ease, ease) both;
}
#body[data-ss-section="finance"] .ss-fin-chiffre + .ss-fin-chiffre { animation-delay: 50ms; }
#body[data-ss-section="finance"] .ss-fin-chiffre small { color: var(--ss-text-2); font-size: 11px; }
#body[data-ss-section="finance"] .ss-fin-chiffre b { font-size: 19px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#body[data-ss-section="finance"] .ss-fin-chiffre em { color: var(--ss-text-2); font-size: 11px; font-style: normal; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr { padding-left: 12px; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td.ss-fin-cellule-vide.ss-fin-cellule-vide { display: none !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td:is(.ss-fin-entree, .ss-fin-frais) {
    grid-column: 2; grid-row: 1 / span 3; display: flex !important; flex-direction: column; align-items: flex-end; text-align: right;
    color: var(--ss-text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td.ss-fin-entree { color: var(--ss-etat-fait); }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"], [data-ss-soleil="on"]) body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td.ss-fin-entree { color: var(--ss-text); }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td.ss-fin-frais::after { content: "frais"; color: var(--ss-text-2); font-size: 11px; font-weight: 400; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td.ss-fin-quoi { grid-row: 2; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td.ss-fin-quoi::before { content: attr(data-ss-prefixe); }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr > td.ss-fin-quand { grid-row: 3; color: var(--ss-text-2); font-size: 11px; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr.ss-fin-total > td { grid-column: 1 / -1; display: block !important; text-align: right; font-variant-numeric: tabular-nums; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr.ss-fin-total > td:nth-child(3) { order: -1; font-size: 15px; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr.ss-fin-total > td::before { text-align: left; margin-bottom: 2px; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr.ss-fin-total > td.ss-fin-cellule-vide.ss-fin-cellule-vide { display: none !important; }
body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-caisse.ss-fin-caisse > tbody > tr.ss-fin-total > td:first-child { font-weight: 400; }

/* Zones à toucher d'au moins 44 px : lien des brouillons, boutons d'action des paiements, export sous la liste. */
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-finance-link { background: var(--ss-d2-surface); border-color: var(--ss-border); }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .ss-finance-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ss-link); }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .list-outer.payments td a:has(> img.button) { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .list-outer.payments td a[href*="schoolsafe-receipt"] { display: inline-flex; align-items: center; min-height: 44px; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .list-outer.payments td .onclick { display: flex; align-items: center; min-height: 44px; min-width: 44px; }
html[data-ss-theme] body.modules #body[data-ss-section="finance"] .list-outer.ss-fin-liste > .list-nav a.list-save { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }

/* ---------- 5. Mouvement : coupé si l'appareil le demande ou en économie de données ---------- */
@media (prefers-reduced-motion: reduce) {
    body.modules #body[data-ss-section="finance"] :is(.ss-fin-confirme, .ss-fin-chiffre, .ss-cascade > *, tr, .ss-fin-fl) { animation: none !important; transition: none !important; }
}
html[data-ss-econome="on"] body.modules #body[data-ss-section="finance"] :is(.ss-fin-confirme, .ss-fin-chiffre, .ss-cascade > *, tr, .ss-fin-fl) { animation: none !important; transition: none !important; }
/* Plein soleil : bordures foncées, aucune ombre. */
html[data-ss-soleil="on"] body.modules #body[data-ss-section="finance"] :is(.ss-fin-sujet, .ss-fin-plus, .ss-fin-jour, .ss-fin-chiffre, .ss-fin-confirme, .ss-fin-vide, .ss-fin-seg),
html[data-ss-soleil="on"] #ss-fin-accueil :is(.ss-fin-tuile, .ss-fin-partie),
html[data-ss-soleil="on"] body.modules #body[data-ss-section="finance"][data-ss-page] table.list.widefat.ss-fin-lignes.ss-fin-lignes { border: 2px solid var(--ss-border) !important; box-shadow: none !important; }
html[data-ss-theme="relief"] body.modules #body[data-ss-section="finance"] :is(.ss-fin-sujet, .ss-fin-chiffre, .ss-fin-jour),
html[data-ss-theme="relief"] #ss-fin-accueil :is(.ss-fin-tuile, .ss-fin-partie) { border-color: transparent !important; box-shadow: var(--ss-shadow-petit) !important; }
@media print {
    body.modules #body[data-ss-section="finance"] :is(.ss-fin-action, .ss-fin-filtres, .ss-fin-jour, .ss-fin-enregistrer) { position: static !important; }
}

/* ---------- Socle, 4e lot (08/11) : Personnel et Trésorerie en vert Finance (fin de l'indigo #4e5990) ---------- */
/* interior-screens.css, accounting-impeccable.css et ecc-consistency.css donnaient l'accent indigo aux pages Accounting/ ;
   la maquette validée (docs/maquettes/finance-v4-kit.html) les met dans la rubrique Finance, en vert. Le gabarit garde
   ses propres variables (ss-kit.css). */
#body[data-ss-page^="Accounting/"] {
    --school-ink: #253629 !important; --school-muted: #526756 !important; --school-line: #d9e5d5 !important;
    --school-wash: #f1f7ee !important; --school-accent: #23682d !important; --school-focus: #23682d !important;
    --ss-page-accent: #23682d !important;
}


/* Socle du kit (08/11) : pièces de la maquette pour les pages qui déclarent un gabarit serveur (.ss-gabarit), en dernier. */

/* ===== assets/themes/SchoolSafeCodex/ss-kit.css ===== */

/* Socle du kit SchoolSafe (08/11) : les pièces de la maquette validée docs/maquettes/finance-v1.html (charte
   docs/design/CHARTE_DESIGN_SCHOOLSAFE.md § 4 à § 9). Le balisage est écrit par le serveur
   (ProgramFunctions/SchoolSafeGabarit.fnc.php) dans un conteneur .ss-gabarit ; seules les pages qui déclarent un
   gabarit en reçoivent un, les autres pages ne changent pas. La maquette refaite avec ce kit
   (docs/maquettes/finance-v2-kit.html) charge une copie identique de cette feuille.
   Couleurs : variables --ss-* des 5 thèmes (ss-design.css), avec en secours les valeurs de la maquette ; la teinte
   libre, le plein soleil et l'économie de données s'appliquent. Tailles en px multipliées par --ss-texte-k (A− / A / A+).
   Importée en dernier par stylesheet.css. Les !important ne servent qu'à battre les anciennes couches qui visent
   tous les champs, boutons et titres de #body (redesign.css, secondary-surfaces.css, ss-design.css). */

/* ---------- 0. Racine du gabarit : variables et texte de base ---------- */
.ss-gabarit {
    --k: var(--ss-texte-k, 1);
    --k-carte: var(--ss-d2-surface, var(--ss-surface, #fff));
    --k-champ: var(--ss-d2-surface, var(--ss-surface, #fff));
    --k-bord: var(--ss-border, #dde3e0);
    --k-filet: var(--ss-line, #dde3e0);
    --k-doux: var(--ss-surface-2, #f3f6f5);
    --k-txt: var(--ss-text, #172333);
    --k-txt2: var(--ss-text-2, #5d6b7e);
    --k-txt3: var(--ss-text-3, #8a96a3);
    --k-page: var(--ss-page-text, #172333);
    --k-page2: var(--ss-text-2, #5d6b7e);
    --k-vert: var(--ss-vert, #08766b);
    --k-vert2: var(--ss-vert-2, #0d9488);
    --k-actif: var(--ss-vert, #08766b);
    --k-rub: #15803d;
    --k-rub-fond: #e6efe9;
    --k-ok-bg: var(--ss-etat-fait-bg, #e1f5ee);      --k-ok: var(--ss-etat-fait, #08766b);
    --k-att-bg: var(--ss-etat-attention-bg, #faeeda); --k-att: var(--ss-etat-attention, #854f0b);
    --k-urg-bg: var(--ss-etat-urgent-bg, #fcebeb);    --k-urg: var(--ss-etat-urgent, #a32d2d);
    --k-inf-bg: var(--ss-etat-info-bg, #e6f1fb);      --k-inf: var(--ss-etat-info, #185fa5);
    --k-ombre-seg: 0 1px 3px rgba(0, 0, 0, .12);
    --k-ombre-action: 0 8px 20px rgba(8, 118, 107, .35);
    --k-ease: var(--ss-ease, cubic-bezier(.2, .7, .2, 1));
    --k-onglet: var(--ss-onglet-h, 64px);
    --k-action-droite: 68px;
    --k-police: "Segoe UI", Roboto, system-ui, sans-serif;
    box-sizing: border-box;
    color: var(--k-page);
    font: 400 calc(14px * var(--k))/1.45 var(--k-police);
    text-align: left;
}
.ss-gabarit *, .ss-gabarit *::before, .ss-gabarit *::after { box-sizing: border-box; }
.ss-gabarit[data-ss-gabarit="formulaire"] { max-width: 640px; }
/* Fond de page sombre ou en photo : le texte posé sur le fond suit le thème. */
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) .ss-gabarit { --k-rub: var(--ss-link, #5eead4); --k-rub-fond: var(--ss-surface-2, #1c3029); --k-actif: var(--ss-focus, #2dd4bf); }
html[data-ss-soleil="on"] .ss-gabarit { --k-rub: #005a51; --k-page2: var(--ss-text-2, #1a1a1a); --k-actif: #000; }
/* À côté des boutons ronds JASPE et Watch de l'application (56 px de large), l'action principale s'arrête plus tôt. */
html[data-ss-theme] .ss-gabarit { --k-action-droite: 76px; }

/* ---------- 1. En-tête de page : un titre et une phrase d'aide ---------- */
.ss-gabarit .ss-k-entete { margin: 0; padding: 18px 0 0; border: 0; background: none; }
html .ss-gabarit h2.ss-k-titre {
    display: block; margin: 2px 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
    color: var(--k-page) !important; font: 700 calc(20px * var(--k))/1.45 var(--k-police) !important;
    letter-spacing: 0; text-transform: none; text-align: left;
}
html .ss-gabarit p.ss-k-aide {
    max-width: none; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; background: none !important;
    color: var(--k-page2) !important; font: 400 calc(13px * var(--k))/1.45 var(--k-police) !important;
}

/* ---------- 2. Carte, carte du sujet (élève), colonnes « reste » ---------- */
.ss-gabarit .ss-k-carte {
    display: block; margin: 0; padding: 0; border: 1px solid var(--k-bord); border-radius: 14px;
    background: var(--k-carte); color: var(--k-txt); box-shadow: var(--ss-shadow, none);
}
html .ss-gabarit a.ss-k-carte { color: var(--k-txt) !important; text-decoration: none !important; transition: transform .15s var(--k-ease); }
.ss-gabarit a.ss-k-carte:active { transform: scale(.99); }
.ss-gabarit .ss-k-sujet { display: flex; gap: 12px; align-items: center; padding: 12px; }
.ss-gabarit .ss-k-ph {
    position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden;
    border-radius: 14px; background: var(--k-rub-fond); color: var(--k-rub); font-weight: 700;
}
.ss-gabarit .ss-k-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-gabarit .ss-k-sujet-nom { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ss-gabarit .ss-k-sujet-nom b { font-weight: 700; }
.ss-gabarit .ss-k-sujet-nom small { color: var(--k-txt2); font-size: smaller; }
.ss-gabarit .ss-k-reste { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--k-filet); }
.ss-gabarit .ss-k-reste > div { min-width: 0; padding: 10px 12px; }
.ss-gabarit .ss-k-reste > div + div { border-left: 1px solid var(--k-filet); }
.ss-gabarit .ss-k-reste small { display: block; color: var(--k-txt2); font-size: calc(11px * var(--k)); }
.ss-gabarit .ss-k-reste b { font-size: calc(16px * var(--k)); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ss-gabarit .ss-k-reste b.ss-k-du { color: var(--k-att); }
.ss-gabarit .ss-k-reste b.ss-k-credit { color: var(--k-inf); }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"], [data-ss-soleil="on"]) .ss-gabarit .ss-k-reste b:is(.ss-k-du, .ss-k-credit) { color: var(--k-txt); }
/* Une monnaie par ligne (le serveur les sépare par un saut de ligne) : jamais additionnées. */

/* ---------- 3. Pastille d'état ---------- */
.ss-gabarit .ss-k-p {
    display: inline-block; flex: none; padding: 3px 8px; border-radius: 999px;
    font-size: calc(11px * var(--k)); font-weight: 700; line-height: 1.45; white-space: nowrap;
    background: var(--k-inf-bg); color: var(--k-inf);
}
.ss-gabarit .ss-k-p--ok { background: var(--k-ok-bg); color: var(--k-ok); }
.ss-gabarit .ss-k-p--att { background: var(--k-att-bg); color: var(--k-att); }
.ss-gabarit .ss-k-p--urg { background: var(--k-urg-bg); color: var(--k-urg); }
.ss-gabarit .ss-k-p--inf { background: var(--k-inf-bg); color: var(--k-inf); }
html .ss-gabarit a.ss-k-p { text-decoration: none !important; }
html .ss-gabarit a.ss-k-p--ok { color: var(--k-ok) !important; }
html[data-ss-soleil="on"] .ss-gabarit .ss-k-p { outline: 1px solid currentColor; }

/* ---------- 4. Texte d'appoint, titre de section, message ---------- */
html .ss-gabarit p.ss-k-note { margin: 8px 2px 0 !important; padding: 0; color: var(--k-page2) !important; font: 400 calc(12px * var(--k))/1.45 var(--k-police) !important; }
html .ss-gabarit p.ss-k-note a { color: var(--ss-page-link, var(--ss-link, #08766b)) !important; }
html .ss-gabarit .ss-k-sec {
    display: block; margin: 16px 0 8px !important; padding: 0 !important; border: 0 !important; background: none !important;
    color: var(--k-page2) !important; font: 700 calc(13px * var(--k))/1.45 var(--k-police) !important; letter-spacing: 0; text-transform: none;
}
.ss-gabarit .ss-k-vide {
    margin: 0; padding: 14px 12px; border: 1px dashed var(--k-bord); border-radius: 14px;
    background: var(--k-carte); color: var(--k-txt2); font-size: calc(13px * var(--k));
}
/* Messages du serveur (refus, annulation, brouillon) dans le gabarit : une carte d'état, même texte. */
html .ss-gabarit :is(div.error, div.updated, div.warning, .ss-k-message) {
    margin: 0 0 12px !important; padding: 10px 12px !important; border: 1px solid var(--k-bord) !important; border-radius: 12px !important;
    background: var(--k-inf-bg) !important; color: var(--k-inf) !important; font: 600 calc(13px * var(--k))/1.45 var(--k-police) !important; box-shadow: none !important;
}
html .ss-gabarit div.error { background: var(--k-urg-bg) !important; color: var(--k-urg) !important; }
html .ss-gabarit div.updated { background: var(--k-ok-bg) !important; color: var(--k-ok) !important; }
html .ss-gabarit :is(div.error, div.updated, div.warning) :is(p, ul, li) { margin: 0 !important; color: inherit !important; font: inherit !important; }
html .ss-gabarit :is(div.error, div.updated, div.warning) ul { padding-left: 18px !important; }
html .ss-gabarit :is(div.error, div.updated, div.warning) img { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- 5. Champs : étiquette au-dessus, champ large ---------- */
.ss-gabarit .ss-k-champ { display: block; margin: 12px 0 0; padding: 0; border: 0; }
html .ss-gabarit .ss-k-etiquette {
    display: block; margin: 0 0 5px !important; padding: 0 !important; color: var(--k-page2) !important;
    font: 700 calc(11px * var(--k))/1.45 var(--k-police) !important; letter-spacing: .06em; text-transform: uppercase;
}
html .ss-gabarit .ss-k-sous-etiquette {
    display: block; margin: 8px 0 5px !important; color: var(--k-page2) !important;
    font: 400 calc(12px * var(--k))/1.45 var(--k-police) !important; letter-spacing: 0; text-transform: none;
}
/* Le champ (div, ou vrai champ du formulaire) : 48 px, coins de 12 px, texte de 15 px. */
html .ss-gabarit .ss-k-in,
html .ss-gabarit .ss-k-champ > :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="file"]), select, textarea) {
    display: flex; align-items: center; width: 100% !important; max-width: 100% !important; min-width: 0; height: 48px !important; min-height: 48px;
    margin: 0 !important; padding: 0 12px !important; border: 1px solid var(--k-bord) !important; border-radius: 12px !important;
    background: var(--k-champ) !important; color: var(--k-txt) !important; box-shadow: none !important; outline: 0;
    font: 400 calc(15px * var(--k))/1.45 var(--k-police) !important; text-align: left; -webkit-appearance: none; appearance: none;
}
html .ss-gabarit .ss-k-champ > select { -webkit-appearance: auto; appearance: auto; padding-right: 8px !important; }
html .ss-gabarit .ss-k-champ > :is(input, select, textarea)::placeholder { color: var(--k-txt3); opacity: 1; }
/* Champ actif entouré de vert (charte § 7). */
html .ss-gabarit .ss-k-in.ss-k-actif.ss-k-actif.ss-k-actif,
html .ss-gabarit .ss-k-champ > :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="file"]), select, textarea):is(:focus, .ss-k-actif),
html .ss-gabarit .ss-k-date:focus-within {
    border-color: var(--k-actif) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-actif) 15%, transparent) !important; outline: 0;
}
html[data-ss-soleil="on"] .ss-gabarit :is(.ss-k-in, .ss-k-champ > input, .ss-k-champ > select) { border-width: 2px !important; }
/* Nombre : sans flèches (le clavier numérique suffit). */
.ss-gabarit .ss-k-champ > input[type="number"] { -moz-appearance: textfield; }
.ss-gabarit .ss-k-champ > input[type="number"]::-webkit-inner-spin-button,
.ss-gabarit .ss-k-champ > input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ss-gabarit .ss-k-champ > script + select, .ss-gabarit .ss-k-champ > select + select { margin-top: 0 !important; }
/* Aide sous un champ. */
html .ss-gabarit .ss-k-aide-champ { display: block; margin: 4px 2px 0 !important; color: var(--k-txt2) !important; font: 400 calc(12px * var(--k))/1.45 var(--k-police) !important; }

/* Date unique : le texte du jour, un sélecteur de date par-dessus ; les trois listes de Rosario restent dans le
   formulaire (mêmes noms), masquées, et reçoivent le choix. */
.ss-gabarit .ss-k-date { position: relative; cursor: pointer; }
.ss-gabarit .ss-k-date-texte { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html .ss-gabarit .ss-k-date input.ss-k-date-saisie {
    position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important; min-height: 0; margin: 0 !important; padding: 0 !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important; opacity: 0; cursor: pointer;
}
.ss-gabarit .ss-k-date input.ss-k-date-saisie:disabled { display: none; }
.ss-gabarit .ss-k-date-natif { display: none !important; }

/* Choix court en boutons segmentés (USD / FC) : de vrais boutons radio, même nom et mêmes valeurs que la liste. */
.ss-gabarit .ss-k-seg {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0; padding: 3px;
    border: 1px solid var(--k-bord); border-radius: 12px; background: var(--k-doux);
}
.ss-gabarit .ss-k-seg > label { position: relative; display: block; margin: 0; padding: 0; cursor: pointer; }
html .ss-gabarit .ss-k-seg > label > input {
    position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none;
}
/* Libellé court en capitales espacées, comme les étiquettes (rendu de la maquette validée). */
html .ss-gabarit .ss-k-seg > label > span {
    display: block; margin: 0 0 5px; padding: 10px; border-radius: 9px; color: var(--k-txt2) !important;
    font: 700 calc(11px * var(--k))/1.45 var(--k-police) !important; letter-spacing: .06em; text-transform: uppercase; text-align: center;
    transition: background-color .2s, transform .15s var(--k-ease);
}
html .ss-gabarit .ss-k-seg > label > input:checked + span { background: var(--k-carte); box-shadow: var(--k-ombre-seg); color: var(--k-rub) !important; }
.ss-gabarit .ss-k-seg > label:active > span { transform: scale(.97); }
.ss-gabarit .ss-k-seg > label > input:focus-visible + span { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 1px; }
html[data-ss-soleil="on"] .ss-gabarit .ss-k-seg > label > input:checked + span { outline: 2px solid #000; }
html[data-ss-theme="relief"] .ss-gabarit .ss-k-seg { box-shadow: var(--ss-shadow-creux, none); border-color: transparent; }

/* Options rares, repliées (« Plus d'options »). */
.ss-gabarit .ss-k-plus {
    display: block; margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--k-bord); border-radius: 12px;
    background: transparent; color: var(--k-page2); font-size: calc(13px * var(--k));
}
html .ss-gabarit .ss-k-plus > summary {
    display: block; list-style: none; cursor: pointer; color: var(--k-page2) !important;
    font: 400 calc(13px * var(--k))/1.45 var(--k-police) !important;
}
.ss-gabarit .ss-k-plus > summary::-webkit-details-marker { display: none; }
.ss-gabarit .ss-k-plus > summary::marker { content: ""; }
/* Toute la bande repliée se touche (au moins 44 px : marges internes comprises). */
.ss-gabarit .ss-k-plus > summary { margin: -10px -12px !important; padding: 10px 12px !important; min-height: 44px; }
.ss-gabarit .ss-k-plus > summary:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 0; border-radius: 12px; }
.ss-gabarit .ss-k-plus[open] { background: var(--k-carte); color: var(--k-txt); }
.ss-gabarit .ss-k-plus[open] > summary { margin-bottom: 0 !important; }
.ss-gabarit .ss-k-plus-corps { padding: 2px 0 2px; }
.ss-gabarit .ss-k-plus .ss-k-etiquette, .ss-gabarit .ss-k-plus .ss-k-aide-champ { color: var(--k-txt2) !important; }
html .ss-gabarit .ss-k-plus :is(label.checkbox-label, .ss-k-case) {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; color: var(--k-txt) !important;
    font: 400 calc(14px * var(--k))/1.35 var(--k-police) !important; text-transform: none; letter-spacing: 0; cursor: pointer;
}
html .ss-gabarit .ss-k-plus input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--k-vert); }
html .ss-gabarit .ss-k-plus .onclick { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
html .ss-gabarit .ss-k-plus input[type="file"] { max-width: 100%; min-height: 44px; font-size: calc(13px * var(--k)); }
html .ss-gabarit .ss-k-plus a.ss-k-lien { display: inline-flex; align-items: center; min-height: 44px; color: var(--ss-link, #08766b) !important; }

/* ---------- 6. Liste en lignes larges ---------- */
.ss-gabarit .ss-k-ligne {
    display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 11px 12px;
    border: 0; border-top: 1px solid var(--k-filet); background: none; color: var(--k-txt); transition: transform .15s var(--k-ease);
}
.ss-gabarit .ss-k-carte > .ss-k-ligne:first-child,
.ss-gabarit .ss-k-carte > .ss-k-ligne-bloc:first-child .ss-k-ligne { border-top: 0; }
.ss-gabarit .ss-k-ligne:active { transform: scale(.98); }
.ss-gabarit .ss-k-ligne .ss-k-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ss-gabarit .ss-k-ligne .ss-k-t b { display: block; font-size: calc(14px * var(--k)); font-weight: 600; font-variant-numeric: tabular-nums; }
.ss-gabarit .ss-k-ligne .ss-k-t small { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .ss-k-ligne .ss-k-fl { flex: none; color: var(--k-txt3); }
.ss-gabarit .ss-k-ligne.ss-k-annule .ss-k-t b { text-decoration: line-through; text-decoration-color: var(--k-txt3); }
/* Ligne qui s'ouvre (« … ») : les actions natives du paiement, jamais retirées. */
.ss-gabarit .ss-k-ligne-bloc { margin: 0; padding: 0; border: 0; }
.ss-gabarit details.ss-k-ligne-bloc > summary { list-style: none; cursor: pointer; }
.ss-gabarit details.ss-k-ligne-bloc > summary::-webkit-details-marker { display: none; }
.ss-gabarit details.ss-k-ligne-bloc > summary::marker { content: ""; }
.ss-gabarit details.ss-k-ligne-bloc > summary:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -3px; border-radius: 12px; }
.ss-gabarit .ss-k-plus-ligne { flex: none; display: grid; place-items: center; width: 22px; margin: -11px -6px -11px -4px; align-self: stretch; color: var(--k-txt3); font-size: 16px; }
.ss-gabarit details[open] > summary .ss-k-plus-ligne { color: var(--k-txt); }
.ss-gabarit .ss-k-ligne-corps {
    display: grid; gap: 8px; margin: 0; padding: 4px 12px 12px; color: var(--k-txt); font-size: calc(13px * var(--k));
}
.ss-gabarit .ss-k-ligne-corps .ss-k-etiquette { margin-bottom: 2px !important; color: var(--k-txt2) !important; }
html .ss-gabarit .ss-k-ligne-corps :is(a, .onclick) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; cursor: pointer; }
html .ss-gabarit .ss-k-ligne-corps input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]) { min-height: 44px; max-width: 100%; border-radius: 10px; }
.ss-gabarit .ss-k-ligne-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.ss-gabarit .ss-k-ligne-actions br { display: none; }
.ss-gabarit .ss-k-ligne-corps img.button { width: 18px; height: 18px; }
/* Total par monnaie, en bas d'une liste. */
.ss-gabarit .ss-k-total {
    display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-top: 1px solid var(--k-filet);
    border-radius: 0 0 14px 14px; background: var(--k-doux); color: var(--k-txt); font-weight: 700; font-variant-numeric: tabular-nums;
}
.ss-gabarit .ss-k-total small { font-weight: 400; color: var(--k-txt2); }

/* ---------- 7. Chiffres clés et tuiles ---------- */
.ss-gabarit .ss-k-chiffres { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ss-gabarit .ss-k-chiffre { padding: 10px 12px; border: 1px solid var(--k-bord); border-radius: 12px; background: var(--k-doux); color: var(--k-txt); }
.ss-gabarit .ss-k-chiffre small { display: block; color: var(--k-txt2); font-size: calc(11px * var(--k)); }
.ss-gabarit .ss-k-chiffre b { display: block; font-size: calc(19px * var(--k)); font-variant-numeric: tabular-nums; }
.ss-gabarit .ss-k-chiffre em { font-style: normal; font-size: calc(11px * var(--k)); color: var(--k-txt3); }
.ss-gabarit .ss-k-tuiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ss-gabarit .ss-k-tuiles.ss-k-tuiles--1 { grid-template-columns: 1fr; margin-top: 12px; }
html .ss-gabarit .ss-k-tuile {
    display: grid; place-items: center; min-height: 76px; padding: 8px; border: 1px solid var(--k-bord); border-radius: 12px;
    background: var(--k-carte); color: var(--k-txt) !important; font: 600 calc(12px * var(--k))/1.45 var(--k-police); text-align: center;
    text-decoration: none !important; transition: transform .15s var(--k-ease);
}
.ss-gabarit .ss-k-tuile i { font-style: normal; font-size: calc(20px * var(--k)); color: var(--k-rub); }
.ss-gabarit .ss-k-tuile:active { transform: scale(.98); }

/* ---------- 8. Action principale : fixe en bas sur téléphone, au-dessus de la barre de navigation ---------- */
/* :is(html, #body) : dans l'application, le sélecteur porte #body pour passer devant les boutons d'envoi
   recolorés de #body (redesign.css, finance-impeccable.css, secondary-surfaces.css) ; dans la maquette, il vaut html. */
:is(html, #body) .ss-gabarit :is(input, a).ss-k-action.ss-k-action {
    position: fixed; left: 12px; right: var(--k-action-droite); bottom: calc(var(--k-onglet) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 85;
    display: flex; align-items: center; justify-content: center; width: auto !important; height: 50px !important; min-height: 50px; margin: 0 !important; padding: 0 12px !important;
    border: 0 !important; border-radius: 14px !important; background: linear-gradient(135deg, var(--k-vert), var(--k-vert2)) !important;
    color: #fff !important; box-shadow: var(--k-ombre-action) !important; cursor: pointer; text-decoration: none !important; text-shadow: none !important;
    /* Rendu de la maquette validée : texte de bouton par défaut du navigateur (13,33 px, normal). */
    font: 400 calc(13.3333px * var(--k))/normal Arial, sans-serif !important; letter-spacing: 0; text-transform: none;
    transition: transform .15s var(--k-ease);
}
:is(html, #body) .ss-gabarit :is(input, a).ss-k-action.ss-k-action:hover { filter: none; }
:is(html, #body) .ss-gabarit :is(input, a).ss-k-action.ss-k-action:active { transform: scale(.98); }
:is(html, #body) .ss-gabarit :is(input, a).ss-k-action.ss-k-action:focus-visible { outline: 3px solid var(--ss-focus, #08766b) !important; outline-offset: 2px; }
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) #body .ss-gabarit :is(input, a).ss-k-action.ss-k-action { color: var(--ss-text, #e6f2ee) !important; }
html[data-ss-soleil="on"] #body .ss-gabarit :is(input, a).ss-k-action.ss-k-action { background: var(--ss-accent, #005a51) !important; box-shadow: none !important; color: #fff !important; }
/* Le contenu ne passe pas sous l'action fixe. */
.ss-gabarit .ss-k-barre { margin: 0; padding: 0; }
@media screen and (max-width: 700px) { .ss-gabarit[data-ss-gabarit="formulaire"] { padding-bottom: 76px; } }
/* Ordinateur : l'action reste visible en bas de la colonne du formulaire. La maquette, qui montre toujours un
   téléphone, garde la disposition du téléphone (classe ss-k-tel sur <html>). */
@media screen and (min-width: 701px) {
    html:not(.ss-k-tel) #body .ss-gabarit .ss-k-barre { position: sticky; bottom: 12px; z-index: 30; margin-top: 16px; }
    html:not(.ss-k-tel) #body .ss-gabarit :is(input, a).ss-k-action.ss-k-action { position: sticky; left: auto; right: auto; bottom: 12px; width: 100% !important; margin-top: 16px !important; }
    html:not(.ss-k-tel) #body .ss-gabarit .ss-k-barre :is(input, a).ss-k-action.ss-k-action.ss-k-action { position: static; margin-top: 0 !important; }
}

/* ---------- 9. Confirmation : message qui glisse (3 s) et carte « Paiement enregistré » ---------- */
.ss-gabarit .ss-k-toast {
    position: fixed; top: 60px; left: 12px; right: 12px; z-index: 1000; margin: 0; padding: 10px 12px;
    border: 1px solid #b9e4d4; border-radius: 12px; background: var(--k-ok-bg); color: var(--k-ok);
    font: 600 calc(14px * var(--k))/1.45 var(--k-police); pointer-events: none;
    animation: ss-k-toast 3s var(--k-ease) both;
}
html[data-ss-theme]:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) .ss-gabarit .ss-k-toast { border-color: var(--k-bord); }
@keyframes ss-k-toast { 0% { transform: translateY(-20px); opacity: 0; } 10%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@media screen and (min-width: 701px) { html:not(.ss-k-tel) #body .ss-gabarit .ss-k-toast { left: 50%; right: auto; width: min(480px, calc(100vw - 24px)); margin-left: calc(min(480px, calc(100vw - 24px)) / -2); } }
.ss-gabarit .ss-k-confirme { padding: 16px; text-align: center; }
.ss-gabarit .ss-k-coche {
    display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
    background: var(--k-ok-bg); color: var(--k-ok); font-size: 30px;
}
.ss-gabarit .ss-k-confirme-montant { font-size: calc(22px * var(--k)); font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-gabarit .ss-k-confirme small { color: var(--k-txt2); }
.ss-gabarit .ss-k-confirme .ss-k-reste { margin-top: 12px; text-align: left; }

/* ---------- 10. Apparition en cascade (listes) ---------- */
.ss-gabarit .ss-k-cascade > * { animation: ss-k-monte .4s var(--k-ease) backwards; }
.ss-gabarit .ss-k-cascade > :nth-child(2) { animation-delay: .05s; }
.ss-gabarit .ss-k-cascade > :nth-child(3) { animation-delay: .1s; }
.ss-gabarit .ss-k-cascade > :nth-child(4) { animation-delay: .15s; }
.ss-gabarit .ss-k-cascade > :nth-child(5) { animation-delay: .2s; }
.ss-gabarit .ss-k-cascade > :nth-child(n+6) { animation-delay: .25s; }
@keyframes ss-k-monte { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 11. Plein soleil, relief, mouvement réduit, économie de données, impression ---------- */
html[data-ss-soleil="on"] .ss-gabarit :is(.ss-k-carte, .ss-k-plus, .ss-k-seg, .ss-k-chiffre, .ss-k-tuile, .ss-k-vide) { border: 2px solid var(--k-bord) !important; box-shadow: none !important; }
html[data-ss-soleil="on"] .ss-gabarit .ss-k-ph img { display: none; }
html[data-ss-theme="relief"] .ss-gabarit :is(.ss-k-carte, .ss-k-chiffre, .ss-k-tuile) { border-color: transparent; box-shadow: var(--ss-shadow-petit, none); }
/* Économie de données : pas de photo chargée (image en chargement différé et masquée), les initiales restent. */
html[data-ss-econome="on"] .ss-gabarit .ss-k-ph img { display: none; }
@media (prefers-reduced-motion: reduce) {
    .ss-gabarit *, .ss-gabarit *::before, .ss-gabarit *::after { animation: none !important; transition: none !important; }
}
html[data-ss-econome="on"] .ss-gabarit *, html[data-ss-econome="on"] .ss-gabarit *::before, html[data-ss-econome="on"] .ss-gabarit *::after { animation: none !important; transition: none !important; }
@media print {
    #body .ss-gabarit :is(.ss-k-action, .ss-k-barre) { position: static !important; }
    .ss-gabarit .ss-k-toast { display: none !important; }
}

/* ---------- 12. Ménage : couches anciennes neutralisées dans un gabarit (fichiers gardés) ---------- */
/* Palette jaune (secondary-surfaces.css) et palettes vertes (branch-page-heading.css, finance-impeccable.css) :
   sans effet dans le gabarit, qui lit seulement les --ss-* du thème. */
#body .ss-gabarit { --school-wash: transparent; --school-accent: var(--ss-accent, #08766b); --ss-page-accent: var(--ss-accent, #08766b); }
/* Barre de titre et bandeau d'aide posés par script (scripts.js ne les crée plus quand un gabarit est là). */
#body:has(> .ss-gabarit) > :is(header.ss-page-heading, p.ss-page-explanation) { display: none !important; }
/* Pas de fond blanc imposé à #body (interior-screens.css) sous un gabarit : le fond du thème reste visible. */
html[data-ss-theme] body.modules #body:has(> .ss-gabarit) { background: transparent !important; }

/* ---------- 13. Liste (écrans 4 et 5) : recherche, filtres en pastilles, ligne d'élève, montant, jour ---------- */
/* Socle, 2e lot (08/11) : Soldes des élèves et Caisse du jour (modèle Liste), accueil Finance (Tableau de bord). */
.ss-gabarit:is([data-ss-gabarit="liste"], [data-ss-gabarit="tableau-de-bord"]) { max-width: 720px; }
@media screen and (max-width: 700px) { .ss-gabarit:is([data-ss-gabarit="liste"], [data-ss-gabarit="tableau-de-bord"]):has(.ss-k-action) { padding-bottom: 76px; } }
.ss-gabarit .ss-k-recherche { display: block; margin: 0; padding: 0; border: 0; }
/* Recherche : la barre de la maquette (46 px), avec un vrai champ (GET de la page, navigation AJAX de Rosario). */
html .ss-gabarit label.ss-k-rech {
    display: flex; align-items: center; gap: 0; height: 46px; margin: 0 !important; padding: 0 12px !important;
    border: 1px solid var(--k-bord); border-radius: 12px; background: var(--k-champ); color: var(--k-txt3) !important;
    font: 400 calc(14px * var(--k))/1.45 var(--k-police) !important; letter-spacing: 0; text-transform: none; cursor: text;
}
.ss-gabarit .ss-k-rech > span { flex: none; }
html .ss-gabarit .ss-k-rech > input[type="search"] {
    flex: 1; min-width: 0; width: auto !important; max-width: none !important; height: 100% !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
    box-shadow: none !important; outline: 0; color: var(--k-txt) !important; font: inherit !important; -webkit-appearance: none; appearance: none;
}
html .ss-gabarit .ss-k-rech > input::placeholder { color: var(--k-txt3); opacity: 1; }
.ss-gabarit .ss-k-rech > input::-webkit-search-decoration { -webkit-appearance: none; }
html .ss-gabarit .ss-k-rech:focus-within { border-color: var(--k-actif); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-actif) 15%, transparent); }
/* Filtres en pastilles : une rangée qui défile ; chaque pastille se touche sur 44 px (zone agrandie au-dessus et
   au-dessous, dans les marges internes de la rangée, sans changer le dessin). */
.ss-gabarit .ss-k-filtres { display: flex; gap: 6px; overflow: auto; margin: 4px 0 -2px; padding: 6px 0 8px; scrollbar-width: none; }
.ss-gabarit .ss-k-filtres::-webkit-scrollbar { display: none; }
html .ss-gabarit .ss-k-filtre {
    position: relative; flex: none; display: block; margin: 0 !important; padding: 7px 12px !important; border: 1px solid var(--k-bord); border-radius: 999px;
    background: var(--k-carte); color: var(--k-txt) !important; font: 400 calc(12px * var(--k))/1.45 var(--k-police) !important;
    letter-spacing: 0; text-transform: none; text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.ss-gabarit .ss-k-filtre::after { content: ""; position: absolute; inset: -7px -1px; }
html .ss-gabarit .ss-k-filtre.ss-k-filtre--on { background: var(--k-txt); border-color: var(--k-txt); color: var(--k-carte) !important; }
.ss-gabarit a.ss-k-filtre:focus-visible, .ss-gabarit .ss-k-filtre--choix:focus-within { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 1px; }
/* « Classe ▾ » : la pastille de la maquette, avec la vraie liste par-dessus (transparente), envoyée au choix. */
html .ss-gabarit .ss-k-filtre--choix > select {
    position: absolute; inset: -6px 0; z-index: 1; width: 100% !important; max-width: none !important; height: calc(100% + 12px) !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; font-size: 16px !important;
}
/* Ligne d'élève (lien vers Encaisser) : initiales, nom et classe, montant et état. */
html .ss-gabarit a.ss-k-ligne { color: var(--k-txt) !important; text-decoration: none !important; }
.ss-gabarit a.ss-k-ligne:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -3px; border-radius: 12px; }
@media (hover: hover) { .ss-gabarit a.ss-k-ligne:hover { background: var(--k-doux); } }
.ss-gabarit .ss-k-av {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--k-rub-fond); color: var(--k-rub); font-size: calc(12px * var(--k)); font-weight: 700;
}
.ss-gabarit .ss-k-ligne .ss-k-m { text-align: right; font-size: calc(13px * var(--k)); font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-gabarit .ss-k-ligne .ss-k-m small { display: block; color: var(--k-txt3); font-size: calc(11px * var(--k)); font-weight: 400; }
.ss-gabarit .ss-k-ligne .ss-k-m--urg { color: var(--k-urg); }
.ss-gabarit .ss-k-ligne .ss-k-m--inf { color: var(--k-inf); }
.ss-gabarit .ss-k-ligne .ss-k-m--ok { color: var(--k-ok); }
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"], [data-ss-soleil="on"]) .ss-gabarit .ss-k-ligne .ss-k-m:is(.ss-k-m--urg, .ss-k-m--inf, .ss-k-m--ok) { color: var(--k-txt); }
/* Jour de la caisse : le champ de la maquette, flèches ‹ › (zones de 44 px, sans changer le dessin) et « Aujourd'hui ». */
html .ss-gabarit .ss-k-in.ss-k-jour { margin: 0 0 10px !important; }
.ss-gabarit .ss-k-jour-t { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
html .ss-gabarit a.ss-k-jour-fl {
    position: relative; display: inline-block; margin: -12px -19px; padding: 12px 19px; color: inherit !important; text-decoration: none !important;
}
.ss-gabarit a.ss-k-jour-fl:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -8px; border-radius: 12px; }
html .ss-gabarit a.ss-k-jour-auj {
    display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 0 0 10px;
    color: var(--ss-link, #08766b) !important; font: 600 calc(13px * var(--k))/1.2 var(--k-police) !important; text-decoration: none !important; white-space: nowrap;
}
/* Liens d'appoint (export, impression, vue étendue) : zone à toucher de 44 px de haut sans décaler le texte. */
html .ss-gabarit p.ss-k-note a { display: inline-block; padding: 14px 0; margin: -14px 0; }
/* Période libre et choix Transactions / Totaux natifs, repliés sous la caisse. */
.ss-gabarit .ss-k-periode { margin-top: 12px; }
.ss-gabarit .ss-k-periode .ss-k-plus-corps { overflow-x: auto; }

/* ---------- 14. Tableau de bord (écran 1) : chiffres cliquables, parties de la rubrique ---------- */
html .ss-gabarit a.ss-k-chiffre { display: block; color: var(--k-txt) !important; text-decoration: none !important; transition: transform .15s var(--k-ease); }
.ss-gabarit a.ss-k-chiffre:active { transform: scale(.98); }
.ss-gabarit a.ss-k-chiffre:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 1px; }
.ss-gabarit .ss-k-chiffre b.ss-k-chiffre-texte { font-size: calc(15px * var(--k)); }
.ss-gabarit .ss-k-rub { display: grid; gap: 8px; }
.ss-gabarit .ss-k-partie { margin: 0; padding: 0; border: 1px solid var(--k-bord); border-radius: 12px; background: var(--k-carte); color: var(--k-txt); }
.ss-gabarit .ss-k-partie > summary.ss-k-ligne { border-top: 0; list-style: none; cursor: pointer; }
.ss-gabarit .ss-k-partie > summary::-webkit-details-marker { display: none; }
.ss-gabarit .ss-k-partie > summary::marker { content: ""; }
.ss-gabarit .ss-k-partie > summary:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -3px; border-radius: 12px; }
.ss-gabarit .ss-k-partie .ss-k-fl { transition: transform .2s var(--k-ease); }
.ss-gabarit .ss-k-partie[open] > summary .ss-k-fl { transform: rotate(90deg); }
.ss-gabarit .ss-k-num {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--k-rub-fond); color: var(--k-rub); font-size: calc(11px * var(--k)); font-weight: 700;
}
html .ss-gabarit ul.ss-k-partie-liens { display: grid; margin: 0 !important; padding: 0 12px 6px 44px !important; list-style: none; }
.ss-gabarit .ss-k-partie-liens > li { margin: 0; padding: 0; list-style: none; }
html .ss-gabarit .ss-k-partie-liens a {
    display: block; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--k-filet);
    color: var(--k-txt) !important; text-decoration: none !important; font: 400 calc(13px * var(--k))/1.35 var(--k-police) !important;
}
.ss-gabarit .ss-k-partie-liens a b { display: block; font-weight: 600; }
.ss-gabarit .ss-k-partie-liens a small { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .ss-k-partie-liens a:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 2px; }

/* ---------- 15. Thèmes et impression pour les pièces du 2e lot ---------- */
html[data-ss-soleil="on"] .ss-gabarit :is(.ss-k-partie, .ss-k-rech, .ss-k-filtre) { border: 2px solid var(--k-bord) !important; box-shadow: none !important; }
html[data-ss-soleil="on"] .ss-gabarit .ss-k-filtre.ss-k-filtre--on { border-color: #000 !important; }
html[data-ss-theme="relief"] .ss-gabarit .ss-k-partie { border-color: transparent; box-shadow: var(--ss-shadow-petit, none); }
@media print { .ss-gabarit :is(.ss-k-recherche, .ss-k-periode) { display: none !important; } }

/* ---------- 16. Écrans 6 à 9 (maquette validée docs/maquettes/finance-v3-kit.html) ---------- */
/* Socle, 3e lot (08/11) : Frais d'un élève (Fiche + Formulaire), Facturer une classe et Encaisser pour plusieurs
   élèves (Assistant), Relevés des élèves (Liste). Pièces dessinées dans la maquette, reprises ici à l'identique. */

/* A. Étapes numérotées de l'Assistant (charte § 4) */
.ss-gabarit .ss-k-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.ss-gabarit .ss-k-etapes > li { margin: 0; padding: 8px 0 0; border-top: 4px solid var(--k-filet); color: var(--k-page2); font-size: calc(12px * var(--k)); font-weight: 600; transition: border-color .3s var(--k-ease); }
.ss-gabarit .ss-k-etapes > li.ss-k-etape--on { border-color: var(--k-vert); color: var(--k-page); }
.ss-gabarit .ss-k-etapes > li.ss-k-etape--fait { border-color: color-mix(in srgb, var(--k-vert) 45%, transparent); }
.ss-gabarit .ss-k-etapes > li.ss-k-etape--fait::before { content: "✓ "; color: var(--k-vert); }

/* B. Ligne avec case à cocher (liste de choix) et ligne « Tout cocher » */
html .ss-gabarit label.ss-k-ligne-case { cursor: pointer; margin: 0 !important; font: inherit !important; letter-spacing: 0; text-transform: none; }
html .ss-gabarit .ss-k-ligne-case > input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--k-vert); cursor: pointer; }
.ss-gabarit .ss-k-ligne-case:has(input:not(:checked)) :is(.ss-k-t b, .ss-k-av) { opacity: .55; }
.ss-gabarit .ss-k-ligne-case:focus-within { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -3px; border-radius: 12px; }
.ss-gabarit .ss-k-ligne-tout { background: var(--k-doux); border-radius: 14px 14px 0 0; }
.ss-gabarit .ss-k-ligne-tout .ss-k-t b { font-weight: 700; }
.ss-gabarit .ss-k-ligne-autres { justify-content: center; color: var(--k-txt2); font-size: calc(12px * var(--k)); min-height: 44px; }
/* Case seule dans une ligne qui porte aussi un lien (Relevés : case, nom, « Aperçu ») : la case reste dans la ligne. */
.ss-gabarit .ss-k-ligne > label.ss-k-ligne-case { display: contents; }

/* C. Lien d'une ligne à côté d'une case (aperçu) : zone de 44 px */
html .ss-gabarit a.ss-k-ligne-lien { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -8px -8px -8px 0; border-radius: 10px; color: var(--ss-link, #08766b) !important; font-size: calc(12px * var(--k)); font-weight: 600; text-decoration: none !important; }
.ss-gabarit a.ss-k-ligne-lien:focus-visible { outline: 3px solid var(--ss-focus, #08766b); }

/* D. Pastille neutre (annulé) */
.ss-gabarit .ss-k-p--neutre { background: var(--k-doux); color: var(--k-txt2); outline: 1px solid var(--k-bord); }

/* E. Totaux Frais / Payé / Reste, une ligne par monnaie (comme SchoolSafeMoneyTotalsTable) */
.ss-gabarit .ss-k-totaux { overflow: hidden; }
.ss-gabarit .ss-k-totaux-l { display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: baseline; padding: 9px 12px; border-top: 1px solid var(--k-filet); font-variant-numeric: tabular-nums; text-align: right; }
.ss-gabarit .ss-k-totaux-l:first-child { border-top: 0; background: var(--k-doux); }
.ss-gabarit .ss-k-totaux-l > :first-child { text-align: left; }
.ss-gabarit .ss-k-totaux-l small { color: var(--k-txt2); font-size: calc(11px * var(--k)); }
.ss-gabarit .ss-k-totaux-l span { font-size: calc(13px * var(--k)); overflow-wrap: anywhere; }
.ss-gabarit .ss-k-totaux-l .ss-k-du { color: var(--k-att); font-weight: 700; }
.ss-gabarit .ss-k-totaux-l .ss-k-credit { color: var(--k-inf); font-weight: 700; }

/* F. Message d'avertissement (attention), à côté de div.error (urgent) et .ss-k-message (info) du kit */
html .ss-gabarit .ss-k-message.ss-k-message--att { background: var(--k-att-bg) !important; color: var(--k-att) !important; }
html .ss-gabarit .ss-k-message a { color: inherit !important; font-weight: 700; }

/* G. Champ en erreur */
html .ss-gabarit .ss-k-champ > input.ss-k-erreur { border-color: var(--k-urg) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-urg) 14%, transparent) !important; }
html .ss-gabarit .ss-k-aide-champ.ss-k-aide-erreur { color: var(--k-urg) !important; font-weight: 600 !important; }

/* H. Zone de texte sur plusieurs lignes (motif d'annulation) */
html .ss-gabarit .ss-k-champ > textarea.ss-k-zone { display: block; height: 88px !important; padding: 10px 12px !important; resize: vertical; }

/* I. Panneau de confirmation qui monte du bas, fond assombri (charte § 7). Au-dessus des boutons ronds JASPE et
   Watch de l'application (z-index 2500) et de la barre du bas. */
.ss-gabarit .ss-k-voile { position: fixed; inset: 0; z-index: 2600; background: rgba(23, 35, 51, .45); animation: ss-k-fondu .25s var(--k-ease) both; }
html .ss-gabarit a.ss-k-voile { display: block; text-decoration: none !important; }
.ss-gabarit .ss-k-panneau { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2601; max-height: 85%; overflow: auto; margin: 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; background: var(--k-carte); color: var(--k-txt); box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); animation: ss-k-panneau .32s var(--k-ease) both; }
.ss-gabarit .ss-k-panneau::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--k-bord); }
html .ss-gabarit .ss-k-panneau h3.ss-k-panneau-titre { margin: 0 0 4px !important; color: var(--k-txt) !important; font: 700 calc(18px * var(--k))/1.35 var(--k-police) !important; }
.ss-gabarit .ss-k-panneau p { margin: 0 0 10px; color: var(--k-txt2); font-size: calc(13px * var(--k)); }
.ss-gabarit .ss-k-panneau .ss-k-reste { margin: 0 -16px 12px; border-bottom: 1px solid var(--k-filet); }
html .ss-gabarit .ss-k-panneau .ss-k-case { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 4px; color: var(--k-txt) !important; font: 600 calc(14px * var(--k))/1.35 var(--k-police) !important; text-transform: none; letter-spacing: 0; cursor: pointer; }
html .ss-gabarit .ss-k-panneau .ss-k-case input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--k-vert); }
@keyframes ss-k-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-k-panneau { from { transform: translateY(100%); } to { transform: none; } }
/* Ordinateur : le panneau reste dans la colonne de la page (la maquette garde le téléphone). */
@media screen and (min-width: 701px) {
    html:not(.ss-k-tel) .ss-gabarit .ss-k-panneau { left: 50%; right: auto; width: min(560px, 100vw); margin-left: calc(min(560px, 100vw) / -2); }
}

/* J. Boutons non fixes (dans un panneau) : principal, secondaire, irréversible. :is(html, #body) et !important :
   dans l'application, ils passent devant les boutons d'envoi recolorés de #body (secondary-surfaces.css). */
:is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin: 8px 0 0; padding: 0 12px; border: 0 !important; border-radius: 14px; background: linear-gradient(135deg, var(--k-vert), var(--k-vert2)) !important; color: #fff !important; box-shadow: var(--k-ombre-action); font: 600 calc(15px * var(--k))/1.2 var(--k-police); cursor: pointer; text-decoration: none !important; transition: transform .15s var(--k-ease); }
.ss-gabarit .ss-k-btn:active { transform: scale(.98); }
.ss-gabarit .ss-k-btn:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 2px; }
:is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn.ss-k-btn--2 { background: var(--k-carte) !important; color: var(--k-txt) !important; border: 1px solid var(--k-bord) !important; box-shadow: none; }
:is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn.ss-k-btn--urg { background: var(--k-urg) !important; box-shadow: none; }
:is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn:is(:disabled, [aria-disabled="true"]) { opacity: .5; cursor: not-allowed; }

/* K. Aperçu d'un relevé (feuille imprimée) */
.ss-gabarit .ss-k-releve { padding: 14px 12px; font-size: calc(12px * var(--k)); box-shadow: 0 6px 18px rgba(23, 35, 51, .10); }
.ss-gabarit .ss-k-releve-ecole { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 2px solid var(--k-txt); }
.ss-gabarit .ss-k-releve-ecole .ss-k-av { width: 38px; height: 38px; border-radius: 10px; }
.ss-gabarit .ss-k-releve-ecole b { display: block; font-size: calc(13px * var(--k)); }
.ss-gabarit .ss-k-releve-ecole small, .ss-gabarit .ss-k-releve-qui small { color: var(--k-txt2); }
.ss-gabarit .ss-k-releve-qui { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 4px; }
.ss-gabarit .ss-k-releve-qui b { display: block; font-size: calc(14px * var(--k)); }
.ss-gabarit .ss-k-releve h4 { margin: 12px 0 4px; font-size: calc(11px * var(--k)); letter-spacing: .06em; text-transform: uppercase; color: var(--k-txt2); }
.ss-gabarit .ss-k-releve-l { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--k-filet); font-variant-numeric: tabular-nums; }
.ss-gabarit .ss-k-releve-l > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ss-gabarit .ss-k-releve-l > span:last-child { flex: none; text-align: right; }
.ss-gabarit .ss-k-releve-l small { display: block; color: var(--k-txt3); }
.ss-gabarit .ss-k-releve .ss-k-totaux { margin-top: 12px; border: 1px solid var(--k-bord); border-radius: 10px; }

/* Les états cachés le restent, même sur les pièces du kit qui fixent display. */
.ss-gabarit [hidden] { display: none !important; }

/* L. Changement de vue (étape suivante) : glissement léger */
.ss-gabarit .ss-k-vue { animation: ss-k-monte .3s var(--k-ease) backwards; /* backwards : aucune transformation laissée après l animation (sinon le bouton fixe se fixe au conteneur) */ }

/* Thèmes, plein soleil, impression pour les pièces du 3e lot. */
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"], [data-ss-soleil="on"]) .ss-gabarit .ss-k-totaux-l :is(.ss-k-du, .ss-k-credit) { color: var(--k-txt); }
html[data-ss-soleil="on"] .ss-gabarit :is(.ss-k-panneau, .ss-k-releve, .ss-k-ligne-tout) { border: 2px solid var(--k-bord) !important; box-shadow: none !important; }
html[data-ss-soleil="on"] .ss-gabarit .ss-k-etapes > li.ss-k-etape--on { border-color: #000; }
html[data-ss-soleil="on"] #body .ss-gabarit .ss-k-btn.ss-k-btn:not(.ss-k-btn--2):not(.ss-k-btn--urg) { background: var(--ss-accent, #005a51) !important; box-shadow: none; }
html[data-ss-theme="relief"] .ss-gabarit .ss-k-releve { border-color: transparent; box-shadow: var(--ss-shadow-petit, none); }
@media print {
    .ss-gabarit :is(.ss-k-voile, .ss-k-panneau, .ss-k-etapes) { display: none !important; }
    .ss-gabarit .ss-k-releve { box-shadow: none; }
}

/* ---------- 17. Téléphone : place laissée à droite pour les boutons ronds JASPE et Watch ---------- */
/* Les boutons ronds fixes (maquette : 46 px à 10 px du bord ; application : 56 px, #ss-compagnons) couvraient les
   montants alignés à droite. Sur téléphone, les lignes, totaux et colonnes de droite des cartes s'arrêtent avant eux. */
.ss-gabarit { --k-libre-droite: 0px; }
html.ss-k-tel .ss-gabarit { --k-libre-droite: 38px; }
@media screen and (max-width: 700px) {
    .ss-gabarit { --k-libre-droite: 38px; }
    html[data-ss-theme]:not([data-ss-prodeli]) .ss-gabarit { --k-libre-droite: 58px; }
}
.ss-gabarit :is(.ss-k-ligne, .ss-k-total, .ss-k-totaux-l, .ss-k-sujet, .ss-k-reste > div:last-child, .ss-k-ligne-corps) { padding-right: calc(12px + var(--k-libre-droite)); }
.ss-gabarit :is(.ss-k-releve-l, .ss-k-chiffres) { padding-right: var(--k-libre-droite); }
/* Totaux d'un relevé (dans la feuille, déjà en retrait) : les trois montants restent lisibles sur une ligne. */
.ss-gabarit .ss-k-releve .ss-k-totaux-l { padding-right: 12px; }
/* Le panneau du bas passe devant les boutons ronds : rien à laisser. */
.ss-gabarit .ss-k-panneau :is(.ss-k-reste > div:last-child, .ss-k-ligne, .ss-k-totaux-l) { padding-right: 12px; }

/* ---------- 18. Espacements que la maquette v3 écrit dans l'attribut style (repris en classes pour l'application) ---------- */
.ss-gabarit .ss-k-vide.ss-k-espace { margin-top: 12px; }
.ss-gabarit .ss-k-carte.ss-k-ajout { padding: 0 12px 12px; }
.ss-gabarit .ss-k-panneau form > .ss-k-champ:first-child, .ss-gabarit .ss-k-ligne-corps .ss-k-champ:first-child { margin: 0; }
html .ss-gabarit p.ss-k-note.ss-k-note--erreur { margin: -4px 2px 12px !important; }
html .ss-gabarit p.ss-k-note.ss-k-note--retour { margin: 0 2px 10px !important; }
html .ss-gabarit .ss-k-message.ss-k-message--haut { margin-top: 12px !important; }
.ss-gabarit .ss-k-releve-date { text-align: right; }
/* Lien dans un texte : zone à toucher agrandie au-dessus et au-dessous (remplissage d'un élément en ligne, sans décaler le texte). */
.ss-gabarit .ss-k-vide a { padding: 13px 0; color: var(--ss-link, #08766b); }
/* Nombres glissés dans un titre ou un montant (compteurs mis à jour par ss-kit.js) : même police que leur parent,
   malgré les couches anciennes qui visent les span de #body. */
html .ss-gabarit :is(h3.ss-k-panneau-titre, .ss-k-m, .ss-k-reste b, .ss-k-message) > span:not(.ss-k-p) { font: inherit !important; color: inherit !important; }

/* ---------- 19. Lot 1 Finance : rangée de choix d'un écran regroupé (maquette validée finance-v6-regroupement.html, écran B) ----------
   Écrite par le serveur (SchoolSafeGabaritChoix) sous l'en-tête : un LIEN par page du groupe, à son adresse habituelle ;
   la page en cours porte aria-current="page". Dessin du choix segmenté (§ « Choix court ») ; variante « onglets » (Réglages
   Finance) : pastilles qui passent à la ligne, sans défilement. Posée aussi hors de .ss-gabarit (cantine, pages en lecture,
   taux du jour) : couleurs du kit, sinon celles du thème. Aucune animation de déplacement. */
.ss-k-choix {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); box-sizing: border-box; max-width: 640px; margin: 12px 0 4px; padding: 3px;
    border: 1px solid var(--k-bord, var(--ss-border, #dde3e0)); border-radius: 12px; background: var(--k-doux, var(--ss-surface-2, #f3f6f5));
}
html :is(#body, body) .ss-k-choix > a {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; min-height: 44px; margin: 0 !important; padding: 6px 8px !important;
    border: 0 !important; border-radius: 9px; background: none; box-shadow: none;
    color: var(--k-txt2, var(--ss-text-2, #5d6b7e)) !important; font: 700 calc(11px * var(--ss-texte-k, 1))/1.3 "Segoe UI", Roboto, system-ui, sans-serif !important;
    letter-spacing: .06em; text-transform: uppercase; text-align: center; text-decoration: none !important; overflow-wrap: anywhere; transition: background-color .2s;
}
html :is(#body, body) .ss-k-choix > a[aria-current="page"] {
    background: var(--k-carte, var(--ss-d2-surface, var(--ss-surface, #fff))); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--k-rub, var(--ss-link, #15803d)) !important;
}
.ss-k-choix > a:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 1px; }
.ss-k-choix.ss-k-choix--onglets { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; background: none; }
html :is(#body, body) .ss-k-choix--onglets > a {
    flex: none; max-width: 100%; padding: 6px 14px !important; border: 1px solid var(--k-bord, var(--ss-border, #dde3e0)) !important; border-radius: 999px;
    background: var(--k-carte, var(--ss-d2-surface, var(--ss-surface, #fff))); color: var(--k-txt, var(--ss-text, #172333)) !important;
    font: 400 calc(13px * var(--ss-texte-k, 1))/1.3 "Segoe UI", Roboto, system-ui, sans-serif !important; letter-spacing: 0; text-transform: none;
}
html :is(#body, body) .ss-k-choix--onglets > a[aria-current="page"] {
    background: var(--k-txt, var(--ss-text, #172333)); border-color: var(--k-txt, var(--ss-text, #172333)) !important; color: var(--k-carte, var(--ss-surface, #fff)) !important; box-shadow: none;
}
html[data-ss-soleil="on"] .ss-k-choix:not(.ss-k-choix--onglets), html[data-ss-soleil="on"] :is(#body, body) .ss-k-choix--onglets > a { border: 2px solid var(--k-bord, #000) !important; }
html[data-ss-soleil="on"] :is(#body, body) .ss-k-choix > a[aria-current="page"] { outline: 2px solid #000; }
@media print { .ss-k-choix { display: none !important; } }

/* ---------- 20. Lot 5 Finance : mode de paiement et clôture de caisse (maquettes finance-v6 écran 11, finance-v5 2f) ----------
   Mode : choix segmenté à trois boutons (Espèces, Mobile money, Banque), libellés sur deux lignes au besoin, zone de
   44 px au moins ; la référence (facultative) ne se montre qu'au mobile money ou à la banque (sans :has, elle reste
   visible). Clôture : billets comptés en grille de deux colonnes à 360 px, trois au-delà ; aucun défilement horizontal. */
.ss-gabarit .ss-k-seg--mode > label > span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 4px; letter-spacing: .03em; overflow-wrap: anywhere; }
.ss-gabarit .ss-k-champ:has(> .ss-k-seg--mode input[value="cash"]:checked) + .ss-k-mode-ref { display: none; }
.ss-gabarit .ss-k-billets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 12px; }
.ss-gabarit .ss-k-billets > label { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-variant-numeric: tabular-nums; }
.ss-gabarit .ss-k-billets > label > span { flex: 0 0 auto; min-width: 64px; text-align: right; color: var(--k-txt2); font-size: calc(13px * var(--k)); }
html .ss-gabarit .ss-k-billets > label > input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 44px; padding: 0 10px !important; border: 1px solid var(--k-bord) !important; border-radius: 10px !important; background: var(--k-carte) !important; color: var(--k-txt) !important; font-size: calc(15px * var(--k)) !important; }
@media (min-width: 560px) { .ss-gabarit .ss-k-billets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Lot 9 (09/11) : lignes du repli « Découper en tranches » (numéro, échéance, montant). */
.ss-gabarit .ss-k-tranche { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; }
.ss-gabarit .ss-k-tranche > .ss-k-num { margin-bottom: 11px; }
.ss-gabarit .ss-k-tranche > .ss-k-champ { margin-top: 8px; min-width: 0; }
.ss-gabarit .ss-k-tranche > .ss-k-champ > input { width: 100%; min-width: 0; }
html .ss-gabarit p.ss-k-note.ss-k-du { color: var(--k-urg) !important; }

/* ---------- 21. Lot V2 Vie scolaire : Servir les repas (maquette vie-scolaire-v1.html, pièces vs-0, vs-1 et vs-4) ----------
   vs-0 : teinte de la rubrique Vie scolaire (rose). vs-1 : tuile de plat (initiales du plat, nom, prix au tarif de
   l'élève, prix plein barré, « prix réduit manquant »), une case par tuile, coche quand elle est choisie ; la quantité
   (portions) n'apparaît que sous une tuile choisie. Deux colonnes à 360 px, quatre sur ordinateur. vs-4 : action
   principale refusée (aria-disabled) grisée. */
.ss-gabarit[data-ss-section="care"] { --k-rub: #be185d; --k-rub-fond: #fce7f3; }
.ss-gabarit .vs-plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding-right: var(--k-libre-droite, 0px); }
.ss-gabarit .vs-plat-bloc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-gabarit .vs-plat { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--k-bord); border-radius: 14px; background: var(--k-carte); color: var(--k-txt); overflow: hidden; cursor: pointer; transition: transform .15s var(--k-ease); }
.ss-gabarit .vs-plat:active { transform: scale(.98); }
html .ss-gabarit .vs-plat > input { position: absolute; inset: 0; z-index: 2; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; cursor: pointer; }
.ss-gabarit .vs-plat:has(input:focus-visible) { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 1px; }
.ss-gabarit .vs-plat:has(input:checked) { border-color: var(--k-rub); box-shadow: inset 0 0 0 1px var(--k-rub), 0 0 0 3px var(--k-rub-fond); }
.ss-gabarit .vs-plat:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--k-rub); color: #fff; font-weight: 700; font-size: 14px; }
.ss-gabarit .vs-ph { display: grid; place-items: center; height: 62px; color: #fff; font-weight: 700; font-size: calc(17px * var(--k)); letter-spacing: .04em; }
.ss-gabarit .vs-ph1 { background: linear-gradient(135deg, #b45309, #78350f); } .ss-gabarit .vs-ph2 { background: linear-gradient(135deg, #d97706, #92400e); }
.ss-gabarit .vs-ph3 { background: linear-gradient(135deg, #4d7c0f, #365314); } .ss-gabarit .vs-ph4 { background: linear-gradient(135deg, #0e7490, #164e63); }
.ss-gabarit .vs-ph5 { background: linear-gradient(135deg, #ca8a04, #a16207); } .ss-gabarit .vs-ph6 { background: linear-gradient(135deg, #a16207, #713f12); }
.ss-gabarit .vs-plat-t { display: block; padding: 8px 10px 10px; min-width: 0; }
.ss-gabarit .vs-plat-t b { display: block; font-size: calc(14px * var(--k)); font-weight: 600; overflow-wrap: anywhere; }
.ss-gabarit .vs-prix { display: block; margin-top: 2px; font-size: calc(15px * var(--k)); font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-gabarit .vs-plat-t s { display: block; color: var(--k-txt3); font-size: calc(11px * var(--k)); font-variant-numeric: tabular-nums; }
.ss-gabarit .vs-plat-t em { display: block; margin-top: 2px; color: var(--k-att); font-size: calc(11px * var(--k)); font-style: normal; font-weight: 600; }
.ss-gabarit .vs-qte { display: none; align-items: center; justify-content: space-between; gap: 6px; margin: 0; padding: 0 2px; color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .vs-plat-bloc:has(.vs-plat input:checked) .vs-qte { display: flex; }
html .ss-gabarit .vs-qte > input { width: 64px !important; min-width: 0; min-height: 40px; padding: 0 8px !important; border: 1px solid var(--k-bord) !important; border-radius: 10px !important; background: var(--k-carte) !important; color: var(--k-txt) !important; font-size: calc(15px * var(--k)) !important; text-align: center; }
@media (min-width: 900px) { .ss-gabarit .vs-plats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
:is(html, #body) .ss-gabarit :is(input, a).ss-k-action.ss-k-action[aria-disabled="true"] { background: #8a96a3 !important; box-shadow: none !important; cursor: not-allowed; }
.ss-gabarit .ss-k-ligne > .ss-k-btn { flex: none; width: auto; min-height: 40px; margin: 0; }

/* ---------- 22. Lot V3 Vie scolaire : Plats et produits, Types de repas, Menus du jour (maquette vie-scolaire-v1.html, pièces vs-2 et vs-5) ----------
   vs-2 : semaine de menus (lundi → samedi), un jour par ligne sur téléphone, six colonnes sur ordinateur ; pastilles des
   plats du jour ; aujourd'hui sur fond rose ; jour sans classe grisé. vs-5 : champ de prix avec la monnaie collée à
   droite. Boutons ▲ ▼ d'une ligne (formulaire d'une seule action) au dessin des liens de ligne. */
.ss-gabarit .ss-k-carte.vs-semaine { display: grid; gap: 0; }
.ss-gabarit .vs-jour { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; padding: 10px calc(12px + var(--k-libre-droite, 0px)) 10px 12px; border-top: 1px solid var(--k-filet); color: var(--k-txt) !important; text-decoration: none !important; }
.ss-gabarit .vs-semaine > .vs-jour:first-child { border-top: 0; }
.ss-gabarit .vs-jour > span:first-child b { display: block; font-size: calc(14px * var(--k)); }
.ss-gabarit .vs-jour > span:first-child small { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .vs-jour.vs-auj { background: var(--k-rub-fond); }
.ss-gabarit .vs-jour.vs-ferme { color: var(--k-txt3) !important; }
.ss-gabarit .vs-puces { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ss-gabarit .vs-puce { display: inline-block; max-width: 100%; padding: 3px 9px; border: 1px solid var(--k-bord); border-radius: 999px; background: var(--k-carte); font-size: calc(12px * var(--k)); overflow-wrap: anywhere; }
.ss-gabarit .vs-jour .vs-vide { color: var(--k-txt3); font-size: calc(12px * var(--k)); font-style: italic; }
.ss-gabarit .vs-jour .ss-k-fl { color: var(--k-txt3); }
.ss-gabarit a.vs-jour:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -3px; }
@media (hover: hover) { .ss-gabarit a.vs-jour:hover { background: var(--k-doux); } }
@media (min-width: 900px) {
    .ss-gabarit .ss-k-carte.vs-semaine { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 8px; }
    .ss-gabarit .vs-jour { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 180px; padding: 10px; border: 1px solid var(--k-bord); border-radius: 12px; }
    .ss-gabarit .vs-semaine > .vs-jour:first-child { border-top: 1px solid var(--k-bord); }
    .ss-gabarit .vs-semaine > .vs-jour.vs-auj { border-color: var(--k-rub); }
    .ss-gabarit .vs-jour .ss-k-fl { display: none; }
}
.ss-gabarit .vs-suffixe { position: relative; display: block; }
.ss-gabarit .vs-suffixe > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--k-txt2); font-weight: 700; font-size: calc(13px * var(--k)); pointer-events: none; }
html .ss-gabarit .vs-suffixe > input { width: 100%; padding-right: 44px !important; }
.ss-gabarit .ss-k-ligne > form.ss-k-ligne-form { flex: none; margin: 0; }
html .ss-gabarit button.ss-k-ligne-lien { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ss-link, #08766b) !important; font: 600 calc(12px * var(--k))/1 var(--k-police) !important; cursor: pointer; }
.ss-gabarit button.ss-k-ligne-lien:focus-visible { outline: 3px solid var(--ss-focus, #08766b); }

/* ---------- 23. Lot V4 Vie scolaire : Écran de la cantine (maquette vie-scolaire-v1.html, écran 7 et 7 bis, pièce vs-3) ----------
   vs-3 : affichage de la cantine pour une télévision ou une tablette ; tailles proportionnelles à l'écran (unités de
   conteneur, --u = 1 % de la largeur, ou de la hauteur ramenée au 16:9 si l'écran est plus large que haut) : en-tête
   (école, date, heure), type de repas en très grand, tuiles des plats (initiales, nom, prix plein), repas suivant.
   Aperçu (.vs-mini) dans la page ; plein écran (.vs-tv--plein) dans un document autonome, sans menu ni barre de
   l'application ; « Plein écran » et « Quitter » n'apparaissent qu'après un toucher. Aucun nom d'élève. */
.vs-tv { position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 16 / 9; background: #1d1420; color: #fff; overflow: hidden; container-type: size; font-family: "Segoe UI", Roboto, system-ui, sans-serif; }
.vs-tv *, .vs-tv *::before, .vs-tv *::after { box-sizing: border-box; }
.vs-tv-in { --u: min(1cqw, 1.778cqh); position: absolute; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: calc(1.6 * var(--u)); padding: calc(2.6 * var(--u)) calc(3.6 * var(--u)); }
.vs-tv-haut { display: flex; justify-content: space-between; align-items: baseline; gap: calc(2 * var(--u)); color: #f9d4e6; font-size: calc(1.9 * var(--u)); font-weight: 600; }
.vs-tv-haut > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-tv-haut > span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.vs-tv h2 { margin: 0; color: #fff; font-size: calc(5.2 * var(--u)); line-height: 1.05; font-weight: 800; overflow-wrap: anywhere; }
.vs-tv h2 small { display: block; margin-top: calc(.4 * var(--u)); color: #f9a8d4; font-size: calc(1.9 * var(--u)); font-weight: 600; }
.vs-tv-plats { --vs-tv-col: 4; display: grid; grid-template-columns: repeat(var(--vs-tv-col), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: calc(1.6 * var(--u)); min-height: 0; }
.vs-tv-plat { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; border-radius: calc(1.4 * var(--u)); background: #2d2233; overflow: hidden; }
.vs-tv-ph { display: grid; place-items: center; min-height: 0; color: #fff; font-size: calc(3.4 * var(--u)); font-weight: 800; letter-spacing: .05em; }
.vs-tv .vs-ph1 { background: linear-gradient(135deg, #b45309, #78350f); } .vs-tv .vs-ph2 { background: linear-gradient(135deg, #d97706, #92400e); }
.vs-tv .vs-ph3 { background: linear-gradient(135deg, #4d7c0f, #365314); } .vs-tv .vs-ph4 { background: linear-gradient(135deg, #0e7490, #164e63); }
.vs-tv .vs-ph5 { background: linear-gradient(135deg, #ca8a04, #a16207); } .vs-tv .vs-ph6 { background: linear-gradient(135deg, #a16207, #713f12); }
.vs-tv-plat > div:last-child { padding: calc(1.2 * var(--u)) calc(1.4 * var(--u)) calc(1.4 * var(--u)); min-width: 0; }
.vs-tv-plat b { display: block; font-size: calc(2.5 * var(--u)); line-height: 1.15; overflow-wrap: anywhere; }
.vs-tv-plat span { display: block; margin-top: calc(.5 * var(--u)); color: #fbcfe8; font-size: calc(3 * var(--u)); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-tv-plats--serre .vs-tv-plat b { font-size: calc(1.9 * var(--u)); }
.vs-tv-plats--serre .vs-tv-plat span { font-size: calc(2.2 * var(--u)); }
.vs-tv-vide { align-self: center; margin: 0; color: #f9d4e6; font-size: calc(3 * var(--u)); font-weight: 600; }
.vs-tv-bas { display: flex; justify-content: space-between; gap: calc(2 * var(--u)); color: #e9d5e3; font-size: calc(1.6 * var(--u)); }
.vs-tv-bas > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-tv-bas > span:last-child { flex: none; }
.ss-gabarit .vs-mini { margin-top: 12px; border: 6px solid #111; border-radius: 14px; overflow: hidden; }
.ss-gabarit .vs-seg-repas { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
/* Plein écran : document autonome (Food_Service/Kiosk.php, ss_ecran=plein). */
html:has(body.vs-ecran-plein), body.vs-ecran-plein { height: 100%; margin: 0; background: #000; overflow: hidden; }
body.vs-ecran-plein .vs-tv--plein { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; cursor: none; }
body.vs-ecran-plein.vs-tv-touche .vs-tv--plein { cursor: auto; }
.vs-tv-commandes { position: fixed; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 10px; }
.vs-tv-commandes[hidden], .vs-tv-commandes > [hidden], .vs-tv-avis[hidden] { display: none; }
.vs-tv-commandes > * { display: inline-grid; place-items: center; min-width: 120px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; background: rgba(29, 20, 32, .92); color: #fff; font: 600 16px/1 "Segoe UI", Roboto, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.vs-tv-commandes > *:focus-visible { outline: 3px solid #f9a8d4; outline-offset: 2px; }
.vs-tv-avis { position: fixed; left: 16px; bottom: 16px; z-index: 3; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .75); color: #fde68a; font: 600 15px/1.3 "Segoe UI", Roboto, system-ui, sans-serif; }

/* ---------- 22. Lot T1 Transport (maquette transport-v1.html, pièces tr-0 à tr-2) ----------
   tr-0 : teinte de la rubrique Transport, bleu #0369a1 (écrans au gabarit et entrée du menu, icône bus).
   tr-1 : arrêts d'une ligne dans l'ordre du passage (numéro, nom, zone, heure), reliés par un trait vertical ; sur la
   fiche, ▲▼ et « Modifier » à droite pour qui peut modifier ; dernière rangée : l'école et le départ du retour.
   tr-2 : tuile « bientôt » (fonction du lot suivant, sans lien). */
.ss-gabarit[data-ss-section="transport"] { --k-rub: #0369a1; --k-rub-fond: #e0f2fe; }
.ss-gabarit .tr-arrets { list-style: none; margin: 0; padding: 0; }
.ss-gabarit .tr-arret { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 56px; margin: 0; padding: 8px calc(12px + var(--k-libre-droite, 0px)) 8px 12px; border-top: 1px solid var(--k-filet); }
.ss-gabarit .tr-arret:has(> .tr-outils) { grid-template-columns: 28px minmax(0, 1fr) auto auto; }
.ss-gabarit .tr-arret:first-child { border-top: 0; }
.ss-gabarit .tr-arret > i { z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--k-rub); color: #fff; font-style: normal; font-weight: 700; font-size: 12px; }
.ss-gabarit .tr-arret:not(:last-child)::before { content: ""; position: absolute; left: 24px; top: 50%; bottom: -50%; width: 2px; background: var(--k-rub-fond); }
.ss-gabarit .tr-arret b { display: block; font-size: calc(14px * var(--k)); overflow-wrap: anywhere; }
.ss-gabarit .tr-arret small { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .tr-arret .tr-h { font-variant-numeric: tabular-nums; font-weight: 700; font-size: calc(13px * var(--k)); white-space: nowrap; }
.ss-gabarit .tr-arret.tr-ecole > i { background: var(--k-rub-fond); color: var(--k-rub); }
.ss-gabarit .tr-outils { display: flex; align-items: center; gap: 2px; }
.ss-gabarit .tr-outils > form { margin: 0; }
.ss-gabarit .tr-outils > .tr-vide { display: block; width: 44px; }
html .ss-gabarit .tr-outils .ss-k-ligne-lien { margin: 0; }
html .ss-gabarit span.ss-k-tuile.tr-bientot { color: var(--k-txt3) !important; border-style: dashed; cursor: default; }
.ss-gabarit .tr-bientot small { font-weight: 400; font-size: calc(11px * var(--k)); }
.ss-gabarit .tr-bientot:active { transform: none; }
@media (max-width: 420px) {
    .ss-gabarit .tr-arret:has(> .tr-outils) { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .ss-gabarit .tr-arret > .tr-outils { grid-column: 2 / -1; justify-content: flex-end; margin-top: -6px; }
}
/* Entrée du menu : rubrique « Transport », juste après Vie scolaire (sous-menu fermé tant qu'elle n'est pas ouverte). */
#menu .menu-module[data-ss-branch="transport"] { --ss-branch: #7dd3fc; --ss-branch-ink: #0369a1; --ss-rubrique: #0369a1; --ss-icon-url: url("navigation-icons/Bus.svg"); }
body.modules #menu .adminmenu .ss-branch-transport:not(.ss-open) > #ss_menu_transport { display: none !important; }
/* Retouches du 10/11 après revue à l'écran.
   a) Téléphone : la page défile assez pour dégager le bas (boutons « Désactiver… », lien de retour) de l'action fixe,
      comme les rubriques qui posent data-ss-section sur #body (care-impeccable.css : 96 px). */
@media (max-width: 700px) { #body:has(.ss-gabarit[data-ss-section="transport"]) { padding-bottom: 96px; } }
/* b) ▲▼ des arrêts : flèche blanche sur la teinte de la rubrique, cible tactile de 44 px. */
html body #body .ss-gabarit .tr-outils button.ss-k-ligne-lien { min-width: 44px; min-height: 44px; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: var(--k-rub) !important; color: #fff !important; box-shadow: none !important; font: 700 16px/1 var(--k-police) !important; }
html body #body .ss-gabarit .tr-outils button.ss-k-ligne-lien:hover { filter: brightness(1.1); }
html body #body .ss-gabarit .tr-outils button.ss-k-ligne-lien:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 2px; }
/* c) Menu : une seule icône pour la rubrique (l'icône native du module reste cachée, même rubrique ouverte). */
html body.modules #menu .adminmenu > .menu-module[data-ss-branch="transport"] > .menu-top .module-icon,
html body.modules #menu .adminmenu > .menu-module[data-ss-branch="transport"] > #selectedModuleLink .module-icon { display: none !important; }
html body.modules #menu:not(.ss-d2-menu) .adminmenu > .menu-module[data-ss-branch="transport"] > .menu-top .module-icon,
html body.modules #menu:not(.ss-d2-menu) .adminmenu > .menu-module[data-ss-branch="transport"] > #selectedModuleLink .module-icon { display: inline-block !important; }
/* ---------- 25. Lot P1 Transport : pointage dans le bus (maquette transport-v2-pointage.html, pièces tp-1 à tp-3) ----------
   tp-1 : bandeau de connexion (hors connexion : pointages gardés sur le téléphone ; connecté : tout est envoyé).
   tp-2 : ligne d'élève à pointer avec deux gros boutons (≥ 48 px : Monté / Absent, Descendu / Reste dans le bus),
          geste fait (« ✓ Monté à 6 h 41 · annuler »), avertissement (élève suspendu, petite classe).
   tp-3 : carte de la personne autorisée (photo, lien, pièce vérifiée) et fil des avis : en service depuis le lot P2.
   tp-case : case à cocher en ligne large (arrivée à l'école, petites classes). Les boutons gardent le relief du plein
   soleil (bordure 2 px, texte noir sur blanc). */
.ss-gabarit .tp-horsligne { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-weight: 600; font-size: calc(13px * var(--k)); }
.ss-gabarit .tp-horsligne i { font-style: normal; font-size: 16px; }
.ss-gabarit .tp-horsligne.tp-ok { background: #ecfdf5; color: #047857; }
.ss-gabarit .tp-el { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px calc(12px + var(--k-libre-droite, 0px)) 10px 12px; border-top: 1px solid var(--k-filet); }
.ss-gabarit .tp-el:first-child { border-top: 0; }
.ss-gabarit .tp-el b { display: block; font-size: calc(14px * var(--k)); overflow-wrap: anywhere; }
.ss-gabarit .tp-el small { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .tp-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss-gabarit .tp-btns.tp-un { grid-template-columns: 1fr; }
html body .ss-gabarit .tp-btns button { min-height: 48px !important; margin: 0 !important; padding: 0 10px !important; border-radius: 12px !important; border: 1px solid var(--k-bord) !important; background: var(--k-carte) !important; color: var(--k-txt) !important; box-shadow: none !important; font: 600 calc(15px * var(--k))/1.15 var(--k-police, inherit) !important; text-transform: none !important; cursor: pointer; }
html body .ss-gabarit .tp-btns button.tp-oui { background: var(--k-rub) !important; border-color: var(--k-rub) !important; color: #fff !important; }
html body .ss-gabarit .tp-btns button.tp-non { color: #b91c1c !important; border-color: #fecaca !important; background: #fef2f2 !important; }
html body .ss-gabarit .tp-btns button:active { transform: scale(.98); }
html body .ss-gabarit .tp-btns button:focus-visible { outline: 3px solid var(--ss-focus, #08766b) !important; outline-offset: 2px; }
.ss-gabarit .tp-fait { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px; background: var(--k-rub-fond); color: var(--k-rub); font-weight: 600; font-size: calc(13px * var(--k)); }
.ss-gabarit .tp-fait.tp-abs { background: #fef2f2; color: #b91c1c; }
.ss-gabarit .tp-fait.tp-attente::after { content: "⧗"; margin-left: auto; font-weight: 400; }
html body .ss-gabarit .tp-fait a, html body .ss-gabarit .tp-fait button { min-height: 40px; padding: 0 8px !important; border: 0 !important; background: none !important; box-shadow: none !important; color: inherit !important; font: 400 calc(13px * var(--k))/1 var(--k-police, inherit) !important; text-decoration: underline !important; cursor: pointer; }
.ss-gabarit .tp-alerte { grid-column: 1 / -1; padding: 8px 10px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: calc(12px * var(--k)); font-weight: 600; }
.ss-gabarit .tp-pers { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--k-filet); cursor: pointer; }
.ss-gabarit .tp-pers:first-child { border-top: 0; }
.ss-gabarit .tp-pers .tp-photo { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #94a3b8, #475569); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ss-gabarit .tp-pers b { display: block; }
.ss-gabarit .tp-pers small { color: var(--k-txt2); }
.ss-gabarit .tp-pers.tp-choisi { background: var(--k-rub-fond); box-shadow: inset 3px 0 0 var(--k-rub); }
.ss-gabarit .tp-fil { list-style: none; margin: 0; padding: 0; }
.ss-gabarit .tp-fil li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-top: 1px solid var(--k-filet); }
.ss-gabarit .tp-fil li:first-child { border-top: 0; }
.ss-gabarit .tp-fil time { font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-gabarit .tp-fil small { display: block; color: var(--k-txt2); }
.ss-gabarit .tp-case { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 52px; margin: 0; padding: 6px calc(12px + var(--k-libre-droite, 0px)) 6px 12px; border-top: 1px solid var(--k-filet); cursor: pointer; }
.ss-gabarit .tp-case:first-child { border-top: 0; }
html body .ss-gabarit .tp-case input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--k-rub); }
.ss-gabarit .tp-case small { display: block; color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .tp-lien { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; color: var(--k-rub); font-weight: 600; text-decoration: none; }
.ss-gabarit .tr-arret.tp-fini > i { background: var(--k-rub-fond); color: var(--k-rub); }
.ss-gabarit .tr-arret.tp-ici { background: var(--k-rub-fond); }
.ss-gabarit a.tr-arret { color: inherit; text-decoration: none; }
/* Plein soleil : relief marqué des boutons et des bandeaux. */
html[data-ss-soleil="on"] body .ss-gabarit .tp-btns button { border-width: 2px !important; border-color: #000 !important; }
html[data-ss-soleil="on"] body .ss-gabarit .tp-btns button:not(.tp-oui) { background: #fff !important; color: #000 !important; }
html[data-ss-soleil="on"] .ss-gabarit :is(.tp-horsligne, .tp-fait, .tp-alerte) { outline: 2px solid currentColor; }
/* Téléphone : le bas de la page n'est jamais caché par l'action fixe (place du bouton et de la barre de navigation). */
@media (max-width: 700px) { .ss-gabarit .tp-app { padding-bottom: 72px; } }
/* Lot P2 Transport (10/11, écrans 4 à 6) : pièce tp-3 en service. tp-pers = bouton large d'une personne autorisée
   (photo 56 px, nom, lien ; choisie = fond et filet de la rubrique), cible ≥ 56 px ; tp-photo garde les initiales sous la
   photo (photo absente ou hors connexion). tp-fil = trajet du jour du parent (heure, geste, détail). */
:is(html, #body) .ss-gabarit button.tp-pers { width: 100%; min-height: 76px; margin: 0 !important; border: 0 !important; border-top: 1px solid var(--k-filet) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--k-txt) !important; font: inherit !important; text-align: left; text-transform: none !important; }
:is(html, #body) .ss-gabarit button.tp-pers:first-child { border-top: 0 !important; }
:is(html, #body) .ss-gabarit button.tp-pers.tp-choisi { background: var(--k-rub-fond) !important; box-shadow: inset 3px 0 0 var(--k-rub) !important; }
.ss-gabarit button.tp-pers:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -3px; }
.ss-gabarit .tp-pers .tp-photo { position: relative; overflow: hidden; }
.ss-gabarit .tp-pers .tp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-gabarit .tp-pers-t { min-width: 0; overflow-wrap: anywhere; }
.ss-gabarit h3.ss-k-sec .ss-k-p { margin-left: 6px; vertical-align: middle; }
html[data-ss-soleil="on"] .ss-gabarit button.tp-pers.tp-choisi { outline: 2px solid #000; outline-offset: -2px; }
/* ===== Lot S1 Sorties scolaires (10/11, maquette sorties-v1.html validée) : pièces so- =====
   so-1 barre des réponses des parents (autorisés / refusés / sans réponse) et sa légende ;
   so-lien bouton d'envoi présenté comme un lien (« Je refuse », « Garder en brouillon », « Renvoyer… »), cible de 44 px. */
.ss-gabarit .so-barre { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #e5e7eb; margin: 8px 0 4px; }
.ss-gabarit .so-barre i { display: block; height: 100%; }
.ss-gabarit .so-oui { background: #059669; }
.ss-gabarit .so-non { background: #dc2626; }
.ss-gabarit .so-leg { display: flex; flex-wrap: wrap; gap: 12px; color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .so-leg b { color: var(--k-txt); }
:is(html, #body) .ss-gabarit button.so-lien.so-lien { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 2px !important; border: 0 !important; border-radius: 6px; background: none !important; box-shadow: none !important; color: var(--ss-link, #08766b) !important; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:is(html, #body) .ss-gabarit button.so-lien.so-lien--urg { color: #b91c1c !important; }
.ss-gabarit button.so-lien:focus-visible { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 2px; }
html[data-ss-soleil="on"] .ss-gabarit .so-barre { outline: 2px solid #000; }
/* Téléphone : le bas des pages des sorties n'est jamais caché par l'action fixe et la barre de navigation. */
@media (max-width: 700px) { #body:has(.ss-gabarit[data-ss-page^="Sorties/"]) { padding-bottom: 96px; } }
/* Lot L1 Transport (10/11, localisation du bus, aucune carte) : tp-partage = bandeau « Position partagée » du téléphone
   de l'accompagnateur (vert ; --non = partage refusé ou impossible, le pointage continue) ; tp-arret-pos = position d'un
   arrêt et bouton « Enregistrer la position de cet arrêt » ; tp-bus = bloc « Le bus » du parent (position par les
   arrêts, arrivée estimée) ; tp-bus-pos = ligne « Position : … » d'une tournée dans « Bus aujourd'hui ». */
.ss-gabarit .tp-partage { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #ecfdf5; color: #047857; font-size: calc(13px * var(--k)); line-height: 1.45; }
.ss-gabarit .tp-partage i { font-style: normal; }
.ss-gabarit .tp-partage small { color: #065f46; font-size: calc(13px * var(--k)); font-weight: 600; }
.ss-gabarit .tp-partage--non { background: #fff7ed; color: #9a3412; font-weight: 600; }
.ss-gabarit .tp-arret-pos { margin-top: 10px; padding: 10px 12px; }
.ss-gabarit .tp-arret-pos small { color: var(--k-txt2); }
.ss-gabarit .tp-arret-pos .tp-btns { margin-top: 8px; }
.ss-gabarit .tp-bus { padding: 12px 14px; }
.ss-gabarit .tp-bus p { margin: 0 0 6px; font-weight: 600; line-height: 1.45; }
.ss-gabarit .tp-bus small { display: block; color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .ss-k-t small.tp-bus-pos { display: block; color: var(--k-rub, #1d4ed8); font-weight: 600; }
html[data-ss-soleil="on"] .ss-gabarit :is(.tp-partage, .tp-bus) { outline: 2px solid currentColor; }
/* Lot C6 (10/11, relecture sur téléphone) : dans l'application, le bas des pages de la cantine (Vie scolaire, rapports
   et Finance), du transport et des sorties remonte au-dessus de l'action fixe et des boutons ronds JASPE et Watch.
   Avant : 96 px ne suffisaient pas, la dernière note, le dernier lien ou le dernier bouton restait en partie caché
   (Plats et produits, Repas servis, Repas par menu, Rappels cantine, Réglages du bus, Bus aujourd'hui…). */
@media (max-width: 700px) {
    html[data-ss-theme]:not([data-ss-prodeli]) #body:has(.ss-gabarit:is([data-ss-section="transport"], [data-ss-page^="Food_Service/"], [data-ss-page^="Sorties/"])) { padding-bottom: 150px; }
    /* Les notes et cases à cocher s'arrêtent avant les boutons ronds, comme les lignes (§ 17). */
    html[data-ss-theme]:not([data-ss-prodeli]) .ss-gabarit:is([data-ss-section="transport"], [data-ss-page^="Food_Service/"], [data-ss-page^="Sorties/"]) :is(p.ss-k-note, label.ss-k-case) { padding-right: var(--k-libre-droite); }
}

/* ---------- 26. Lot PJ1 (09/11) : pièces validées « Ma journée » (pd-) et « Fiche d'une personne » (fp-), maquettes
   docs/maquettes/relief/ma-journee-v1.html et fiche-personne-v1.html ; variante ss-k-message--urg. ---------- */
/* pd-1. Classe du jour (liste de Ma journée) : horaire en tête de ligne, état de l'appel en pastille. */
.ss-gabarit .pd-h { flex: none; width: 52px; color: var(--k-txt2); font-size: calc(12px * var(--k)); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.ss-gabarit .pd-h small { display: block; font-weight: 400; color: var(--k-txt3); }

/* pd-2. Grille d'appel : une ligne par élève, quatre choix (Présent, Retard, Absent, Excusé) = vrais boutons radio. */
.ss-gabarit .pd-el { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--k-filet); }
.ss-gabarit .pd-el:first-child { border-top: 0; }
.ss-gabarit .pd-el > div > b { display: block; color: var(--k-txt); font-size: calc(14px * var(--k)); font-weight: 600; }
.ss-gabarit .pd-el > div > small { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .pd-el > div > small.pd-retard { color: var(--k-att); font-weight: 600; }
.ss-gabarit .pd-el > div > small.pd-nonscan { color: var(--k-txt3); }
.ss-gabarit .pd-choix { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--k-doux); box-shadow: var(--ss-shadow-creux, none); }
.ss-gabarit .pd-choix label { position: relative; display: block; }
.ss-gabarit .pd-choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ss-gabarit .pd-choix span {
    display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px;
    color: var(--k-txt2); font-size: calc(12.5px * var(--k)); font-weight: 600; transition: background-color .2s, color .2s, box-shadow .2s;
}
.ss-gabarit .pd-choix input:focus-visible + span { outline: 3px solid var(--ss-focus, #08766b); outline-offset: 1px; }
.ss-gabarit .pd-choix input:checked + span { color: #fff; box-shadow: var(--ss-shadow-petit, none); }
.ss-gabarit .pd-choix .pd-p input:checked + span { background: var(--k-ok); }
.ss-gabarit .pd-choix .pd-r input:checked + span { background: var(--k-att); }
.ss-gabarit .pd-choix .pd-a input:checked + span { background: var(--k-urg); }
.ss-gabarit .pd-choix .pd-e input:checked + span { background: var(--k-inf); }
/* Boutons d'appoint en relief (Tous présents, Non scannés absents) : secondaires, jamais à la place de l'action. */
.ss-gabarit .pd-appoint { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ss-gabarit .pd-appoint button {
    min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--k-carte); color: var(--k-txt); box-shadow: var(--ss-shadow-petit, 0 1px 3px rgba(0, 0, 0, .12)); font: 600 calc(13px * var(--k))/1.2 var(--k-police);
}
.ss-gabarit .pd-appoint button:active { box-shadow: var(--ss-shadow-creux, none); }
/* Compte de l'appel, au-dessus de l'action. */
.ss-gabarit .pd-compte { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }

/* fp-1. Carte d'identité d'une personne : initiales ou photo, nom, rôle, état du compte, menu « … ». */
.ss-gabarit .fp-id { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 14px; }
.ss-gabarit .fp-av {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--k-vert), var(--k-vert2)); color: #fff; font-size: 22px; font-weight: 700; box-shadow: var(--ss-shadow-petit, none);
}
.ss-gabarit .fp-nom b { display: block; color: var(--k-txt); font-size: calc(17px * var(--k)); line-height: 1.25; overflow-wrap: anywhere; }
.ss-gabarit .fp-nom small { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .fp-pastilles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ss-gabarit .fp-plus {
    width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; align-self: start;
    background: var(--k-carte); color: var(--k-txt); box-shadow: var(--ss-shadow-petit, none); font-size: 20px; line-height: 1;
}
.ss-gabarit .fp-plus:active { box-shadow: var(--ss-shadow-creux, none); }
/* fp-2. Renseignements en lecture : étiquette à gauche, valeur à droite ; « Modifier » ouvre les champs. */
.ss-gabarit .fp-def { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 2px 12px; margin: 0; padding: 4px 12px 10px; }
.ss-gabarit .fp-def dt { padding: 8px 0; color: var(--k-txt2); font-size: calc(12.5px * var(--k)); border-top: 1px solid var(--k-filet); }
.ss-gabarit .fp-def dd { margin: 0; padding: 8px 0; color: var(--k-txt); font-weight: 600; overflow-wrap: anywhere; border-top: 1px solid var(--k-filet); }
.ss-gabarit .fp-def dt:first-of-type, .ss-gabarit .fp-def dt:first-of-type + dd { border-top: 0; }
.ss-gabarit .fp-def dd small { display: block; color: var(--k-txt3); font-weight: 400; }
.ss-gabarit .fp-sec-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ss-gabarit .fp-sec-t a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ss-link, #08766b); font-weight: 600; text-decoration: none; }
/* fp-3. Menu « … » : actions rares, la plus grave en dernier et en rouge. */
.ss-gabarit .fp-menu .ss-k-ligne { width: 100%; border: 0; border-top: 1px solid var(--k-filet); background: none; text-align: left; font: inherit; cursor: pointer; }
.ss-gabarit .fp-menu .ss-k-ligne:first-child { border-top: 0; }
.ss-gabarit .fp-menu .fp-grave .ss-k-t b { color: var(--k-urg); }
/* fp-4. Mot de passe temporaire montré une seule fois. */
.ss-gabarit .fp-secret {
    margin: 10px 0; padding: 14px; border-radius: 12px; text-align: center; background: var(--k-doux); box-shadow: var(--ss-shadow-creux, none);
    color: var(--k-txt); font: 700 calc(22px * var(--k))/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em;
}
/* fp-5. Journal du compte : date à gauche, fait, auteur. */
.ss-gabarit .fp-journal { margin: 0; padding: 4px 12px 10px; list-style: none; }
.ss-gabarit .fp-journal li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--k-filet); font-size: calc(13px * var(--k)); color: var(--k-txt); }
.ss-gabarit .fp-journal li:first-child { border-top: 0; }
.ss-gabarit .fp-journal time { color: var(--k-txt2); font-size: calc(12px * var(--k)); font-variant-numeric: tabular-nums; }
.ss-gabarit .fp-journal small { display: block; color: var(--k-txt3); }
/* fp-6. Compte désactivé : la carte se grise, la raison est visible. */
.ss-gabarit .fp-off .fp-av { filter: grayscale(1); opacity: .6; }

/* Plein soleil et mouvement réduit : mêmes règles que le kit. */
html[data-ss-soleil="on"] .ss-gabarit :is(.pd-choix, .pd-appoint button, .fp-plus, .fp-secret) { border: 2px solid var(--k-bord); box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .ss-gabarit .pd-choix span { transition: none; } }
/* pd-1 bis. État de l'appel sous le nom de la classe (le nom garde toute la largeur sur téléphone). */
.ss-gabarit .pd-etat { display: block; margin-top: 4px; }
/* Modes foncés : la couleur d'alerte du kit (claire par nature) s'éclaircit pour rester lisible sur le fond. */
html:is([data-ss-mode="sombre"], [data-ss-mode="nuit"]) .ss-gabarit .pd-el > div > small.pd-retard { color: #f2b45a; }
/* Message d'erreur ou de compte désactivé (variante « urgent » absente du kit, sur le modèle de --att). */
html .ss-gabarit .ss-k-message.ss-k-message--urg { background: var(--k-urg-bg) !important; color: var(--k-urg) !important; }
/* Titre de section avec un lien à droite (« Identité · Modifier ») : le kit force l'affichage en bloc des titres. */
html .ss-gabarit h3.ss-k-sec.fp-sec-t { display: flex !important; align-items: center; justify-content: space-between; }
/* Bandeau de la file hors connexion de « Ma journée » : envois refusés listés en bloc, avec le bouton pour les retirer. */
.ss-gabarit #ss-mj-file:not([hidden]) { display: block; }
.ss-gabarit #ss-mj-file ul { margin: 6px 0; padding-left: 18px; }
.ss-gabarit #ss-mj-file .ss-k-btn { margin-top: 8px; }
/* Lot UC (09/11) : carte d'identité en tête de la fiche d'un utilisateur ; menu « … » déroulant (details), sans script. */
.ss-gabarit.ss-fiche-personne { margin: 0 0 12px; }
.ss-gabarit .fp-menu-d { position: relative; align-self: start; }
.ss-gabarit .fp-menu-d > summary { list-style: none; display: grid; place-items: center; }
.ss-gabarit .fp-menu-d > summary::-webkit-details-marker { display: none; }
.ss-gabarit .fp-menu-d[open] > .fp-menu { position: absolute; right: 0; top: 52px; z-index: 40; width: min(360px, 86vw); margin: 0; box-shadow: var(--ss-shadow, 0 12px 32px rgba(0, 0, 0, .2)); }
.ss-gabarit .fp-menu form { margin: 0; }
.ss-gabarit .fp-menu .fp-menu-champ { padding: 0 12px 10px; margin: 0; }
.ss-gabarit .fp-temp { padding: 14px; margin-top: 10px; }
@media print { .ss-gabarit .fp-menu-d, .ss-gabarit .fp-temp { display: none !important; } }

/* ---------- 27. Utilisateurs (10/11) : pièces validées ut- (maquette docs/maquettes/relief/utilisateurs-v1.html) ---------- */
/* ut-1. Choix du rôle dans l'assistant : une ligne par rôle, vrai bouton radio, phrase de ce que la personne pourra faire. */
html .ss-gabarit label.ut-role { cursor: pointer; margin: 0 !important; font: inherit !important; letter-spacing: 0; text-transform: none; align-items: flex-start; }
html .ss-gabarit .ut-role > input[type="radio"] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--k-vert); cursor: pointer; }
.ss-gabarit .ut-role:has(input:checked) { background: var(--k-doux); }
.ss-gabarit .ut-role:focus-within { outline: 3px solid var(--ss-focus, #08766b); outline-offset: -3px; border-radius: 12px; }
.ss-gabarit .ut-role .ss-k-t small { white-space: normal; }
/* ut-2. Grille des tâches d'un rôle : une ligne par tâche, deux cases « Voir » et « Modifier ». */
.ss-gabarit .ut-taches { margin: 0; padding: 0; }
.ss-gabarit .ut-tache { display: grid; grid-template-columns: minmax(0, 1fr) 58px 70px; gap: 6px; align-items: center; min-height: 48px; padding: 6px 12px; border-top: 1px solid var(--k-filet); }
.ss-gabarit .ut-tache:first-child { border-top: 0; }
.ss-gabarit .ut-tache b { color: var(--k-txt); font-size: calc(13.5px * var(--k)); font-weight: 600; }
.ss-gabarit .ut-tache small { display: block; color: var(--k-txt3); font-size: calc(11.5px * var(--k)); }
html .ss-gabarit .ut-tache label { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; margin: 0 !important; font: 600 calc(11.5px * var(--k))/1 inherit !important; color: var(--k-txt2); text-transform: none; letter-spacing: 0; cursor: pointer; }
html .ss-gabarit .ut-tache input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--k-vert); }
html .ss-gabarit .ut-tache input:disabled + span { opacity: .45; }
.ss-gabarit .ut-tache-tete { min-height: 34px; background: var(--k-doux); border-radius: 14px 14px 0 0; color: var(--k-txt2); font-size: calc(11.5px * var(--k)); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ss-gabarit .ut-tache-tete span { text-align: center; }
.ss-gabarit .ut-tache-tete span:first-child { text-align: left; }
/* ut-3. Fiche d'identifiants à imprimer (jamais de mot de passe dessus). */
.ss-gabarit .ut-ident { padding: 16px; border: 2px dashed var(--k-filet); border-radius: 14px; background: var(--k-carte); }
.ss-gabarit .ut-ident h4 { margin: 0 0 8px; color: var(--k-txt); font-size: calc(15px * var(--k)); }
.ss-gabarit .ut-ident dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.ss-gabarit .ut-ident dt { color: var(--k-txt2); font-size: calc(12px * var(--k)); }
.ss-gabarit .ut-ident dd { margin: 0; color: var(--k-txt); font-weight: 700; overflow-wrap: anywhere; }
@media print { .ss-gabarit .ut-ident { border-style: solid; } }
/* ut-4. Mot de passe : règle rappelée sous le champ, cochée au fil de la saisie. */
.ss-gabarit .ut-regles { margin: 6px 0 0; padding: 0; list-style: none; font-size: calc(12px * var(--k)); color: var(--k-txt2); }
.ss-gabarit .ut-regles li::before { content: "○ "; }
.ss-gabarit .ut-regles li.ut-ok { color: var(--k-ok); }
.ss-gabarit .ut-regles li.ut-ok::before { content: "✓ "; }
/* ut-5. Bouton d'envoi présenté comme un lien (« changer », « Corriger ») : zone de 44 px. */
html .ss-gabarit button.ut-lien { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 2px; border: 0; background: none; box-shadow: none; color: var(--ss-link, #08766b) !important; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
html .ss-gabarit button.ut-lien:focus-visible { outline: 3px solid var(--ss-focus, #08766b); }
html[data-ss-soleil="on"] .ss-gabarit :is(.ut-ident, .ut-tache-tete) { border: 2px solid var(--k-bord); box-shadow: none !important; }

/* ---------- 28. École (10/11) : calendrier en liste de jours sur téléphone (ss-calendrier.js, maquette ecole-v1.html) ---------- */
#calendar .ss-cal-tete { display: none; }
@media (max-width: 720px) {
	html #calendar.ss-cal-liste, html #calendar.ss-cal-liste > tbody, html #calendar.ss-cal-liste > tbody > tr { display: block !important; width: 100% !important; }
	html #calendar.ss-cal-liste tr.center, html #calendar.ss-cal-liste > thead, html #calendar.ss-cal-liste td.calendar-skip { display: none !important; }
	html #calendar.ss-cal-liste > tbody > tr > td.calendar-day { display: block !important; width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 0 8px; padding: 10px 12px !important; border-radius: 12px; }
	html #calendar.ss-cal-liste td.calendar-day td.number { display: none !important; }
	html #calendar.ss-cal-liste .ss-cal-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
	html #calendar.ss-cal-liste .ss-cal-tete b { margin-right: auto; font-size: 15px; }
	html #calendar.ss-cal-liste td.calendar-day.no-school .ss-cal-tete b { opacity: .7; }
	html #calendar.ss-cal-liste td.calendar-day.ss-cal-auj { outline: 2px solid var(--ss-focus, #08766b); }
	html #calendar.ss-cal-liste td.calendar-day > table { width: 100%; }
	/* Le thème cache cases, minutes, événements et « + » sur téléphone (grille trop étroite) : en liste, ils reviennent. */
	html #calendar.ss-cal-liste td.calendar-day td.calendar-minutes,
	html #calendar.ss-cal-liste td.calendar-day td.calendar-event,
	html #calendar.ss-cal-liste td.calendar-day tr.calendar-newevent > td { display: table-cell !important; visibility: visible !important; }
	html #calendar.ss-cal-liste td.calendar-day tr.calendar-newevent { visibility: visible !important; }
	html #calendar.ss-cal-liste td.calendar-day :is(td.calendar-minutes, tr.calendar-newevent) * { visibility: visible !important; }
	html #calendar.ss-cal-liste td.calendar-day td.calendar-minutes div.onclick { display: inline-flex !important; flex-direction: row !important; gap: 6px; min-height: 44px; align-items: center; padding: 0 10px; border-radius: 10px; background: var(--ss-surface-2, rgba(127,127,127,.12)); }
	html #calendar.ss-cal-liste td.calendar-day.no-school { background: color-mix(in srgb, var(--ss-surface, #fff) 85%, #c0392b) !important; color: var(--ss-text, inherit) !important; }
	html #calendar.ss-cal-liste td.calendar-day:not(.no-school) { background: var(--ss-surface, #fff) !important; color: var(--ss-text, inherit) !important; }
	html #calendar.ss-cal-liste .ss-cal-tete b { color: var(--ss-text, inherit); }
	/* Contenu du jour sur une ligne : journée entière ou minutes, événements, « + » (nouvel événement). */
	html #calendar.ss-cal-liste td.calendar-day > table { display: block !important; border: 0 !important; background: none !important; }
	html #calendar.ss-cal-liste td.calendar-day > table > tbody { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
	html #calendar.ss-cal-liste td.calendar-day > table > tbody > tr { display: contents !important; }
	html #calendar.ss-cal-liste td.calendar-day > table > tbody > tr > td { display: block !important; width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
	html #calendar.ss-cal-liste td.calendar-day > table > tbody > tr > td.number { display: none !important; }
	html #calendar.ss-cal-liste td.calendar-day > table > tbody > tr > td.calendar-event { flex: 1 1 100%; order: 3; }
	html #calendar.ss-cal-liste td.calendar-day > table > tbody > tr > td.calendar-event:empty { display: none !important; }
	html #calendar.ss-cal-liste td.calendar-day input[type="number"] { width: 90px !important; min-height: 40px; }
	/* Libellés visibles en liste (sinon seulement pour les lecteurs d'écran) ; icônes lisibles en mode sombre. */
	html #calendar.ss-cal-liste td.calendar-minutes .a11y-hidden { position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; margin: 0 0 0 4px !important; overflow: visible !important; white-space: nowrap; color: var(--ss-text, inherit); }
	html #calendar.ss-cal-liste tr.calendar-newevent a { display: inline-flex !important; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px; border-radius: 10px; background: var(--ss-surface-2, rgba(127,127,127,.12)); color: var(--ss-link, #08766b) !important; text-decoration: none; font-weight: 600; }
	html #calendar.ss-cal-liste tr.calendar-newevent a::after { content: "Événement"; }
	html #calendar.ss-cal-liste td.calendar-day img.button { filter: none; background: #fff; border-radius: 6px; }
	html #calendar.ss-cal-liste td.calendar-day > table > tbody > tr > td > * { margin: 0 !important; }
}

/* ---------- 29. Pédagogie (10/11) : pièces validées pe- (maquette docs/maquettes/relief/pedagogie-v2.html) ---------- */
/* pe-1. Grille de saisie des notes : une ligne par élève, une case par branche, maximum rappelé. */
.ss-gabarit .pe-grille { width: 100%; border-collapse: separate; border-spacing: 0; }
.ss-gabarit .pe-grille th { position: sticky; top: 0; background: var(--k-doux); color: var(--k-txt2); font-size: calc(11.5px * var(--k)); font-weight: 700; text-align: center; padding: 8px 4px; }
.ss-gabarit .pe-grille th:first-child { text-align: left; padding-left: 12px; }
.ss-gabarit .pe-grille th small { display: block; font-weight: 400; color: var(--k-txt3); }
.ss-gabarit .pe-grille td { border-top: 1px solid var(--k-filet); padding: 6px 4px; text-align: center; color: var(--k-txt); }
.ss-gabarit .pe-grille td:first-child { text-align: left; padding-left: 12px; font-weight: 600; font-size: calc(13.5px * var(--k)); white-space: nowrap; }
html .ss-gabarit .pe-grille input { width: 58px; min-height: 44px; margin: 0; text-align: center; border-radius: 10px; font-variant-numeric: tabular-nums; }
.ss-gabarit .pe-grille input:disabled { opacity: .6; }
.ss-gabarit .pe-grille .pe-bas { color: var(--k-urg); font-weight: 700; }
/* pe-2. Chiffre d'une ligne : total, pourcentage. */
.ss-gabarit .pe-chiffre { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.ss-gabarit .pe-chiffre b { display: block; color: var(--k-txt); }
.ss-gabarit .pe-chiffre small { color: var(--k-txt3); }
/* pe-3. Jour précédent / suivant. */
.ss-gabarit .pe-jour { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 8px; }
.ss-gabarit .pe-jour a { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 20px; text-decoration: none; color: var(--k-txt2); }

/* ---------- 30. Communication (10/11) : couleur de la rubrique et pièces validées co- (maquette docs/maquettes/relief/communication-v1.html) ---------- */
.ss-gabarit[data-ss-section="communication"] { --k-rub: #7c3aed; --k-rub-fond: #ede9fe; }
/* co-1. Barre de résultat d'un sondage. */
.ss-gabarit .co-barre { display: block; height: 8px; border-radius: 999px; background: var(--k-doux); overflow: hidden; margin-top: 6px; }
.ss-gabarit .co-barre i { display: block; height: 100%; background: var(--k-rub, #7c3aed); border-radius: 999px; }
/* co-2. Formulaire « Nouvelle annonce » : pour qui, dates. */
.ss-gabarit .co-form { display: grid; gap: 12px; padding: 14px; }
.ss-gabarit .co-pourqui { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ss-gabarit .co-pourqui legend { width: 100%; margin-bottom: 6px; }
.ss-gabarit .co-pourqui label { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; color: var(--k-txt); }
.ss-gabarit .co-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ss-gabarit .co-prevenir { border: 0; padding: 0; }
html #body .ss-gabarit .co-form textarea { min-height: 110px; } /* #body : passe devant la règle du thème */
/* co-3. Sondage repliable et ses questions. */
.ss-gabarit .co-sondage { margin-bottom: 10px; }
.ss-gabarit .co-sondage > summary { list-style: none; cursor: pointer; }
.ss-gabarit .co-question { padding: 4px 12px 10px; }
/* co-4. Décision sur un signalement : réponse, confirmer, refuser. */
.ss-gabarit .co-decision { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; padding-top: 0; }
html .ss-gabarit .co-decision input[type="text"] { flex: 1 1 200px; min-height: 44px; margin: 0; }
html #body .ss-gabarit .co-decision button.co-refuser { background: var(--k-doux) !important; color: var(--k-txt) !important; border: 0 !important; } /* bouton du thème : action secondaire */
/* co-5. Code QR d'installation (Activer une famille). */
.ss-gabarit .co-qr { display: grid; place-items: center; padding: 6px 12px 14px; }
.ss-gabarit .co-qr svg { width: 168px; height: 168px; }

/* ---------- 31. Sécurité (10/11) : couleur de la rubrique et pièces validées se- (maquette docs/maquettes/relief/securite-v1.html) ---------- */
.ss-gabarit[data-ss-section="security"] { --k-rub: #b45309; --k-rub-fond: #fef3c7; }
/* se-1. Heure d'un pointage ou d'une connexion, en colonne fixe. */
.ss-gabarit .se-h { flex: none; width: 52px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--k-txt); }
/* se-2. Mention « manuel » d'un pointage. */
.ss-gabarit .se-manuel { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #fef3c7; color: #92400e; margin-left: 4px; }
.ss-gabarit[data-ss-section="security"] .ss-k-chiffres:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 32. Vérification École (10/11) ---------- */
/* Grille des tâches d'un rôle : la colonne « Modifier » laisse la place des bulles JASPE et Watch (comme les lignes). */
.ss-gabarit .ut-tache { padding-right: calc(12px + var(--k-libre-droite)); }

/* ---------- 33. Changer le rôle (17/11, une seule route) ---------- */
/* Le rôle affiché en haut de la fiche est un bouton ; il ouvre ce bloc fermé, sous la carte. */
.ss-gabarit .fp-role-lien { text-decoration: none; cursor: pointer; }
.ss-gabarit .fp-role { margin-top: 10px; }
.ss-gabarit .fp-role > summary { list-style: none; display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; cursor: pointer; padding-right: 28px; position: relative; }
.ss-gabarit .fp-role > summary::-webkit-details-marker { display: none; }
.ss-gabarit .fp-role > summary::after { content: "›"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; opacity: .7; transition: transform .15s; }
.ss-gabarit .fp-role[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
.ss-gabarit .fp-role > summary small { opacity: .75; font-size: 13px; }
.ss-gabarit .fp-role[open] > summary { margin-bottom: 8px; }

/* ---------- 34. JASPE vivante (17/11, « je valide toutes tes idées ») ---------- */
/* JASPE et Watch restent à leur place d'origine ; JASPE réduite reste ouverte mais invisible ; la tête ronde
   porte un point vert « je vous attends » et réagit (rebond + émoji) après un enregistrement, une erreur, un anniversaire. */
#ss-jaspe-dialog.ss-jaspe-reduit { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s ease; }
#ss-jaspe-dialog.ss-jaspe-reduit * { pointer-events: none !important; }
#ss-jaspe-button { position: relative; }
#ss-jaspe-button.ss-jaspe-veille .ss-jaspe-portrait::after { content: ""; position: absolute; right: 1px; top: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff; animation: ss-jaspe-veille 1.6s ease-in-out infinite; }
@keyframes ss-jaspe-veille { 50% { transform: scale(1.25); } }
#ss-jaspe-button.ss-jaspe-reagit .ss-jaspe-portrait { animation: ss-jaspe-rebond .7s cubic-bezier(.3,1.6,.5,1) 2; }
@keyframes ss-jaspe-rebond { 30% { transform: translateY(-9px) scale(1.06); } 60% { transform: translateY(0) scale(.97); } }
#ss-jaspe-button .ss-jaspe-emoji { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); font-size: 24px; line-height: 1; padding: 4px 6px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.22); animation: ss-jaspe-emoji 3.2s ease both; pointer-events: none; }
@keyframes ss-jaspe-emoji { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -100%) scale(1.1); } 20% { transform: translate(-50%, -100%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -130%); } }
@media (prefers-reduced-motion: reduce) { #ss-jaspe-button .ss-jaspe-portrait, #ss-jaspe-button .ss-jaspe-emoji, #ss-jaspe-button .ss-jaspe-portrait::after { animation: none !important; } }


/* Couche « système » (20/11/2026, Consigne 2) : une définition par composant pour toutes ses copies ; en tout dernier. */

/* ===== assets/themes/SchoolSafeCodex/ss-systeme.css ===== */
/* =====================================================================================================================
   SchoolSafe — couche « système » (Consigne 2, étape 1 : fusion des doublons), 20/11/2026.
   Chargée en DERNIER dans ss-ensemble.json : elle l'emporte sur toutes les autres feuilles.
   Rôle : UNE définition par composant, qui vise la classe de référence du kit ET toutes ses copies recensées dans
   docs/analyse/DESIGN_INVENTAIRE_COMPOSANTS_20261120.md. Les copies ne sont pas effacées : elles sont rattachées ici.
   Règle : aucune couleur écrite en dur dans les composants ; seulement les variables du thème (« Apparence »).
   Les seules valeurs de couleur de ce fichier sont celles des variables, dans la partie 1, une fois par mode.
   Retour arrière : retirer ce fichier de ss-ensemble.json et régénérer (node outils/css-ensemble.cjs).
   ===================================================================================================================== */

/* ---------- 1. Variables : un nom par rôle, trois modes ; les anciens noms deviennent des alias ---------- */
/* États (vert = bien, orange = attention, rouge = urgent, bleu = information) : une valeur par mode.
   Avant : une seule valeur claire pour les trois modes (fonds pâles sur fond sombre). */
html[data-ss-theme][data-ss-mode="sombre"] {
    --ss-etat-fait: #5fd3b4;      --ss-etat-fait-bg: #173a33;
    --ss-etat-attention: #f2b766; --ss-etat-attention-bg: #3d2f17;
    --ss-etat-urgent: #f59a9a;    --ss-etat-urgent-bg: #43201f;
    --ss-etat-info: #8cc0f2;      --ss-etat-info-bg: #182c42;
}
html[data-ss-theme][data-ss-mode="nuit"] {
    --ss-etat-fait: #6fe3c6;      --ss-etat-fait-bg: #0f3a4a;
    --ss-etat-attention: #f7c873; --ss-etat-attention-bg: #3a3322;
    --ss-etat-urgent: #ffa3a3;    --ss-etat-urgent-bg: #45213f;
    --ss-etat-info: #a3cbff;      --ss-etat-info-bg: #183673;
}
/* Texte sur la couleur d'accent (bouton principal) et alias des anciens noms. */
html[data-ss-theme] {
    --ss-on-accent: #ffffff;
    --ss-text-muted: var(--ss-text-2);
    --ss-muted: var(--ss-text-2);
    --ss-surface-alt: var(--ss-surface-2);
    --ss-border-strong: var(--ss-line);
    --ss-or: var(--ss-accent);
    --ss-success: var(--ss-etat-fait);
    --ss-warning: var(--ss-etat-attention);
    --ss-danger: var(--ss-etat-urgent);
    --ss-info: var(--ss-etat-info);
    --ss-radius: var(--ss-radius-card);
    --ss-radius-lg: var(--ss-radius-card);
    --ss-hauteur-toucher: 48px;
    --ss-ombre-carte: var(--ss-shadow-petit);
}

/* ---------- 1 bis. Contraste du texte en mode clair (étape 2.1, variante « Fort » choisie le 20/11/2026) ----------
   Mesuré sur le fond des cartes (#e9eef3) : texte gris 4,65 → 7,0 ; texte pâle 3,1 → 5,4. Modes sombre et bleu nuit
   inchangés (déjà 5 à 8,8). Le mode « plein soleil » garde ses propres valeurs, plus fortes. */
html[data-ss-theme="relief"][data-ss-background]:not([data-ss-mode="sombre"]):not([data-ss-mode="nuit"]):not([data-ss-soleil="on"]) {
    --ss-text-2: #44505f;
    --ss-text-secondary: #44505f;
    --ss-text-3: #55616f;
}
/* Texte écrit dans la couleur de l'école (liens, onglet actif) : la même couleur assombrie de 20 % en mode clair
   (or-bronze 3,9 → 5,8). Les boutons gardent la couleur d'origine (--ss-accent n'est pas touché). La teinte choisie dans
   « Apparence » est posée en ligne sur <html> : « !important » est nécessaire pour que le lien suive la règle.
   Seulement si le navigateur sait mélanger les couleurs ; sinon tout reste comme avant. */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    html[data-ss-theme="relief"][data-ss-background]:not([data-ss-mode="sombre"]):not([data-ss-mode="nuit"]):not([data-ss-soleil="on"]) {
        --ss-link: color-mix(in srgb, var(--ss-accent) 80%, #000000) !important;
        --ss-page-link: color-mix(in srgb, var(--ss-accent) 80%, #000000) !important;
        --ss-nav-accent: color-mix(in srgb, var(--ss-accent) 80%, #000000) !important;
    }
}

/* ---------- 2. Carte : une seule (rayon 14 px, ombre douce du relief, bordure du thème) ---------- */
html[data-ss-theme] body #body :is(
    .ss-k-carte, .ss-card, .pf-card, .bu-card, .ssft-card, .ss-accueil-carte, .ss-pe-carte, .ss-k-partie, .ss-import-carte
) {
    border-radius: var(--ss-radius-card) !important;
    box-shadow: var(--ss-ombre-carte) !important;
    border-color: var(--ss-border) !important;
    background-color: var(--ss-surface) !important;
    color: var(--ss-text);
}

/* ---------- 3. Carte vide : une seule (pointillé, texte secondaire) ---------- */
html[data-ss-theme] body #body :is(
    .ss-k-vide, .ss-fin-vide, .ss-life-empty, .ssft-empty, .vs-vide, .ss-accueil-vide, .ss-argent-vide, .ut-vide, .tr-vide,
    .ss-photos-vide, .sscx-empty
) {
    border: 1px dashed var(--ss-line) !important;
    border-radius: var(--ss-radius-card) !important;
    background: var(--ss-surface) !important;
    color: var(--ss-text-2) !important;
    box-shadow: none !important;
}

/* Carte vide repliée sur son titre (étape 2.2, choix « Repliée sur son titre ») : posée par scripts.js. */
html[data-ss-theme] body #body [data-ss-vide-cache] { display: none !important; }
html[data-ss-theme] body #body .ss-carte-repliee { padding-top: 10px !important; padding-bottom: 10px !important; min-height: 0 !important; }
html[data-ss-theme] body #body .ss-carte-repliee :is(h2, h3, h4, summary, .ss-k-sec, .ss-k-titre) {
    display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px; min-width: 0; margin: 0 !important; color: var(--ss-text-2) !important;
}
html[data-ss-theme] body #body .ss-carte-repliee > *, html[data-ss-theme] body #body .ss-carte-repliee :is(header, .ss-life-head, details) { margin-bottom: 0 !important; }
html[data-ss-theme] body #body .ss-carte-repliee summary { list-style: none; pointer-events: none; }
html[data-ss-theme] body #body .ss-carte-repliee summary::-webkit-details-marker { display: none; }
html[data-ss-theme] body #body .ss-rien {
    margin-left: auto; padding-left: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ss-text-3);
}

/* Étape 2.4 : en-tête = flèche Retour + titre court + bouton « ? » ; l'aide s'ouvre sous le titre au toucher. */
html[data-ss-theme] body #body header.ss-k-entete .ss-k-ligne-titre { display: flex !important; align-items: center; gap: 10px; }
html[data-ss-theme] body #body header.ss-k-entete .ss-k-ligne-titre .ss-k-titre { flex: 1 1 auto; min-width: 0; }
html[data-ss-theme] body #body .ss-aide-btn {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 0 auto; padding: 0;
    border: 0; border-radius: 50%; background: var(--ss-surface); box-shadow: var(--ss-shadow-petit);
    color: var(--ss-link); font-weight: 800; font-size: 18px; line-height: 1; cursor: pointer;
}
html[data-ss-theme] body #body .ss-aide-btn[aria-expanded="true"] { box-shadow: var(--ss-shadow-creux); }
html[data-ss-theme] body #body .ss-aide-btn:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 2px; }
html[data-ss-theme] body #body .ss-aide-titre {
    margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--ss-surface); box-shadow: var(--ss-shadow-creux);
}
html[data-ss-theme] body #body .ss-aide-titre[hidden] { display: none !important; }
html[data-ss-theme] body #body .ss-aide-titre p.ss-k-aide { margin: 0 !important; }

/* Étape 2.5 : titres de section = icône au trait (couleur de l'école) + un mot ; plus de numéros. */
html[data-ss-theme] :is(li.menu-inter, h2.ss-accueil-bloc-titre)[data-ss-titre-court] { display: flex !important; align-items: center; gap: 8px; }
html[data-ss-theme] .ss-titre-ico { flex: none; width: 18px; height: 18px; color: var(--ss-accent); }
html[data-ss-theme] h2.ss-accueil-bloc-titre .ss-titre-ico { width: 22px; height: 22px; }
html[data-ss-theme][data-ss-mode="sombre"] .ss-titre-ico, html[data-ss-theme][data-ss-mode="nuit"] .ss-titre-ico { color: var(--ss-link); }

/* Étape 2.6 : JASPE et Watch rangés derrière une languette de 14 px dans la marge droite (téléphone seulement). */
#ss-poignee-compagnons { display: none; }
@media screen and (max-width: 900px) {
    html[data-ss-theme]:not([data-ss-prodeli]) #ss-poignee-compagnons {
        position: fixed; right: 0; bottom: calc(var(--ss-onglet-h, 64px) + 34px + env(safe-area-inset-bottom)); z-index: 2501;
        display: flex; align-items: center; justify-content: center; width: 14px; height: 110px; margin: 0; padding: 0;
        border: 0; border-radius: 10px 0 0 10px; background: var(--ss-surface); box-shadow: var(--ss-shadow-petit); cursor: pointer;
        transition: transform .25s var(--ss-ease, ease), opacity .25s var(--ss-ease, ease);
    }
    #ss-poignee-compagnons > span { display: block; width: 4px; height: 44px; border-radius: 4px; background: var(--ss-accent); }
    #ss-poignee-compagnons:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: -3px; }
    html:not(.ss-compagnons-ranges) #ss-poignee-compagnons { transform: translateX(16px); opacity: 0; pointer-events: none; }
    #ss-compagnons { transition: transform .25s var(--ss-ease, ease), opacity .25s var(--ss-ease, ease), visibility .25s; }
    html.ss-compagnons-ranges #ss-compagnons { transform: translateX(90px); opacity: 0; visibility: hidden; }
    html.ss-compagnons-ranges #ss-compagnons > * { pointer-events: none !important; }
    #ss-compagnons.ss-defile { opacity: 1; }
    /* JASPE rangé qui réagit (salut, urgence, enregistrement…) : sa bulle sort à côté de la languette, qui bat. */
    #ss-poignee-compagnons.ss-poignee-signal { animation: ss-poignee-bat .7s cubic-bezier(.3,1.6,.5,1) 2; }
    #ss-poignee-compagnons.ss-poignee-signal::before {
        content: attr(data-emoji); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
        padding: 6px 8px; border-radius: 14px; font-size: 22px; line-height: 1; background: var(--ss-surface); box-shadow: var(--ss-shadow-petit);
        animation: ss-jaspe-signal 3.2s ease both; pointer-events: none;
    }
    @keyframes ss-poignee-bat { 40% { transform: translateX(-6px); } }
    @keyframes ss-jaspe-signal { 0% { opacity: 0; transform: translate(10px, -50%) scale(.6); } 12% { opacity: 1; transform: translate(0, -50%) scale(1.08); } 20% { transform: translate(0, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { #ss-poignee-compagnons, #ss-compagnons { transition: none !important; } #ss-poignee-compagnons.ss-poignee-signal, #ss-poignee-compagnons.ss-poignee-signal::before { animation: none !important; } }

/* Étape 2.7 : rail du menu (rubrique ouverte, téléphone) — le nom de chaque rubrique sous son icône ; rail 76 px. */
@media screen and (max-width: 700px) {
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu {
        width: 76px !important; padding: 8px 4px !important;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top {
        flex-direction: column !important; gap: 3px; width: 68px !important; min-height: 64px; padding: 6px 2px !important;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .menu-module > .menu-top .ss-menu-label {
        display: block !important; max-width: 68px; font-size: 10px !important; line-height: 1.15 !important; font-weight: 600;
        text-align: center; white-space: normal !important; overflow-wrap: normal !important; word-break: normal !important; hyphens: manual; color: var(--ss-text-2) !important;
    }
    html[data-ss-theme] body.modules:has(#menu .menu-module.ss-open)[data-ss-mobile-panel="context"] #menu.ss-d2-menu .adminmenu > .ss-open > .menu-top .ss-menu-label {
        color: var(--ss-link) !important; font-weight: 800;
    }
    html[data-ss-theme] body.modules[data-ss-mobile-panel="context"] #menu.ss-d2-menu .ss-open > .wp-submenu {
        left: 76px !important; width: min(calc(100vw - 92px), 330px) !important;
    }
}

/* Étape 2.8 : pastilles de filtre en colonnes égales (3 ou 2, posées par scripts.js), 48 px, coins 12 px, une ligne. */
html[data-ss-theme] body #body .ss-filtres {
    display: grid !important; grid-template-columns: repeat(var(--ss-cols, 3), minmax(0, 1fr)) !important; grid-auto-flow: row !important;
    gap: 8px !important; flex-wrap: nowrap !important; overflow: visible !important;
}
@media screen and (min-width: 701px) {
    html[data-ss-theme] body #body .ss-filtres { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
}
/* Un intitulé dans le groupe (« Partir d'un modèle : ») prend sa ligne, sans forme de pastille. */
html[data-ss-theme] body #body .ss-filtres > :not(a):not(button):not(label) { grid-column: 1 / -1; margin: 0 !important; font-size: 13px; color: var(--ss-text-2); }
html[data-ss-theme] body #body .ss-filtres > :is(a, button, label):not(.on):not([aria-current]):not([aria-pressed="true"]) {
    background: var(--ss-surface) !important; box-shadow: var(--ss-shadow-petit) !important; color: var(--ss-text) !important; border: 0 !important;
}
html[data-ss-theme] body #body .ss-filtres > :is(a, button, label) {
    display: flex !important; align-items: center; justify-content: center; min-width: 0; width: auto !important;
    min-height: 48px !important; height: 48px; margin: 0 !important; padding: 0 10px !important; border-radius: 12px !important;
    white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; text-align: center; font-size: max(13px, 1em) !important;
}
/* Étape 2.8 : badges et statuts, une seule taille (24 px, 13 px, une ligne). */
html[data-ss-theme] body #body :is(.ss-k-p, .ss-tag, .ssft-badge, .ss-pe-etat, .pd-etat, .ssc-etat, .ss-photos-etat, .ss-pp-etat, .tp-partage, .sscx-badge) {
    display: inline-flex !important; align-items: center; min-height: 24px; height: auto; padding: 0 10px !important;
    border-radius: 999px !important; font-size: 13px !important; line-height: 1.2 !important; font-weight: 700; white-space: nowrap !important;
}
html[data-ss-theme] body #body .ss-badge-commun { display: none !important; }
html[data-ss-theme] body #body .ss-badge-tete { margin: 0 0 8px; }

/* Étape 2.9 : bannières d'alerte jamais coupées ; liens touchables ; une bannière à un seul lien est touchable en entier. */
html[data-ss-theme] body #body :is(.ss-k-message, div.error, div.warning, div.updated, .ssft-alert, .tp-alerte, .ss-import-avis, .vs-tv-avis) {
    overflow: visible !important; max-height: none !important; height: auto !important; white-space: normal !important;
    text-overflow: clip !important; overflow-wrap: anywhere; position: relative;
}
html[data-ss-theme] body #body :is(.ss-k-message, div.error, div.warning, div.updated, .ssft-alert, .tp-alerte, .ss-import-avis, .vs-tv-avis) a[href] {
    display: inline-block; padding: 6px 2px; margin: -6px 0; text-decoration: underline !important; text-underline-offset: 3px;
    font-weight: 700; color: inherit !important;
}
html[data-ss-theme] body #body .ss-banniere-un-lien { cursor: pointer; }
html[data-ss-theme] body #body .ss-banniere-un-lien :is(a[href], button)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Étape 2.10 : une information à un seul endroit (doublons masqués par scripts.js). */
html[data-ss-theme] body #body [data-ss-doublon] { display: none !important; }

/* Étape 3 : tuiles des tableaux de bord (tous les profils) — icône + chiffre + un mot, urgences en couleur, jauge,
   réaction au toucher. Classes posées par scripts.js (bloc « étape 3 »). */
html[data-ss-theme] body #body .ss-tuile-bord {
    position: relative; display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px;
    border-radius: var(--ss-radius-card) !important; box-shadow: var(--ss-shadow-petit) !important;
    transition: transform .15s var(--ss-ease, ease), box-shadow .15s var(--ss-ease, ease);
    -webkit-tap-highlight-color: transparent;
}
html[data-ss-theme] body #body a.ss-tuile-bord:active, html[data-ss-theme] body #body .ss-tuile-bord:active { transform: scale(.97); box-shadow: var(--ss-shadow-creux) !important; }
html[data-ss-theme] body #body .ss-tuile-bord > .ss-tuile-ico { width: 20px; height: 20px; color: var(--ss-accent); margin-bottom: 2px; }
html[data-ss-theme][data-ss-mode] body #body .ss-tuile-bord > .ss-tuile-ico { color: var(--ss-link); }
html[data-ss-theme] body #body .ss-tuile-bord > b { font-size: 26px !important; line-height: 1.1 !important; font-weight: 800 !important; color: var(--ss-text) !important; }
html[data-ss-theme] body #body .ss-tuile-bord > small {
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13px !important; color: var(--ss-text-2) !important;
}
html[data-ss-theme] body #body .ss-tuile-bord > small ~ small:not(:nth-of-type(2)) { display: none !important; }
html[data-ss-theme] body #body .ss-tuile-urgente { background: var(--ss-etat-urgent-bg) !important; }
html[data-ss-theme] body #body .ss-tuile-urgente::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ss-etat-urgent);
}
html[data-ss-theme] body #body .ss-tuile-urgente > :is(b, .ss-tuile-ico) { color: var(--ss-etat-urgent) !important; }
html[data-ss-theme] body #body .ss-jauge {
    display: block; width: 100%; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--ss-surface-2); box-shadow: var(--ss-shadow-creux); overflow: hidden;
}
html[data-ss-theme] body #body .ss-jauge > i { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--ss-accent); transition: width .8s var(--ss-ease, ease); }
html[data-ss-theme] body #body .ss-tuile-urgente .ss-jauge > i { background: var(--ss-etat-urgent); }
@media (prefers-reduced-motion: reduce) { html[data-ss-theme] body #body :is(.ss-tuile-bord, .ss-jauge > i) { transition: none !important; } }
html[data-ss-econome="on"] body #body :is(.ss-tuile-bord, .ss-jauge > i) { transition: none !important; }
/* Accueil de la direction : « À faire » en tuiles (classes posées par scripts.js, bloc « étape 3 », fonction aFaire). */
html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-carte.ss-afaire-grille {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important;
}
@media (min-width: 900px) { html[data-ss-theme] body.modules #body #ss-accueil .ss-accueil-carte.ss-afaire-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) { html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-grille > .ss-afaire-tuile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-grille > a.ss-accueil-ligne.ss-afaire-tuile {
    position: relative; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 112px; margin: 0; padding: 12px 12px 12px 14px;
    border: 1px solid var(--ss-border) !important; border-radius: var(--ss-radius-card, 14px) !important; background: var(--ss-d2-surface) !important;
    box-shadow: var(--ss-shadow-petit) !important; -webkit-tap-highlight-color: transparent;
    transition: transform .15s var(--ss-ease, ease), box-shadow .15s var(--ss-ease, ease);
}
html[data-ss-theme="relief"] body.modules #body #ss-accueil .ss-afaire-grille > a.ss-afaire-tuile { border-color: transparent !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-grille > a.ss-afaire-tuile:active { transform: scale(.97); box-shadow: var(--ss-shadow-creux) !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile > .ss-icone { width: 20px; height: 20px; color: var(--ss-link); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile > .ss-afaire-chiffre { font-size: 26px; line-height: 1.1; font-weight: 800; color: var(--ss-text); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile > .ss-accueil-ligne-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile .ss-accueil-ligne-titre,
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile .ss-accueil-ligne-texte small {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; white-space: normal;
}
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile .ss-accueil-ligne-titre { font-weight: 700; color: var(--ss-text); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile .ss-accueil-ligne-texte small { color: var(--ss-text-2); }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile > .ss-pastille { position: absolute; top: 10px; right: 10px; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile > .ss-accueil-fleche { display: none; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile.ss-tuile-urgente { background: var(--ss-etat-urgent-bg) !important; }
html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile.ss-tuile-urgente > :is(.ss-afaire-chiffre, .ss-icone) { color: var(--ss-etat-urgent); }
@media (prefers-reduced-motion: reduce) { html[data-ss-theme] body.modules #body #ss-accueil .ss-afaire-tuile { transition: none !important; } }


/* ---------- 4. Boutons : une seule forme (48 px, rayon 14 px) pour le bouton du kit et toutes ses copies ---------- */
html[data-ss-theme] body #body :is(
    .ss-k-btn, .ss-k-action, .button-primary, .ss-btn, .pf-btn, .br-btn, .nb-btn, .sb-btn, .bu-btn,
    .ss-fin-bouton, .ss-import-btn, .fp-etape-btn, .ssc-btn, .btn
),
html[data-ss-theme] body #body :is(input[type="submit"], button[type="submit"]):not(.ss-k-lien) {
    min-height: var(--ss-hauteur-toucher) !important;
    border-radius: 14px !important;
    box-sizing: border-box;
}
/* Bouton principal du kit : fond = couleur d'accent du thème (or-bronze pour l'école 3, vert par défaut). */
:is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn:not(.ss-k-btn--2):not(.ss-k-btn--urg) {
    background: var(--ss-accent) !important;
    color: var(--ss-on-accent) !important;
    box-shadow: var(--ss-shadow-petit);
}
/* Bouton secondaire : même taille, fond de carte, texte normal. */
:is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn.ss-k-btn--2 {
    background: var(--ss-surface) !important;
    color: var(--ss-text) !important;
    box-shadow: var(--ss-shadow-petit) !important;
}
:is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn.ss-k-btn--urg {
    background: var(--ss-etat-urgent) !important;
    color: var(--ss-on-accent) !important;
}
html[data-ss-theme][data-ss-mode] :is(html, #body) .ss-gabarit .ss-k-btn.ss-k-btn.ss-k-btn--urg { color: var(--ss-surface) !important; }

/* Étape 2.3 : un seul bouton principal par écran ; les autres en relief neutre (même famille que les cartes). */
html[data-ss-theme] body #body .ss-secondaire-auto,
html[data-ss-theme] body #body .ss-gabarit .ss-k-btn.ss-k-btn.ss-secondaire-auto {
    background: var(--ss-surface) !important;
    background-image: none !important;
    color: var(--ss-text) !important;
    border-color: transparent !important;
    box-shadow: var(--ss-shadow-petit) !important;
    text-shadow: none !important;
}
html[data-ss-theme] body #body .ss-secondaire-auto :is(svg, i) { color: var(--ss-text) !important; fill: currentColor; }
/* Étape 2.3 : un lien d'action seul sur sa ligne devient une pastille en relief de 44 px avec une flèche. */
html[data-ss-theme] body #body a.ss-lien-action {
    display: inline-flex !important; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px !important;
    border-radius: 12px !important; background: var(--ss-surface) !important; box-shadow: var(--ss-shadow-petit) !important;
    color: var(--ss-link) !important; font-size: max(13.5px, 1em) !important; font-weight: 700 !important;
    text-decoration: none !important; white-space: nowrap; vertical-align: middle;
}
html[data-ss-theme] body #body a.ss-lien-action::after { content: "›"; font-size: 18px; line-height: 1; }
html[data-ss-theme] body #body a.ss-lien-action:active { box-shadow: var(--ss-shadow-creux) !important; }

/* ---------- 5. Lien d'action : une seule forme (zone de toucher 44 px, texte 13 px, couleur de lien) ---------- */
html[data-ss-theme] body #body :is(.ss-k-lien, .ss-k-ligne-lien, .so-lien, .ut-lien, .tp-lien, .fp-role-lien, .ssus-link, .ss-finance-link) {
    min-height: 44px;
    font-size: max(13px, 1em) !important;
    color: var(--ss-link) !important;
}

/* ---------- 6. Pastilles, onglets et choix : une seule forme (48 px, rayon 12 px, texte 13 px sur une ligne) ---------- */
html[data-ss-theme] body #body .ss-gabarit .pg-app :is(.ss-chips, .pf-chips, .br-chips, .nb-chips, .sb-chips, .ss-tabs, .ss-cats) a,
html[data-ss-theme] body.modules #body nav.ss-onglets-vue a,
html[data-ss-theme] body #body .ss-k-choix > :is(a, button, label, span),
html[data-ss-theme] body #body .ss-fin-seg > :is(a, button, label) {
    min-height: var(--ss-hauteur-toucher) !important;
    border-radius: 12px !important;
    font-size: max(13px, 1em) !important;
    white-space: nowrap;
}

/* Pastille choisie : fond de la couleur d'accent, texte sur accent (avant : en mode sombre, « Toutes (16) » avait un
   texte presque de la couleur de son fond, contraste 1,3). */
html[data-ss-theme] body #body :is(.el-puces, .ss-k-choix, .ss-fin-seg, .pg-app :is(.ss-chips, .pf-chips, .br-chips, .nb-chips, .sb-chips, .ss-tabs, .ss-cats))
    :is(a, button).on,
html[data-ss-theme] body #body :is(.el-puces, .ss-k-choix, .ss-fin-seg) :is(a, button)[aria-current]:not([aria-current="false"]),
html[data-ss-theme] body #body :is(a, button).on:is([aria-current="page"], [aria-current="true"]),
html[data-ss-theme] body.modules #body nav.ss-onglets-vue a[aria-current] {
    background: var(--ss-accent) !important;
    color: var(--ss-on-accent) !important;
}

/* ---------- 7. Badges et statuts : une seule palette (vert, orange, rouge, bleu), en variables ---------- */
html[data-ss-theme] body #body :is(.ss-pe-etat-ok, .ss-k-p--ok, .ss-tag--ok) { background: var(--ss-etat-fait-bg) !important; color: var(--ss-etat-fait) !important; }
html[data-ss-theme] body #body :is(.ss-pe-etat-att, .ss-k-p--att, .ss-tag--att) { background: var(--ss-etat-attention-bg) !important; color: var(--ss-etat-attention) !important; }
html[data-ss-theme] body #body :is(.ss-pe-etat-urg, .ss-k-p--urg, .ss-tag--urg) { background: var(--ss-etat-urgent-bg) !important; color: var(--ss-etat-urgent) !important; }
html[data-ss-theme] body #body :is(.ss-k-p--inf, .ss-tag--inf) { background: var(--ss-etat-info-bg) !important; color: var(--ss-etat-info) !important; }
html[data-ss-theme] body #body :is(.ssft-badge, .tp-partage) {
    border-radius: 999px !important;
    background: var(--ss-surface-2) !important;
    color: var(--ss-text) !important;
}

/* ---------- 8. Bannières : une seule (rayon 12 px, couleurs d'état) ---------- */
html[data-ss-theme] body #body :is(.ssft-alert, .tp-alerte, .ss-import-avis, .vs-tv-avis) {
    border-radius: 12px !important;
    border: 1px solid var(--ss-etat-attention) !important;
    background: var(--ss-etat-attention-bg) !important;
    color: var(--ss-etat-attention) !important;
}

/* SchoolSafe Watch, lot 1 (20/11/2026) : contenu du panneau Watch (scripts.js, centralWatch). Direction : résumé + bouton
   « Montres des élèves » ; parent : une ligne par enfant, bord coloré selon l'état de sa montre. */
#ss-watch-dialog .ss-watch-lien {
    display: flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; min-height: 48px; margin-top: 8px;
    border-radius: var(--ss-radius-card, 14px); background: var(--ss-accent); color: var(--ss-on-accent, #fff) !important; font-weight: 700; text-decoration: none;
}
#ss-watch-dialog .ss-watch-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
#ss-watch-dialog .ss-watch-liste li {
    display: grid; gap: 2px; min-height: 44px; padding: 6px 0 6px 12px; border-left: 4px solid var(--ss-border, #dde3e0);
}
#ss-watch-dialog .ss-watch-liste li b { font-size: 15px; }
#ss-watch-dialog .ss-watch-liste li span { font-size: 13px; color: var(--ss-text-2, #556777); }
#ss-watch-dialog .ss-watch-liste li[data-etat="en_ligne"] { border-left-color: var(--ss-etat-fait); }
#ss-watch-dialog .ss-watch-liste li[data-etat="batterie_basse"] { border-left-color: var(--ss-etat-attention); }
#ss-watch-dialog .ss-watch-liste li[data-etat="hors_ligne"] { border-left-color: var(--ss-etat-urgent); }

/* Finance en un seul écran (20/11/2026) : la liste des sous-fonctions de Finance n'est plus affichée quand l'écran existe
   (classe posée par scripts.js) ; l'écran et sa roue portent toutes les fonctions. */
html.ss-finance-ecran #menu .menu-module[data-ss-branch="finance"] .wp-submenu { display: none !important; }
/* École aussi (20/11/2026, maquette École v2) : l'écran École et sa roue portent toutes les pages de la rubrique. */
html.ss-ecole-ecran #menu .menu-module[data-ss-branch="school"] .wp-submenu { display: none !important; }
/* Pédagogie aussi (20/11/2026, « Oui, lot 2 ») : la direction a l'écran Pédagogie en cartes ; l'enseignant garde son sous-menu. */
html.ss-pedagogie-ecran #menu .menu-module[data-ss-branch="pedagogy"] .wp-submenu { display: none !important; }
/* Transport, Vie scolaire, Communication, Sécurité (20/11/2026, maquette rubriques-cartes-v1.html) : direction seulement. */
html.ss-ecran-classes #menu .menu-module[data-ss-branch="classes"] .wp-submenu,
html.ss-ecran-transport #menu .menu-module[data-ss-branch="transport"] .wp-submenu,
html.ss-ecran-care #menu .menu-module[data-ss-branch="care"] .wp-submenu,
html.ss-ecran-communication #menu .menu-module[data-ss-branch="communication"] .wp-submenu,
html.ss-ecran-security #menu .menu-module[data-ss-branch="security"] .wp-submenu { display: none !important; }

/* 22/11/2026 (« Salaires dus » et « Verser », point E) : choix de monnaie à 48 px sur ces deux pages (règle 9). */
body.modname-accounting-salaries-php .ss-gabarit .ss-k-seg > label > span,
body.modname-accounting-staffpayments-php .ss-gabarit .ss-k-seg > label > span {
    min-height: 48px; margin: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}

/* 22/11/2026 (« Paiements du personnel » regardé jusqu'en bas, « Oui, corrige ») : « Enregistrer » à la fin de la carte
   « Verser », à sa place (le kit le faisait flotter au-dessus des champs) ; liste vide en trait plein, comme les cartes. */
:is(html, #body) body.modname-accounting-staffpayments-php .ss-gabarit .ss-verser-fin :is(input, a).ss-k-action.ss-k-action {
    position: static !important; left: auto; right: auto; bottom: auto; display: flex; align-items: center; justify-content: center;
    width: 222px !important; max-width: 100%; height: 48px !important; min-height: 48px; margin: 16px 0 0 !important; box-sizing: border-box;
}
body.modname-accounting-staffpayments-php .ss-gabarit .ss-k-vide { border-style: solid; }
body.modname-accounting-staffpayments-php .ss-gabarit .ss-verser-carte > .ss-k-champ + .ss-k-champ,
body.modname-accounting-staffpayments-php .ss-gabarit .ss-verser-carte > .ss-k-plus { margin-top: 12px; }
/* « Ce mois » : dû, déjà versé, reste sur une ligne, trois colonnes égales. */
.ss-gabarit .ss-paie-ce-mois .ss-k-reste { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
.ss-gabarit .ss-paie-ce-mois .ss-k-reste b { font-size: 15px !important; white-space: nowrap; }
.ss-gabarit .ss-paie-ce-mois .ss-k-reste > div { min-width: 0; }
/* Carte « Verser » : la case caisse est une ligne de la carte, pas une carte dans la carte. */
body.modname-accounting-staffpayments-php .ss-gabarit .ss-verser-carte .ss-k-carte { margin: 12px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
/* Plus de bouton flottant sur « Verser » : la place qu'il réservait en bas est rendue. */
body.modname-accounting-staffpayments-php .ss-gabarit { padding-bottom: 16px !important; }

/* ---------- 22/11/2026 (École, lot Calendrier ; « Oui, comme proposé ») ---------- */
/* Créer / Recréer / Supprimer derrière un seul bouton ; Supprimer en dernier, en rouge. */
body.modname-school-setup-calendar-php details.ss-cal-actions { position: relative; display: inline-block; text-align: left; }
body.modname-school-setup-calendar-php details.ss-cal-actions > summary {
    list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; height: 48px;
    border-radius: 12px; border: 1px solid var(--ss-bord, rgba(127,127,127,.35)); background: var(--ss-surface, #fff);
    color: var(--ss-text, inherit); font-weight: 700; font-size: 14px; cursor: pointer; box-sizing: border-box;
}
body.modname-school-setup-calendar-php details.ss-cal-actions > summary::-webkit-details-marker { display: none; }
body.modname-school-setup-calendar-php details.ss-cal-actions > summary::after { content: "▾"; margin-left: 8px; opacity: .7; }
body.modname-school-setup-calendar-php .ss-cal-actions-l {
    position: absolute; right: 0; z-index: 30; width: min(320px, calc(100vw - 32px)); margin-top: 6px; padding: 6px;
    border-radius: 14px; background: var(--ss-surface, #fff); box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 1px solid rgba(127,127,127,.25);
}
body.modname-school-setup-calendar-php a.ss-cal-action { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ss-text, inherit) !important; text-decoration: none !important; text-transform: none !important; }
body.modname-school-setup-calendar-php a.ss-cal-action:hover { background: rgba(127,127,127,.1); }
body.modname-school-setup-calendar-php a.ss-cal-action b { display: block; font-size: 14px; }
body.modname-school-setup-calendar-php a.ss-cal-action small { display: block; font-size: 13px; opacity: .8; line-height: 1.35; margin-top: 2px; }
body.modname-school-setup-calendar-php a.ss-cal-action.ss-cal-supprimer { margin-top: 4px; border-top: 1px solid rgba(127,127,127,.2); border-radius: 0 0 10px 10px; }
body.modname-school-setup-calendar-php a.ss-cal-action.ss-cal-supprimer b { color: #c0392b; }
/* Avertissement de « Recréer ce calendrier ». */
.ss-cal-avert { text-align: left !important; font-weight: 400 !important; margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #e0a020 18%, transparent); font-size: 14px; line-height: 1.45; }
/* « Lister les évènements » : un vrai bouton. */
body.modname-school-setup-calendar-php a.ss-cal-lister {
    display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; height: 48px; margin: 8px 0 0;
    border-radius: 12px; border: 1px solid var(--ss-bord, rgba(127,127,127,.35)); font-weight: 700; font-size: 14px; text-decoration: none !important; box-sizing: border-box;
}
/* Partie du jour : trois boutons (téléphone, liste de jours) ; la case et les minutes d'origine sont rangées. */
#calendar .ss-cal-choix { display: none; }
@media (max-width: 720px) {
    html #calendar.ss-cal-liste .ss-cal-choix { display: block; flex: 1 1 100%; order: 2; }
    html #calendar.ss-cal-liste td.ss-cal-avec-choix td.calendar-minutes { display: none !important; }
    #calendar .ss-cal-choix .ss-k-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(127,127,127,.12); }
    #calendar .ss-cal-choix .ss-k-seg button { min-height: 48px; padding: 0 4px; border: 0; border-radius: 9px; background: transparent; color: inherit; font-size: 13px; font-weight: 600; line-height: 1.15; }
    #calendar .ss-cal-choix .ss-k-seg button.on { background: var(--ss-surface, #fff); box-shadow: 0 1px 4px rgba(0,0,0,.15); color: var(--ss-focus, #08766b); }
    #calendar .ss-cal-choix .ss-cal-min { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
    #calendar .ss-cal-choix .ss-cal-min input { width: 110px; height: 48px; border-radius: 12px; font-size: 16px; padding: 0 10px; box-sizing: border-box; }
    body.modname-school-setup-calendar-php .ss-cal-actions-l { left: 0; right: auto; }
    /* Une seule légende : celle de la grille. */
    body.modname-school-setup-calendar-php .ss-cal-legende { display: none; }
}

/* ---------- 22/11/2026 (École, lot 2 « Année et périodes » ; « Oui, comme proposé ») ---------- */
/* L'année, une carte par trimestre, ses périodes dedans (MarkingPeriods.php, .ss-mp-arbre). */
body.modname-school-setup-markingperiods-php .ss-mp-arbre { margin: 16px 0 8px; }
body.modname-school-setup-markingperiods-php .ss-mp-annee { display: grid; gap: 10px; }
body.modname-school-setup-markingperiods-php a.ss-mp-l {
    display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 8px 12px; box-sizing: border-box;
    border-radius: 12px; border: 1px solid rgba(127,127,127,.25); background: var(--ss-surface, #fff);
    color: var(--ss-text, inherit) !important; text-decoration: none !important; text-transform: none !important; min-width: 0;
}
body.modname-school-setup-markingperiods-php a.ss-mp-l b { font-size: 15px; line-height: 1.25; }
body.modname-school-setup-markingperiods-php a.ss-mp-l small { font-size: 13px; opacity: .8; line-height: 1.3; margin-top: 2px; }
body.modname-school-setup-markingperiods-php a.ss-mp-l.on { border: 2px solid var(--ss-focus, #08766b); }
body.modname-school-setup-markingperiods-php .ss-mp-trim { padding: 10px; border-radius: 14px; background: rgba(127,127,127,.08); display: grid; gap: 8px; }
body.modname-school-setup-markingperiods-php a.ss-mp-l-trim { border-width: 0; background: none; padding: 2px 2px 4px; min-height: 40px; }
body.modname-school-setup-markingperiods-php a.ss-mp-l-trim.on { border: 2px solid var(--ss-focus, #08766b); padding: 6px 10px; background: var(--ss-surface, #fff); }
body.modname-school-setup-markingperiods-php .ss-mp-per { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.modname-school-setup-markingperiods-php .ss-mp-sous { grid-column: 1 / -1; display: grid; gap: 6px; padding-left: 12px; }
body.modname-school-setup-markingperiods-php a.ss-mp-ajout {
    display: inline-flex; align-items: center; justify-content: center; width: 222px; max-width: 100%; height: 48px; box-sizing: border-box;
    border-radius: 12px; border: 1px dashed rgba(127,127,127,.55); font-weight: 700; font-size: 14px; text-decoration: none !important;
}
/* Formulaire : champs courts deux par ligne ; dates de saisie des notes (3 listes) sur toute la ligne. */
@media (max-width: 700px) {
    body.modname-school-setup-markingperiods-php form table.fixed-col,
    body.modname-school-setup-markingperiods-php form table.fixed-col > tbody { display: block !important; width: 100% !important; }
    body.modname-school-setup-markingperiods-php form table.fixed-col > tbody > tr.st { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
    body.modname-school-setup-markingperiods-php form table.fixed-col > tbody > tr.st > td { display: block !important; width: auto !important; min-width: 0; padding: 4px 0 !important; }
    body.modname-school-setup-markingperiods-php form table.fixed-col > tbody > tr.st > td:has(select) { grid-column: 1 / -1; }
    body.modname-school-setup-markingperiods-php form table.fixed-col > tbody > tr:not(.st) { display: block !important; }
    body.modname-school-setup-markingperiods-php form table.fixed-col hr { margin: 6px 0; }
}
/* « Enregistrer » en bas, à gauche ; « Supprimer » à part, dessous, en rouge. */
body.modname-school-setup-markingperiods-php .ss-mp-fin { margin: 12px 0 0; }
body.modname-school-setup-markingperiods-php .ss-mp-fin input[type="submit"] { position: static !important; width: 222px !important; max-width: 100%; height: 48px !important; margin: 0 !important; }
body.modname-school-setup-markingperiods-php .ss-mp-suppr { margin: 12px 0 0; }
body.modname-school-setup-markingperiods-php .ss-mp-suppr input[type="button"] {
    width: 222px; max-width: 100%; height: 48px; border-radius: 12px; border: 1px solid #c0392b; background: transparent; color: #c0392b; font-weight: 700; font-size: 14px;
}
@media (max-width: 700px) {
    body.modname-school-setup-markingperiods-php form table.fixed-col { padding: 0 12px !important; box-sizing: border-box; }
}
body.modname-school-setup-markingperiods-php form table.fixed-col td :is(input[type="text"], input[type="number"]) { width: 100% !important; max-width: 100%; height: 48px; box-sizing: border-box; }
body.modname-school-setup-markingperiods-php .ss-mp-suppr input[type="button"] { margin: 0 !important; }
@media (min-width: 900px) {
    body.modname-school-setup-markingperiods-php .ss-mp-annee { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
    body.modname-school-setup-markingperiods-php .ss-mp-annee > a.ss-mp-l-annee { grid-column: 1 / -1; }
    body.modname-school-setup-markingperiods-php .ss-mp-annee > a.ss-mp-ajout { grid-column: 1 / -1; }
}

/* ---------- 22/11/2026 (École, lot 3 « Informations de l'école » ; « Oui, comme proposé ») ---------- */
/* Cartes : Identité, Logo et couleur, Devise, Adresse et contact, Notes, Autres informations ; champs courts deux par ligne. */
body.modname-school-setup-schools-php .ss-ec-carte { margin: 0 0 12px; padding: 12px; border-radius: 14px; background: rgba(127,127,127,.07); }
body.modname-school-setup-schools-php .ss-ec-carte > h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; text-transform: none; }
body.modname-school-setup-schools-php .ss-ec-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
body.modname-school-setup-schools-php .ss-ec-c { min-width: 0; }
body.modname-school-setup-schools-php .ss-ec-c.ss-ec-plein { grid-column: 1 / -1; }
body.modname-school-setup-schools-php .ss-ec-c :is(input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="file"], select) { width: 100% !important; max-width: 100%; box-sizing: border-box; height: 48px !important; min-height: 48px; }
body.modname-school-setup-schools-php .ss-ec-c textarea { width: 100% !important; box-sizing: border-box; }
body.modname-school-setup-schools-php .ss-ec-c :is(.legend-gray, label) { font-size: 13px; text-transform: none; }
body.modname-school-setup-schools-php .ss-ec-logo-l { display: flex; align-items: center; gap: 12px; }
body.modname-school-setup-schools-php .ss-ec-logo { flex: 0 0 auto; width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: #fff; }
body.modname-school-setup-schools-php .ss-ec-logo-vide { display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: .7; border: 1px dashed rgba(127,127,127,.5); }
body.modname-school-setup-schools-php .ss-ec-logo-l > div { min-width: 0; flex: 1 1 auto; }
body.modname-school-setup-schools-php .ss-ec-logo-l input[type="file"] { max-width: 100%; font-size: 13px; }
body.modname-school-setup-schools-php .ss-school-theme-color { display: flex; align-items: center; gap: 10px; min-height: 48px; }
body.modname-school-setup-schools-php .ss-school-theme-color input[type="color"] { width: 48px; height: 48px; padding: 2px; border-radius: 12px; }
body.modname-school-setup-schools-php .ss-ec-case { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 14px; }
body.modname-school-setup-schools-php .ss-ec-case input { width: 24px; height: 24px; }
body.modname-school-setup-schools-php .ss-ec-aide { margin: 0; align-self: center; font-size: 13px; opacity: .8; }
body.modname-school-setup-schools-php .ss-ec-fin { margin: 12px 0 0; }
body.modname-school-setup-schools-php .ss-ec-fin input[type="submit"] { position: static !important; width: 222px !important; max-width: 100%; height: 48px !important; margin: 0 !important; }
body.modname-school-setup-schools-php .ss-ec-suppr { margin: 12px 0 0; }
body.modname-school-setup-schools-php .ss-ec-suppr input[type="button"] { width: 222px; max-width: 100%; height: 48px; margin: 0 !important; border-radius: 12px; border: 1px solid #c0392b; background: transparent; color: #c0392b; font-weight: 700; font-size: 14px; }
@media (min-width: 900px) { body.modname-school-setup-schools-php .ss-ec-g { grid-template-columns: repeat(4, minmax(0, 1fr)); } body.modname-school-setup-schools-php .ss-ec-c.ss-ec-plein { grid-column: span 2; } body.modname-school-setup-schools-php .ss-ec-logo-l { grid-column: 1 / -1; } }

/* ---------- 22/11/2026 (École, lot 6 « communs » ; « Oui, comme proposé ») ---------- */
/* Le bouton d'origine « Liste des … » (BottomButtonBack, barre du haut) ramenait à la dernière liste ouverte, n'importe
   laquelle (vu : « Liste des utilisateurs » sur Horaires d'arrivée, qui ramenait aux salaires). La flèche à gauche du titre
   (table des pages parentes) fait ce travail sur toutes les pages : une seule route pour revenir. */
#BottomButtonBack { display: none !important; }

/* ---------- 22/11/2026 (rubrique Élèves, E4 et E7) : « Pour quels élèves ? » au lieu de l'ancien « Trouver un élève » ---------- */
.ss-choix-eleves { margin: 12px 0; padding: 12px; border-radius: 14px; background: rgba(127,127,127,.07); }
.ss-choix-eleves > h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; text-transform: none; }
.ss-choix-eleves-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .ss-choix-eleves-g { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ss-choix-eleves-g a { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 10px; box-sizing: border-box;
    border-radius: 12px; border: 1px solid rgba(127,127,127,.3); background: var(--ss-surface, #fff); color: var(--ss-text, inherit) !important; text-decoration: none !important; min-width: 0; }
.ss-choix-eleves-g a b { font-size: 14px; line-height: 1.25; }
.ss-choix-eleves-g a small { font-size: 13px; opacity: .75; }
.ss-choix-eleves-g a.ss-choix-tous { grid-column: 1 / -1; border-width: 2px; border-color: var(--ss-focus, #08766b); }
.ss-choix-eleves-p { margin: 12px 0 0; font-size: 14px; }

/* 22/11/2026 (Élèves lot 1, loi F) : deuxième écran des impressions d'élèves et de « Modifier plusieurs élèves »
   (#body.ss-choix-liste, posé par listeChoixEleves dans scripts.js). */
#body.ss-choix-liste form table.header { width: 100%; background: transparent !important; box-shadow: none !important; border: 0 !important; margin: 0 0 10px !important; }
#body.ss-choix-liste form table.header td.header2 { padding: 0 !important; background: transparent !important; }
#body.ss-choix-liste td.ss-sel-vues { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
#body.ss-choix-liste td.ss-sel-vues > a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 10px; border-radius: 12px;
    border: 1px solid rgba(127,127,127,.3); background: var(--ss-surface, #fff); color: var(--ss-text, inherit) !important; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none !important; }
#body.ss-choix-liste tr.st:has(> td.ss-sel-vues) > td.align-right:not(:has(:is(input,select,a):not([style*="display: none"]))) { display: none !important; }
#body.ss-choix-liste table.ss-sel-critere td { font-size: 14px !important; text-align: left !important; }
#body.ss-choix-liste table.ss-sel-critere td b { font-weight: 600; }
#body.ss-choix-liste h3.ss-sel-titre { margin: 14px 0 6px; font-size: 16px; text-transform: none; letter-spacing: 0; }
#body.ss-choix-liste table.ss-sel-options td.header2 { display: block !important; padding: 12px !important; border-radius: 14px; border: 1px solid rgba(127,127,127,.25);
    background: var(--ss-surface, #fff) !important; text-align: left !important; font-size: 14px !important; }
#body.ss-choix-liste table.ss-sel-options table { width: 100%; }
#body.ss-choix-liste table.ss-sel-options td { text-align: left !important; font-size: 14px !important; padding: 0 !important; }
#body.ss-choix-liste table.ss-sel-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; text-transform: none; }
#body.ss-choix-liste table.ss-sel-options input[type="checkbox"], #body.ss-choix-liste table.ss-sel-options input[type="radio"],
#body.ss-choix-liste label.ss-sel-tout input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; }
#body.ss-choix-liste table.ss-sel-options select { min-height: 48px; font-size: 14px; }
#body.ss-choix-liste label.ss-sel-tout { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 6px 0; font-size: 14px; font-weight: 600; }
#body.ss-choix-liste .list-nav td, #body.ss-choix-liste .list-nav .size-1 { font-size: 13px !important; }
#body.ss-choix-liste form div.center { text-align: left !important; }
#body.ss-choix-liste form div.center > input[type="submit"] { width: auto !important; min-width: 222px; min-height: 48px; padding: 0 18px; }
@media (max-width: 700px) {
    html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr { display: grid !important; grid-template-columns: 34px 1fr; column-gap: 8px; row-gap: 2px; align-items: center; padding: 10px 12px !important; }
    html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr > td { padding: 0 !important; font-size: 13px !important; }
    html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr > td:first-child { grid-row: 1 / span 9; }
    html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr > td:first-child::before, html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr > td:nth-child(2)::before { content: none !important; }
    html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr > td:nth-child(2) { font-size: 15px !important; font-weight: 600; }
    html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr > td:first-child input[type="checkbox"] { width: 24px; height: 24px; margin: 0; }
    html[data-ss-theme] body.modules #body.ss-choix-liste .list-outer table.list.rt.has-input > tbody > tr > td::before { font-size: 13px !important; }
}
#body.ss-choix-liste table.ss-sel-critere td, #body.ss-choix-liste table.ss-sel-critere tr { display: block !important; }
#body.ss-choix-liste table.ss-sel-options table.cellpadding-5 > tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
#body.ss-choix-liste table.ss-sel-options table.cellpadding-5 > tbody > tr { display: contents; }
#body.ss-choix-liste table.ss-sel-options table.cellpadding-5 > tbody > tr > td { display: block; }
#body.ss-choix-liste div.ss-sel-action { display: block; margin: 12px 0 14px; text-align: left; }
#body.ss-choix-liste div.ss-sel-action > input[type="submit"] { display: inline-flex !important; width: auto !important; min-width: 222px; min-height: 48px; padding: 0 18px; }
#body.ss-choix-liste table.ss-sel-options fieldset { margin: 0 0 10px; padding: 8px 10px; border: 1px solid rgba(127,127,127,.25); border-radius: 12px; }
#body.ss-choix-liste table.ss-sel-options fieldset legend { padding: 0 4px; font-size: 14px; font-weight: 600; }
#body.ss-choix-liste table.ss-sel-options fieldset > br, #body.ss-choix-liste table.ss-sel-options td.header2 > br { display: none; }
#body.ss-choix-liste table.ss-sel-options fieldset > span { display: block; margin: 4px 0; font-size: 13px; }
#body.ss-choix-liste .ss-sel-paires { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#body.ss-choix-liste .ss-sel-paire { display: flex; flex-direction: column; gap: 4px; }
#body.ss-choix-liste .ss-sel-paire label, #body.ss-choix-liste .ss-sel-paire .legend-gray { min-height: 0 !important; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; }
#body.ss-choix-liste .ss-sel-paire select { width: 100%; min-height: 48px; }
#body.ss-choix-liste td:has(> .onclick-substitutions-button) { display: grid !important; grid-template-columns: 1fr 120px; gap: 8px; align-items: center; padding-top: 8px !important; }
#body.ss-choix-liste td:has(> .onclick-substitutions-button) > label[for^="substitutions_input"] { grid-column: 1 / -1; grid-row: 1; font-size: 13px; }
#body.ss-choix-liste td:has(> .onclick-substitutions-button) > select { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 48px; }
#body.ss-choix-liste td:has(> .onclick-substitutions-button) > input[type="text"] { width: 100% !important; min-height: 48px; font-size: 14px; }
#body.ss-choix-liste td:has(> .onclick-substitutions-button) > input[type="button"] { min-height: 48px; text-transform: none !important; font-size: 14px; }
#body.ss-choix-liste td:has(> .onclick-substitutions-button) > br { display: none; }
#body.ss-choix-liste label.checkbox-label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
#body.ss-choix-liste label.checkbox-label input { width: 24px; height: 24px; margin: 0; }
#body.ss-choix-liste td.ss-sel-vues:has(> a:only-of-type) { grid-template-columns: 1fr; }
#body.ss-choix-liste a.ss-sel-telecharger { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px;
    border: 1px solid rgba(127,127,127,.3); background: var(--ss-surface, #fff); color: var(--ss-text, inherit) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; vertical-align: middle; }
#body.ss-choix-liste .list-nav td { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
html[data-ss-theme] body.modules #body.ss-choix-liste table.list-nav a.list-save.ss-sel-telecharger { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; height: auto !important;
    min-height: 44px; padding: 0 12px !important; margin: 0 !important; white-space: nowrap; border-radius: 12px; border: 1px solid rgba(127,127,127,.3); background: var(--ss-surface, #fff) !important;
    color: var(--ss-text, inherit) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
html[data-ss-theme] body.modules #body.ss-choix-liste table.list-nav a.list-save.ss-sel-telecharger img { width: 18px; height: 18px; }
#body.ss-choix-liste table.list thead th, #body.ss-choix-liste table.list thead th * { text-transform: none !important; letter-spacing: 0 !important; }
@media (min-width: 701px) { #body.ss-choix-liste table.ss-sel-options td.header2, #body.ss-choix-liste td.ss-sel-vues { max-width: 720px; } }
/* 22/11/2026 (loi F, règle 9) : boutons des cours de l'enseignant (« Classe de … ») de même largeur, en colonnes. */
nav.ss-classes-choix { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
nav.ss-classes-choix > button { width: 100% !important; min-height: 48px !important; height: auto !important; white-space: normal; line-height: 1.2; }
@media (min-width: 701px) { nav.ss-classes-choix { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; } }


/* External destinations are plain labels; internal navigation is unchanged. */
a.ss-external-label { color: inherit; text-decoration: none; cursor: default; }
/* Keep original notices in source; omit the About panel from the branded view. */
.about-rosariosis { display: none !important; }
