.teacher-sheet{padding:10mm 13mm}.teacher-sheet .charte-ministry{margin-bottom:18px;padding-bottom:10px}.teacher-sheet .charte-ministry img{height:53px;width:195px}.teacher-document-heading,.teacher-compact-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:0 0 18px}.teacher-kicker{font-size:8px;letter-spacing:1.3px;color:var(--charte-accent)}.teacher-document-heading h1,.teacher-compact-heading h1{font-size:25px;line-height:1.4;color:var(--charte-accent);letter-spacing:-.5px;margin:8px 0 13px}.teacher-year{display:flex;align-items:baseline;gap:10px;font-size:10px;color:#71828c}.teacher-year .teacher-value{min-width:100px;max-width:140px}.teacher-photo{position:relative;flex:none;width:94px;height:115px;overflow:hidden;border:1px solid var(--charte-line);border-radius:8px;background:#f8fafb;cursor:pointer}.teacher-photo img{display:block;width:100%;height:100%;object-fit:cover}.teacher-photo img[hidden]{display:none}.teacher-photo-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#91a5af;font-size:9px}.teacher-photo-placeholder svg{width:48px;height:48px;stroke:currentColor;stroke-width:1.6}.teacher-photo-placeholder[hidden]{display:none}
.teacher-main{flex:1;min-width:0}.teacher-section{margin:0 0 17px;break-inside:avoid}.teacher-section h2{margin:0 0 12px;padding:8px 11px;border-left:3px solid var(--charte-accent);background:var(--charte-soft);color:var(--charte-accent);font-size:11px;line-height:1.6;font-weight:600}.teacher-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px}.teacher-field{display:flex;flex-direction:column;min-width:0;gap:4px}.teacher-wide{grid-column:1/-1}.teacher-label{font-size:8px;line-height:1.6;color:#758994}.teacher-value{display:block;min-height:22px;border-bottom:1px dotted #bdccd3;color:#2f4552;font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.teacher-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:10px}.teacher-table th{font-size:9px;text-align:left;font-weight:600;padding:7px 9px;background:#fafbfc;color:#667d8a;border:1px solid var(--charte-line)}.teacher-table th:last-child{width:18%}.teacher-table td{padding:7px 9px;border:1px solid var(--charte-line)}.teacher-table .teacher-value{border:0;min-height:20px;font-size:10px}.teacher-footer{display:grid;grid-template-columns:.8fr .8fr 1.4fr;gap:23px;border-top:1px solid var(--charte-line);padding-top:12px;margin-top:13px;break-inside:avoid}.teacher-footer>div{min-width:0}.teacher-signature{min-height:37px}
.teacher-profile-layout{display:grid;grid-template-columns:172px minmax(0,1fr);gap:23px;flex:1}.teacher-sidebar{padding:16px;background:var(--charte-soft);border:1px solid var(--charte-line);border-radius:10px}.teacher-sidebar .teacher-photo{margin:0 auto 18px;width:100px;height:125px;background:#fff}.teacher-sidebar h2{font-size:11px;color:var(--charte-accent);margin:19px 0 10px}.teacher-sidebar .teacher-field{margin-bottom:12px}.teacher-sidebar .teacher-label{font-size:8px}.teacher-sidebar .teacher-value{font-size:10px;min-height:22px}.teacher-model-2 .teacher-document-heading h1{font-size:24px}.teacher-model-2 .teacher-field-grid{gap:12px 16px}.teacher-model-2 .teacher-table+.teacher-field-grid{margin-top:14px}.teacher-model-3 .teacher-compact-heading{padding:17px;background:var(--charte-soft);border-radius:10px;align-items:flex-start}.teacher-compact-heading>div:first-child{flex:1}.teacher-model-3 .teacher-compact-heading .teacher-field{margin-top:8px}.teacher-model-3 .teacher-table+.teacher-field-grid{margin-top:12px}.teacher-model-3 .teacher-section h2{background:#fff;border-left:0;border-bottom:1px solid var(--charte-line);padding:4px 0 8px;font-size:12px}
.teacher-preview{border:1px solid #dce5e9;background:#fff;border-radius:8px;padding:22px 18px;position:relative;height:210px;margin-bottom:22px}.teacher-preview-title{height:6px;background:var(--charte-accent);width:55%;margin-bottom:20px}.teacher-preview-photo{height:43px;width:35px;border:1px solid var(--charte-line);background:var(--charte-soft);position:absolute;right:18px;top:17px;border-radius:4px}.teacher-preview-fields{display:grid;grid-template-columns:1fr 1fr;gap:21px 16px;margin-top:38px}.teacher-preview-fields i{display:block;border-bottom:1px solid #dae2e7;height:7px}.teacher-selection .charte-choice-heading{max-width:800px}.teacher-selection .charte-choice-heading h1{font-size:30px}.teacher-selection .charte-choice h2{font-size:19px}
@media(max-width:700px){.teacher-profile-layout{grid-template-columns:1fr}.teacher-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.teacher-sidebar .teacher-photo{grid-column:1/-1;margin-bottom:0}.teacher-sidebar h2{grid-column:1/-1;margin:10px 0 0}.teacher-sidebar .teacher-field{margin:0}.teacher-document-heading h1,.teacher-compact-heading h1{font-size:22px}.teacher-photo{width:80px;height:100px}.teacher-profile-layout{gap:18px}.teacher-sheet{padding:24px}.teacher-selection .charte-choice-heading h1{font-size:26px}}
@media(max-width:460px){.teacher-field-grid{grid-template-columns:1fr}.teacher-wide{grid-column:auto}.teacher-document-heading,.teacher-compact-heading{gap:14px;flex-wrap:wrap}.teacher-footer{grid-template-columns:1fr;gap:13px}.teacher-year .teacher-value{max-width:120px}.teacher-document-heading h1{font-size:21px}.teacher-sheet{padding:21px 18px}.teacher-compact-heading .teacher-photo{width:70px;height:86px}.teacher-compact-heading h1{font-size:20px}.teacher-table td{padding:6px}.teacher-selection .charte-choice-heading h1{font-size:24px}}
@media print{.teacher-sheet{width:210mm;min-height:296mm;padding:10mm 13mm}.teacher-field-grid{grid-template-columns:1fr 1fr}.teacher-wide{grid-column:1/-1}.teacher-profile-layout{grid-template-columns:172px minmax(0,1fr);gap:23px}.teacher-sidebar{display:block}.teacher-sidebar .teacher-photo{margin:0 auto 18px}.teacher-sidebar .teacher-field{margin-bottom:12px}.teacher-footer{grid-template-columns:.8fr .8fr 1.4fr;gap:23px}.teacher-document-heading,.teacher-compact-heading{flex-wrap:nowrap}.teacher-photo{width:94px;height:115px}.teacher-document-heading h1,.teacher-compact-heading h1{font-size:25px}.teacher-compact-heading .teacher-photo{width:94px;height:115px}.teacher-photo{cursor:default}.teacher-table tr{break-inside:avoid}}

.teacher-label{font-size:9px}.teacher-section{margin-bottom:13px}.teacher-section h2{padding-top:6px;padding-bottom:6px;margin-bottom:9px}.teacher-field-grid{row-gap:8px}
@media(min-width:701px),print{.teacher-model-1 .teacher-section:nth-child(3) .teacher-field-grid,.teacher-model-3 .teacher-section:nth-child(1) .teacher-field-grid,.teacher-model-3 .teacher-section:nth-child(3) .teacher-field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.teacher-model-3 .teacher-compact-heading{padding:12px;margin-bottom:14px}.teacher-model-3 .teacher-section{margin-bottom:9px}.teacher-model-3 .teacher-section h2{padding-bottom:5px}.teacher-model-3 .teacher-field-grid{row-gap:6px}.teacher-model-3 .teacher-value{min-height:20px}.teacher-model-3 .teacher-compact-heading .teacher-photo{height:100px}
@media print{.teacher-model-3 .teacher-compact-heading .teacher-photo{height:100px}}

.teacher-editor .charte-toolbar>div{flex-wrap:wrap}
.teacher-editor button[hidden]{display:none}
.teacher-photo img{object-fit:contain;background:#fff}
.teacher-crop-dialog{box-sizing:border-box;width:min(430px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d7e3e8;border-radius:16px;padding:24px;color:#2f4552;background:white;font-family:inherit;box-shadow:0 18px 80px #142f4340}
.teacher-crop-dialog::backdrop{background:#142f43a6}
.teacher-crop-dialog h2{margin:0 0 8px;font-size:21px;color:var(--charte-accent,#2b647b)}
.teacher-crop-dialog p{font-size:13px;line-height:1.6;margin:0 0 16px}
.teacher-crop-dialog canvas{display:block;width:240px;max-width:100%;height:auto;margin:0 auto 18px;border:1px solid #b7cbd4;cursor:grab;touch-action:none;box-sizing:border-box}
.teacher-crop-dialog canvas:active{cursor:grabbing}
.teacher-crop-dialog label{display:block;font-size:13px;margin-bottom:5px}
.teacher-crop-dialog input{width:100%;margin:5px 0 20px;accent-color:#28647b}
.teacher-crop-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.teacher-crop-actions button{font:inherit;font-size:12px;padding:10px 12px;border:1px solid #cbdbe2;border-radius:7px;background:#f4f8fa;color:#2f4552;cursor:pointer}
.teacher-crop-actions [data-crop-apply]{background:#28647b;border-color:#28647b;color:white}
.teacher-crop-dialog :focus-visible{outline:3px solid #c59b50;outline-offset:3px}
@media print{.teacher-crop-dialog{display:none!important}}

.teacher-table-tools{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 8px}
.teacher-table-tools button{font:inherit;font-size:10px;padding:6px 8px;border:1px solid var(--charte-line);border-radius:5px;background:#fff;color:var(--charte-accent);cursor:pointer}
.teacher-table-tools button:disabled{opacity:.4;cursor:default}
.teacher-table th:last-child{width:auto}
.teacher-table th,.teacher-table td{overflow-wrap:anywhere;vertical-align:top}
.teacher-table [contenteditable]:focus{outline:2px solid var(--charte-accent);outline-offset:-2px;background:var(--charte-soft)}
@media print{.teacher-table-tools{display:none!important}}

/* Keep room for additional qualifications without moving the footer alone. */
@media print{
 .teacher-sheet{min-height:0;height:auto;zoom:var(--teacher-print-scale,1);margin:0 auto;padding-top:9mm;padding-bottom:9mm}
 .teacher-sheet .charte-ministry{margin-bottom:12px;padding-bottom:8px}
 .teacher-document-heading,.teacher-compact-heading{margin-bottom:12px}
 .teacher-section{margin-bottom:10px}
 .teacher-section h2{margin-bottom:7px;padding-top:5px;padding-bottom:5px}
 .teacher-field-grid{row-gap:6px}
 .teacher-table th,.teacher-table td{padding:5px 8px}
 .teacher-footer{padding-top:9px;margin-top:10px}
 .teacher-table [contenteditable]:focus{outline:none;background:transparent}
}
