/* DersTime v1.18.21 — seçili öğretmen odaklı Nöbet alanı ve logo filigranı */

/* Nöbet dağıtımı: öğretmen kartlarının yanındaki sıkışık seçiciyi kaldırır.
   Gün hedefi, öğretmen seçildiğinde çizelgenin üzerinde geniş bir alanda yönetilir. */
.duty-distribution-studio{gap:14px}
.duty-command-ribbon{
  border:1px solid #dde2eb;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);
  box-shadow:0 10px 28px rgba(32,42,72,.055);
}
.duty-focus-bar{
  padding:11px 13px;
  border:1px solid #e0e4ec;
  border-radius:17px;
  background:#fff;
  box-shadow:0 8px 24px rgba(32,42,72,.045);
}
.duty-area-picker .touch-class-card{
  flex-basis:142px;
  width:142px;
  min-width:142px;
  max-width:142px;
  min-height:48px;
  padding:6px 8px;
  border-radius:12px;
}
.duty-area-picker .duty-area-filter-all{flex-basis:148px;width:148px;min-width:148px;max-width:148px}
.duty-distribution-main{
  grid-template-columns:minmax(270px,315px) minmax(0,1fr);
  gap:15px;
  align-items:start;
}
.duty-teacher-pool{
  top:84px;
  min-height:420px;
  max-height:calc(100dvh - 112px);
  overflow:hidden;
  border:1px solid #dde2eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 30px rgba(32,42,72,.06);
}
.duty-teacher-pool .pool-heading{padding:15px 15px 12px;background:linear-gradient(180deg,#fff,#fafbfe)}
.duty-teacher-pool .pool-heading b{font-size:13.5px}
.duty-teacher-pool .pool-heading small{max-width:260px;font-size:9px;line-height:1.45}
.duty-pool-list{gap:8px;padding:11px 10px 14px}
.duty-pool-card-shell,
.duty-pool-card-shell.selected{
  display:block;
  padding:0;
  border-radius:14px;
  background:transparent;
}
.duty-pool-card-shell .duty-pool-card{
  min-height:62px;
  padding:9px 10px;
  grid-template-columns:7px minmax(0,1fr) auto;
  gap:10px;
  border:1px solid #e0e5ed;
  border-radius:13px;
  background:#fff;
  box-shadow:none;
}
.duty-pool-card-shell .duty-pool-card:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--primary,#5b5bd6) 30%,#dfe4ec);
  box-shadow:0 8px 19px rgba(35,43,72,.07);
}
.duty-pool-card-shell .duty-pool-card.selected{
  transform:none;
  border-color:var(--primary,#5b5bd6);
  background:color-mix(in srgb,var(--primary,#5b5bd6) 6%,#fff);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary,#5b5bd6) 12%,transparent);
}
.duty-pool-card-copy{min-width:0}
.duty-pool-card-copy b{font-size:11px!important}
.duty-pool-card-copy small{font-size:8.5px!important}
.duty-pool-card-meta{display:grid;justify-items:end;gap:4px;min-width:64px}
.duty-pool-card-meta em{
  padding:4px 7px!important;
  border-radius:999px!important;
  background:#eef0f6!important;
  color:#545d73!important;
  font-size:7.8px!important;
  font-style:normal;
  font-weight:900;
  white-space:nowrap;
}
.duty-pool-card-meta small{margin:0!important;color:#8b93a3!important;font-size:7.7px!important;font-weight:800}
.duty-pool-card.selected .duty-pool-card-meta em{background:var(--primary,#5b5bd6)!important;color:#fff!important}

.duty-distribution-board{
  display:flex;
  min-width:0;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #dce1ea;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 30px rgba(32,42,72,.06);
}
.duty-selected-teacher-panel{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(180px,.72fr) minmax(330px,1.28fr) 34px;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-bottom:1px solid #dde3eb;
  background:linear-gradient(112deg,color-mix(in srgb,var(--teacher-color) 7%,#fff),#fff 58%);
}
.duty-selected-teacher-avatar{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--teacher-color);
  color:#fff;
  font-size:13px;
  font-weight:950;
  box-shadow:0 7px 17px color-mix(in srgb,var(--teacher-color) 25%,transparent);
}
.duty-selected-teacher-copy{min-width:0}
.duty-selected-teacher-copy>small,.duty-selected-teacher-copy>b,.duty-selected-teacher-copy>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.duty-selected-teacher-copy>small{margin-bottom:3px;color:var(--teacher-color);font-size:7.6px;font-weight:950;letter-spacing:.055em}
.duty-selected-teacher-copy>b{color:#2c3448;font-size:12.5px}
.duty-selected-teacher-copy>span{margin-top:3px;color:#788196;font-size:8.3px}
.duty-target-editor{
  display:grid;
  grid-template-columns:minmax(150px,1fr) auto;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border:1px solid #dfe4ec;
  border-radius:13px;
  background:rgba(255,255,255,.9);
}
.duty-target-editor>div:first-child b,.duty-target-editor>div:first-child small{display:block}
.duty-target-editor>div:first-child b{font-size:9.5px;color:#394257}
.duty-target-editor>div:first-child small{margin-top:2px;color:#80899a;font-size:7.6px;line-height:1.3}
.duty-target-days{display:flex;align-items:center;gap:5px}
.duty-target-days button{
  display:grid;
  grid-template-columns:auto auto;
  align-items:baseline;
  justify-content:center;
  gap:2px;
  width:43px;
  height:36px;
  padding:0;
  border:1px solid #d8dee8;
  border-radius:10px;
  background:#f7f8fb;
  color:#596278;
  cursor:pointer;
  transition:.12s ease;
}
.duty-target-days button:hover{transform:translateY(-1px);border-color:var(--primary,#5b5bd6);color:var(--primary,#5b5bd6)}
.duty-target-days button b{font-size:12px}.duty-target-days button span{font-size:7px;font-weight:850}
.duty-target-days button.active{
  border-color:var(--primary,#5b5bd6);
  background:var(--primary,#5b5bd6);
  color:#fff;
  box-shadow:0 6px 14px color-mix(in srgb,var(--primary,#5b5bd6) 24%,transparent);
}
.duty-selected-teacher-close{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid #dce1e9;
  border-radius:10px;
  background:#fff;
  color:#778095;
  font-size:18px;
  cursor:pointer;
}
.duty-selected-teacher-close:hover{border-color:#e4a8b3;background:#fff5f6;color:#b4233a}
.duty-teacher-selection-guide{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:10px 14px;
  border-bottom:1px solid #e1e5ec;
  background:linear-gradient(90deg,#f6f7ff,#fbfcff);
}
.duty-teacher-selection-guide>span{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:var(--primary,#5b5bd6);color:#fff;font-size:10px;font-weight:950}
.duty-teacher-selection-guide b,.duty-teacher-selection-guide small{display:block}.duty-teacher-selection-guide b{font-size:10px}.duty-teacher-selection-guide small{margin-top:2px;color:#778095;font-size:8px}.duty-teacher-selection-guide>i{color:var(--primary,#5b5bd6);font-size:18px;font-style:normal;font-weight:900}
.duty-board-heading{min-height:56px;padding:11px 14px;background:#fafbfe}
.duty-board-heading>span{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.duty-board-table{min-height:330px;max-height:calc(100dvh - 365px);background:#fff}
.duty-slot-cell{height:72px}
.duty-slot-cell:not(.blocked):hover{background:color-mix(in srgb,var(--primary,#5b5bd6) 4%,#fff)}
.duty-assigned-person{box-shadow:0 2px 6px rgba(38,47,72,.035)}

/* Raporlar ve İstatistikler gerçek birer ana sekme gibi daha belirgin görünür. */
.report-main-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:min(720px,100%);
  gap:6px;
  padding:6px;
  border-radius:17px;
  box-shadow:0 9px 26px rgba(35,43,72,.065);
}
.report-main-tabs button{min-width:0;min-height:54px;padding:8px 12px}
.report-main-tabs button>span{width:34px;height:34px;border-radius:10px}
.report-main-tabs button b{font-size:11.5px}
.report-main-panel{animation:reportSectionIn .16s ease-out}
@keyframes reportSectionIn{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}

/* Rapor Düzenleyicide filigran ayarı ve küçük önizleme. */
.pdf-watermark-setting{
  display:grid;
  grid-template-columns:minmax(230px,1fr) minmax(170px,.55fr) 82px;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid #dfe4ec;
  border-radius:14px;
  background:linear-gradient(135deg,#fafbff,#fff);
}
.pdf-watermark-setting>.toggle-row{display:flex;align-items:flex-start;gap:10px;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.pdf-watermark-setting>.toggle-row>input{flex:0 0 auto;width:auto;margin:3px 0 0;padding:0}
.pdf-watermark-copy b,.pdf-watermark-copy small{display:block}.pdf-watermark-copy b{font-size:10px}.pdf-watermark-copy small{margin-top:3px;color:#7d8698;font-size:8px;line-height:1.35}
.pdf-watermark-setting>label:not(.toggle-row){display:grid;gap:5px;color:#667085;font-size:8.5px;font-weight:850}
.pdf-watermark-setting select{width:100%;height:36px;padding:6px 8px;border:1px solid #dbe0e9;border-radius:10px;background:#fff}
.pdf-watermark-sample{
  position:relative;
  display:grid;
  place-items:center;
  width:78px;
  height:52px;
  overflow:hidden;
  border:1px solid #e0e4eb;
  border-radius:10px;
  background:#fff;
  color:color-mix(in srgb,var(--primary,#5b5bd6) 10%,transparent);
  font-size:20px;
  font-weight:950;
}
.pdf-watermark-sample:before,.pdf-watermark-sample:after{content:"";position:absolute;left:8px;right:8px;height:3px;border-radius:99px;background:#edf0f5}.pdf-watermark-sample:before{top:8px}.pdf-watermark-sample:after{bottom:8px}
.pdf-watermark-setting.is-disabled{opacity:.62}.pdf-watermark-setting.is-disabled select{pointer-events:none}

@media(max-width:1280px){
  .duty-selected-teacher-panel{grid-template-columns:44px minmax(150px,.6fr) minmax(280px,1.4fr) 32px;gap:9px;padding:11px}
  .duty-target-editor{grid-template-columns:1fr;gap:7px}.duty-target-days{justify-content:flex-start}
  .duty-target-days button{width:39px}
}
@media(max-width:1050px){
  .duty-distribution-main{grid-template-columns:245px minmax(0,1fr)}
  .duty-selected-teacher-panel{grid-template-columns:42px minmax(0,1fr) 32px}
  .duty-target-editor{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(150px,1fr) auto}
  .duty-selected-teacher-close{grid-column:3;grid-row:1}
  .duty-board-table{max-height:520px}
  .pdf-watermark-setting{grid-template-columns:1fr 180px}.pdf-watermark-sample{display:none}
}
@media(max-width:820px){
  .duty-area-picker .touch-class-card{flex-basis:128px;width:128px;min-width:128px;max-width:128px}
  .duty-area-picker .duty-area-filter-all{flex-basis:134px;width:134px;min-width:134px;max-width:134px}
  .duty-distribution-main{grid-template-columns:1fr}
  .duty-teacher-pool{position:static;min-height:0;max-height:330px}
  .duty-selected-teacher-panel{grid-template-columns:42px minmax(0,1fr) 32px}
  .duty-target-editor{grid-template-columns:1fr;overflow-x:auto}
  .duty-target-days{width:max-content}
  .duty-board-table{min-height:360px;max-height:560px}
  .report-main-tabs{position:static;width:100%}.report-main-tabs button small{display:none}
  .pdf-watermark-setting{grid-template-columns:1fr}.pdf-watermark-setting>label:not(.toggle-row){margin-top:4px}
}

body.theme-dark .duty-command-ribbon,body[data-theme="dark"] .duty-command-ribbon,
body.theme-dark .duty-focus-bar,body[data-theme="dark"] .duty-focus-bar,
body.theme-dark .duty-teacher-pool,body[data-theme="dark"] .duty-teacher-pool,
body.theme-dark .duty-distribution-board,body[data-theme="dark"] .duty-distribution-board,
body.theme-dark .duty-pool-card-shell .duty-pool-card,body[data-theme="dark"] .duty-pool-card-shell .duty-pool-card,
body.theme-dark .duty-target-editor,body[data-theme="dark"] .duty-target-editor,
body.theme-dark .duty-selected-teacher-close,body[data-theme="dark"] .duty-selected-teacher-close,
body.theme-dark .pdf-watermark-setting,body[data-theme="dark"] .pdf-watermark-setting,
body.theme-dark .pdf-watermark-setting select,body[data-theme="dark"] .pdf-watermark-setting select{
  background:#222938;
  border-color:#3b4356;
  color:#eef1f8;
}
body.theme-dark .duty-selected-teacher-panel,body[data-theme="dark"] .duty-selected-teacher-panel{background:linear-gradient(110deg,color-mix(in srgb,var(--teacher-color) 12%,#222938),#222938 62%);border-color:#3b4356}
body.theme-dark .duty-selected-teacher-copy>b,body[data-theme="dark"] .duty-selected-teacher-copy>b,
body.theme-dark .duty-target-editor>div:first-child b,body[data-theme="dark"] .duty-target-editor>div:first-child b{color:#eef1f8}
body.theme-dark .duty-teacher-selection-guide,body[data-theme="dark"] .duty-teacher-selection-guide{background:#1e2533;border-color:#394155}
body.theme-dark .duty-pool-card-meta em,body[data-theme="dark"] .duty-pool-card-meta em{background:#343c4e!important;color:#dce1ec!important}
body.theme-dark .duty-target-days button,body[data-theme="dark"] .duty-target-days button{background:#2a3243;border-color:#465066;color:#dce1ec}
body.theme-dark .duty-target-days button.active,body[data-theme="dark"] .duty-target-days button.active{background:var(--primary,#5b5bd6);border-color:var(--primary,#5b5bd6);color:#fff}
