/* 医师 / 管理后台 · 对应小程序 pages/admin-login / pages/admin 的视觉与交互 */
body.admin-mode .tabbar { display: none; }
body.admin-mode .app { padding-bottom: 16px; }

.hero-click { cursor: pointer; }
.hero-click:active { opacity: .7; }
.form-error { display: block; margin: 8px 0 12px; font-size: 12.5px; }
.form-error[hidden], .admin-panel[hidden], .sheet[hidden] { display: none; }

/* 分段导航 */
.segment { display: flex; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segment-item { flex: 1; padding: 10px 2px; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.segment-item.segment-active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.segment-5 .segment-item { font-size: 11px; padding: 10px 0; }
.sub-segment { margin: 0 0 12px; }

/* 表单 */
.field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 5px 0; border-bottom: 1px solid #f0e9dd; }
.field:last-child { border-bottom: none; }
.field-label { flex: 0 0 78px; font-size: 13px; color: var(--muted); }
.field-input, .mini-select {
    flex: 1; min-width: 0; height: 34px; padding: 0 9px;
    border: 1px solid var(--line); border-radius: 7px;
    background: #fff; color: var(--ink); font: inherit; font-size: 13px;
}
textarea.field-input { height: 96px; padding: 8px 9px; line-height: 1.6; resize: vertical; }
.mini-select { flex: 1; }
.field-tip { flex: 0 0 auto; font-size: 11.5px; }
.link-btn { border: none; background: transparent; padding: 2px 0; font-size: 12.5px; }
.link-btn:active { opacity: .6; }
.stack-sm > * + * { margin-top: 9px; }

/* 统计与列表行 */
.stat-row { display: flex; margin-top: 12px; }
.stat-item { flex: 1; text-align: center; }
.stat-value { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; }
.stat-label { font-size: 11px; color: var(--muted); }
.list-row { padding: 10px 0; border-bottom: 1px solid #f0e9dd; }
.list-row:last-child { border-bottom: none; }
.list-row .row + .row { margin-top: 6px; }
.queue-badge { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 6px; background: #fbf1de; color: var(--gold); font-size: 12px; font-weight: 700; text-align: center; }
.row-start { display: flex; align-items: center; gap: 10px; }
.appt-ops { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.appt-ops .btn-ghost { flex: 1 1 22%; width: auto; height: 30px; line-height: 28px; padding: 0 4px; font-size: 11.5px; }
.tpl-time { font-size: 14px; font-weight: 600; }

/* 排期日历 */
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-week { margin-top: 12px; }
.cal-week-item { text-align: center; font-size: 11px; color: var(--muted); }
.cal-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 42px; margin: 2px; border: 1px solid transparent; border-radius: 7px;
    background: #faf7f0; color: var(--ink); font-size: 12.5px;
}
.cal-blank { background: transparent; }
.cal-past { opacity: .4; }
.cal-open { background: #fbf1de; border-color: #eadfc6; }
.cal-today { border-color: var(--gold); }
.cal-selected { outline: 2px solid var(--red); outline-offset: -2px; }
.cal-num { line-height: 1.2; }
.cal-marks { display: flex; gap: 3px; height: 6px; margin-top: 2px; }
.mark { width: 5px; height: 5px; border-radius: 50%; }
.mark-open { background: var(--seal); }
.mark-custom { background: var(--red); }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.cal-actions .btn-ghost { flex: 1 1 44%; width: auto; height: 34px; line-height: 32px; font-size: 12px; }
.batch-head, .batch-row { display: grid; grid-template-columns: 1fr 1fr 1fr 62px 30px; gap: 5px; align-items: center; }
.batch-head { margin-bottom: 5px; text-align: center; }
.batch-cell { width: 100%; min-width: 0; height: 30px; padding: 0 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 11.5px; text-align: center; }
.batch-del { text-align: center; font-size: 18px; cursor: pointer; }

/* 公告编辑 */
.notice-textarea { width: 100%; min-height: 96px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; }
.switch-line input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--red); }
.sheet .field { font-size: 13px; }
.sheet .btn-primary { margin-top: 12px; }
