.schedule-view-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px; border: 1px solid #dce7ee; border-radius: 10px; background: #f0f5f8; }
.schedule-view-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #718594; font: inherit; font-size: 11px; font-weight: 650; line-height: 1.6; text-align: center; cursor: pointer; }
.schedule-view-button:hover { color: #277ba4; background: #e8f3f9; }
.schedule-view-button[aria-pressed="true"] { border-color: #d4e5ef; background: #fff; color: #087caf; box-shadow: 0 2px 5px #1d4b6810; }
.schedule-view-button:focus-visible { outline: 3px solid #008fd14d; outline-offset: 2px; }
#schedule-roster-panel { min-width: 0; max-width: 100%; }
.schedule-roster-notice { padding: 24px; margin-top: 18px; border: 1px solid #dce7ee; border-radius: 12px; background: #f8fbfd; color: #6a8293; font-size: 12px; line-height: 1.8; }
.ns-roster { min-width: 0; max-width: 100%; margin-top: 18px; border: 1px solid #dce6ed; border-radius: 14px; background: #fff; overflow: hidden; color: #253e4d; }
.ns-roster *, .ns-roster-day-summary * { box-sizing: border-box; }
.ns-roster-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 18px; padding: 21px 22px 18px; }
.ns-roster-toolbar-title { flex: 1 1 210px; min-width: 0; }
.ns-roster-toolbar-title h3 { margin: 0; color: #183747; font-size: 17px; line-height: 1.5; letter-spacing: -.025em; }
.ns-roster-toolbar-title p { margin: 5px 0 0; color: #718391; font-size: 11px; line-height: 1.6; }
.ns-roster-search-label, .ns-roster-size-label { display: grid; gap: 7px; color: #58707f; font-size: 11px; font-weight: 600; }
.ns-roster-search-label { flex: 0 1 300px; }
.ns-roster-size-label { flex: 0 0 86px; }
.ns-roster-search-label input, .ns-roster-size-label select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #ccdae4; border-radius: 8px; background: #fff; color: #254354; font: inherit; font-size: 12px; line-height: 1.5; }
.ns-roster-search-label input:focus, .ns-roster-size-label select:focus { border-color: #008fd1; outline: 3px solid #008fd11a; outline-offset: 1px; }
.ns-roster-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 22px 18px; }
.ns-roster-legend-title { margin-right: 3px; color: #788995; font-size: 10px; font-weight: 700; }
.ns-roster-legend-empty { color: #728390; font-size: 10px; line-height: 1.6; }
.ns-roster-chip { display: inline-block; max-width: 100%; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
.ns-roster-chip strong { font-weight: 700; }
.ns-roster-chip-vacation { border-color: #cce6d9; background: #eaf7ef; color: #276749; }
.ns-roster-chip-sickness { border-color: #efd0d5; background: #fff0f1; color: #a0394e; }
.ns-roster-chip-absence { border-color: #e0d6ec; background: #f3eff9; color: #715187; }
.ns-roster-chip-free { border-color: #cddde8; background: #eef4f8; color: #506e82; }
.ns-roster-chip-planned { border-color: #c5e6f4; background: #e9f7fd; color: #0877a8; }
.ns-roster-partial { font-weight: 500; }
.ns-roster-scroll-hint { padding: 10px 22px; border-top: 1px solid #e8eef3; background: #f8fbfd; color: #708697; font-size: 10px; line-height: 1.7; }
.ns-roster-scroll { position: relative; width: 100%; max-width: 100%; max-height: min(68vh, 900px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b5ccd9 #f2f7fa; }
.ns-roster-scroll:focus-visible { outline: 3px solid #008fd14d; outline-offset: -3px; }
.ns-roster-table { width: max(100%, calc(200px + var(--ns-roster-days) * 168px)); min-width: calc(200px + var(--ns-roster-days) * 168px); table-layout: fixed; border-collapse: separate; border-spacing: 0; text-align: left; }
.ns-roster-table .ns-roster-person-column { width: 200px; }
.ns-roster-table .ns-roster-day-column { width: 168px; }
.ns-roster-table th, .ns-roster-table td { padding: 10px 8px; border-right: 1px solid #e4ecf2; border-bottom: 1px solid #e4ecf2; color: #344f60; font-size: 11px; letter-spacing: normal; text-transform: none; white-space: normal; vertical-align: top; }
.ns-roster-table th:last-child, .ns-roster-table td:last-child { border-right: 0; }
.ns-roster-table thead th { position: sticky; top: 0; z-index: 3; height: 75px; background: #f5f9fc; box-shadow: 0 1px 0 #dce7ee; }
.ns-roster-table .ns-roster-person { position: sticky; left: 0; z-index: 2; padding: 15px 16px; background: #fff; box-shadow: 1px 0 0 #dce7ee; font-weight: 400; }
.ns-roster-table thead .ns-roster-person { z-index: 4; background: #f5f9fc; }
.ns-roster-person-header > span { display: block; color: #476575; font-size: 11px; font-weight: 700; }
.ns-roster-person-header small { display: block; margin-top: 5px; color: #8295a2; font-size: 10px; font-weight: 400; }
.ns-roster-day > span { display: block; color: #607b8c; font-size: 10px; font-weight: 600; }
.ns-roster-day > strong { display: block; margin-top: 4px; color: #244557; font-size: 16px; font-weight: 700; }
.ns-roster-day > small { display: block; margin-top: 4px; color: #8a9ba8; font-size: 9px; line-height: 1.5; }
.ns-roster-person-heading { display: flex; align-items: flex-start; gap: 9px; }
.ns-roster-avatar { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid #d3e8f3; border-radius: 9px; background: #edf8fd; color: #187ca9; font-size: 10px; font-weight: 750; }
.ns-roster-person-copy { min-width: 0; }
.ns-roster-person-copy > strong, .ns-roster-unassigned-row .ns-roster-person > strong { display: block; color: #23485d; font-size: 12px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ns-roster-person-number { display: block; margin-top: 3px; color: #8293a0; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.ns-roster-person-functions { color: #277ba4; font-weight: 600; }
.ns-roster-hours { display: inline-block; margin-top: 13px; padding: 4px 7px; border-radius: 5px; background: #f3f7fa; color: #7b8f9d; font-size: 10px; line-height: 1.5; }
.ns-roster-hours strong { color: #355c72; font-weight: 700; font-variant-numeric: tabular-nums; }
.ns-roster-month { margin-top: 11px; padding-top: 10px; border-top: 1px solid #e3ecf2; }
.ns-roster-month-title { display: block; color: #476575; font-size: 10px; font-weight: 700; line-height: 1.6; }
.ns-roster-month dl { display: grid; gap: 3px; margin: 6px 0; font-size: 10px; line-height: 1.6; }
.ns-roster-month dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ns-roster-month dt { min-width: 0; color: #607585; font-weight: 400; }
.ns-roster-month dd { flex: 0 0 auto; margin: 0; color: #476575; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns-roster-month-result { display: block; color: #607585; font-size: 10px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.ns-roster-month-open .ns-roster-month-result { color: #177da9; }
.ns-roster-month-over .ns-roster-month-result { color: #a44d40; }
.ns-roster-month-balanced .ns-roster-month-result { color: #36816a; }
.ns-roster-month-hint { display: block; margin-top: 4px; color: #607585; font-size: 10px; font-weight: 400; line-height: 1.6; }
.ns-roster-month-method { margin: 0 22px 18px; color: #607585; font-size: 10px; line-height: 1.8; }
.ns-roster-month-method > summary { display: flex; align-items: center; min-height: 44px; color: #527d94; font-weight: 600; list-style: none; cursor: pointer; }
.ns-roster-month-method > summary::-webkit-details-marker { display: none; }
.ns-roster-month-method > summary::before { content: '＋'; margin-right: 7px; }
.ns-roster-month-method[open] > summary::before { content: '−'; }
.ns-roster-month-method > summary:focus-visible { outline: 3px solid #008fd14d; outline-offset: 2px; }
.ns-roster-month-method p { margin: 0 0 8px; }
.ns-roster-table tbody tr:hover .ns-roster-person { background: #f9fcfe; }
.ns-roster-table .ns-roster-cell { background: #fff; }
.ns-roster-cell-content { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 88px; }
.ns-roster-cell-content > .ns-roster-chip { align-self: flex-start; }
.ns-roster-table .ns-roster-cell.has-absence { background: #fdfcfe; }
.ns-roster-table .ns-roster-cell.has-day-off { background: #fafcfe; }
.ns-roster-table .is-outside { background: #f4f6f8; color: #9aa9b4; }
.ns-roster-empty { display: block; padding: 5px 3px; color: #8c9ba6; font-size: 10px; font-weight: 400; line-height: 1.65; }
.ns-roster-shift { min-width: 0; padding: 6px 8px; border: 1px solid #c7e5f3; border-left: 3px solid #29a3d5; border-radius: 8px; background: #edf8fd; }
.ns-roster-shift-heading { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 4px; }
.ns-roster-shift-time { min-width: 0; color: #176a91; font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns-roster-shift-edit { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #126b96; font: inherit; font-size: 12px; font-weight: 750; line-height: 1.6; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; cursor: pointer; }
.ns-roster-shift-edit:hover { background: #d5effb; }
.ns-roster-shift-state { flex: 0 0 auto; color: #466e84; font-size: 9px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.ns-roster-shift-meta { display: block; margin: 0; color: #52768a; font-size: 9px; line-height: 1.5; }
.ns-roster-shift-dimensions { display: block; margin: 0; color: #467a94; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.ns-roster-shift-note { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid #cee5f0; color: #648295; font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ns-roster-shift.is-open { border-color: #edd9ad; border-left-color: #d9a13f; background: #fff9ec; }
.ns-roster-shift.is-open .ns-roster-shift-edit, .ns-roster-shift.is-open .ns-roster-shift-time { color: #8d641e; }
.ns-roster-shift.is-open .ns-roster-shift-meta, .ns-roster-shift.is-open .ns-roster-shift-state { color: #9c814e; }
.ns-roster-shift.is-open .ns-roster-shift-edit:hover { background: #f8ebcc; }
.ns-roster-shift.is-cancelled { border-color: #e1e6ea; border-left-color: #b9c3ca; background: #f4f6f8; }
.ns-roster-shift.is-cancelled .ns-roster-shift-time { color: #7d8b95; text-decoration: line-through; }
.ns-roster-shift.is-cancelled :is(.ns-roster-shift-state, .ns-roster-shift-meta, .ns-roster-shift-dimensions, .ns-roster-shift-note) { color: #8998a3; }
.ns-roster-shift-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 5px; margin-top: 1px; }
.ns-roster-shift-tools > :only-child { grid-column: 1 / -1; }
.ns-roster-shift-details { min-width: 0; }
.ns-roster-shift-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 44px; padding: 6px 3px; border-radius: 5px; color: #557f95; font-size: 10px; line-height: 1.6; list-style: none; cursor: pointer; }
.ns-roster-shift-details > summary::-webkit-details-marker { display: none; }
.ns-roster-shift-details > summary::marker { content: ''; }
.ns-roster-shift-details > summary:hover { background: #dceff8; color: #126b96; }
.ns-roster-shift-details > summary > span { color: #80a5b8; font-size: 13px; }
.ns-roster-shift-details[open] { grid-column: 1 / -1; }
.ns-roster-shift-details[open] > summary > span { transform: rotate(180deg); }
.ns-roster-shift-detail-body { padding-top: 9px; border-top: 1px solid #cde5f0; }
.ns-roster-shift-details > summary:focus-visible { outline: 3px solid #008fd14d; outline-offset: 2px; }
.ns-roster-card-action { min-height: 44px; max-width: 100%; padding: 7px 0; border: 0; background: transparent; color: #537d94; font: inherit; font-size: 9px; line-height: 1.6; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.ns-roster-card-action:hover { color: #0d6792; text-decoration: underline; }
.ns-roster-detail-actions { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 7px; }
.ns-roster-detail-actions .ns-roster-card-action { width: 100%; padding-inline: 5px; border-radius: 5px; }
.ns-roster-card-action.ns-roster-remove-shift { color: #a64a4a; }
.ns-roster-card-action.ns-roster-remove-shift:hover { background: #fff1f1; color: #963333; }
.ns-roster-cell-actions { display: flex; align-items: stretch; gap: 4px; margin-top: auto; }
.ns-roster-cell-actions > button { flex: 1 1 0; min-width: 0; }
.ns-roster-cell-action { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; max-width: 100%; padding: 8px 9px; border: 1px solid #dce7ee; border-radius: 7px; background: #fff; color: #6b8596; font: inherit; font-size: 10px; line-height: 1.6; text-align: left; white-space: normal; cursor: pointer; }
.ns-roster-cell-action:hover { border-color: #9bc8df; background: #f0f9fe; color: #1678a6; }
.ns-roster-new-action { border-style: dashed; color: #2185b1; }
.ns-roster-shift-tools > .ns-roster-cell-action { justify-content: center; min-width: 0; padding: 6px 3px; font-size: 9px; }
.ns-roster-free-action { border-color: transparent; background: transparent; color: #7b909f; }
.ns-roster-table .ns-roster-unassigned-row :is(th, td) { border-top: 2px solid #e6d9bc; background: #fffcf5; }
.ns-roster-unassigned-note { display: block; margin-top: 9px; color: #aa9364; font-size: 10px; line-height: 1.7; }
.ns-roster-table .ns-roster-no-results { padding: 38px 24px; background: #fbfdfe; text-align: center; }
.ns-roster-no-results strong { display: block; color: #476576; font-size: 14px; line-height: 1.7; }
.ns-roster-no-results span { display: block; margin-top: 5px; color: #7b909f; font-size: 11px; line-height: 1.7; }
.ns-roster-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 22px; border-top: 1px solid #e4ecf2; }
.ns-roster-result-count { margin: 0; color: #728895; font-size: 11px; line-height: 1.7; }
.ns-roster-result-count strong { color: #36596e; font-weight: 700; }
.ns-roster-result-count > span { display: block; color: #93a1ab; font-size: 10px; }
.ns-roster-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ns-roster-page-button { display: grid; min-width: 44px; min-height: 44px; padding: 6px 8px; place-items: center; border: 1px solid #dce7ee; border-radius: 7px; background: #fff; color: #638092; font: inherit; font-size: 11px; line-height: 1.5; cursor: pointer; }
.ns-roster-page-button:hover:enabled { border-color: #8fc7e0; background: #f0f9fd; color: #087caf; }
.ns-roster-page-button.is-current { border-color: #96d5ee; background: #eaf7fd; color: #087caf; font-weight: 700; }
.ns-roster-page-button:disabled { opacity: .4; cursor: default; }
.ns-roster-page-gap { display: grid; min-width: 20px; min-height: 44px; place-items: center; color: #98a9b5; }
.ns-roster-note { margin: 0; padding: 0 22px 19px; color: #8295a2; font-size: 10px; line-height: 1.8; }
.ns-roster :is(button, input, select):focus-visible { outline: 3px solid #008fd14d; outline-offset: 2px; }
.ns-roster-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ns-roster-day-summary { min-width: 0; margin: 0 0 12px; padding: 11px 0 12px; border-bottom: 1px solid #e2ebf0; }
.ns-roster-summary-title { display: block; margin-bottom: 8px; color: #677e8d; font-size: 10px; line-height: 1.6; }
.ns-roster-summary-title > span { color: #92a3ae; font-weight: 400; }
.ns-roster-summary-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ns-roster-summary-more { margin-top: 5px; }
.ns-roster-summary-more > summary { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: #4b829e; font-size: 10px; line-height: 1.6; cursor: pointer; }
.ns-roster-summary-more > summary::before { content: '＋'; margin-right: 6px; font-size: 13px; }
.ns-roster-summary-more[open] > summary::before { content: '−'; }
.ns-roster-summary-more > summary:focus-visible { outline: 3px solid #008fd14d; outline-offset: 2px; }
@media (max-width: 760px) {
  .ns-roster-toolbar { gap: 14px; padding: 18px 16px; }
  .ns-roster-toolbar-title { flex-basis: 100%; }
  .ns-roster-search-label { flex: 1 1 180px; }
  .ns-roster-legend { padding-inline: 16px; }
  .ns-roster-scroll-hint { padding-inline: 16px; }
  .ns-roster-scroll { max-height: 70vh; max-height: 70dvh; }
  .ns-roster-table { width: calc(172px + var(--ns-roster-days) * 178px); min-width: calc(172px + var(--ns-roster-days) * 178px); }
  .ns-roster-table .ns-roster-person-column { width: 172px; }
  .ns-roster-table .ns-roster-day-column { width: 178px; }
  .ns-roster-table .ns-roster-person { padding: 14px 11px; }
  .ns-roster-avatar { display: none; }
  .ns-roster-footer { padding: 15px 16px; }
  .ns-roster-note { padding-inline: 16px; }
  .ns-roster-month-method { margin-inline: 16px; }
}
@media (max-width: 420px) {
  .ns-roster-size-label { flex-basis: 78px; }
  .ns-roster-search-label { flex-basis: 150px; }
  .ns-roster-table { width: calc(144px + var(--ns-roster-days) * 172px); min-width: calc(144px + var(--ns-roster-days) * 172px); }
  .ns-roster-table .ns-roster-person-column { width: 144px; }
  .ns-roster-table .ns-roster-day-column { width: 172px; }
  .ns-roster-page-button { min-width: 44px; }
  .ns-roster-pagination { gap: 3px; }
}
