.settingsCDataGrid > .templateManagementCard {grid-column:1 / -1;min-width:0;}
.templateManagementCard .templateManagerHeading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.templateManagementCard .templateManagerHeading h2 {margin:0;font-size:19px;}
.templateManagerHeading > span {color:#176b45;background:#eaf7f0;padding:5px 10px;border-radius:6px;font-size:12px;font-weight:800;}
.templateManagementCard .templateManagerIntro {line-height:1.65;margin:14px 0;color:#46627b;word-break:keep-all;overflow-wrap:anywhere;}
.templateManagerFields {display:grid;grid-template-columns:minmax(140px,1.3fr) repeat(4,minmax(100px,1fr));gap:12px;}
.templateManagerFields label {display:grid;gap:7px;font-size:13px;font-weight:800;color:#365a78;min-width:0;}
.templateManagerFields label[hidden] {display:none!important;}
.templateManagerFields select {width:100%;min-width:0;min-height:44px;text-align:center;padding:8px 24px 8px 10px;box-sizing:border-box;}
.templateManagerFields:has(.templateManagerSemester[hidden]) {grid-template-columns:minmax(140px,1.3fr) repeat(3,minmax(100px,1fr));}
.templateManagerFooter {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid #e3edf5;flex-wrap:wrap;}
.templateManagerFooter strong {font-size:14px;color:#254c70;word-break:keep-all;}
.templateManagementCard .btn,.templateManagerModal .btn {display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:44px;white-space:nowrap;}
.templateManagementCard .templateManagerGuide {line-height:1.65;color:#6a7f93;font-size:12px;margin:14px 0 0;word-break:keep-all;overflow-wrap:anywhere;}
.templateManagerResult {margin:12px 0 0;line-height:1.6;font-size:13px;color:#167149;white-space:pre-wrap;overflow-wrap:anywhere;}
.templateManagerResult:empty {display:none;}
.templateManagerResult[data-error="true"] {color:#b53137;}
.templateManagerPhoneHint {display:none;}
.templateManagerModal .studentStatusDialog {width:min(680px,100%);grid-template-rows:auto minmax(0,1fr) auto;}
.templateManagerModal p {line-height:1.65;word-break:keep-all;overflow-wrap:anywhere;margin:0;}
.templateManagerEvents {display:flex;flex-wrap:wrap;gap:7px;}
.templateManagerEvents span {padding:6px 10px;border-radius:6px;background:#eef6fc;color:#315c7d;font-size:13px;}
.templateManagerConfirm {display:flex;align-items:center;gap:10px;min-height:48px;padding:12px;border:1px solid #bdd8ec;border-radius:10px;line-height:1.55;cursor:pointer;}
.templateManagerConfirm input {width:20px!important;min-width:20px;flex:0 0 20px;height:20px;min-height:20px;padding:0;}
html.templateManagerModalOpen,body.templateManagerModalOpen {overflow:hidden!important;}
@media(max-width:1000px){.templateManagerFields,.templateManagerFields:has(.templateManagerSemester[hidden]){grid-template-columns:repeat(4,minmax(0,1fr));}.templateManagerKind{grid-column:1 / -1;}}
@media(max-width:768px){.templateManagerFields,.templateManagerFields:has(.templateManagerSemester[hidden]){grid-template-columns:repeat(2,minmax(0,1fr));}.templateManagementCard .templateManagerHeading h2{font-size:17px;}
html:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"]) #templateManagerReplace12252{display:none!important;}
html:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .templateManagerPhoneHint{display:block;color:#687f91;font-size:12px;line-height:1.5;}}
@media(pointer:coarse) and (orientation:landscape) and (max-width:1000px) and (max-height:500px){
html:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"]) #templateManagerReplace12252{display:none!important;}
html:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .templateManagerPhoneHint{display:block;}}
