/* Nöbet dashboard ana stil sistemi */
@media print{
  @page{size:A4 landscape;margin:5mm}
  html,body{width:297mm;min-height:210mm;margin:0;padding:0;background:#fff!important}
  body{font-family:Arial,sans-serif!important;color:#000}
  .no-print,.topbar,.edit-control,.management-grid,.heading-actions{display:none!important}
  .workspace{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .print-sheet{width:287mm!important;min-height:198mm!important;margin:0!important;padding:3mm 3mm 2mm!important;border:1px solid #202938!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
  .print-header{display:grid!important;grid-template-columns:20mm 1fr 20mm!important;align-items:center!important;height:21mm!important;gap:3mm!important;margin:0!important}
  .logo-placeholder,.seal-placeholder{display:flex!important;align-items:center!important;justify-content:center!important;width:20mm!important;height:20mm!important;min-width:20mm!important;min-height:20mm!important;max-width:20mm!important;max-height:20mm!important;padding:1mm!important;overflow:hidden!important;border:0!important;background:#fff!important}
  .logo-placeholder img,.seal-placeholder img{display:block!important;width:18mm!important;height:18mm!important;max-width:18mm!important;max-height:18mm!important;min-width:18mm!important;min-height:18mm!important;object-fit:contain!important}
  .seal-placeholder{justify-self:end;border-radius:0!important}
  .school-title{min-width:0!important;text-align:center!important}
  .school-title strong{display:block!important;font-size:8pt!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important}
  .school-title h2{margin:2mm 0 0!important;font-size:15pt!important;line-height:1.05!important;white-space:nowrap!important}
  .meta-row{display:flex!important;justify-content:space-between!important;width:82%!important;height:10mm!important;margin:1mm 0 1mm!important;padding:0!important;background:#fff!important;font-size:8pt!important;line-height:1.2!important}
  .duty-table{width:82%!important;margin:0!important;table-layout:fixed!important;border-collapse:collapse!important;border-radius:0!important;border:1px solid #273548!important}
  .duty-table th,.duty-table td{height:14mm!important;padding:1mm!important;border:1px solid #273548!important;font-size:7.5pt!important;line-height:1.05!important}
  .duty-table thead th{height:10mm!important;background:#fff!important;color:#172033!important;font-size:7pt!important;font-weight:800!important}
  .duty-table thead th:first-child,.duty-table tbody th{width:29mm!important}
  .duty-table tbody th{background:#fff!important;color:#172033!important;font-weight:800!important}
  .assistant-row th,.assistant-row td{height:18mm!important}
  .print-value{display:inline!important;font-weight:700!important}
  .print-notes{width:100%!important;height:31mm!important;margin:3mm 0 0!important;padding:1mm 0 0!important;border-top:0!important;font-size:6.8pt!important;line-height:1.12!important;overflow:hidden!important}
  .print-notes strong{display:block!important;margin-bottom:1mm!important;font-size:7.5pt!important}
  .signatures{display:flex!important;justify-content:space-between!important;width:82%!important;margin:2mm 0 0!important;font-size:7.5pt!important}
  .signatures div{min-width:50mm!important;text-align:center!important}
  .signatures span{display:block!important;margin-top:4mm!important}
  .signatures small,.signatures em{display:block!important;font-size:6.8pt!important}.signatures em{margin-top:1mm!important;font-style:normal!important}
}
/* Ekran görünümü */
:root{--navy:#16243b;--blue:#2563d8;--ink:#1d2a3d;--muted:#68768a;--line:#dce4ef;--soft:#f4f7fb}
*{box-sizing:border-box}
html{background:#f3f6fb}
body{margin:0;background:linear-gradient(135deg,#f3f7fc,#eef3fa);color:var(--ink);font:14px/1.5 Inter,Segoe UI,Arial,sans-serif}
.app-shell{min-height:100vh}
.topbar{height:70px;padding:0 clamp(18px,4vw,56px);display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;box-shadow:0 3px 18px #10213b2e}
.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand b,.brand small{display:block}.brand b{font-size:15px}.brand small{color:#b8c6dc;font-size:11px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#3e83ff,#2252bb);font-weight:900;font-size:20px}
.top-actions{display:flex;align-items:center;gap:12px}.user-pill{color:#d7e2f4;font-size:13px}
.workspace{width:min(1240px,calc(100% - 36px));margin:auto;padding:36px 0 64px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{margin:0 0 8px;color:var(--blue);font-size:11px;font-weight:900;letter-spacing:.15em}.page-heading h1{margin:0;color:var(--navy);font-size:clamp(28px,4vw,42px);letter-spacing:-.045em;line-height:1.05}.muted{margin:10px 0 0;color:var(--muted)}
.heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.action-group{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#f7f9fc}.action-label{padding:0 5px;color:#61708a;font-size:11px;font-weight:800;text-transform:uppercase}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:700 12px/1 Segoe UI,Arial,sans-serif;text-decoration:none;cursor:pointer;transition:.18s}.btn:hover{border-color:#a7b9d4;transform:translateY(-1px);box-shadow:0 5px 12px #1d365915}.btn.primary{border-color:var(--blue);background:var(--blue);color:#fff}.btn.light{background:#fff;color:var(--ink)}
.print-sheet{padding:30px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 48px #233a5c14}.print-header{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;align-items:center;gap:18px;width:100%;min-height:92px;margin:0 0 24px}.print-header>div:first-child{grid-column:1;grid-row:1;justify-self:start}.print-header>.school-title{grid-column:2;grid-row:1;justify-self:stretch}.print-header>div:last-child{grid-column:3;grid-row:1;justify-self:end}.logo-placeholder,.seal-placeholder{display:flex;align-items:center;justify-content:center;width:72px;height:72px;min-width:72px;min-height:72px;max-width:72px;max-height:72px;padding:6px;overflow:hidden;border:1px solid #b9c7d9;border-radius:14px;background:#fff}.logo-placeholder img,.seal-placeholder img{display:block;width:58px;height:58px;max-width:58px;max-height:58px;object-fit:contain}.seal-placeholder{justify-self:end;border-radius:50%}.school-title{min-width:0;text-align:center}.school-title strong{display:block;color:var(--navy);font-size:12px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.school-title h2{margin:10px 0 0;color:var(--navy);font-size:23px;line-height:1.1;letter-spacing:-.02em}
.meta-row{display:flex;justify-content:space-between;gap:20px;margin:0 0 16px;padding:13px 16px;border:1px solid #e2e9f2;border-radius:10px;background:#f8fafd;color:#46556b;font-size:12px}.duty-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid #cbd8e8;border-radius:11px;overflow:hidden}.duty-table th,.duty-table td{padding:12px 8px;border-right:1px solid #d5dfeb;border-bottom:1px solid #d5dfeb;text-align:center;vertical-align:middle}.duty-table th:last-child,.duty-table td:last-child{border-right:0}.duty-table tr:last-child th,.duty-table tr:last-child td{border-bottom:0}.duty-table thead th{height:43px;background:var(--navy);color:#fff;font-size:12px;letter-spacing:.01em}.duty-table tbody th{width:150px;background:#f0f5fb;color:var(--navy);font-size:13px}.duty-table tbody tr:hover td{background:#fbfdff}.edit-control{width:100%;min-height:38px;padding:8px 10px;border:1px solid #c8d4e4;border-radius:7px;background:#fff;color:var(--ink);font:13px Segoe UI,Arial,sans-serif;transition:border-color .18s,box-shadow .18s}.edit-control:hover{border-color:#9fb3ce}.edit-control:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #2563d81c}.print-value{display:block;margin-bottom:8px;font-weight:800;color:var(--navy);font-size:13px}
.print-notes{margin-top:18px;padding:15px;border-top:1px solid var(--line);color:#46556b;font-size:12px;line-height:1.5}.print-notes strong{display:inline;margin-right:5px}.signatures{display:flex;justify-content:space-between;margin-top:24px;text-align:center;font-size:12px}.signatures div{min-width:220px}.signatures span,.signatures small,.signatures em{display:block;margin-top:7px}.signatures em{font-style:normal;color:#68768a}
.edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;align-items:end;margin-top:16px;padding:18px;background:linear-gradient(180deg,#f8fafd,#f4f7fb);border:1px solid #dbe5f1;border-radius:14px}.edit-grid label{display:flex;flex-direction:column;gap:7px;color:#53627a;font-size:11px;font-weight:800;letter-spacing:.02em}.edit-grid input:not([type="checkbox"]),.edit-grid textarea{width:100%;padding:10px 11px;border:1px solid #c8d4e4;border-radius:8px;background:#fff;color:var(--ink);font:13px/1.35 Segoe UI,Arial,sans-serif;transition:border-color .18s,box-shadow .18s}.edit-grid input:not([type="checkbox"]):focus,.edit-grid textarea:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #2563d81c}.edit-grid textarea{min-height:94px;resize:vertical}.edit-grid .check-field{grid-column:1 / -1;display:flex;flex-direction:row;align-items:center;gap:9px;padding-bottom:2px;color:var(--ink);font-size:12px;font-weight:700}.edit-grid .check-field input{width:17px;height:17px;margin:0;accent-color:var(--blue)}.edit-grid .wide{grid-column:1 / 3}.edit-grid>.btn{align-self:end;min-height:42px;width:100%;box-shadow:0 7px 14px #2563d82b}
.management-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:20px;margin-top:24px}.panel{padding:24px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 35px #233a5c0d}.panel-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px}.panel h2{margin:0;color:var(--navy);font-size:24px}.inline-form{display:flex;gap:8px;margin-bottom:18px}.inline-form input{flex:1;min-width:0;padding:10px 12px;border:1px solid #cbd6e5;border-radius:8px;font:inherit}.teacher-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.teacher-item{display:flex;align-items:center;gap:6px;padding:8px;background:#f7f9fc;border:1px solid var(--line);border-radius:9px}.teacher-edit{display:flex;flex:1;gap:6px;min-width:0}.teacher-edit input{width:100%;min-width:0;padding:8px;border:1px solid #cbd6e5;border-radius:6px;font:inherit}.teacher-item .btn{min-height:34px;padding:7px 10px}.icon-button{width:30px;height:30px;border:1px solid #f0c3c3;border-radius:7px;background:#fff1f1;color:#b33131;font-weight:800;cursor:pointer}.inactive-label{padding:6px 8px;color:#8b97a8;font-size:12px;font-weight:700}.is-inactive{opacity:.65}.usage-panel p{color:#68768a}.usage-panel h2{margin-bottom:12px}.usage-panel .eyebrow{margin-bottom:10px}
@media(max-width:800px){.page-heading{display:block}.heading-actions{justify-content:flex-start;margin-top:15px}.workspace{width:min(100% - 20px,1240px);padding-top:20px}.print-sheet{padding:14px;overflow-x:auto}.print-header{grid-template-columns:56px 1fr 56px;gap:8px}.logo-placeholder,.seal-placeholder{width:56px;height:56px;min-width:56px;min-height:56px}.logo-placeholder img,.seal-placeholder img{width:44px;height:44px}.school-title strong{font-size:9px}.school-title h2{font-size:15px}.duty-table{min-width:700px}.edit-grid{grid-template-columns:1fr}.edit-grid .wide{grid-column:auto}.edit-grid .check-field{grid-column:auto}.edit-grid>.btn{width:100%}.action-group{flex-wrap:wrap}}
@media(max-width:900px){.management-grid{grid-template-columns:1fr}.teacher-list{grid-template-columns:1fr}}
