.work-schedule-panel { padding: 22px 16px 16px; min-width: 0; }
.ws-heading, .ws-actions, .ws-status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ws-heading { justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.work-schedule-panel h2 { margin-bottom: 8px; }
.work-schedule-panel .work-schedule-access { margin-bottom: 4px; }
.ws-actions button { border: 1px solid #ded6ca; border-radius: 18px; padding: 8px 14px; background: #fff; font-size: 13px; }
.ws-months { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 12px; border-top: 1px solid #ece6dc; }
.ws-months button { border: 0; border-radius: 16px; background: transparent; padding: 7px 12px; color: #475569; }
.ws-months button:hover { background: #f4f1eb; }
.ws-months button[aria-current="date"] { background: #030c94; color: #fff; font-weight: 600; }
.ws-status-line { min-height: 34px; margin: 4px 0; }
.work-schedule-panel #wsStatus { font-size: 12px; max-width: none; color: #64748b; }
.work-schedule-panel #wsStatus[data-error="true"] { color: #a4262c; }
.ws-table-viewport { width: max-content; max-width: 100%; height: auto; max-height: none; overflow-x: auto; overflow-y: hidden; border: 1px solid #cbd0d7; border-radius: 8px; isolation: isolate; background: #fff; }
.ws-top-scroll { box-sizing: border-box; max-width: 100%; height: 20px; margin-bottom: 4px; overflow-x: scroll; overflow-y: hidden; border: 1px solid #cbd0d7; border-radius: 6px; background: #eef0f3; }
#wsTableTopScrollContent { height: 1px; }
.ws-top-scroll::-webkit-scrollbar, #wsTableViewport::-webkit-scrollbar { height: 14px; }
.ws-top-scroll::-webkit-scrollbar-track, #wsTableViewport::-webkit-scrollbar-track { background: #eef0f3; }
.ws-top-scroll::-webkit-scrollbar-thumb, #wsTableViewport::-webkit-scrollbar-thumb { border: 3px solid #eef0f3; border-radius: 7px; background: #9ca3af; }
.ws-top-scroll::-webkit-scrollbar-thumb:hover, #wsTableViewport::-webkit-scrollbar-thumb:hover { background: #64748b; }
@media screen { #wsTableViewport { overflow-x: scroll; } }
.ws-table { --ws-notes-width: 54px; width: max-content; border-collapse: separate; border-spacing: 0; font-size: 12px; color: #111827; font-variant-numeric: tabular-nums; }
.ws-table th, .ws-table td { border-right: 1px solid #cbd0d7; border-bottom: 1px solid #cbd0d7; padding: 0; box-sizing: border-box; }
.ws-table thead th { position: sticky; background: #fff; z-index: 5; padding: 8px; text-align: center; }
.ws-table .ws-group-row th { top: 0; height: 24px; padding: 2px 8px; font-weight: 500; line-height: 16px; }
.ws-table .ws-guide-row th { top: 24px; height: 30px; padding: 2px 8px; white-space: nowrap; line-height: 14px; }
.ws-table .ws-group-work { background: #23e600; color: #071400; }
.ws-table .ws-group-spare { background: #ff9900; }
.ws-table .ws-guide-row .ws-date-heading, .ws-table .ws-group-row .ws-date-heading { min-width: 54px; width: 54px; background: #e9eaec; }
.ws-table .ws-group-notes { background: #ceddf3; }
.ws-table .ws-guide-row .ws-note-heading { min-width: var(--ws-notes-width); width: var(--ws-notes-width); }
.ws-table tbody td { vertical-align: top; background: #fff; }
.ws-table tbody .ws-saturday td, .ws-table tbody .ws-saturday th { background: #fff1df; }
.ws-table tbody .ws-sunday td, .ws-table tbody .ws-sunday th { background: #ffebed; }
.ws-table tbody th.ws-day { position: sticky; left: 0; z-index: 3; min-width: 54px; width: 54px; background: #f5f6f8; padding: 6px 2px; text-align: center; }
.ws-day strong { font-size: 13px; }
.ws-day span { margin-left: 4px; font-size: 10px; font-weight: 400; color: #64748b; }
.ws-table .ws-sticky-day { left: 0; z-index: 8; }
.ws-table .ws-sticky-note { position: sticky; left: 54px; z-index: 3; background: #fff; min-width: var(--ws-notes-width); width: var(--ws-notes-width); }
.ws-table thead .ws-sticky-note { z-index: 8; }
.ws-table .ws-spare { border-left: 2px solid #e4a43a; }
.ws-note { display: block; box-sizing: border-box; width: calc(var(--ws-notes-width, 54px) - 2px); min-height: 27px; padding: 5px; resize: vertical; border: 0; border-radius: 0; background: transparent; font-size: 12px; color: inherit; }
.ws-note[readonly] { resize: none; }
.ws-note:not([readonly]) { cursor: text; }
.ws-note::placeholder { color: #64748b; font-family: Arial, Helvetica, sans-serif; font-size: 10px; }
.ws-note:focus-visible { outline: 2px solid #030c94; outline-offset: -2px; background: #fff; }
.ws-note-wrap { position: relative; }
.ws-tour-count { display: block; padding-left: 5px; color: #64748b; font-size: 10px; line-height: 16px; white-space: nowrap; }
.ws-note-expand { position: absolute; right: 1px; top: 11px; transform: translateY(-50%); width: 14px; height: 18px; padding: 0; border: 0; border-radius: 3px; background: #eef2ff; color: #030c94; font-size: 11px; line-height: 1; cursor: pointer; }
.ws-note:focus ~ .ws-note-expand { opacity: .4; }
.ws-note-expand:hover, .ws-note-expand:focus-visible { opacity: 1; }
.ws-note-wrap:has(.ws-tour-count:not([hidden])) .ws-note-expand { top: 27px; }
.ws-cell-editor .ws-note-expand { display: none; }
.ws-table .ws-sticky-note .ws-entry-error { max-width: calc(var(--ws-notes-width) - 2px); overflow-wrap: anywhere; }
.ws-cell { position: relative; }
.ws-table .ws-cell { --ws-tour-width: 72px; padding-right: 20px; }
.work-schedule-panel[data-read-only="true"] .ws-cell { padding-right: 0; }
.ws-entry-list { display: flex; flex-wrap: nowrap; align-items: flex-start; width: max-content; min-width: 100%; }
.ws-entry { display: grid; grid-template-columns: var(--ws-tour-width, 72px) var(--ws-start-width, 16px) var(--ws-end-width, 16px); align-items: center; flex: 0 0 auto; width: max-content; gap: 3px; padding: 2px 5px; }
.ws-entry + .ws-entry { border-left: 1px dashed #d4d8df; }
.ws-entry select { grid-column: 1; grid-row: 1; box-sizing: border-box; width: 100%; min-width: 0; border: 0; border-radius: 12px; padding: 2px 16px 2px 6px; font-size: 11px; cursor: pointer; background-color: transparent; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 9px center, right 5px center; background-size: 4px 4px; background-repeat: no-repeat; }
.ws-entry select.ws-grouped-select, .ws-entry select.ws-grouped-select:disabled { opacity: 0; }
.ws-tour-names { grid-column: 1; grid-row: 1; z-index: 1; display: flex; overflow: hidden; border-radius: 12px; height: 20px; font-size: 11px; line-height: 20px; pointer-events: none; }
.ws-tour-name { flex: 1 0 auto; padding: 0 6px; white-space: nowrap; }
.ws-tour-name:last-child { padding-right: 16px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 9px center, right 5px center; background-size: 4px 4px; background-repeat: no-repeat; }
.ws-entry select[data-empty="true"]:not(:focus) { background-image: none; }
.ws-entry select:focus-visible { outline: 1px solid #030c94; outline-offset: -1px; }
.ws-entry select option { background: #fff; color: #111827; }
.ws-entry input[type="time"] { box-sizing: border-box; width: 100%; min-width: 0; padding: 3px 1px; border: 1px solid transparent; border-radius: 3px; background: transparent; font-size: 11px; color: #111827; }
.ws-entry input[type="time"]::-webkit-calendar-picker-indicator { width: 9px; margin: 0; padding: 0; opacity: .5; }
.ws-entry input[type="time"]:not(:focus)::-webkit-calendar-picker-indicator { display: none; }
.ws-entry input[type="time"][data-empty="true"]:not(:focus) { color: transparent; -webkit-text-fill-color: transparent; }
.ws-entry input[type="time"][data-empty="true"]:not(:focus)::-webkit-datetime-edit { visibility: hidden; }
.ws-entry input:focus { background: #fff; border-color: #030c94; }
.ws-entry select:disabled, .ws-entry input:disabled { opacity: 1; cursor: default; -webkit-text-fill-color: currentColor; }
.ws-remove { padding: 0; border: 0; border-radius: 3px; font-size: 15px; color: #64748b; background: transparent; line-height: 20px; }
.ws-remove { grid-column: 4; grid-row: 1; }
.ws-entry[data-removable="true"] { grid-template-columns: var(--ws-tour-width, 72px) var(--ws-start-width, 16px) var(--ws-end-width, 16px) 16px; }
.ws-entry[data-time-editable="true"] { grid-template-columns: var(--ws-tour-width, 72px) var(--ws-start-width, 16px) var(--ws-end-width, 16px) 18px; }
.ws-tour-time { grid-column: 4; grid-row: 1; border: 0; padding: 0; background: transparent; color: #030c94; cursor: pointer; font-size: 16px; }
.ws-partial-start { display: flex; align-items: center; gap: 12px; }
.ws-copy-choice { display: block; width: 100%; margin: 8px 0; text-align: left; }
.ws-entry[data-draggable="true"] { cursor: grab; }
.ws-entry[data-draggable="true"]:active { cursor: grabbing; }
.ws-entry:focus-visible { outline: 1px solid #030c94; outline-offset: -1px; }
.ws-entry[data-draggable="true"] select, .ws-entry[data-draggable="true"] input:disabled { pointer-events: none; }
.ws-entry.ws-dragging { opacity: .45; }
.ws-table .ws-cell.ws-drop-target { outline: 2px solid #030c94; outline-offset: -2px; background: #eef2ff; }
.ws-tour-menu { position: fixed; z-index: 20000; max-width: calc(100vw - 16px); padding: 5px; border: 1px solid #d0d6dc; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px #0002; }
.ws-tour-menu[hidden] { display: none; }
.ws-tour-menu button { display: block; width: 100%; padding: 8px 12px; border: 0; background: transparent; color: #1f2937; font-size: 13px; text-align: left; }
.ws-tour-menu button:hover, .ws-tour-menu button:focus-visible { background: #eef2ff; }
.ws-add { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); padding: 0 4px; border: 0; border-radius: 3px; background: #fff; color: #5b6475; font-size: 13px; opacity: 0; }
.ws-cell:hover .ws-add, .ws-cell:focus-within .ws-add { opacity: 1; }
.ws-add:hover, .ws-remove:hover { background: #e8edf5; }
.ws-entry[data-saving="true"] { opacity: .6; }
.ws-entry-error { grid-column: 1 / -1; color: #a4262c; font-size: 11px; line-height: 1.4; }
.ws-entry-error button { padding: 1px 6px; margin-left: 5px; font-size: 11px; }
.ws-table tbody tr { height: 23px; }
.ws-table tbody th.ws-day { padding: 0 2px; }
.ws-table .ws-summary-gap { height: 10px; }
.ws-table .ws-summary-gap td { height: 10px; padding: 0; border: 0; background: #fff; }
.ws-table .ws-summary-row { height: 28px; }
.ws-table .ws-summary-label { position: sticky; left: 0; z-index: 4; padding: 5px 6px; background: #f5f6f8; font-size: 10px; font-weight: 600; line-height: 14px; text-align: left; white-space: normal; }
.ws-table .ws-summary-value { padding: 5px; background: #fff; }
.ws-table .ws-summary-value { text-align: center; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ws-summary-value[data-incomplete="true"] { color: #8a5a13; }
.ws-summary-detail { display: block; }
.ws-table .ws-entry { box-sizing: border-box; min-height: 22px; padding: 1px 5px; }
.ws-table .ws-entry select, .ws-table .ws-entry input[type="time"] { height: 20px; padding-top: 0; padding-bottom: 0; font-size: 11px; }
.ws-table input[type="time"]::-webkit-datetime-edit { padding: 0; }
.ws-table .ws-note { min-height: 22px; height: 22px; padding: 2px 5px; resize: none; overflow: hidden; font-size: 12px; line-height: 18px; }
.ws-cell-editor .ws-add { position: static; transform: none; opacity: 1; padding: 6px 10px; margin-top: 8px; border: 1px solid #d0d6dc; font-size: 13px; }
.ws-cell-editor .ws-note { width: 100%; min-height: 140px; height: 180px; padding: 10px; resize: vertical; overflow: auto; font-size: 14px; line-height: 1.5; border: 1px solid #d0d6dc; border-radius: 8px; }
.ws-cell-editor .ws-entry { min-height: 36px; }
@media (hover: none) { .ws-add { opacity: 1; } }
.ws-archived { display: block; color: #7a8593; font-size: 10px; font-weight: 400; }
.work-schedule-panel .ws-hint { max-width: none; margin: 10px 0 0; font-size: 12px; }
.ws-dialog { box-sizing: border-box; width: min(630px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; padding: 24px; border: 0; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .2); color: #1f2937; }
.ws-dialog::backdrop { background: rgba(15, 23, 42, .35); }
.ws-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.ws-dialog p { font-size: 13px; line-height: 1.5; color: #64748b; }
.ws-label-row, .ws-label-columns { display: grid; grid-template-columns: minmax(0, 1fr) 64px 56px; align-items: center; gap: 10px; margin-bottom: 8px; }
.ws-label-columns { margin: 20px 0 10px; font-size: 12px; font-weight: 600; }
.ws-label-row input[type="text"] { width: 100%; box-sizing: border-box; min-width: 0; }
.ws-label-row input[type="color"] { width: 50px; height: 34px; padding: 2px; }
.ws-label-row input[type="checkbox"] { justify-self: center; }
.ws-label-color { display: flex; align-items: center; gap: 4px; }
.ws-label-color input[type="color"] { width: 38px; }
.ws-clear-color { padding: 0; width: 20px; height: 28px; background: transparent; border: 0; color: #64748b; font-size: 18px; }
.ws-color-unset::-webkit-color-swatch { background: repeating-linear-gradient(135deg, #fff 0, #fff 4px, #e2e8f0 4px, #e2e8f0 6px) !important; }
.ws-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.ws-primary { background: #030c94; border-color: #030c94; color: #fff; }
.ws-guides-dialog { width: min(460px, calc(100vw - 32px)); }
.ws-guides-dialog label { display: block; margin-bottom: 8px; font-size: 13px; }
#wsFinalsPassword { box-sizing: border-box; width: 100%; }
#wsLabelsMessage, #wsGuidesMessage { color: #a4262c; }
@media (max-width: 600px) {
  .work-schedule-panel { padding: 16px 12px; }
  .ws-months button { padding: 7px 10px; }
  .ws-table tbody .ws-spare { position: relative; }
  .ws-table thead .ws-spare { right: auto; }
  .ws-table .ws-sticky-note { position: static; }
}
@media print {
  .ws-table .ws-tour-count[hidden] { display: block !important; }
  .ws-table .ws-note:placeholder-shown { display: none; }
  .ws-table tfoot { display: table-row-group; break-inside: avoid; }
  .ws-actions, .ws-months, .ws-add, .ws-remove, .ws-tour-menu, .ws-top-scroll { display: none; }
  .ws-table-viewport { height: auto; overflow: visible; }
}

.work-schedule-panel h2 { margin: 0 0 8px; font-size: 22px; }
.work-schedule-panel button { cursor: pointer; }
.work-schedule-panel [hidden], .ws-dialog [hidden] { display: none !important; }
.work-schedule-access { padding: 5px 10px; background: #eef2ff; border-radius: 12px; color: #030c94; font-size: 12px; }
.ws-dialog input, .ws-dialog button { font: inherit; padding: 7px 10px; border: 1px solid #d0d6dc; border-radius: 6px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pc-table th, .pc-table td { padding: 4px 8px; border: 1px solid #d4d8df; text-align: left; }
.pc-table thead th { background: #f5f6f8; }
.pc-table .pc-day { width: 65px; white-space: nowrap; }
.pc-table .ws-saturday th, .pc-table .ws-saturday td { background: #fff1df; }
.pc-table .ws-sunday th, .pc-table .ws-sunday td { background: #ffebed; }
.pc-shift { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 2px 0; }
.pc-tour-name { padding: 2px 8px; border-radius: 12px; }
.pc-ship { color: #64748b; }
.pc-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-summary th { background: #f5f6f8; white-space: nowrap; }
.pc-summary td { text-align: right; font-variant-numeric: tabular-nums; }
#pcStatus { font-size: 12px; color: #64748b; }
#pcStatus[data-error="true"] { color: #a4262c; }
