/* ========== Login Screen ========== */
.dm-login-screen {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: #faf8f4;
}
.dm-login-screen.hidden { display: none; }
.dm-login-container { text-align: center; }
.dm-login-brand {
  font-size: 28px; font-weight: 600; letter-spacing: 6px;
  color: #1a1815;
}
.dm-login-sub {
  font-size: 11px; letter-spacing: 4px; color: rgba(26,24,21,0.4);
  margin-top: 4px;
}
.dm-login-form { margin-top: 32px; }
.dm-login-input {
  display: block; width: 220px; margin: 0 auto;
  padding: 10px 14px; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px; font-size: 15px; text-align: center;
  background: #fff; outline: none;
}
.dm-login-input:focus { border-color: rgba(0,0,0,0.25); }
.dm-login-error {
  color: #a87070; font-size: 12px; margin-top: 8px; min-height: 18px;
}
.dm-login-btn {
  margin-top: 12px; padding: 9px 36px;
  background: #1a1815; color: #fff; border: none; border-radius: 8px;
  font-size: 13px; letter-spacing: 2px; cursor: pointer;
}
.dm-login-btn:hover { background: #2a2621; }
.dm-login-btn:disabled { opacity: 0.5; cursor: default; }

/* ========== Reset & Base (Warm Minimal v3) ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  background: #faf9f6;
  color: #2a2621;
  min-height: 100vh;
}

/* ========== Header ========== */
#app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: #faf9f6;
  border-bottom: 0.5px solid #ebe7df;
  position: sticky;
  top: 0;
  z-index: 100;
}

#app-header h1 {
  font-size: 13px;
  font-weight: 500;
  color: #2a2621;
  letter-spacing: -0.01em;
}
.header-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.last-updated {
  font-size: 9px;
  font-weight: 400;
  color: #b0aba2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 2px;
}

