/* Position (штатка) view slider · R19v chrome + R20 chips + R12 chess row */
#scView.fm-slider { position: fixed; inset: 0; z-index: 2147483010; display: flex; justify-content: flex-end; }
#scView.fm-slider[hidden] { display: none !important; }
/* G1.5: пустой .sc-plan-banner не просвечивает (display:flex бьёт UA [hidden]) */
#scView .sc-plan-banner[hidden] { display: none !important; }
#scView .sc-plan-banner.is-link-warn {
  background: #FFF8E8;
  border-color: #F0DFB4;
  color: #8A6D00;
}
#scView .fm-slider-backdrop { position: absolute; inset: 0; background: rgba(9, 33, 49, 0.35); }
#scView .fm-slider-shell {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: stretch; max-width: 100%;
}
#scView .fm-slider-edge {
  display: flex; flex-direction: column; gap: 6px;
  align-self: flex-start; margin-top: 52px;
  margin-right: 6px; z-index: 3; flex: 0 0 auto;
}
#scView .fm-slider-edge-btn {
  width: 34px; height: 34px; padding: 0; margin: 0;
  border: 0; background: #2fc6f6; color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  border-radius: 17px;
  box-shadow: -2px 1px 8px rgba(15, 96, 140, .22);
  font-family: inherit;
}
#scView .fm-slider-edge-btn:hover { background: #1bb1e0; }
#scView .fm-slider-edge-btn.is-on { background: #0f8fbf; }
#scView .fm-slider-edge-ico { width: 16px; height: 16px; display: block; pointer-events: none; }
#scView .fm-slider-panel {
  position: relative; z-index: 1;
  /* Штатка — средняя ширина (шире Типа, уже Персонала) */
  width: min(640px, 94vw); height: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 16px 0 0 16px;
  box-shadow: -8px 0 32px rgba(0,0,0,.18);
  border: 1px solid #dfe4ea; border-right: 0;
  display: flex; flex-direction: column;
}
#scView.is-help-fs .fm-slider-panel { width: min(880px, 96vw); max-width: 920px; }
#scView .fm-slider-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; padding: 14px 16px; border-bottom: 1px solid #E8ECF1; flex-shrink: 0;
}
#scView .fm-slider-titles { flex: 1; min-width: 0; }
#scView .fm-slider-title { font-size: 16px; font-weight: 700; color: #092131; line-height: 1.3; }
#scView .fm-slider-sub { font-size: 12px; color: #73737D; margin-top: 4px; }
#scView .fm-slider-body { flex: 1; overflow: auto; padding: 16px; background: #fff; }
#scView .fm-slider-foot.sc-dirty-bar,
#scView .sc-dirty-bar.fm-slider-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid #E8ECF1; flex-shrink: 0;
  background: #f8f9fa;
}
#scView .sc-dirty-bar[hidden] { display: none !important; }
#scView .sc-dirty-bar .fm-btn-primary {
  background: #16638F; color: #fff; border: 0; border-radius: 6px;
  padding: 8px 14px; font-weight: 600; cursor: pointer; font: 600 13px/1 inherit;
}
#scView .sc-dirty-bar .fm-btn-ghost {
  background: #fff; border: 1px solid #DEDEDE; border-radius: 6px;
  padding: 8px 14px; cursor: pointer; font: 500 13px/1 inherit; color: #1f2a37;
}
#scView .sc-foot-msg { font-size: 12px; color: #828b95; margin-left: auto; }
#scView .sc-msg { font-size: 12px; color: #828b95; min-height: 16px; margin: 0 0 8px; }
#scView .sc-head-line {
  display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex-wrap: wrap;
}
#scView .sc-head-line .fm-slider-title { flex: 1 1 160px; min-width: 0; }
#scView .sc-head-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 1 auto;
}
#scView .sc-head-btn {
  height: 28px; padding: 0 10px; border: 1px solid #d5dee7; border-radius: 8px;
  background: #fff; color: #16638F; font: 600 12px/1 inherit; cursor: pointer;
}
#scView .sc-head-btn:hover { background: #eaf6fb; }
#scView .sc-bx-open.hub-obj-bx {
  width: auto; height: auto; min-height: 24px; padding: 4px 8px; gap: 6px;
  font-size: 12px; font-weight: 600; color: #16638F; white-space: nowrap;
  display: inline-flex; align-items: center; text-decoration: none;
}
#scView .sc-bx-open.hub-obj-bx:hover { color: #0b4f72; }
#scView .fm-actions-menu { position: relative; }
#scView .fm-actions-btn {
  height: 28px; padding: 0 10px; border: 0; border-radius: 8px;
  background: #2fc6f6; color: #fff; font: 600 12px/1 inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
