/* 1.3.34.0 — mobilny panel/PWA wyłącznie dla nauczyciela. */
.teacher-app-short{display:none}.teacher-bottom-nav{display:none}
@media(max-width:760px){
body.teacher-mode,body.guest-mode{background:#f4f7fb;color:#172033;padding-bottom:74px}
body.teacher-mode .top,body.guest-mode .top{background:#0b57b7;box-shadow:0 2px 10px rgba(15,23,42,.18);padding-top:env(safe-area-inset-top)}
body.teacher-mode .brand,body.guest-mode .brand{font-size:17px;line-height:1.2}
body.teacher-mode .teacher-app-short,body.guest-mode .teacher-app-short{display:inline}
body.teacher-mode .teacher-app-long,body.guest-mode .teacher-app-long{display:none}
body.teacher-mode .wrap,body.guest-mode .wrap{max-width:680px;margin:10px auto;padding:0 10px}
body.teacher-mode .card,body.guest-mode .card{border:1px solid #dfe6f0;border-radius:12px;box-shadow:0 3px 12px rgba(15,23,42,.06);padding:14px;margin-bottom:12px}
body.teacher-mode h2{font-size:21px;margin:4px 0 12px}body.teacher-mode h3{font-size:17px;margin:6px 0 10px}
body.teacher-mode input,body.teacher-mode select,body.teacher-mode textarea,body.guest-mode input,body.guest-mode select,body.guest-mode textarea{border:1px solid #c9d3e1;border-radius:8px;min-height:44px;padding:9px 10px;background:#fff}
body.teacher-mode button,body.teacher-mode .btn,body.guest-mode button,body.guest-mode .btn{border-radius:8px;min-height:44px;padding:10px 14px;font-weight:700}
body.teacher-mode .notice{border-radius:9px;padding:10px}body.teacher-mode .table-scroll{border-radius:9px;border:1px solid #d8e0eb;background:#fff}
body.teacher-mode table{font-size:12px}body.teacher-mode .site-footer{padding-bottom:12px;margin-bottom:0}
body.teacher-mode .teacher-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(4,1fr);height:64px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #d6deea;box-shadow:0 -3px 14px rgba(15,23,42,.08)}
.teacher-bottom-link{appearance:none;border:0!important;background:#fff!important;color:#5d6778!important;text-decoration:none;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10.5px!important;font-weight:600!important;padding:4px 2px!important;margin:0!important;min-height:62px!important;border-radius:0!important}
.teacher-bottom-link .ico{font-size:21px;line-height:1}.teacher-bottom-link.active{color:#0b57b7!important}.teacher-bottom-link.pwa-install-link{width:100%}
body.teacher-mode .nav a{font-size:15px}}
@media(max-width:420px){body.teacher-mode .wrap,body.guest-mode .wrap{padding:0 7px}body.teacher-mode .card,body.guest-mode .card{padding:11px;border-radius:10px}.teacher-bottom-link{font-size:9.5px!important}}
@media(display-mode:standalone){body.teacher-mode .top{padding-top:max(env(safe-area-inset-top),4px)}body.teacher-mode{overscroll-behavior-y:contain}}

/* 1.3.34.1 — mobilne wpisywanie godzin dzień po dniu. Widok desktopowy pozostaje bez zmian. */
.teacher-mobile-week-list,.teacher-mobile-copy-dialog{display:none}
@media(max-width:760px){
 body.teacher-mode.mobile-cards-ready .week-table-scroll{display:none}
 body.teacher-mode.mobile-cards-ready .week-block>.week-actions{display:none}
 body.teacher-mode .teacher-mobile-week-list{display:block;margin:8px 0 14px}
 .teacher-mobile-week{border:1px solid #d8e2ef;border-radius:12px;background:#fff;margin:10px 0;overflow:hidden;box-shadow:0 2px 8px rgba(15,23,42,.05)}
 .teacher-mobile-week-toggle{width:100%;border:0!important;border-radius:0!important;background:#f7faff!important;color:#17345f!important;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:12px 14px!important;min-height:48px!important}
 .teacher-mobile-week-toggle strong{font-size:15px}.teacher-mobile-week-toggle .week-total{font-size:12px;color:#52647f;font-weight:600}
 .teacher-mobile-week-body{display:none;padding:8px}.teacher-mobile-week.open .teacher-mobile-week-body{display:block}
 .teacher-day-card{border:1px solid #dce4ef;border-left:5px solid #9aa8ba;border-radius:10px;background:#fff;margin:8px 0;overflow:hidden}
 .teacher-day-card.complete{border-left-color:#2fa44f}.teacher-day-card.has-hours{border-left-color:#315fcb}.teacher-day-card.special{border-left-color:#7b8492;background:#f3f4f6}
 .teacher-day-head{display:flex;align-items:center;gap:9px;padding:10px 11px;cursor:pointer}
 .teacher-day-status{width:23px;height:23px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#eef2f7;color:#5d6a7c;font-size:13px;font-weight:800;flex:0 0 auto}
 .teacher-day-card.complete .teacher-day-status{background:#e8f7ec;color:#23853b}.teacher-day-card.has-hours .teacher-day-status{background:#eaf0ff;color:#2457bd}.teacher-day-card.special .teacher-day-status{background:#e1e4e8;color:#555f6e}
 .teacher-day-title{flex:1;min-width:0}.teacher-day-title strong{display:block;font-size:14px}.teacher-day-title small{display:block;color:#6d7888;margin-top:2px}
 .teacher-day-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:0 10px 10px}
 .teacher-day-summary span{background:#f7f9fc;border-radius:7px;padding:6px 3px;text-align:center;font-size:10px;color:#657184}.teacher-day-summary b{display:block;color:#172033;font-size:13px;margin-top:2px}
 .teacher-day-editor{display:none;border-top:1px solid #e2e8f0;padding:10px;background:#fbfcfe}.teacher-day-card.open .teacher-day-editor{display:block}
 .teacher-mobile-field{margin:8px 0}.teacher-mobile-field label{display:block;font-size:12px;font-weight:700;color:#35435a;margin-bottom:4px}
 .teacher-mobile-field input,.teacher-mobile-field select,.teacher-mobile-field textarea{width:100%!important;max-width:none!important;box-sizing:border-box}
 .teacher-mobile-field .mirror-number-wrap{display:grid;grid-template-columns:44px 1fr 44px;gap:5px}.teacher-mobile-field .mirror-step{min-height:44px!important;padding:0!important;font-size:20px!important;background:#f4f7fb!important;color:#214f9a!important;border:1px solid #cbd6e6!important}
 .teacher-day-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.teacher-day-actions button{font-size:13px;padding:8px!important}.teacher-day-actions .copy-day{background:#fff!important;color:#0b57b7!important;border:1px solid #0b57b7!important}.teacher-day-actions .clear-day{background:#fff6f6!important;color:#ad2929!important;border:1px solid #e7b2b2!important}
 .teacher-mobile-week-tools{display:flex;gap:7px;flex-wrap:wrap;padding:0 8px 8px}.teacher-mobile-week-tools button{font-size:12px!important;min-height:38px!important;padding:7px 10px!important}
 .teacher-mobile-sticky-actions{position:sticky;bottom:66px;z-index:35;background:rgba(244,247,251,.96);backdrop-filter:blur(5px);padding:8px 3px;border-top:1px solid #dbe3ee;margin:10px -3px 0}
 body.teacher-mode .form-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:8px;margin:0}.form-actions button{width:100%;font-size:13px}
 .teacher-mobile-copy-dialog{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.54);padding:18px;align-items:center;justify-content:center}.teacher-mobile-copy-dialog.open{display:flex}
 .teacher-mobile-copy-panel{width:min(100%,430px);max-height:86vh;overflow:auto;background:#fff;border-radius:14px;padding:16px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
 .teacher-mobile-copy-panel h3{margin:0 0 5px}.teacher-mobile-copy-panel fieldset{border:1px solid #d9e1ec;border-radius:9px;margin:12px 0;padding:10px}.teacher-mobile-copy-panel legend{font-weight:700;padding:0 5px}.teacher-mobile-copy-panel label{display:block;padding:6px 0}.teacher-mobile-copy-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .teacher-mobile-copy-note{font-size:12px;color:#657184}.teacher-mobile-copy-panel input[type=checkbox]{min-height:auto;width:auto;margin-right:7px}
 .teacher-mobile-only-note{display:block;background:#eaf3ff;border:1px solid #bfd7f7;border-radius:9px;padding:9px 10px;margin:8px 0;font-size:12px;color:#244a79}
}
@media(min-width:761px){.teacher-mobile-only-note{display:none}}

/* 1.3.34.2 — czytelna, aktywna mobilna edycja rozliczenia. */
@media(max-width:760px){
 .teacher-mobile-editor-status{margin:8px 0 12px;padding:10px 12px;border-radius:9px;font-size:13px;line-height:1.4}
 .teacher-mobile-editor-status.is-editable{background:#eaf8ee;border:1px solid #a8d9b5;color:#185c2c}
 .teacher-mobile-editor-status.is-locked{background:#fff2f2;border:1px solid #e2b3b3;color:#8b2525}
 .teacher-day-card.open{box-shadow:0 4px 14px rgba(15,23,42,.10)}
 .teacher-day-card.open .teacher-day-head{background:#f4f8ff}
 .teacher-day-editor input:not([disabled]):not([readonly]),.teacher-day-editor select:not([disabled]),.teacher-day-editor textarea:not([disabled]):not([readonly]){background:#fff;border-color:#7ba5dd;box-shadow:0 0 0 1px rgba(11,87,183,.08)}
 .teacher-day-editor input:disabled,.teacher-day-editor input[readonly],.teacher-day-editor select:disabled,.teacher-day-editor textarea:disabled,.teacher-day-editor textarea[readonly]{background:#eef1f5;color:#697486}
}

/* 1.3.34.3 — profesjonalne, kompaktowe tabele tygodniowe dla Androida. */
.teacher-mobile-info-sheet,.teacher-mobile-day-sheet{display:none}
@media(max-width:760px){
 body.teacher-mode.mobile-grid-ready .teacher-mobile-week-list{display:block}
 body.teacher-mode.mobile-grid-ready .teacher-day-card{display:none!important}
 .teacher-mobile-week{border-color:#cfd9e7;border-radius:14px;box-shadow:0 4px 16px rgba(25,49,84,.07)}
 .teacher-mobile-week-toggle{background:linear-gradient(180deg,#fff,#f4f8fe)!important;padding:11px 12px!important}
 .teacher-mobile-week-toggle strong{font-size:14px}.teacher-mobile-week-toggle .week-total{font-size:11px}
 .teacher-mobile-week-body{padding:7px}
 .teacher-mobile-grid-wrap{width:100%;overflow:hidden;border:1px solid #d7e0ec;border-radius:10px;background:#fff}
 .teacher-mobile-grid{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}
 .teacher-mobile-grid th,.teacher-mobile-grid td{border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:3px;text-align:center;vertical-align:middle}
 .teacher-mobile-grid tr:last-child td,.teacher-mobile-grid tr:last-child th{border-bottom:0}.teacher-mobile-grid th:last-child,.teacher-mobile-grid td:last-child{border-right:0}
 .teacher-mobile-grid .row-label{width:68px;text-align:left;padding-left:6px;font-size:10px;line-height:1.1;color:#43516a;background:#f7f9fc;font-weight:800}
 .teacher-mobile-grid .day-head{font-size:10px;line-height:1.15;background:#eef4fc;color:#244365;font-weight:800;height:34px}
 .teacher-mobile-grid .day-head small{display:block;font-weight:600;color:#68768a;font-size:8px;margin-top:2px}
 .teacher-mobile-grid .day-head.special{background:#e8eaee;color:#545d69}.teacher-mobile-grid .day-head.has-data{box-shadow:inset 0 -3px #2f7ed8}
 .teacher-mobile-grid input,.teacher-mobile-grid select{width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:2px 1px!important;border:1px solid #cbd7e6!important;border-radius:6px!important;text-align:center;font-size:15px!important;font-weight:700;background:#fff!important;box-sizing:border-box}
 .teacher-mobile-grid input:disabled,.teacher-mobile-grid select:disabled{background:#eceff3!important;border-color:#e1e4e8!important;color:#69727f!important}
 .teacher-mobile-grid .special-cell{background:#f0f2f5;color:#7a828d;font-weight:700}
 .teacher-mobile-detail-row{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:6px}
 .teacher-mobile-detail-day{min-height:34px!important;padding:5px 2px!important;font-size:9px!important;border:1px solid #cbd7e6!important;background:#fff!important;color:#284e7e!important;border-radius:7px!important;line-height:1.1}
 .teacher-mobile-detail-day.has-detail{background:#eaf3ff!important;border-color:#7da7da!important;font-weight:800!important}.teacher-mobile-detail-day:disabled{background:#eceff3!important;color:#8a929d!important;border-color:#e1e4e8!important}
 .teacher-mobile-week-tools{padding:7px 0 0}.teacher-mobile-week-tools button{flex:1;min-width:120px}
 .teacher-mobile-editor-status{font-size:12px;margin:7px 0 9px;padding:8px 10px}
 .teacher-mobile-only-note{display:none!important}
 .teacher-mobile-day-sheet,.teacher-mobile-info-sheet{position:fixed;inset:0;z-index:110;background:rgba(15,23,42,.55);align-items:flex-end;justify-content:center;padding:0}
 .teacher-mobile-day-sheet.open,.teacher-mobile-info-sheet.open{display:flex}
 .teacher-mobile-sheet-panel{width:100%;max-width:680px;max-height:88vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;padding:14px 14px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -10px 35px rgba(0,0,0,.25)}
 .teacher-mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:-14px;background:#fff;padding:14px 0 9px;z-index:2;border-bottom:1px solid #e3e8ef}
 .teacher-mobile-sheet-head h3{margin:0;font-size:17px}.teacher-mobile-sheet-close{width:38px;min-height:38px!important;padding:0!important;border-radius:50%!important;background:#eef2f7!important;color:#42516a!important}
 .teacher-mobile-sheet-fields{padding-top:6px}.teacher-mobile-sheet-fields .teacher-mobile-field{margin:9px 0}
 .teacher-mobile-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
 .teacher-mobile-sheet-actions .copy-day{background:#fff!important;color:#0b57b7!important;border:1px solid #0b57b7!important}.teacher-mobile-sheet-actions .clear-day{background:#fff5f5!important;color:#a32727!important;border:1px solid #e4aaaa!important}
 .teacher-mobile-info-section{border-bottom:1px solid #e4e9f0;padding:3px 0}.teacher-mobile-info-section button{width:100%;background:#fff!important;color:#1e3555!important;border:0!important;text-align:left;display:flex;justify-content:space-between;padding:11px 2px!important;min-height:42px!important}
 .teacher-mobile-info-content{display:none;padding:0 2px 12px;color:#46566d;font-size:13px;line-height:1.5}.teacher-mobile-info-section.open .teacher-mobile-info-content{display:block}
 .teacher-mobile-info-content ul{padding-left:19px;margin:6px 0}.teacher-mobile-info-content p{margin:6px 0}
 .teacher-mobile-save-state{font-size:11px;color:#52647f;text-align:center;margin-top:5px}
 body.teacher-mode .form-actions{grid-template-columns:1fr 1.2fr}
}
@media(max-width:380px){
 .teacher-mobile-grid .row-label{width:58px;font-size:9px}.teacher-mobile-grid input,.teacher-mobile-grid select{font-size:14px!important}.teacher-mobile-grid th,.teacher-mobile-grid td{padding:2px}
}

@media (max-width: 760px){
 .teacher-mobile-absence-button{width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:2px!important;border:1px solid #b9cce2!important;border-radius:6px!important;background:#f5f9ff!important;color:#224b78!important;font-size:9px!important;font-weight:800!important;line-height:1.05!important;white-space:normal!important;overflow:hidden!important}
 .teacher-mobile-absence-button:not(:empty){box-shadow:none!important}
 .teacher-mobile-field.is-absence{padding:12px!important;border:1px solid #bed3eb!important;border-radius:10px!important;background:#f5f9ff!important}
 .teacher-mobile-field.is-absence label{font-weight:900!important;color:#1d466f!important}
 .teacher-mobile-field.is-absence small{display:block;margin-top:6px;color:#5d6c7d;font-size:11px;line-height:1.3}
 .teacher-mobile-absence-select{min-height:46px!important;font-size:15px!important;font-weight:700!important}
}

/* 1.3.34.5 — rozdzielenie uczniów, prostszy nagłówek i mobilne podsumowanie bez przewijania. */
.teacher-mobile-summary-cards,.teacher-mobile-pensum{display:none}
@media(max-width:760px){
 body.teacher-mode .teacher-mobile-hide-live,body.teacher-mode .teacher-mobile-hide-legal{display:none!important}
 body.teacher-mode .teacher-mobile-original-meta{display:none!important}
 body.teacher-mode .teacher-mobile-pensum{display:inline-flex;align-items:center;gap:8px;background:#eef5ff;border:1px solid #c8dcf6;border-radius:999px;padding:6px 10px;margin:0 0 9px;color:#294766;font-size:12px}
 body.teacher-mode .teacher-mobile-pensum strong{font-size:14px;color:#0b57b7}
 body.teacher-mode .teacher-mobile-source-heading,body.teacher-mode .teacher-mobile-source-meta{display:none!important}
 .teacher-mobile-student-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 7px;padding:10px 11px;border-radius:10px;background:#153d70;color:#fff;box-shadow:0 3px 10px rgba(21,61,112,.14)}
 .teacher-mobile-student-header strong{font-size:14px;line-height:1.25;overflow-wrap:anywhere}.teacher-mobile-student-header span{flex:0 0 auto;font-size:10px;font-weight:800;background:rgba(255,255,255,.18);padding:4px 7px;border-radius:999px}
 .teacher-mobile-summary-cards{display:grid;grid-template-columns:1fr;gap:7px;margin:8px 0}
 .teacher-mobile-summary-card{display:grid;grid-template-columns:1fr auto;gap:4px 10px;border:1px solid #d7e1ee;border-radius:10px;background:#fff;padding:9px 10px;font-size:12px}
 .teacher-mobile-summary-card>strong{grid-column:1/-1;color:#203d63;font-size:13px}.teacher-mobile-summary-card span{color:#607087}.teacher-mobile-summary-card span:last-child{text-align:right}.teacher-mobile-summary-card b{color:#172033}
 body.teacher-mode .teacher-month-summary>.table-scroll{display:none!important}
 body.teacher-mode .teacher-mobile-grand-total{position:sticky;bottom:130px;z-index:25;margin:10px 0!important;padding:12px!important;border:2px solid #0b57b7;border-radius:11px;background:#eaf3ff;color:#0b3f84;text-align:center;box-shadow:0 5px 18px rgba(11,87,183,.16);font-size:17px}
 body.teacher-mode .teacher-month-summary h3{margin-bottom:5px}
}

/* 1.3.34.11 — menu mobilne nad systemowym paskiem nawigacji Androida. */
@media(max-width:760px){
  body.teacher-mode.android-app-webview{
    padding-bottom:calc(138px + env(safe-area-inset-bottom, 0px))!important;
  }
  body.teacher-mode.android-app-webview .teacher-bottom-nav{
    bottom:48px;
    height:64px;
    padding-bottom:0;
    border-bottom:1px solid #d6deea;
  }
  body.teacher-mode.android-app-webview .teacher-mobile-sticky-actions{
    bottom:114px;
  }
  body.teacher-mode.android-app-webview .teacher-mobile-copy-dialog,
  body.teacher-mode.android-app-webview .teacher-mobile-day-sheet,
  body.teacher-mode.android-app-webview .teacher-mobile-info-sheet{
    padding-bottom:calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

/* 1.3.35.29 — mobilna edycja danych ucznia/pozycji w sekcjach indywidualne/rewalidacja/wyrównawcze. */
@media(max-width:760px){
 .teacher-mobile-student-meta{border:1px solid #d7e1ee;border-radius:11px;background:#fff;margin:0 0 10px;padding:10px 11px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
 .teacher-mobile-student-meta label{display:block;font-size:12px;font-weight:800;color:#35435a;margin:0 0 8px}
 .teacher-mobile-student-meta input[type=text]{display:block;width:100%!important;box-sizing:border-box;margin-top:5px!important;min-height:44px!important;font-size:16px!important}
 .teacher-mobile-school-type-choice{border:1px solid #d6deea;border-radius:9px;padding:8px 9px 7px;margin:8px 0 0;background:#f8fbff}
 .teacher-mobile-school-type-choice legend{font-size:12px;font-weight:800;color:#35435a;padding:0 4px}
 .teacher-mobile-school-type-choice label{display:inline-flex!important;align-items:center;gap:6px;margin:4px 12px 4px 0!important;font-size:14px!important;font-weight:700!important;color:#24364f!important}
 .teacher-mobile-school-type-choice input[type=radio]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important}
 .teacher-mobile-student-header span.is-empty{background:rgba(255,255,255,.12);color:#e8eef8}
}

/* 1.3.35.128 — rzadkie opcje zastępstw */
@media(max-width:760px){
 body.teacher-mode .teacher-mobile-rare-sub{margin:12px 0 4px;border:1px solid #d8dee8;border-radius:10px;background:#f8fafc;padding:0 10px 10px}
 body.teacher-mode .teacher-mobile-rare-sub>summary{cursor:pointer;font-weight:700;padding:11px 0;list-style-position:inside;color:#344054}
 body.teacher-mode .teacher-mobile-rare-sub-hint{margin:0 0 8px;color:#667085;font-size:12px;line-height:1.4}
 body.teacher-mode .teacher-mobile-rare-sub .teacher-mobile-field{margin:8px 0}
}

/* 1.3.35.134 — stały dzień wolny: subtelne oznaczenie, bez blokowania pól */
@media(max-width:760px){
 body.teacher-mode .teacher-mobile-grid th.formal-off-day-head{background:#eef3f8!important;color:#334155!important}
 body.teacher-mode .teacher-mobile-grid th.formal-off-day-head small{display:block;margin-top:2px;font-size:8px;line-height:1.05;color:#66768a;font-weight:800}
 body.teacher-mode .teacher-mobile-grid td.formal-off-day-cell{background:#f5f8fc!important}
 body.teacher-mode .teacher-mobile-detail-day.formal-off-day{background:#f3f6fa!important;border-color:#cdd8e5!important;color:#40536a!important}
 body.teacher-mode .teacher-mobile-formal-off-note{margin:0 0 10px;padding:9px 10px;border-left:3px solid #91a9c3;background:#f4f7fb;color:#42556b;font-size:12px;line-height:1.4;border-radius:6px}
}