.date-input {
  font-size: 13px;
  font-weight: 500;
  width: 55px;
  text-align: center;
  border: none;
  border-radius: 6px;
  padding: 4px 4px;
  background: transparent;
  color: #2a2621;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.date-input::-webkit-inner-spin-button,
.date-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.date-input:focus { outline: none; background: #f0ebe1; }
.date-input.month-input { width: 35px; }
.date-sep { font-size: 12px; font-weight: 400; color: #a8a39b; }

.header-right { display: flex; gap: 1px; align-items: center; }

.nav-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 15px;
  cursor: pointer;
  color: #8a8680;
  transition: all 0.1s;
}
.nav-btn:hover { background: #f0ebe1; color: #2a2621; }
.nav-btn.today-btn { font-size: 12px; font-weight: 400; padding: 4px 10px; }

.action-btn {
  background: transparent;
  color: #5a5650;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.1s;
}
.action-btn:hover { background: #f0ebe1; color: #2a2621; }
.action-btn:active { background: #e9e3d6; }
.action-btn.small { padding: 4px 8px; font-size: 11px; }
.action-btn.danger { color: #a04030; }
.action-btn.danger:hover { background: #faf0ee; }
/* 이전 컬러 클래스 무력화: 모두 투명 텍스트 */
.action-btn.duty-btn,
.action-btn.export-btn,
.action-btn.settings-btn { background: transparent; color: #5a5650; }
.action-btn.duty-btn:hover,
.action-btn.export-btn:hover,
.action-btn.settings-btn:hover { background: #f0ebe1; color: #2a2621; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #faf9f6;
  border: 0.5px solid #ebe7df;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(42,38,33,0.1);
  min-width: 150px;
  z-index: 200;
  overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  color: #2a2621;
}
.dropdown-menu button:hover { background: #f3efe6; }

/* ========== Main Container ========== */
#main-container {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 44px);
}

/* ========== Sidebar ========== */
#sidebar {
  width: 175px;
  min-width: 175px;
  background: #faf9f6;
  border-right: 0.5px solid #ebe7df;
  padding: 18px 14px;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.sidebar-header h2 {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Doctor Card */
.doctor-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  margin-bottom: 1px;
  transition: background 0.1s;
  border: 1px solid transparent;
  cursor: grab;
}
.doctor-card:hover { background: #f3efe6; }
.doctor-card.dragging { opacity: 0.4; }
.doctor-card.drag-over { background: #ede8dc; }

.drag-handle {
  display: none;
}

.doc-card-color {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  filter: saturate(0.3) brightness(0.7);
}

.doc-card-info { flex: 1; min-width: 0; }
.doc-card-name {
  font-weight: 500;
  font-size: 13px;
  color: #2a2621;
  display: flex;
  align-items: center;
  gap: 4px;
}
.doc-card-meta {
  font-size: 11px;
  color: #a8a39b;
  margin-top: 1px;
}

.part-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #a8a39b;
  margin-right: 0;
}
.part-badge.skin,
.part-badge.chiro,
.part-badge.nail { background: none; color: #a8a39b; }

.pinned-badge,
.backup-badge {
  font-size: 9px;
  background: none;
  color: #b0aba2;
  padding: 0;
}

.doc-card-edit {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 2px;
}
.doctor-card:hover .doc-card-edit { opacity: 0.5; }
.doc-card-edit:hover { opacity: 1 !important; }

/* ========== Memo Board (사이드바) ========== */
.memo-board-section {
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
}
.memo-board-header h3 {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.memo-board-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.memo-board-wrap textarea {
  width: 100%;
  min-height: 70px;
  background: transparent;
  border: none;
  border-bottom: none;
  color: #5a5650;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.7;
  resize: none;
  outline: none;
  padding: 6px 2px;
}
.memo-board-wrap textarea::placeholder { color: #c0bcb3; font-weight: 400; }

/* ========== Todo Section ========== */
.todo-section {
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
}
.todo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0 4px 6px;
  user-select: none;
}
.todo-header h3 {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toggle-icon { font-size: 14px; color: #a8a39b; transition: transform 0.2s; padding: 2px; }
.toggle-icon.collapsed { transform: rotate(-90deg); }

#todo-body.collapsed { display: none; }

.todo-input-row {
  display: flex;
  gap: 4px;
  margin: 4px 0;
}
.todo-input-row input {
  flex: 1;
  padding: 6px 10px;
  border: 0.5px solid #e5dfd3;
  border-radius: 6px;
  font-size: 12px;
  background: #faf9f6;
  color: #2a2621;
}
.todo-input-row input:focus { outline: none; border-color: #c0b89f; background: #faf9f6; }

.todo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px;
  border-radius: 4px;
  margin-bottom: 1px;
}
.todo-item:hover { background: #f3efe6; }
.todo-item input[type="checkbox"] { cursor: pointer; flex-shrink: 0; accent-color: #8a8680; }
.todo-text { flex: 1; font-size: 12px; word-break: break-all; color: #5a5650; }
.todo-item.done .todo-text { text-decoration: line-through; color: #c0bcb3; }
.todo-delete {
  background: none;
  border: none;
  font-size: 12px;
  color: #c0bcb3;
  cursor: pointer;
  opacity: 0;
  padding: 0 2px;
}
.todo-item:hover .todo-delete { opacity: 1; }
.todo-delete:hover { color: #a04030; }

/* ========== Highlight Memo (형광펜 메모) ========== */
.cell-hl-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2px;
}
.cell-highlight-memo {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 우측 패널 형광펜 줄 */
.daily-hl-line {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

/* Highlight memo in modal — 멀티 입력 */
.hl-item-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.hl-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f5f4f1;
  border-radius: 6px;
  font-size: 13px;
}
.hl-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hl-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2a2621;
}
.hl-item-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #b0aba2;
  padding: 0 2px;
  line-height: 1;
}
.hl-item-del:hover { color: #a04030; }
.hl-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hl-input-wrap {
  display: flex;
  gap: 4px;
}
.hl-text-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ddd8d0;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  outline: none;
}
.hl-text-input:focus { border-color: #a8a39b; }
.hl-add-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd8d0;
  border-radius: 6px;
  background: #faf8f4;
  cursor: pointer;
  font-size: 16px;
  color: #6a7a62;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hl-add-btn:hover { background: #f0eee8; }
.highlight-color-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== Doctor Row ========== */
.floor-row {
  display: flex;
  gap: 0;
  align-items: center;
}

/* Cell body: 좌측 원장 + 우측 근무수/잔업 */
.cell-body {
  display: flex;
  gap: 0;
  flex: 1;
}
.cell-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cell-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding-left: 4px;
  border-left: 0.5px solid #e5dfd3;
  width: 36px;
  flex-shrink: 0;
}

/* Overtime stacked (우측) */
.cell-ot-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ot-stack-plus, .ot-stack-minus {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.4;
}
.ot-stack-plus { color: #a05040; }
.ot-stack-minus { color: #4070a0; }

/* Day memo in cell */
.cell-day-memo {
  font-size: 10px;
  color: #8a8680;
  line-height: 1.3;
  padding: 1px 2px;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 2px;
}

/* Cell border color — box-shadow로 테두리 짤림/렉 방지 */
.cal-cell.cell-bordered {
  box-shadow: inset 0 0 0 2px var(--cell-border-color, #d9d3c7);
}

/* ========== Overtime Summary (Sidebar) ========== */
.ot-summary-section {
  margin-top: 22px;
}
.ot-summary-section h3 {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.ot-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  font-size: 11px;
}
.ot-summary-name { color: #5a5650; font-weight: 500; }
.ot-val-plus { color: #a05040; font-weight: 500; }
.ot-val-minus { color: #4070a0; font-weight: 500; }
.ot-summary-empty { font-size: 11px; color: #b0aba2; padding: 4px 8px; }

/* ========== Duty History ========== */
.duty-history-section {
  margin-top: 22px;
}
.duty-history-section h3 {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.duty-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #5a5650;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.duty-history-item:hover { background: #f3efe6; }
.duty-history-item.active { background: #eae4d6; font-weight: 600; }
.duty-filter-body { display: flex; align-items: center; justify-content: center; padding: 2px 0; }
.duty-save-btn { width: 100%; margin-bottom: 4px; font-size: 11px; padding: 5px 0; background: #5a5650; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.duty-save-btn:hover { background: #3a3630; }
.duty-cancel-btn { width: 100%; margin-bottom: 8px; font-size: 11px; padding: 5px 0; background: none; color: #b0aba2; border: 1px solid #e5dfd3; border-radius: 4px; cursor: pointer; }
.duty-cancel-btn:hover { background: #f3efe6; }
.duty-edit-btn { width: 100%; margin-bottom: 8px; font-size: 11px; padding: 5px 0; background: none; color: #5a5650; border: 1px solid #e5dfd3; border-radius: 4px; cursor: pointer; }
.duty-edit-btn:hover { background: #f3efe6; }

/* 당직기록 삭제 */
.dh-delete-btn {
  background: none;
  border: none;
  color: #c0bcb3;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
}
.duty-history-item:hover .dh-delete-btn { opacity: 1; }
.dh-delete-btn:hover { color: #a87070; }

/* 당직기록 삭제 확��� (인라인) */
.dh-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 8px;
  font-size: 10px;
  color: #a8a39b;
}
.dh-confirm-yes, .dh-confirm-no {
  background: none;
  border: none;
  font-size: 10px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}
.dh-confirm-yes { color: #a87070; }
.dh-confirm-yes:hover { background: rgba(168,112,112,0.1); }
.dh-confirm-no { color: #a8a39b; }
.dh-confirm-no:hover { background: #f3efe6; }
.duty-history-empty {
  font-size: 11px;
  color: #b0aba2;
  padding: 4px 8px;
}

/* ========== Calendar Area ========== */
#calendar-area {
  flex: 1;
  padding: 18px 22px 20px;
  overflow-x: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#calendar-capture {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

#capture-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
  gap: 12px;
}
#capture-title {
  font-size: 22px;
  font-weight: 600;
  color: #2a2621;
  letter-spacing: -0.02em;
}
#capture-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #a8a39b; }
.legend-chip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  font-size: 0;
  filter: saturate(0.3) brightness(0.7);
}

/* Calendar Grid */
#calendar-grid { width: 100%; flex: 1; display: flex; flex-direction: column; }

.cal-header-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
}
.cal-header-cell {
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  padding: 2px 10px 10px;
  background: transparent;
  border-radius: 0;
  color: #b0aba2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cal-header-cell.sat { color: #8fa4b5; }

#calendar-body {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  flex: 1;
  border-bottom: 0.5px solid #e5dfd3;
}

/* Calendar Cell — warm minimal */
.cal-cell {
  min-height: 110px;
  background: transparent;
  border-top: 0.5px solid #e5dfd3;
  border-left: 0.5px solid #e5dfd3;
  border-radius: 0;
  padding: 8px 10px 20px;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.cal-cell:nth-child(6n) { border-right: 0.5px solid #e5dfd3; }
.cal-cell:hover { background: #f5f1e8; }

.cal-cell.today-cell { background: transparent; border-left: 0.5px solid #efeae0; }
.cal-cell.low-staff { border: 0.5px solid #efeae0; }
.cal-cell.selected-cell { background: rgba(106,122,98,0.08); border-color: #efeae0; box-shadow: none; }

.cal-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.cal-cell.empty:hover { background: transparent; }

.cal-cell.next-month .date-num { color: #cfc9bd; }
.cal-cell.next-month .doc-letter { opacity: 0.5; }
.cal-cell.next-month .doc-pill { opacity: 0.55; }

.cal-cell.saturday .date-num { color: #8fa4b5; }

/* Cell: Date Row */
.date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  min-height: 20px;
}
.date-num {
  font-size: 14px;
  font-weight: 600;
  color: #2a2621;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* 오늘: 검은 동그라미 + 흰 텍스트 */
.date-today {
  background: #2a2621;
  color: #faf9f6 !important;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* 선택 셀의 날짜도 동그라미 (오늘 아닐 때) */
.cal-cell.selected-cell .date-num:not(:has(.date-today)) {
  background: #2a2621;
  color: #faf9f6;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* 인원 뱃지 숨김 */
.headcount-badge { display: none; }

/* 근무 원장 수 (날짜 줄 우측) */
.cell-active-count {
  font-size: 9px;
  font-weight: 400;
  color: #b0aba2;
  letter-spacing: 0.02em;
  margin-left: auto;
}

/* Cell: 원장 표시 — 피부과 5슬롯 | 비피부과 고정슬롯 */
.doctor-letters {
  display: flex;
  gap: 0;
  align-items: center;
}

/* 공통 슬롯 베이스 — 빈 슬롯과 채워진 슬롯 동일 크기 */
.doc-slot,
.doc-letter {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  position: relative;
  box-sizing: border-box;
}

/* 구분선 */
.doc-sep {
  width: 1px;
  height: 10px;
  background: #ddd8ce;
  margin: 0 3px;
  flex: 0 0 1px;
}

/* 모노톤 필터 — 채도 낮추고 톤 차분하게 */
.doc-letter {
  filter: saturate(0.3) brightness(0.7);
}

/* X마크 — 연한 글자 + 검정 ✕ 오버레이 */
.doc-letter.x-mark {
  color: #d5d0c8 !important;
  filter: none;
}
.doc-letter.x-mark::after {
  content: '✕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #2a2621;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

/* 당직 밑줄 */
.doc-letter.duty {
  text-decoration: underline;
  text-decoration-color: #2a2621;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* 이전 v3 아바타 클래스 (buildDocAvatar가 사용) 숨김 처리 — 새 함수로 교체됨 */
.avatar-stack, .doc-avatar { display: none; }

/* ========== Right Panel ========== */
#right-panel {
  width: 200px;
  min-width: 200px;
  background: #faf9f6;
  border-left: 0.5px solid #ebe7df;
  padding: 18px 14px;
  overflow-y: auto;
}
#right-panel.hidden { display: none; }

/* 모드 토글 (최상단 중앙) */
.panel-mode-row {
  display: flex;
  justify-content: center;
  background: #f3efe6;
  border-radius: 6px;
  padding: 2px;
  margin-bottom: 12px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
  gap: 6px;
}
.panel-header h2 {
  font-size: 14px;
  font-weight: 500;
  color: #2a2621;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.panel-mode-btn {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 400;
  color: #8a8680;
  cursor: pointer;
  transition: all 0.1s;
  font-family: inherit;
}
.panel-mode-btn:hover { color: #5a5650; }
.panel-mode-btn.active {
  background: #faf9f6;
  color: #2a2621;
  font-weight: 500;
}

/* Close button hidden — panel always open or toggled */
.panel-header .close-btn { display: none; }

/* Panel date navigation */
.panel-nav-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  color: #a8a39b;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.1s;
}
.panel-nav-btn:hover { background: #f0ebe1; color: #2a2621; }

.panel-toggle-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid #ebe7df;
  background: #faf9f6;
  color: #8a8680;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(42,38,33,0.08);
  transition: all 0.15s;
  z-index: 50;
}
.panel-toggle-btn:hover { background: #f3efe6; color: #2a2621; }

/* Panel: Daily Section */
.daily-section {
  padding: 0 0 0;
  border-bottom: none;
}
.daily-section + .daily-section { margin-top: 20px; }

.daily-section-title {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 4px;
}

.daily-doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: default;
}
.daily-doc-row:hover { background: #f3efe6; }
.daily-doc-row.dimmed .daily-doc-name { color: #b0aba2; }

/* 원장 색상 점 (6px) */
.daily-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  filter: saturate(0.3) brightness(0.7);
}

.daily-doc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.daily-doc-name {
  font-size: 12.5px;
  font-weight: 400;
  color: #2a2621;
}

.daily-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 400;
  padding: 0;
  border-radius: 0;
  border: none;
  color: #a8a39b;
  background: transparent;
  letter-spacing: 0.02em;
}
.daily-tag.duty-tag {
  color: #a8a39b;
  font-weight: 400;
  font-size: 8px;
}
.daily-tag.time-tag {
  color: #8a8680;
}
.daily-tag.ghost-tag { color: #b0aba2; }

.daily-note-line {
  font-size: 11.5px;
  color: #5a5650;
  padding: 5px 8px;
  border-left: 1.5px solid #d9d3c7;
  border-radius: 0;
  background: transparent;
  margin-bottom: 3px;
  margin-left: 4px;
  line-height: 1.5;
  word-break: break-word;
}
.daily-note-line.gap-note {
  background: transparent;
  color: #8a5a50;
  border-left-color: #8a5a50;
}

.daily-empty {
  font-size: 12px;
  color: #b0aba2;
  text-align: center;
  padding: 16px 0;
}

/* Panel Table (Stats) */
.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 14px;
}
.panel-table th {
  text-align: left;
  font-weight: 500;
  padding: 6px 4px;
  border-bottom: 0.5px solid #ebe7df;
  color: #a8a39b;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.panel-table td {
  padding: 6px 4px;
  border-bottom: 0.5px solid #f3efe6;
  color: #5a5650;
}
.panel-table tr:last-child td { border-bottom: none; }

.panel-section-title {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px;
}

.blackout-item {
  font-size: 12px;
  color: #8a8680;
  padding: 3px 4px;
}
.blackout-item strong { color: #2a2621; font-weight: 500; }

/* ========== Modals ========== */
#modal-overlay,
#doctor-modal-overlay,
#settings-modal-overlay,
#manager-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,38,33,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

#edit-modal,
#doctor-modal,
#settings-modal,
#manager-modal {
  background: #faf9f6;
  border-radius: 12px;
  width: 520px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(42,38,33,0.15);
  border: 0.5px solid #ebe7df;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 0.5px solid #ebe7df;
}
.modal-header h3 { font-size: 14px; font-weight: 500; color: #2a2621; }

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #a8a39b;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover { background: #f3efe6; color: #2a2621; }

#modal-body,
#doctor-modal-body,
#settings-modal-body,
#manager-modal-body {
  padding: 18px;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 0.5px solid #ebe7df;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* Form Elements */
.form-row { margin-bottom: 12px; }
.form-row > label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #8a8680;
}

.form-row input[type="text"],
.form-row input[type="time"],
.form-row input[type="number"],
.form-row select {
  width: 100%;
  padding: 7px 10px;
  border: 0.5px solid #ebe7df;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #2a2621;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #c0b89f;
  box-shadow: 0 0 0 2px rgba(180,168,140,0.12);
}

.form-row input[type="color"] {
  width: 42px;
  height: 30px;
  border: 0.5px solid #ebe7df;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
}

/* Doctor Modal — 가로 배치 */
.dm-row-inline {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.dm-name { flex: 1; }
.dm-gender { width: 70px; flex-shrink: 0; }
.dm-color { width: 52px; flex-shrink: 0; }
.dm-color input[type="color"] { width: 100%; height: 34px; }
.dm-work-type-select { width: auto; }
.dm-row-inline .form-row { margin-bottom: 0; }

/* Pill toggle group (요일, 파트 선택) */
.pill-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pill-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #8a8680;
  background: #f3efe6;
  transition: all 0.1s;
  user-select: none;
}
.pill-group label:hover { background: #ede8dc; }
.pill-group label:has(input:checked) {
  background: #2a2621;
  color: #faf9f6;
  font-weight: 500;
}
.pill-group label input[type="checkbox"] {
  display: none;
}
.pill-days label { min-width: 36px; }

/* 옵션 토글 행 */
.dm-options-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.dm-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #8a8680;
  background: #f3efe6;
  transition: all 0.1s;
  user-select: none;
}
.dm-toggle:hover { background: #ede8dc; }
.dm-toggle:has(input:checked) {
  background: #2a2621;
  color: #faf9f6;
}
.dm-toggle input[type="checkbox"] { display: none; }

/* Legacy checkbox-group (설정 모달 등에서 사용) */
.checkbox-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.checkbox-group label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 3px 0;
  color: #5a5650;
}

/* Schedule Modal — 가로 카드 레이아웃 */
.sched-card-row {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  padding: 4px 0 8px;
}
.sched-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 44px;
  transition: background 0.1s;
  border: 1.5px solid transparent;
}
.sched-card:hover { background: #f3efe6; }
.sched-card.state-on { background: #f3efe6; border-color: #d9d3c7; }
.sched-card.state-off { opacity: 0.45; }
.sched-card.state-x { opacity: 0.45; }

.sched-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #2a2621;
  letter-spacing: -0.01em;
}
.sched-card-name.duty-underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: #2a2621;
}
.sched-card-state {
  font-size: 10px;
  font-weight: 400;
  color: #a8a39b;
  letter-spacing: 0.02em;
}
.sched-card.state-on .sched-card-state { color: #5a5650; }
.sched-card.state-x .sched-card-state { color: #8a8680; font-weight: 500; }

/* Modal Sections */
.modal-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 0.5px solid #f0ebe1;
}
.modal-section-title {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-textarea {
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  border: 0.5px solid #ebe7df;
  border-radius: 6px;
  font-size: 12px;
  color: #5a5650;
  background: #faf9f6;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.modal-textarea:focus { outline: none; border-color: #c0b89f; }
.modal-textarea::placeholder { color: #c0bcb3; }
.ot-textarea { min-height: 40px; }

/* Border color swatches */
.modal-border-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0 2px;
}
.modal-border-label {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.border-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ebe7df;
  cursor: pointer;
  font-size: 9px;
  color: #b0aba2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
}
.border-swatch:hover { border-color: #a8a39b; }
.border-swatch.active { border-color: #2a2621; border-width: 2px; }
.sched-time-sep { font-size: 11px; color: #b0aba2; }

.add-overtime-btn {
  font-size: 11px;
  color: #8a8680;
  background: none;
  border: 0.5px dashed #d9d3c7;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  margin-top: 3px;
}
.add-overtime-btn:hover { background: #f3efe6; color: #2a2621; }
.overtime-remove {
  background: none;
  border: none;
  color: #a8a39b;
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
}

/* Settings: Parts List */
.parts-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 3px;
  background: #f3efe6;
}
.parts-list-item .part-name { flex: 1; font-size: 13px; font-weight: 500; color: #2a2621; }
.parts-list-item .part-remove {
  background: none;
  border: none;
  color: #c0bcb3;
  font-size: 16px;
  cursor: pointer;
}
.parts-list-item .part-remove:hover { color: #a04030; }

.parts-add-row {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.parts-add-row input {
  flex: 1;
  padding: 6px 10px;
  border: 0.5px solid #ebe7df;
  border-radius: 6px;
  font-size: 12px;
  background: #faf9f6;
}
.parts-add-row input:focus { outline: none; border-color: #c0b89f; }

hr {
  border: none;
  border-top: 0.5px solid #ebe7df;
  margin: 14px 0;
}

/* ========== Memo ========== */
#memo-section {
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
#memo-section label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #a8a39b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
#month-memo {
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  resize: none;
  min-height: 40px;
  background: #f3efe6;
  color: #5a5650;
}
#month-memo:focus { outline: none; background: #ede8dc; }

/* ========== Legacy (사용 안됨 — 내보내기용 남김) ========== */
.doc-chip, .chip-parts-grid, .chip-part-slot, .cell-dark-zone, .cell-memo-line,
.cell-info-area, .gap-warning, .chip-name.duty-circle { /* no-op */ }

/* ========== Doc Card Parts (sidebar) ========== */
.doc-card-parts {
  font-size: 10px;
  font-weight: 400;
  color: #a8a39b;
  margin-left: 2px;
}

/* Pill group radio support */
.pill-group label:has(input:checked) {
  background: #2a2621;
  color: #faf9f6;
  font-weight: 500;
}
.pill-group label input[type="radio"] { display: none; }

/* ========== Daily Panel Collapsible ========== */
.daily-collapsible {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.daily-collapse-body.collapsed { display: none; }
.collapse-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 4px 8px;
  min-width: 32px;
  min-height: 32px;
  transition: transform 0.15s;
  transform: rotate(0deg) !important;
}
.collapse-arrow.expanded {
  transform: rotate(0deg) !important;
}

/* Daily memo panel */
.daily-memo-panel {
  margin-top: 16px;
  padding: 8px 4px;
  border: none;
  border-radius: 0;
}
.daily-memo-content {
  font-size: 11.5px;
  font-weight: 400;
  color: #5a5650;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 20px;
}

/* ========== 7-Day Chart (중앙 하단) ========== */
#week-chart-area {
  margin-top: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 20px;
  background: #f8f6f1;
  border-radius: 10px;
}
.week-chart-section {
  margin-top: 0;
}
.week-chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 140px;
  padding: 8px 0;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  border-right: 0.5px solid #e5dfd3;
}
.chart-col:last-child {
  border-right: none;
}
.chart-col-active { background: rgba(42,38,33,0.04); border-radius: 6px; }
.chart-col-active .chart-label { font-weight: 600; color: #2a2621; }
.chart-bars {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  width: 100%;
  padding: 0 4px;
}
.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 0;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  transition: height 0.2s;
  min-width: 14px;
}
.bar-full { background: #7a8a6a; }
.bar-skin { background: #c0706a; }
.bar-clinic { background: #6a90c0; }
.chart-label {
  font-size: 11px;
  color: #a8a39b;
  text-align: center;
  white-space: nowrap;
}
.chart-legend {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
  font-size: 9px;
}
.cl-full, .cl-skin, .cl-clinic {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #8a8680;
}
.cl-full::before, .cl-skin::before, .cl-clinic::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
}
.cl-full::before { background: #7a8a6a; }
.cl-skin::before { background: #c0706a; }
.cl-clinic::before { background: #6a90c0; }

/* ========== Mode Switch (Toggle) ========== */
.mode-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-left: 8px;
  user-select: none;
}
.mode-switch input { display: none; }
.mode-slider {
  width: 32px;
  height: 18px;
  background: #d5d0c8;
  border-radius: 9px;
  position: relative;
  transition: background 0.25s ease;
}
.mode-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.mode-switch input:checked + .mode-slider {
  background: #6a7a62;
}
.mode-switch input:checked + .mode-slider::after {
  transform: translateX(14px);
}
.mode-label {
  font-size: 11px;
  font-weight: 400;
  color: #8a8680;
  min-width: 24px;
}
.mode-switch input:checked ~ .mode-label {
  color: #6a7a62;
  font-weight: 500;
}

/* ========== Edit Key Overlay ========== */
.edit-key-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.edit-key-overlay.hidden {
  display: none;
}
.edit-key-box {
  text-align: center;
}
.edit-key-title {
  font-size: 10px;
  font-weight: 400;
  color: #b0aba2;
  margin-bottom: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.edit-key-input {
  width: 160px;
  padding: 10px 16px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #ddd8d0;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  color: #2a2621;
  letter-spacing: 6px;
  outline: none;
  transition: border-color 0.2s;
}
.edit-key-input:focus {
  border-color: #6a7a62;
}
.edit-key-error {
  margin-top: 8px;
  font-size: 12px;
  color: #c0564a;
  min-height: 18px;
}

/* ========== Viewer Mode ========== */
body.viewer-mode .action-btn,
body.viewer-mode #add-doctor-btn,
body.viewer-mode #add-manager-btn,
body.viewer-mode .todo-input-row,
body.viewer-mode #month-memo,
body.viewer-mode .dropdown,
body.viewer-mode #settings-btn {
  pointer-events: none;
  opacity: 0.3;
}
body.viewer-mode #sidebar-memo {
  pointer-events: none;
  color: #1a1815;
}
body.viewer-mode .cal-cell {
  cursor: default;
  pointer-events: none;
}
body.viewer-mode .doctor-card {
  cursor: default;
  pointer-events: none;
}
body.viewer-mode .doctor-card .doc-card-edit {
  display: none;
}
body.viewer-mode .todo-section {
  pointer-events: none;
}

/* ========== Manager Section (Sidebar) ========== */
.mgr-header {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 0.5px solid #ebe7df;
}

.manager-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  margin-bottom: 1px;
  transition: background 0.1s;
}
.manager-card:hover { background: #f3efe6; }

.mgr-card-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.mgr-card-name {
  font-size: 12px;
  font-weight: 500;
  color: #2a2621;
}
.mgr-card-name.empty {
  color: #c0bcb3;
  font-weight: 400;
}
.mgr-card-part {
  font-size: 10px;
  font-weight: 400;
  color: #a8a39b;
}

body.viewer-mode .manager-card .doc-card-edit {
  display: none;
}

/* ========== Schedule Modal: 원장 | 총괄 한 줄 ========== */
.sched-divider {
  width: 1px;
  align-self: stretch;
  background: #e5dfd3;
  margin: 0 4px;
  flex-shrink: 0;
}
.sched-mgr-card {
  min-width: 44px;
}
.sched-mgr-card.state-off .sched-card-state {
  color: #c0706a;
  font-weight: 600;
}

#manager-modal { width: 320px; }

/* ========== Calendar Cell: Manager OFF Tag ========== */
.cell-mgr-off {
  font-size: 8px;
  font-weight: 600;
  color: #c0706a;
  white-space: nowrap;
  letter-spacing: -0.02em;
  margin-left: 4px;
}

/* ========== Overtime Quick Popup ========== */
.ot-quick-btn {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #8a8680;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.1s;
  min-width: 36px;
  min-height: 32px;
  text-align: center;
}
.ot-quick-btn:hover { background: #f3efe6; color: #5a5650; }

.ot-quick-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,38,33,0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ot-quick-popup {
  background: #faf9f6;
  border: 0.5px solid #e5dfd3;
  border-radius: 10px;
  padding: 12px 14px 10px;
  width: 210px;
  box-shadow: 0 8px 24px rgba(42,38,33,0.12);
}
.ot-quick-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 0;
}
.ot-quick-name {
  font-size: 12px;
  font-weight: 500;
  color: #5a5650;
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}
.ot-quick-field {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 82px;
  flex-shrink: 0;
  justify-content: center;
}
.ot-field-label {
  font-size: 12px;
  font-weight: 600;
  width: 10px;
  text-align: center;
  flex-shrink: 0;
}
.ot-field-plus .ot-field-label { color: #b08070; }
.ot-field-minus .ot-field-label { color: #7090b0; }
.ot-quick-input {
  width: 40px;
  padding: 3px 4px;
  font-size: 12px;
  border: 0.5px solid #ddd8d0;
  border-radius: 4px;
  background: #faf9f6;
  color: #2a2621;
  font-family: inherit;
  text-align: center;
  -moz-appearance: textfield;
}
.ot-quick-input::-webkit-inner-spin-button,
.ot-quick-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ot-quick-input:focus { outline: none; border-color: #b0aba2; }
.ot-field-plus .ot-quick-input:not(:placeholder-shown) { color: #b08070; font-weight: 500; }
.ot-field-minus .ot-quick-input:not(:placeholder-shown) { color: #7090b0; font-weight: 500; }
.ot-field-unit {
  font-size: 10px;
  color: #b0aba2;
}
.ot-quick-save {
  width: 100%;
  margin-top: 10px;
  padding: 5px;
  border: 0.5px solid #d9d3c7;
  border-radius: 5px;
  background: transparent;
  color: #5a5650;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.1s;
}
.ot-quick-save:hover { background: #f0ebe1; }

/* 일간 섹션 타이틀에 + 버튼 정렬 */
.daily-section-title { display: flex; align-items: center; }

/* ========== Utilities ========== */
.hidden { display: none !important; }

/* ========== Print ========== */
@media print {
  #sidebar, #right-panel, #app-header .header-right, .no-print, .panel-toggle-btn { display: none; }
  #main-container { display: block; }
}
