/*
 * System rozliczania nadgodzin nauczycieli — style formularzy rozliczeń
 * Wydzielone z public/assets/css/app.css w wersji 1.3.24.72.
 * Cel: bez zmiany wyglądu, tylko uporządkowanie CSS formularzy.
 */


.week-table{min-width:760px}.week-table input{min-width:55px}.week-table select{min-width:135px}


.form-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.doc-section{border:1px solid #b8b8b8;border-radius:0;margin:10px 0;padding:8px;background:#fff}.doc-section h3{margin-top:0}.week-table{font-size:13px}.week-table th,.week-table td{padding:4px}.summary-box{border:1px solid #b8b8b8;background:white;padding:8px;margin-top:10px}


/* 1.3.24.32: UX nauczyciela */
.week-block{border:1px solid #d1d5db;margin:10px 0;background:#fff}
.week-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 8px;background:#f8fafc;border-bottom:1px solid #d1d5db;font-size:13px}
.week-actions button{min-height:0;padding:4px 7px;font-size:12px}
.week-actions button:disabled{background:#94a3b8;cursor:not-allowed;filter:none}
.week-table td.special-day{background:#fee2e2!important;color:#991b1b!important;font-weight:bold}
.week-table td.absence-day-selected{background:#fff7ed!important;border-color:#fdba74!important}
.week-table td.absence-locked-cell{background:#f3f4f6!important}
.absence-locked-field{background:#e5e7eb!important;color:#6b7280!important;border-color:#cbd5e1!important}
.week-table input.hour-input{font-weight:600}
.teacher-help-box{border:1px solid #bfdbfe;background:#eff6ff;padding:8px;margin:8px 0;color:#1e3a8a}
@media(max-width:700px){.week-actions{display:grid;grid-template-columns:1fr;gap:4px}.week-actions button{width:100%}}


/* 1.3.24.36: komfort nauczyciela — sumy tygodni i miesiąca na żywo */
.teacher-live-month-summary{border:1px solid #bbf7d0;background:#f0fdf4;color:#14532d;padding:8px 10px;margin:10px 0;font-size:13px;line-height:1.45}
.teacher-live-month-summary strong{font-size:15px}.teacher-live-month-summary .live-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}.teacher-live-month-summary .live-pill{border:1px solid #86efac;background:#fff;padding:3px 6px}
.week-live-summary{margin-left:auto;border:1px solid #cbd5e1;background:#fff;padding:3px 6px;font-size:12px;color:#0f172a}.week-live-summary.warning{border-color:#f59e0b;background:#fffbeb;color:#92400e}.week-live-summary strong{font-size:12px}.week-block.changed .week-actions{background:#ecfeff}.day-hint{display:block;font-size:11px;color:#64748b;margin-top:2px}.week-table td.special-day{position:relative}.week-table td.special-day:after{content:'0 godz.';display:block;font-size:10px;color:#991b1b;font-weight:normal}.absence-select.is-active{border-color:#f97316;background:#fff7ed}
@media(max-width:700px){.teacher-live-month-summary .live-row{display:grid;grid-template-columns:1fr}.week-live-summary{margin-left:0;width:100%}}

/* 1.3.34.7 — profesjonalny blok miesięcznej informacji organizacyjnej */
.monthly-reduction-card{border:1px solid #d8dee8;border-radius:12px;padding:16px;background:#fbfcfe;box-shadow:0 2px 8px rgba(15,23,42,.05)}
.monthly-reduction-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.monthly-reduction-heading h3{margin:0 0 4px;font-size:20px;line-height:1.25;color:#172033}
.monthly-reduction-heading p{margin:0;line-height:1.45}
.monthly-reduction-badge{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 9px;border-radius:999px;background:#eef4ff;color:#2457a6;font-size:12px;font-weight:700}
.monthly-reduction-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.monthly-reduction-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #d9e1ec;border-radius:9px;background:#fff;cursor:pointer;line-height:1.35}
.monthly-reduction-option:hover{border-color:#9fb8dc;background:#f8fbff}
.monthly-reduction-option input{margin-top:3px;flex:0 0 auto}
.monthly-reduction-option span{display:flex;flex-direction:column;gap:2px}
.monthly-reduction-option b{font-size:15px;color:#182235}
.monthly-reduction-option small{color:#5f6b7a;font-size:13px}
.monthly-reduction-note{margin-top:12px}
.monthly-reduction-note label{display:block;max-width:760px}
.monthly-reduction-note input{display:block;width:100%;max-width:760px;margin-top:6px;box-sizing:border-box}
.monthly-reduction-info{margin:12px 0 0;padding:9px 11px;border-left:3px solid #8ba9d2;background:#f1f6fc;color:#46556a;font-size:13px;line-height:1.4}
@media (max-width:720px){
 .monthly-reduction-card{padding:13px;border-radius:10px}
 .monthly-reduction-heading{display:block;margin-bottom:10px}
 .monthly-reduction-heading h3{font-size:17px}
 .monthly-reduction-badge{margin-top:8px}
 .monthly-reduction-options{grid-template-columns:1fr;gap:8px}
 .monthly-reduction-option{padding:11px}
 .monthly-reduction-note input{font-size:16px;min-height:42px}
 .monthly-reduction-info{font-size:12px}
}

/* 1.3.35.134 — informacyjne oznaczenie stałego dnia wolnego w 4-dniowym tygodniu */
@media screen{
 body.teacher-mode .week-table td.formal-off-day-column{background:#f5f8fc}
 body.teacher-mode .week-table td.formal-off-day-cell{background:#eef3f8!important;color:#334155;font-weight:700;position:relative}
 body.teacher-mode .formal-off-day-badge{display:block;margin-top:3px;font-size:9px;line-height:1.15;font-weight:700;color:#5b6b80}
 body.teacher-mode .week-table td.formal-off-day-column input,
 body.teacher-mode .week-table td.formal-off-day-column select,
 body.teacher-mode .week-table td.formal-off-day-column textarea{background:#fbfdff}
 body.teacher-mode .week-table td.formal-off-absence-selected{box-shadow:inset 0 0 0 2px #d7a445}
}