#scView .fm-actions-drop {
  position: fixed; z-index: 2147483021;
  min-width: 240px; background: #fff; border: 1px solid #d5dee7;
  border-radius: 8px; box-shadow: 0 12px 28px rgba(33,43,54,.18);
  padding: 4px; display: flex; flex-direction: column;
}
#scView .fm-actions-drop[hidden] { display: none !important; }
#scView .fm-actions-drop button {
  border: 0; background: transparent; text-align: left; padding: 8px 10px;
  border-radius: 6px; font: 500 13px/1.3 inherit; cursor: pointer; color: #1f2a37;
}
#scView .fm-actions-drop button:hover { background: #eaf6fb; }
#scView .fm-actions-drop button.is-danger { color: #B42318; }
#scView .fm-actions-drop button.is-danger:hover { background: #FEF3F2; }
#scView .ob-acc {
  border: 1px solid #cfd6de; border-radius: 10px; margin: 0 0 12px;
  background: #fff; overflow: visible; position: relative;
}
#scView .ob-acc > summary {
  cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: 10px; background: #f3f5f8;
  border-radius: 10px; color: #1f2a37; position: relative;
}
#scView .ob-acc-title { flex: 1 1 auto; min-width: 0; }
#scView .ob-acc[open] > summary {
  border-radius: 10px 10px 0 0; border-bottom: 1px solid #e0e4ea; background: #eaf6fb;
}
#scView .ob-acc > summary::-webkit-details-marker { display: none; }
#scView .ob-acc-n {
  width: 22px; height: 22px; border-radius: 50%; background: #535c69; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
