/* ── Physician Read-Only View (Phase 4 M4-2b) ──────────────────────– */
#physician-view {
  display: none;
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 18px 22px;
}

#app.physician-mode .body > aside,
#app.physician-mode .body > main,
#app.physician-mode #sidebar-backdrop {
  display: none !important;
}

#app.physician-mode #physician-view {
  display: block;
}

#app.physician-mode .hdr-row2,
#app.physician-mode #btn-toggle-sidebar,
#app.physician-mode .month-nav,
#app.physician-mode #btn-history,
#app.physician-mode #btn-leave-history,
#app.physician-mode #btn-ws {
  display: none !important;
}

#physician-view .phys-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#physician-view h2 {
  font-size: 1.15rem;
  margin: 0;
}

#physician-view .phys-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 3px;
}

#physician-view .phys-month {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#physician-view .phys-month label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

#physician-view .phys-month select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

#physician-view .phys-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

#physician-view .phys-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 96px;
}

#physician-view .phys-stat .n {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

#physician-view .phys-stat .l {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#physician-view .phys-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
}

#physician-view .phys-table th,
#physician-view .phys-table td {
  text-align: left;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

#physician-view .phys-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

#physician-view tr.phys-weekend td {
  background: rgba(100, 116, 139, 0.1);
}

#physician-view .phys-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.82rem;
  color: #111;
}

#physician-view .phys-empty {
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}

#phys-pref {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 640px;
}

#phys-pref h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

#phys-pref .phys-pref-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

#phys-pref .phys-pref-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.phys-pref-day {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.82rem;
}

.phys-pref-day input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.phys-pref-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.phys-pref-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phys-pref-row input,
.phys-pref-row select {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
}

.phys-pref-row input:focus,
.phys-pref-row select:focus {
  border-color: var(--primary);
}

.phys-pref-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.phys-pref-status {
  font-size: 0.82rem;
  color: var(--success);
}

.phys-leave-form {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.phys-leave-list {
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.phys-leave-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.phys-leave-item span {
  flex: 1;
}

.phys-leave-item button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.phys-leave-item button:hover {
  color: var(--danger);
}

.phys-swap-propose {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.phys-swap-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
  padding: 8px;
  background: var(--hl);
  border-radius: 6px;
}

.phys-swap-h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 8px;
}

.phys-swap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.phys-swap-item-text {
  flex: 1;
}

.phys-swap-actions {
  display: flex;
  gap: 6px;
}

.phys-swap-actions button {
  padding: 4px 10px;
  border: none;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-phys-accept {
  background: var(--success);
  color: #fff;
}

.btn-phys-accept:hover {
  filter: brightness(1.08);
}

.btn-phys-reject {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-phys-reject:hover {
  background: var(--danger);
  color: #fff;
}

/* ── Phone calendar subscription (Phase 6 M6-5) ─────────────────── */
.phys-cal-note {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #92400e;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 10px 12px;
}

.phys-cal-note ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.phys-cal-note li {
  margin-bottom: 5px;
}

#phys-cal-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}