#scView .ob-acc[open] .ob-acc-n { background: #2fc6f6; }
#scView .ob-acc > summary::after { content: "▾"; margin-left: 8px; opacity: .45; font-size: 12px; flex-shrink: 0; }
#scView .ob-acc[open] > summary::after { content: "▴"; }
#scView .ob-acc-body { padding: 0; overflow: visible; }
/* Row rules = EmpCard R22v / `.jr-table`: padding 8px, #edeef0 */
#scView .ob-field {
  position: relative;
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid #edeef0;
  vertical-align: top;
}
#scView .ob-field:last-child { border-bottom: 0; }
#scView .ob-field label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #535c69; margin: 0 0 4px;
}
#scView .sc-val {
  font-size: 14px; color: #1f2a37; min-height: 20px; line-height: 1.4;
  white-space: pre-wrap; word-break: break-word;
}
#scView .sc-val.is-empty { color: #a8b3be; }
#scView .ob-field input,
#scView .ob-field select,
#scView .ob-field textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid #c6cdd7; border-radius: 6px; font: inherit;
  background: #fff; min-height: 36px; color: #1f2a37;
}
#scView .fm-sd-block-edit {
  position: static; width: 14px; height: 14px; padding: 0; margin: 0;
  border: 0; border-radius: 2px;
  background: rgba(255,255,255,.92); color: #16638F;
  font-size: 11px; line-height: 14px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(22,99,143,.18);
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
#scView .fm-sd-block-edit:hover,
#scView .ob-field.is-editing .fm-sd-block-edit {
  background: #E8F4FB;
  box-shadow: 0 0 0 1px #2fc6f6;
  color: #0b4f72;
}
#scView .chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#scView .main-ui-filter-chip,
#scView .info-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; background: #d9f4fc;
  font-size: 12px; color: #16638F;
}
#scView .info-chip.sched { background: #eef2ff; color: #3f51b5; border-radius: 6px; }
#scView .info-chip.time { background: #f3f0ff; color: #6a1b9a; border-radius: 6px; }
#scView .info-chip.pos { background: #eef7fb; color: #2067b0; border-radius: 6px; }
#scView .info-chip.money { background: #e8f6ec; color: #1f6b45; border-radius: 6px; }
#scView .fm-sched-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px;
  border: 1px solid #DEDEDE; border-radius: 6px; background: #F0F2F4;
  color: #525C69; font-size: 11px; font-weight: 600;
}
#scView .fm-shift-legend .fm-leg.shift {
  width: auto; height: 28px; padding: 0 8px 0 6px; gap: 5px;
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  background: #fff; color: #5D5D5D; border: 1px solid #DEDEDE; border-radius: 6px;
}
#scView .fm-leg.shift .fm-shi { width: 14px; height: 14px; display: block; flex-shrink: 0; }
#scView .fm-leg.shift.morning { color: #C45C26; background: #FFF3E8; border-color: #F0D7C0; }
#scView .fm-leg.shift.day { color: #9A6B00; background: #FFF6CC; border-color: #E6D48A; }
#scView .fm-leg.shift.evening { color: #6B3FA0; background: #F3ECFA; border-color: #DDD0EA; }
#scView .fm-leg.shift.night { color: #3A4A6B; background: #E8ECF4; border-color: #CDD3E0; }
#scView .shift-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
#scView .shift-chip.day { color: #9A6B00; background: #FFF6CC; }
#scView .shift-chip.night { color: #3A4A6B; background: #E8ECF4; }
#scView .shift-chip.morning { color: #C45C26; background: #FFF3E8; }
#scView .shift-chip.evening { color: #6B3FA0; background: #F3ECFA; }
#scView .season-cell { display: inline-flex; gap: 6px; font-size: 16px; }
#scView .season-ico.winter { color: #2b6cb0; }
#scView .season-ico.summer { color: #dd6b20; }
#scView .emp-stack { display: flex; flex-wrap: wrap; gap: 4px; }
#scView .emp-pill {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
}
#scView .emp-pill.filled { background: #e8f6ec; color: #1f6b45; }
#scView .emp-pill.vacant { background: #f0f3f5; color: #828b95; }
#scView .sc-chess {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px 0;
}
#scView .sc-chess-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 28px;
}
#scView .sc-chess-dow { font-size: 10px; color: #828b95; text-transform: lowercase; }
#scView .sc-chess-num { font-size: 11px; font-weight: 700; color: #1f2a37; }
#scView .sc-chess-cell {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid #e0e4ea;
  display: grid; place-items: center; font-size: 9px; font-weight: 700;
  background: #f7f9fb; color: #a8b3be;
}
#scView .sc-chess-cell.is-work { background: #FFF6CC; color: #9A6B00; border-color: #E6D48A; }
#scView .sc-chess-cell.is-hole { background: #fde8e8; color: #c23636; border-color: #f0c0c0; }
#scView .sc-chess-cell.is-ok { background: #e8f6ec; color: #1f6b45; border-color: #c5e6d0; }
#scView .sc-correct {
  border: 1px solid #d5dee7; border-radius: 10px; padding: 12px; margin: 0 0 12px; background: #f7f9fb;
}
#scView .sc-correct[hidden] { display: none !important; }
#scView .sc-correct textarea { width: 100%; min-height: 72px; margin: 6px 0 10px; }
#scView .sc-correct-actions { display: flex; gap: 8px; }
body.sc-view-open { overflow: hidden; }
#scView.is-creating .fm-slider-body,
#scView.is-creating .fm-slider-foot {
  pointer-events: none;
}
#scView .sc-create-busy {
  display: none;
  position: absolute; inset: 0; z-index: 8;
  align-items: center; justify-content: center;
  background: rgba(238, 242, 244, 0.72);
  pointer-events: all;
}
#scView.is-creating .sc-create-busy { display: flex; }
#scView .sc-create-busy-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 24px; min-width: min(280px, 72%);
  background: #fff; border: 1px solid #9bc4da; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 99, 143, 0.16);
  text-align: center;
}
#scView .sc-create-busy-spin {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid #c5d9e6; border-top-color: #16638F;
  animation: sc-create-spin 0.7s linear infinite;
  flex: 0 0 auto;
}
#scView .sc-create-busy-lab {
  font-size: 14px; font-weight: 650; color: #16638F; line-height: 1.35;
  max-width: 28ch;
}
@keyframes sc-create-spin { to { transform: rotate(360deg); } }
#scView .sc-create-skel { padding: 8px 4px 16px; display: flex; flex-direction: column; gap: 12px; }
#scView .sc-create-skel-line {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, #e8eef3 0%, #f5f8fa 45%, #e8eef3 90%);
  background-size: 200% 100%;
  animation: sc-skel-shine 1.1s ease-in-out infinite;
}
#scView .sc-create-skel-line.w50 { width: 50%; }
#scView .sc-create-skel-line.w60 { width: 60%; }
#scView .sc-create-skel-line.w80 { width: 80%; }
#scView .sc-create-skel-line.w90 { width: 90%; }
@keyframes sc-skel-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
button.sc-open-link {
  display: inline; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 650; color: #2066b0; cursor: pointer;
  text-align: inherit; text-decoration: underline; text-underline-offset: 2px;
}
button.sc-open-link:hover { color: #0b4f72; }
