﻿:root {
  --bg: #f3f4f8;
  --card: #ffffff;
  --ink: #1e2233;
  --ink-2: #6b7280;
  --line: #e6e8f0;
  --brand: #3b5bdb;
  --brand-soft: #eaefff;
  --ok: #16a34a;
  --ok-soft: #e7f7ec;
  --busy: #e5484d;
  --busy-soft: #fdeaea;
  --wait: #d97706;
  --wait-soft: #fdf1e0;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(24, 32, 60, .06);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ========== 鐧诲綍椤?========== */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.login-side {
  background: linear-gradient(150deg, #3b5bdb 0%, #6d4bd8 55%, #8b46c9 100%);
  color: #fff;
  padding: 56px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.login-side .side-foot { margin-top: auto; }

.login-side::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; bottom: -160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}

.login-side .brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.side-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

.login-side .login-side-mid {
  margin-top: 96px;
}

.login-side .brand { line-height: 1.2; }

.login-side .side-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

.login-side .side-top .ap-ver {
  color: rgba(255, 255, 255, .45);
  letter-spacing: 1px;
  margin: 0;
  align-self: flex-start;
}

.login-side h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.login-side p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.9;
}

/* 侧边栏署名 + 上线时间 */
.login-side .login-side-mid { position: relative; z-index: 1; }
.login-side .side-line {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .3px;
  margin: 0 0 16px;
}
.login-side .side-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  letter-spacing: .5px;
  line-height: 1.4;
}
.login-side .side-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7cf6c0;
  box-shadow: 0 0 0 3px rgba(124, 246, 192, .22);
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .login-side .side-badge { font-size: 12px; padding: 5px 12px 5px 10px; }
}

.login-side .side-foot {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  position: relative;
  z-index: 1;
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-width: 0;
}

.login-card {
  width: min(460px, calc(100vw - 48px));
  flex: 0 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px 32px 28px;
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.login-card .tip {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--ink-2);
}

.tabs {
  display: flex;
  background: #f1f2f7;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}

.tabs button {
  flex: 1 1 0%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  border-radius: 8px;
  transition: .18s;
}

.tabs button.active {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(24, 32, 60, .1);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  outline: none;
  transition: .18s;
}

.field input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; }

.code-btn {
  flex: 0 0 116px;
  height: 44px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  border-radius: 10px;
  font-size: 13px;
}

.code-btn:disabled { color: #9aa1b4; border-color: var(--line); }

.btn-primary {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
  transition: .18s;
}

.btn-primary:hover { background: #2f4bc4; }

.login-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
}

.login-links a { white-space: nowrap; }
.login-links a:nth-child(1) { text-align: left; }
.login-links a:nth-child(2) { text-align: center; }
.login-links a:nth-child(3) { text-align: right; }

/* 瀹㈡湇寮瑰眰 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 40, .45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal-mask.show { display: flex; }
/* 手机上长按/拖动手势别把整个弹窗一块儿拽着晃 */
.modal-mask { overscroll-behavior: contain; }
.modal input, .modal textarea, .modal select, .modal img, .modal .ck-ph,
.modal .sc-cover, .modal .field, .modal label {
  -webkit-user-drag: none; touch-action: manipulation;
}
.modal input, .modal textarea { -webkit-user-select: text; user-select: text; }
/* 触屏兜底：所有弹窗里的控件都不跟着手指拖 */
@media (hover: none) and (pointer: coarse) {
  .modal-mask input, .modal-mask textarea, .modal-mask select, .modal-mask button,
  .modal-mask img, .modal-mask .ck-ph, .modal-mask label {
    -webkit-user-drag: none; user-select: auto;
  }
}
/* 内容多的弹窗自己滚，滚到头别带着整页跑 */
.modal {
  max-height: 88vh;
  max-height: calc(100vh - 32px);
  max-height: 88dvh;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
@media (max-width: 720px) {
  .modal-mask { padding: 8px; align-items: center; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .modal {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding-top: 18px;
  }
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 26px 26px 22px;
  width: 300px;
  text-align: center;
  position: relative;
}

.modal h3 { margin: 0 0 6px; font-size: 17px; }
.modal p { margin: 0 0 16px; font-size: 13px; color: var(--ink-2); }

.modal .qr {
  width: 190px; height: 190px;
  margin: 0 auto 12px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: #fafbff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9aa1b4;
  overflow: hidden;
}

.modal .qr img { width: 100%; height: 100%; object-fit: contain; }

.modal .close {
  position: absolute;
  top: 10px; right: 12px;
  border: 0; background: transparent;
  font-size: 20px;
  color: #9aa1b4;
  line-height: 1;
}

/* ========== 棣栭〉 ========== */
.topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar .logo {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.topbar .logo span { color: var(--brand); }

/* 澶ф爣棰樹笅闈㈤偅琛屽皬鐗堟湰鍙?*/
.ap-ver {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: #9aa3b2;
  letter-spacing: .3px;
  font-weight: 400;
  white-space: nowrap;
  margin-top: -2px;
  font-variant-numeric: tabular-nums;
}

.topbar .logo { line-height: 1.2; }

.topbar .spacer { flex: 1; }

.topbar .who {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 34px;
}

.topbar .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  line-height: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex: none;
}

.topbar .logout-btn {
  flex: none;
  margin-left: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted, #6b7280);
  border-radius: 8px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.topbar .logout-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 38px; height: 34px;
  font-size: 16px;
  color: var(--ink);
}

.shell {
  display: grid;
  grid-template-columns: 216px 1fr;
  min-height: calc(100vh - 62px);
}

.sidenav {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 12px 24px;
}

.sidenav a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  color: #3f465c;
  font-size: 14px;
  margin-bottom: 4px;
  transition: .15s;
}

.sidenav a:hover { background: #f6f7fb; }

.sidenav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.content { padding: 6px 24px 40px; min-width: 0; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-head h2 { margin: 0 0 4px; font-size: 21px; }
/* 两个选项卡头部统一高度，副标题到搜索的距离一致 */
#tabStaff .page-head { min-height: 82px; align-items: flex-start; margin-bottom: 0; }
#tabRank .page-head h2, #tabStaff .page-head h2 { line-height: 30px; }
#tabRank .page-head .sub, #tabStaff .page-head .sub { line-height: 20px; }
/* 拼本信息页头部：标题与副标题间距、整块到搜索行的距离都跟 DM 评级页一致 */
/* 拼本信息头部：跟 DM 评级页一样，统计小字与搜索行之间留 16px 呼吸 */
#tabPlan .page-head.rank-title { margin-bottom: 0; padding-bottom: 0; }
#tabPlan .pin-head { margin-bottom: 5px !important; }
#tabPlan .page-head h2 { line-height: 30px; }
#tabPlan .page-head .sub { line-height: 20px; }
.page-head .sub { font-size: 13px; color: var(--ink-2); }
/* 我的工资 顶部提示：稳定兼职奖金和会员卡次月15日另结 */
.pay-notice {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--brand, #c0392b);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.pay-notice:hover { opacity: .8; }
/* 涓婚〉涓绘爣棰橈細璺?DM 绠＄悊椤甸偅涓爣棰樹竴涓牱锛屽埌閫夐」鍗＄殑璺濈涔熶竴鏍?*/
.home-head { min-height: 82px; align-items: flex-start; margin-bottom: 10px; }
.home-head h2 { line-height: 30px; }
.home-head .sub { line-height: 20px; }

.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }

.legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}

.dot-ok { background: var(--ok); }
.dot-busy { background: var(--busy); }
.dot-wait { background: var(--wait); }

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.room {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  border-top: 3px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room.ok { border-top-color: var(--ok); }
.room.busy { border-top-color: var(--busy); }
.room.wait { border-top-color: var(--wait); }

.room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.room-name { font-size: 15px; font-weight: 700; }

.badge {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.busy { background: var(--busy-soft); color: var(--busy); }
.badge.wait { background: var(--wait-soft); color: var(--wait); }

.room-rows { display: grid; gap: 6px; font-size: 13px; }

.room-rows div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-2);
}

.room-rows b { color: var(--ink); font-weight: 600; text-align: right; }



/* ========== 娉ㄥ唽椤?========== */
.reg-card input[readonly] {
  background: #f1f3f8;
  color: var(--ink-2);
  cursor: default;
}
.reg-card input[readonly]:focus {
  border-color: var(--line);
  box-shadow: none;
  background: #f1f3f8;
}
.reg-page { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.reg-main { align-items: flex-start; padding: 48px 32px; }
.reg-card { max-width: 760px; }
.reg-card .req { color: var(--busy); }

.reg-notice {
  background: #f5f7ff;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 4px;
  line-height: 1.6;
}
.reg-notice p { margin: 0; }
.reg-notice p + p { margin-top: 3px; }
.reg-notice { margin-bottom: 26px; }
.reg-notice strong { color: var(--ink); font-weight: 600; }

.reg-section {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin: 22px 0 12px;
  padding-left: 9px;
  border-left: 3px solid var(--brand);
  line-height: 1;
}
.reg-section:first-of-type { margin-top: 4px; }

.reg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.reg-grid .field { min-width: 0; }
.reg-grid .field-wide { grid-column: 1 / -1; }

.field input.bad {
  border-color: var(--busy);
  background: #fff8f8;
  box-shadow: none;
}

.reg-tip { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); min-height: 18px; }
.reg-tip.bad { color: var(--busy); }
.reg-tip.ok { color: var(--ok); }
.reg-links { grid-template-columns: 1fr; margin-top: 8px; text-align: center; }

@media (max-width: 1100px) {
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-side {
    padding: 32px 26px;
    min-height: 0;
  }
  .login-side h1 { font-size: 24px; }
  .login-side p { display: none; }
  .login-side .side-foot { display: none; }
  .login-main { padding: 22px 18px 40px; }
  .login-card { box-shadow: none; padding: 24px 20px; width: calc(100% - 24px); max-width: 100%; margin: 0 auto; box-sizing: border-box; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .shell { grid-template-columns: 1fr; }
  .sidenav {
    position: fixed;
    top: 62px; left: 0; bottom: 0;
    width: 216px;
    transform: translateX(-100%);
    transition: .22s;
    z-index: 30;
    box-shadow: 4px 0 18px rgba(24, 32, 60, .12);
  }
  .sidenav.open { transform: none; }
  .content { padding: 5px 16px 32px; }
}

@media (max-width: 720px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .who { display: none; }
}

@media (max-width: 420px) {
  .room-grid { grid-template-columns: 1fr; }
  .login-side .brand { font-size: 19px; }
  .side-top { gap: 6px; }
  .login-links { font-size: 12px; }
}

@media (max-width: 860px) {
  .reg-main { padding: 18px; }
  .reg-card { max-width: 100%; }
  .reg-grid { grid-template-columns: 1fr; }
}

/* 椤堕儴娑堟伅鎻愰啋 */
.topbar .msg-btn {
  position: relative;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex: none;
  margin-left: 3px;
  transition: background .15s;
}
.topbar .msg-btn:hover { background: #dbe4ff; }
.topbar .msg-badge {
  position: absolute;
  top: -3px; right: -4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: #f5455c;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-style: normal;
  font-weight: 600;
  box-shadow: 0 0 0 2px #fff;
}
.topbar .msg-badge[hidden] { display: none; }

/* 璁颁綇璐﹀彿瀵嗙爜 */
.login-card .remember {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin: 2px 0 14px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  width: fit-content;
}
.login-card .remember input[type="checkbox"] {
  width: 15px;
  min-width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

/* 鎴块棿鍗＄墖锛氱紪杈戞寜閽?+ 鏂板鎴块棿鍗?*/
.room { position: relative; }
.room-top .room-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-top-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 22px;
  flex: none;
}

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.state-dot.ok { background: var(--ok); }
.state-dot.busy { background: var(--busy); }
.state-dot.wait { background: var(--wait); }

.room-top-right .room-state-text {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.room:hover .room-top-right .room-state-text { opacity: 1; }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.card-foot .btn-mini {
  height: 22px;
  box-sizing: border-box;
  padding: 0 9px;
  font-size: 12px;
}

.room-edit {
  height: 22px;
  box-sizing: border-box;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  border: 1px solid #dbe0ec;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}
.room-edit { font-size: 11px; }

.room-del {
  height: 22px;
  box-sizing: border-box;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  border: 1px solid #dbe0ec;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}
.room-del:hover { background: #fdecec; color: #d33; border-color: #f7cdcd; }
.card-foot .room-del { margin-right: auto; }
.card-foot .checkout { margin-left: auto; }
.room-edit:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }

.checkout {
  height: 22px;
  box-sizing: border-box;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  border: 1px solid #dbe0ec;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}
.checkout:hover { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-soft); }
.checkout:disabled { opacity: .5; cursor: not-allowed; }

.room-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 150px;
  border: 2px dashed #d5dbe9;
  border-radius: 14px;
  background: #fafbff;
  color: #9aa4bb;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.room-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.room-add .plus { font-size: 26px; line-height: 1; }

/* 鎴块棿寮圭獥 */
.room-modal { max-width: 460px; }
.modal .field-row { display: flex; gap: 12px; }
.modal .field-row > .field { flex: 1; min-width: 0; }
.state-pick { display: flex; gap: 8px; }
.state-pick button {
  flex: 1;
  padding: 8px 0;
  border: 1px solid #dbe0ec;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.state-pick button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn-primary { flex: 1; }
.btn-ghost {
  flex: 1;
  padding: 10px 0;
  border: 1px solid #dbe0ec;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.btn-ghost:hover { background: #f4f6fb; }

/* 鏂板鎴块棿寮圭獥锛氬彧鐣欐埧闂村悕 */
#roomForm.is-add .only-edit { display: none; }
.modal-hint {
  margin: 0 0 4px;
  font-size: 12px;
  color: #8a93a8;
  line-height: 1.6;
}

/* ===== 鍙充笂瑙掍笁涓寜閽殑寮圭獥锛堣处鍙蜂俊鎭?/ 鏉冮檺绛夌骇 / 鐣欒█娑堟伅锛?===== */
.topbar .who, .topbar .avatar { cursor: pointer; }
.topbar .who:hover { color: var(--brand); }
.topbar .avatar:hover { background: #dbe4ff; }

.modal.modal-wide { width: 460px; max-width: 100%; text-align: left; }
.modal.modal-wide h3 { text-align: center; }
/* 鏍囬涓嬮潰閭ｈ鎻愮ず锛氳窡鏍囬涓€鏉′腑杞?*/
.modal-wide > .modal-hint,
.msg-modal > .modal-hint { text-align: center; margin-left: auto; margin-right: auto; width: 100%; }
.modal-wide .modal-actions { justify-content: center; gap: 10px; }
.modal-wide .modal-actions .btn-ghost,
.modal-wide .modal-actions .btn-primary { width: auto; padding: 0 20px; margin-top: 0; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 10px 0 4px; }
.info-item { min-width: 0; }
.info-item .k { font-size: 12px; color: #8a93a8; margin-bottom: 3px; }
.info-item .v { font-size: 14px; color: #22263a; word-break: break-all; line-height: 1.4; }
.info-item.full { grid-column: 1 / -1; }
.info-item .v.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.reveal-box { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.reveal-box .field { margin-bottom: 10px; }

.lv-list { list-style: none; margin: 6px 0 14px; padding: 0; text-align: left; display: flex; flex-direction: column; }
.lv-list li {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; color: #3c4257;
}
.lv-list li + li { margin-top: 4px; }
.lv-list li .badge {
  width: 34px; height: 24px; border-radius: 8px; flex: none;
  background: #f1f3f9; color: #59617a; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lv-list li.me { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lv-list li.me .badge { background: var(--brand); color: #fff; }
.lv-list li .mine { margin-left: auto; font-size: 12px; color: var(--brand); }

.msg-modal { width: 480px; }
.msg-modal h3 { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; color: #59617a;
  font-size: 12px; height: 26px; padding: 0 10px; border-radius: 8px;
  cursor: pointer; font-family: inherit;
}
.mini-btn:hover { border-color: var(--brand); color: var(--brand); }
.chat-log {
  height: 320px; overflow-y: auto; padding: 12px 8px 6px;
  background: #f7f8fc; border-radius: 12px; margin: 8px 0 10px;
  display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.chat-log .empty { margin: auto; font-size: 13px; color: #b0b7c0; }
.msg-more {
  text-align: center; font-size: 12px; color: #9aa1b1;
  padding: 2px 0 6px; user-select: none;
}
.bubble-row { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.bubble-row.mine { align-self: flex-end; align-items: flex-end; }
.bubble-meta { font-size: 11px; color: #9aa1b1; margin-bottom: 3px; padding: 0 2px; }
.bubble {
  background: #fff; border-radius: 10px; padding: 8px 12px;
  font-size: 14px; color: #22263a; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(28,33,48,.06); word-break: break-word;
  white-space: pre-wrap;
}
.bubble-row.mine .bubble { background: var(--brand); color: #fff; }
.chat-send { display: flex; gap: 8px; }
.chat-send input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfbfd;
  outline: none; font-family: inherit;
}
.chat-send input:focus { border-color: var(--brand); background: #fff; }
.chat-send .btn-primary { width: auto; height: 44px; padding: 0 20px; margin: 0; font-size: 15px; }

@media (max-width: 600px) {
  .modal.modal-wide, .msg-modal { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .chat-log { height: 44vh; }
}

.toast-bar {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  background: rgba(30, 34, 48, .92);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  z-index: 9999;
}
.toast-bar.show { opacity: 1; transform: translate(-50%, 0); }

/* 鎵撳崱 / 纭寮圭獥 */
.checkout-modal { max-width: 420px; }
.confirm-modal { max-width: 360px; }
.confirm-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* 寮圭獥搴曢儴鎸夐挳缁熶竴瀵归綈锛氬悓楂樸€佸悓瀹姐€佸悓瀛楀彿 */
.modal-actions > .btn-primary,
.modal-actions > .btn-ghost {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 46px;
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  box-sizing: border-box;
}
.confirm-modal .modal-actions { margin-top: 0; }

/* 鎴块棿鍗＄墖锛氬涓?DM 鐨?+N */
.room-rows b .dm-more{font-style:normal;font-size:12px;color:#8b8b9a;margin-left:4px}

/* ========== 甯哥敤鍔熻兘 ========== */
.quick-head { margin: 26px 0 14px; align-items: center; }
.quick-head h2 { margin: 0; font-size: 18px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.quick-card {
  position: relative;
  text-align: left;
  background: var(--card);
  border: none;
  border-top: 3px solid #b8aef5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(60, 50, 120, .14);
}
.quick-card:active { transform: translateY(0); }
.quick-card:nth-child(2) { border-top-color: #7fd0b0; }
/* 补平账：青色，跟发工资紫、扣罚款绿、查员工琥珀区分开 */
.quick-card#quickWageBalance { border-top-color: #6ec7e8; }
.quick-card#quickWageBalance .quick-arrow { color: #9ad8ef; }
.quick-card#quickWageBalance:hover { box-shadow: 0 6px 18px rgba(40, 120, 155, .16); }
.quick-balance-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.quick-balance-check input { width: 16px; height: 16px; }
/* 查员工：跟发工资/扣罚款同样的卡片，换身颜色 */
.quick-card#quickWageLook { border-top-color: #f0b45e; }
.quick-card#quickWageLook .quick-arrow { color: #f0c98e; }
.quick-card#quickWageLook:hover { box-shadow: 0 6px 18px rgba(150, 100, 30, .14); }
.quick-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.quick-sub { font-size: 12px; color: var(--ink-2); }
.quick-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c3bdf0;
  font-size: 20px;
  line-height: 1;
}
/* 缂栬緫寮圭獥锛氭湰鍦轰汉鍛?*/
.staff-list{display:flex;flex-direction:column;gap:8px}
.staff-row{display:flex;gap:8px;align-items:center}
.staff-row .staff-name{flex:1;min-width:0;height:34px;padding:0 10px;border-radius:8px;border:1px solid #e3e3ea;background:#fff;font-size:14px;color:#333;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.staff-del{flex:none;width:34px;height:34px;border-radius:8px;border:1px solid #e3e3ea;background:#fff;color:#98a;cursor:pointer;line-height:1}
.staff-del:hover{background:#fff1f1;border-color:#f3c2c2;color:#d9534f}
.staff-row:first-child .staff-name{border-color:#b8aef5}
.staff-add{margin-top:8px;padding:6px 12px;border-radius:8px;border:1px dashed #cfc9f2;background:#faf9ff;color:#6a5ad8;font-size:13px;cursor:pointer}
.staff-add:hover{background:#f3f0ff}
/* 鎵撳崱寮圭獥锛氱粨璐︽柟寮?*/
.pay-list{display:flex;flex-direction:column;gap:8px}
.pay-row{display:flex;gap:8px;align-items:center}
.pay-row .pay-method,.pay-row .pay-value{flex:1;min-width:0;height:34px;padding:0 10px;border-radius:8px;border:1px solid #e3e3ea;background:#fff;font-size:14px;color:#333}
.pay-row .pay-method{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.pay-row .pay-value:focus,.pay-row .pay-method:focus{outline:none;border-color:#b8aef5}
.pay-row .pay-input{flex:1;min-width:0;display:flex;gap:8px}
.pay-row .pay-input .pay-value{width:100%}
.pay-row .pay-input .pay-amt{width:100%}
/* 戏精 / 会员卡：手机号占一半，旁边再填付款金额 */
.pay-row .pay-input.pay-two .pay-value,
.pay-row .pay-input.pay-two .pay-amt{
  flex:0 1 auto;min-width:0;height:34px;padding:0 10px;border-radius:8px;
  border:1px solid #e3e3ea;background:#fff;font-size:14px;color:#333;font-family:inherit;
  appearance:none;-webkit-appearance:none;
}
.pay-row .pay-input.pay-two .pay-value:focus,
.pay-row .pay-input.pay-two .pay-amt:focus{outline:none;border-color:#b8aef5}
.field-tip{margin:6px 0 0;font-size:12px;color:#9a9aa8;line-height:1.5}
.time-pair{display:flex;gap:8px}
.time-pair input{flex:1;min-width:0}
.time-pair #rDate{flex:1.15}


/* ============ DM 绠＄悊 ============ */
.legend a.tab {
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .15s;
}
.legend a.tab:hover { background: #fff; border-color: var(--line); }
.legend a.tab.active { background: var(--brand-soft); color: var(--brand); border-color: #d5ddfb; }
.legend a.tab b {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  margin-left: 3px;
  border-radius: 8px;
  background: var(--busy);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  text-align: center;
}
.legend a.tab b[hidden] { display: none; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar input[type="text"] {
  width: 300px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.toolbar input[type="text"]:focus { border-color: var(--brand); }
.toolbar .toolbar-tip { margin-left: auto; font-size: 12px; color: var(--ink-2); }

.staff-table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.staff-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.staff-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: #fafbfe;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.staff-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.staff-table tbody tr:last-child td { border-bottom: none; }
.staff-table tbody tr:hover { background: #fafbff; }
.staff-table tbody tr.is-boss td { background: #fffbf2; }
.staff-table tbody tr.is-boss td.nm { color: #a86b00; }
.staff-table td.nm { font-weight: 600; }
.staff-table td.mute { color: var(--ink-2); }
.staff-table .op { text-align: right; }
.staff-table td.op { text-align: right; white-space: nowrap; }

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
}
.pill.lv { background: var(--brand-soft); color: var(--brand); }
.pill.lv0 { background: #f1f2f6; color: var(--ink-2); }
.pill.st-active { background: var(--ok-soft); color: var(--ok); }
.pill.st-pending { background: var(--wait-soft); color: var(--wait); }
.pill.st-disabled { background: #f1f2f6; color: #989cab; }
/* 甯堝緬韬唤鏍囩 */
.pill.rel { margin-left: 4px; }
.pill.rel.mentor { background: #eef1ff; color: #5560c9; }
.pill.rel.mentee { background: #eaf7ef; color: #2f8f5b; }
.pill.rel.mentee.grad { background: #f4f0e6; color: #9a7b2e; }
.tag.rel.mentor { background: #eef1ff; color: #5560c9; }
.tag.rel.mentee { background: #eaf7ef; color: #2f8f5b; }
.tag.rel.mentee.grad { background: #f4f0e6; color: #9a7b2e; }

.tbtn {
  display: inline-block;
  padding: 5px 10px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.tbtn:hover { border-color: var(--brand); color: var(--brand); }
.tbtn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.tbtn.primary:hover { filter: brightness(1.06); color: #fff; }
.tbtn.danger:hover { border-color: var(--busy); color: var(--busy); }
.tbtn[hidden] { display: none; }

.empty { padding: 40px 0; text-align: center; color: var(--ink-2); font-size: 13px; }

/* 璇︽儏 / 缂栬緫 寮圭獥 */
.wide-modal { width: 620px; max-width: calc(100vw - 32px); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
  margin: 0 0 2px;
  font-size: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.detail-grid .item { display: flex; gap: 8px; align-items: baseline; }
.detail-grid .item span { color: var(--ink-2); flex: 0 0 76px; }
.detail-grid .item b { font-weight: 500; word-break: break-all; }
.detail-grid .item b.dash { color: #a7abb8; font-weight: 400; }
.detail-grid .full { grid-column: 1 / -1; }

/* 鍛樺伐璇︽儏锛氱畝娲佺増 */
/* 鍛樺伐璇︽儏寮圭獥锛氭爣棰樸€佹彁绀恒€佸ご閮ㄣ€佹槑缁嗙粺涓€宸﹀榻?*/
#staffMask .modal {
  text-align: left;
  display: flex; flex-direction: column; overflow: hidden;
}
#staffMask .modal h3, #staffMask .modal-hint { flex: 0 0 auto; }
#staffMask .detail-grid { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; flex: 1 1 auto; }
#staffMask .detail-acts { flex: 0 0 auto; margin-top: 12px; }
#staffMask .modal h3 {
  margin: 0 0 4px;
  padding-right: 24px;
  text-align: left;
}
#staffMask .modal-hint {
  margin: 0 0 12px;
  text-align: left;
}
#staffDetail.detail-grid {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  color: #1f2436;
}
.dhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dava {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.dwho { min-width: 0; flex: 1; }
.dname { font-size: 16px; font-weight: 600; color: #1f2436; line-height: 22px; text-align: left; }
.dtags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 18px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tag.off { background: #f1f2f6; color: var(--ink-2); }
.tag.st-active { background: var(--ok-soft); color: var(--ok); }
.tag.st-pending { background: var(--wait-soft); color: var(--wait); }
.tag.st-disabled { background: #f1f2f6; color: #989cab; }
.dcount { text-align: right; flex: 0 0 auto; }
.dcount b { display: block; font-size: 18px; font-weight: 600; line-height: 22px; }
.dcount span { font-size: 12px; color: var(--ink-2); }

.dbody { padding-top: 4px; }
.dgroup { border-bottom: 1px dashed var(--line); }
.dgroup:last-child { border-bottom: 0; }
.drow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 2px;
  border-top: 1px solid #f2f3f7;
}
.dgroup .drow:first-child { border-top: 0; }
.drow span { flex: 0 0 88px; color: var(--ink-2); white-space: nowrap; }
.drow b { flex: 1; min-width: 0; font-weight: 500; word-break: break-all; text-align: left; }
.drow b.dim { color: #a7abb8; font-weight: 400; }

.detail-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.detail-acts .act {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.detail-acts .act:hover { border-color: var(--brand); color: var(--brand); }
.detail-acts .act.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.detail-acts .act.danger:hover { border-color: var(--busy); color: var(--busy); }
.detail-acts .act[hidden] { display: none; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--brand); }
.field .hint { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }


/* ---------- 椤甸潰鍒囨崲锛氶《閮ㄦ爣绛?---------- */
.nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.nav-tabs a {
  padding: 9px 16px 11px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .15s;
}

.nav-tabs a:hover { color: var(--brand); }

.nav-tabs a.active {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.tab-panel[hidden] { display: none !important; }
/* 涓婚〉甯堝緬鍗?+ 娌℃潈闄愭彁绀?*/
.mentor-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 6px;
}
.mentor-card b { font-size: 15px; }
.mentor-card span { font-size: 13px; color: var(--ink-2); }
.no-perm {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 60px 30px; text-align: center; color: var(--ink-2); font-size: 14px; margin: 0;
}

.deny-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 30px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}

.deny-box .deny-icon {
  font-size: 34px;
  margin-bottom: 12px;
  opacity: .55;
}

.staff-table th.sortable { cursor: pointer; user-select: none; transition: color .15s, background .15s; }
.staff-table th.sortable:hover { color: var(--ink-1, #333); background: #f3f6ff; }
.staff-table th.sortable.on { color: #3a6ff7; }
.staff-table th.sortable .sarrow {
  display: inline-block;
  margin-left: 4px;
  font-style: normal;
  font-size: 11px;
  opacity: .45;
}
.staff-table th.sortable.on .sarrow { opacity: 1; }
/* 鍙帓搴忚〃澶达細榛樿鐏拌壊 鈫曪紝鐐硅繃鍙樿摑 鈫?鈫擄紝鐪肩潧涓€涓嬪氨鑳界湅鍒?*/
.staff-table th.sortable .sarrow { color: #b6bccd; }
.staff-table th.sortable:hover .sarrow { color: #7f89a3; opacity: .9; }
.staff-table th.sortable .sarrow.on { color: #3a6ff7; opacity: 1; font-weight: 700; }

/* ---------- DM 璇勭骇 ---------- */
.rank-head .toolbar { margin-bottom: 14px; gap: 10px; min-height: 38px; margin-top: 0; }
/* 鎼滅储妗嗐€佹悳绱?缂栬緫/淇濆瓨/鍙栨秷鎸夐挳锛欴M璇勭骇鍜屽憳宸ョ鐞嗙粺涓€ 38 楂?92 瀹?*/
.toolbar input[type="text"] {
  height: 38px;
  padding: 0 12px;
  box-sizing: border-box;
}
.toolbar > .btn-sm,
.rank-actions > .rank-btn,
.rank-actions > .btn-ghost.rank-btn,
.rank-head .toolbar > .btn-ghost.rank-filter-btn {
  flex: none;
  width: 68px;
  min-width: 68px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
/* DM璇勭骇鎼滅储琛岋細杈撳叆妗?/ 鎼滅储 / 鍙栨秷 / 淇濆瓨 鍚屼竴楂樺害 */
.rank-head .toolbar { align-items: center; }
.rank-head .toolbar input[type="text"],
.rank-head .toolbar > .btn-sm,
.rank-head .rank-actions > .rank-btn,
.rank-head .rank-actions > .btn-ghost.rank-btn {
  height: 38px !important;
  min-height: 38px;
  max-height: 38px;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rank-head .toolbar input[type="text"] { width: 300px; padding: 0 12px !important; }
.rank-actions { align-items: center; }
.rank-title { margin-bottom: 0; }
.rank-head .toolbar-tip { margin-left: 0; }
.toolbar > .btn-sm { margin-left: 8px; }

.rank-head .toolbar > .btn-sm { margin-left: 0; }

.rank-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rank-actions > [hidden] { display: none !important; }
.rank-actions > .btn-ghost.rank-btn {
  background: #f6f7fb;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  color: var(--ink-2);
}
.rank-actions > .btn-ghost.rank-btn:hover { background: #eef0f7; color: var(--ink-1); }
.rank-edit-btn { padding: 0 20px; min-width: 76px; height: 34px; box-sizing: border-box; }
.rank-table td { font-variant-numeric: tabular-nums; }
.rank-table td.num { text-align: center; color: var(--ink-1, #333); }
.rank-table td.mute { text-align: center; }
.rank-table td.last { white-space: nowrap; }
.staff-table.rank-table td.last,
.staff-table.rank-table th.last { text-align: center; }

/* 琛ㄥご鍜屽崟鍏冩牸瀵归綈锛氬悕瀛楀垪宸﹀榻愶紝鍏朵綑鍒椾竴寰嬪眳涓?*/
.staff-table.rank-table th,
.staff-table.rank-table th.sortable,
.staff-table.rank-table th[data-sort] { text-align: center; padding-left: 14px; padding-right: 14px; cursor: pointer; user-select: none; transition: color .15s, background .15s; }
.staff-table.rank-table th[data-sort]:hover { color: var(--ink-1, #333); background: #f3f6ff; }
.staff-table.rank-table th[data-sort].on { color: #3a6ff7; }
.staff-table.rank-table th:first-child,
.staff-table.rank-table td:first-child { text-align: left; }
.staff-table.rank-table td.num { padding-left: 14px; padding-right: 14px; }
.rank-table th .sarrow { margin-left: 2px; }
.staff-table.rank-table th { position: relative; }
.staff-table.rank-table th[data-sort] { padding-right: 14px; }
.rank-table td.last .lname { margin-left: 8px; }
.rank-table td.last .lname { color: var(--ink-2); margin-left: 8px; }
.rank-table .rate-val { font-weight: 600; color: #3a6ff7; }
.rank-table input.cell-inp {
  width: 74px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  color: var(--ink-1, #333);
  background: #fff;
  outline: none;
}
.rank-table input.cell-inp:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(58,111,247,.12); }
.rank-table input.cell-inp.bad { border-color: var(--busy); }
.rank-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.rank-foot[hidden] { display: none; }

/* 鍛樺伐琛細鏁板瓧/鐘舵€佺被鍒椾篃鍜岃〃澶村眳涓?*/
.staff-table th, .staff-table td { text-align: center; padding-left: 12px; padding-right: 12px; }
.staff-table th.nm, .staff-table td.nm { text-align: left; }
.staff-table th.op, .staff-table td.op { text-align: right; }
.staff-table th.sortable { padding-right: 20px; }

/* 绋冲畾鍏艰亴锛氭湀浠芥寜閽?+ 涓嬫媺妗?*/
.pt-month {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: nowrap; overflow: visible;
  padding-bottom: 0;
}
.pt-month .tab { flex: 0 0 auto; }
.pt-month .tab {
  height: 38px; padding: 0 16px; box-sizing: border-box;
  display: inline-flex; align-items: center;
  border-radius: 999px; font-size: 13px;
  color: var(--ink-2); background: #f6f7fb; border: 1px solid #e6e9f2;
  text-decoration: none;
}
.pt-month .tab.active { background: #3a6ff7; border-color: #3a6ff7; color: #fff; }
.cell-sel {
  height: 30px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; font-family: inherit;
  color: var(--ink-1, #333); background: #fff; outline: none; max-width: 150px;
}
.cell-sel:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(58,111,247,.12); }
.pt-empty-row td { text-align: center; }

/* ===== 绋冲畾鍏艰亴 鏈堜唤閫夋嫨寮瑰眰 ===== */
.pt-month{position:relative}
.pm-trigger[hidden]{display:none !important}
.pm-trigger{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;color:#333;font-size:14px;cursor:pointer}
.pm-trigger:hover{border-color:#f5c518}
.pm-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #999}
.pm-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:50;width:268px;background:#fff;border:1px solid #e6e9ee;border-radius:10px;box-shadow:0 10px 26px rgba(0,0,0,.12);padding:8px 10px 12px}
.pm-head{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 8px;border-bottom:1px solid #f0f2f5}
.pm-head b{font-size:14px;color:#333;font-weight:600}
.pm-arrow{width:26px;height:26px;line-height:24px;text-align:center;border-radius:6px;color:#888;font-size:18px;text-decoration:none}
.pm-arrow:hover{background:#f6f7f9;color:#333}
.pm-arrow.off{opacity:.25;pointer-events:none}
.pm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding-top:8px}
.pm-cell{display:block;height:40px;line-height:40px;text-align:center;border-radius:6px;font-size:13px;color:#444;text-decoration:none;cursor:pointer}
.pm-cell:hover{background:#f6f7f9}
.pm-cell.active{background:#f5c518;color:#fff;font-weight:600}
.pm-cell.blank{visibility:hidden;pointer-events:none}

/* ===== 涓婚〉鏍囬鍖猴細璺?DM 绠＄悊椤垫爣棰樺榻愶紙82 楂橀潬椤讹紝鍒伴€夐」鍗＄殑璺濈涓€鑷达級 ===== */
.home-head { min-height: 82px; align-items: flex-start; margin-bottom: 10px; }
.home-head h2 { line-height: 30px; }
.home-head .sub { line-height: 20px; }
/* ===== 绋冲畾鍏艰亴 澶撮儴锛氳窡 DM 璇勭骇 / 鍛樺伐绠＄悊瀵归綈 ===== */
#tabParttime .page-head { min-height: 82px; align-items: flex-start; margin-bottom: 0; }
#tabParttime .page-head h2 { line-height: 30px; }
#tabParttime .page-head .sub { line-height: 20px; }
#tabParttime .pt-head { margin-top: 0; }
#tabParttime .pt-head .toolbar { align-items: center; min-height: 38px; margin-top: 0; margin-bottom: 14px; gap: 10px; }
#tabParttime .pt-month { display: flex; overflow: visible; }
#tabParttime .pm-arrow { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.pt-month > .pm-pop { top: calc(100% + 6px); }

.toolbar > .btn-sm { margin-left: 0 !important; }
.rank-head .toolbar > .btn-sm { margin-left: 0 !important; }
.rank-head .toolbar { gap: 20px !important; }
#tabStaff .toolbar { gap: 20px !important; }
#tabParttime .pt-head .toolbar { gap: 20px !important; }

/* 鐘舵€侀攣锛氶€夌┖闂叉椂鎴块棿淇℃伅涓€寰嬩笉鍙～ */
.field.locked{opacity:.5;pointer-events:none}
.field.locked input,.field.locked select,.field.locked button{background:#f5f5f8;cursor:not-allowed}


/* 涓や釜鐧诲綍琛ㄥ崟瀹藉害涓€鑷达紝閬垮厤鍒囨崲椤电鏃跺崱鐗囪鎾戝彉褰?*/
#form-pwd,
#form-sms {
  width: 100%;
}
#form-pwd input,
#form-sms input {
  width: 100%;
  box-sizing: border-box;
}
.field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.field-row input {
  flex: 1 1 0%;
  min-width: 0;
}


/* 鍏滃簳锛氬嬀閫夋涓嶈閫氱敤 input 瑙勫垯鎾戝彉褰?*/
.remember span { white-space: nowrap; }


/* ========== 鍓ф湰绠＄悊椤?========== */
.sc-head { align-items: center; }
.sc-head .sub { font-size: 13px; color: var(--ink-2); }
.btn-primary.sc-add {
  width: auto; height: 40px; margin-top: 0; padding: 0 20px;
  font-size: 14px; font-weight: 600; border-radius: 10px;
}
.btn-primary.btn-sm {
  width: auto; height: 40px; margin-top: 0; padding: 0 18px;
  font-size: 14px; border-radius: 10px;
}
.btn-ghost.btn-sm {
  flex: 0 0 auto; width: auto; height: 40px; padding: 0 16px;
  font-size: 14px; border-radius: 10px;
}
.btn-primary.sc-danger { background: var(--busy); }
.btn-primary.sc-danger:hover { background: #c93b40; }

.sc-tools {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 6px;
  margin-bottom: 14px;
}
.sc-tools .toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.sc-tools .toolbar input {
  flex: 1 1 220px; max-width: 360px; height: 40px; padding: 0 14px;
  font-size: 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfbfd; outline: none; font-family: inherit; transition: .18s;
}
.sc-tools .toolbar input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.sc-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-bottom: 10px; }
.sc-filters label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2);
}
.sc-filters input, .sc-filters select {
  height: 34px; padding: 0 8px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fbfbfd; outline: none; font-family: inherit; color: var(--ink);
}
.sc-filters input { width: 72px; }
/* 鍒嗙被 / 鍙戣 / 鎺掑簭涓変釜涓嬫媺涓€鏍峰锛岄兘涓嶈琚尋鎵佹垨鎷夐暱 */
.sc-filters select { padding-right: 6px; min-width: 96px; }
#scType, #scPublish, #scSort { flex: 0 0 auto; }
/* 蹇呭～鏄熷彿鏍囩孩 */
.sc-grid .field label .req { color: var(--busy, #e05a4c); font-style: normal; margin-left: 2px; font-weight: 700; }
/* 娌℃潈闄愮湅璇︽儏锛氳〃鍗曞拰鏍囩閮藉彉鐏帮紝榧犳爣涔熺偣涓嶅姩 */
.sc-form.ro .sc-grid .field label .req,
.sc-form.ro .sc-tag { cursor: default; }
.sc-filters input:focus, .sc-filters select:focus { border-color: var(--brand); background: #fff; }

.sc-table-wrap { overflow-x: auto; }
.sc-table { min-width: 760px; table-layout: fixed; width: 100%; }
.sc-table td.mute, .sc-table th { white-space: nowrap; }
/* 鍓ф湰鍚嶉暱鐭笉鑳藉奖鍝嶅叾浠栧垪锛氬悕瀛楄秴鍑哄氨鐪佺暐鍙凤紝榧犳爣鍋滀笂鍘荤湅鍏ㄥ悕 */
.sc-table .sc-name { width: 26%; }
.sc-table .sc-price { width: 90px; }
.sc-table th:nth-child(3) { width: 22%; }
.sc-table th:nth-child(4) { width: 104px; }
.sc-table th:nth-child(5) { width: 96px; }
.sc-table th:nth-child(6) { width: 96px; }
.sc-table .op { width: 132px; }
.sc-table .sc-nm { max-width: none; overflow: hidden; }
.sc-table .sc-nm a {
  color: var(--ink); display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.sc-table .sc-nm a:hover { color: var(--brand); }
.sc-table .sc-types { max-width: none; overflow: hidden; }
.sc-table .sc-types .pill { background: var(--brand-soft); color: var(--brand); margin: 2px 4px 2px 0; }
/* 鍒嗙被鏍囩閫夋嫨 */
.sc-type-pick { display: flex; flex-wrap: wrap; gap: 6px; }
/* 鍓ф湰璇︽儏閲屽凡鍏宠仈鐨?DM 鍚嶅瓧 */
.sc-dm-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; align-items: center; }
.sc-dm-tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: #eef4ff; color: #2f6bd6; font-size: 13px; line-height: 1.6; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-dm-none { font-size: 13px; color: #9aa1b1; }
.sc-dm-jump { display: inline-block; margin-top: 6px; font-size: 13px; color: #2f6bd6; text-decoration: none; cursor: pointer; }
.sc-dm-jump:hover { text-decoration: underline; }
.sc-type-pick.readonly { opacity: .75; }
.sc-tag {
  padding: 4px 10px; border: 1px solid var(--line, #eceef4); border-radius: 14px;
  font-size: 13px; color: var(--ink-2, #5b6270); background: #fff; cursor: pointer;
  user-select: none;
}
.sc-tag:hover { border-color: var(--brand); color: var(--brand); }
.sc-tag.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sc-type-pick.readonly .sc-tag { cursor: default; }
.sc-table .sc-del { color: var(--busy); }
.sc-table .sc-del:hover { border-color: var(--busy); color: var(--busy); }
.sc-empty { padding: 40px 0; }
.sc-pager {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; margin-top: 12px; font-size: 13px; color: var(--ink-2);
}
.sc-pager .mini-btn:disabled { color: #b7bccb; border-color: var(--line); cursor: default; }
/* 椤电爜璺宠浆灏忚緭鍏ユ锛岃窡鎸夐挳涓€鏍烽珮 */
.sc-pager .sc-jump { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.sc-pager .sc-jump input {
  width: 58px; height: 30px; padding: 0 6px; text-align: center;
  font-size: 13px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fbfbfd; outline: none;
}
.sc-pager .sc-jump input:focus { border-color: var(--brand); background: #fff; }
.sc-pager .sc-jump input::-webkit-outer-spin-button,
.sc-pager .sc-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.modal.sc-modal { width: 640px; max-width: 100%; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; text-align: left; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sc-grid .sc-span2 { grid-column: span 2; }
.sc-grid .field { margin-bottom: 12px; }
.sc-grid .field select, .sc-grid .field textarea {
  width: 100%; padding: 0 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfbfd;
  outline: none; color: var(--ink); transition: .18s;
}
.sc-grid .field select { height: 44px; }
.sc-grid .field textarea { padding: 10px 12px; line-height: 1.6; resize: vertical; }
.sc-grid .field select:focus, .sc-grid .field textarea:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft);
}
.sc-grid .field input:disabled, .sc-grid .field select:disabled, .sc-grid .field textarea:disabled {
  color: var(--ink-2); background: #f6f7fa; cursor: not-allowed;
}
@media (max-width: 640px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-grid .sc-span2 { grid-column: span 1; }
  .sc-head { align-items: flex-start; }
}

/* 鍦ㄥ紑鍓ф湰锛氫粠鍓ф湰搴撻噷鎸?*/
.sc-pick { position: relative; }
.sc-pick input { width: 100%; }
.sc-pick-menu {
  position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 220px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid #e3e7ef;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(24, 32, 56, .12); padding: 4px;
}
.sc-pick-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px;
  cursor: pointer; font-size: 13px; color: #3c4257;
}
.sc-pick-item:hover { background: #f2f6ff; }
.sc-pick-item b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-pick-item em { font-style: normal; margin-left: auto; flex: none; font-size: 12px; color: #9aa1b1; }
.sc-pick-none { padding: 10px; font-size: 13px; color: #9aa1b1; text-align: center; }

/* 鎵撳崱寮圭獥閲岀殑鎶ラ攢鐢宠 */
.reimb-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reimb-box select, .reimb-box input { width: 100%; }
.reimb-box #coReimbReason { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .reimb-box { grid-template-columns: 1fr; }
}

/* ---------- 绯荤粺璁剧疆 路 鍙戝竷鍏憡 ---------- */
/* 鏍囬鍖鸿窡 DM 绠＄悊椤典竴鏍凤細82 楂橀潬椤躲€佸壇鏍囬涓嬭竟璺?0锛屽壇鏍囬鍜岃〃鍗曚箣闂寸暀 20 */
#tabAnnounce { padding-top: 0; }
#tabAnnounce .page-head { min-height: 60px; align-items: flex-start; margin-bottom: 20px; }
#tabAnnounce .page-head h2 { line-height: 30px; }
#tabAnnounce .page-head .sub { line-height: 20px; }
.ann-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.ann-field { margin-bottom: 16px; }
.ann-field > label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.ann-num { margin-left: auto; font-size: 12px; color: #a3aab6; font-variant-numeric: tabular-nums; }
.ann-types { display: flex; gap: 8px; flex-wrap: wrap; }
.ann-type { padding: 7px 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ann-type:hover { border-color: #c9d1e6; }
.ann-type.on { font-weight: 600; }
.ann-type.t-system.on { color: var(--brand); background: var(--brand-soft); border-color: #b9c6f5; }
.ann-type.t-activity.on { color: var(--ok); background: var(--ok-soft); border-color: #a9e2bd; }
.ann-type.t-welfare.on { color: var(--wait); background: var(--wait-soft); border-color: #f0cfa0; }
.ann-field input[type="text"] { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.ann-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.7; resize: vertical; box-sizing: border-box; font-family: inherit; }
.ann-field input[type="text"]:focus, .ann-field textarea:focus { outline: none; border-color: var(--brand); }
.ann-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.ann-draft-tip { font-size: 12px; color: #a3aab6; }
.ann-btns { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 涓変釜鎸夐挳涓€鏍峰ぇ锛氶珮 40銆佸渾瑙?10銆佸瓧 14锛屽鎸夋渶闀跨殑閭ｄ釜鎷夐綈 */
.ann-btns .btn-ghost,
.ann-btns .btn-primary {
  flex: 0 0 auto;
  width: 92px;
  min-width: 92px;
  height: 40px;
  margin-top: 0;
  padding: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.btn-primary.danger { background: var(--busy); }

/* ---------- 鐣欒█寮圭獥閲岀殑鍏憡鍧?---------- */
.ann-block { border-bottom: 1px solid var(--line); padding: 2px 0 10px; }
.ann-block-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.ann-block-head .more { margin-left: auto; color: var(--brand); cursor: pointer; font-size: 12px; }
.ann-block-head .more { display: flex; align-items: center; gap: 8px; }
.ann-block-head .ann-pg { color: var(--brand); cursor: pointer; user-select: none; }
.ann-block-head .ann-pg.off { color: var(--muted, #9aa0a6); cursor: default; opacity: .55; }
.ann-block-head .ann-pg-idx { color: var(--muted, #9aa0a6); font-size: 12px; min-width: 26px; text-align: center; }
.ann-list { display: flex; flex-direction: column; gap: 4px; }
.ann-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; background: #fafbff; }
.ann-item:hover { background: var(--brand-soft); }
.ann-item .tag { flex: none; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.ann-item.t-system .tag { color: var(--brand); background: var(--brand-soft); }
.ann-item.t-activity .tag { color: var(--ok); background: var(--ok-soft); }
.ann-item.t-welfare .tag { color: var(--wait); background: var(--wait-soft); }
.ann-item .ttl { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-item.t-system .ttl { color: var(--brand); }
.ann-item.t-activity .ttl { color: var(--ok); }
.ann-item.t-welfare .ttl { color: var(--wait); }
.ann-item .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--busy); }
.ann-item .rd { flex: none; font-size: 11px; color: #b6bcc7; margin-left: auto; }
.ann-item.unread { font-weight: 600; }
.ann-empty { font-size: 12px; color: #b0b7c0; padding: 6px 2px; }
.ann-detail { white-space: pre-wrap; font-size: 14px; line-height: 1.8; color: #333a46; max-height: 52vh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin-top: 4px; }
.ann-detail-meta { font-size: 12px; color: #a3aab6; margin-bottom: 10px; }
.ann-detail-tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; margin-right: 6px; }
.ann-detail-tag.t-system { color: var(--brand); background: var(--brand-soft); }
.ann-detail-tag.t-activity { color: var(--ok); background: var(--ok-soft); }
.ann-detail-tag.t-welfare { color: var(--wait); background: var(--wait-soft); }

/* ---------- 系统设置 · 选项卡下边距统一 ---------- */
#setTabs { margin-bottom: 10px !important; }
#tabFeedback { padding-top: 0; }
#tabApprove { padding-top: 0; }
#tabFeedback .page-head { min-height: 60px; align-items: flex-start; margin-bottom: 20px; }
#tabApprove .page-head { min-height: 60px; align-items: flex-start; margin-bottom: 0; }
#tabFeedback .page-head h2,
#tabApprove .page-head h2 { line-height: 30px; }
#tabFeedback .page-head .sub,
#tabApprove .page-head .sub { line-height: 20px; }
#tabApprove .staff-head { align-items: flex-start; }

/* ---------- 问题反馈 · 老板审批列表 ---------- */
.fb-list { display: flex; flex-direction: column; gap: 6px; }
.fb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  background: #fff; box-shadow: var(--shadow);
  font-size: 13px; color: var(--ink);
}
.fb-item:hover { background: #fafbff; }
.fb-item.unread { font-weight: 600; background: #fdfdff; }
.fb-item.unread .ttl { color: var(--ink); }
.fb-item .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-item .fb-tag { flex: none; font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); }
.fb-item .fb-who { flex: none; color: var(--ink-2); font-size: 12px; }
.fb-item .fb-date { flex: none; color: #a3aab6; font-size: 12px; font-variant-numeric: tabular-nums; }
.fb-item .rd { flex: none; font-size: 11px; color: #b6bcc7; }
.fb-item .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--busy); }
.fb-item .pill { flex: none; }
.fb-ok { font-size: 12px; color: #2f8f5b; font-weight: 400; margin-left: 6px; }
.ann-detail-tag.t-feedback { color: var(--brand); background: var(--brand-soft); }
.fb-done-note { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 13px; }

@media (max-width: 720px) {
  .fb-item { flex-wrap: wrap; gap: 6px 8px; }
  .fb-item .ttl { flex: 1 1 100%; white-space: normal; }
}

/* ---------- 老板审批 · 日期筛选 ---------- */
.fb-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fb-range .chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--ink-2);
  background: #f3f5fa; text-decoration: none; white-space: nowrap;
}
.fb-range .chip:hover { background: #e9edf7; }
.fb-range .chip.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.fb-range input[type="date"] {
  height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; color: var(--ink); background: #fff; font-family: inherit;
}
.fb-range input[type="date"]:focus { outline: none; border-color: var(--brand); }
.fb-range-tip { font-size: 12px; color: #a3aab6; }
@media (max-width: 720px) {
  .fb-range { width: 100%; }
}

/* ========== 开本打卡 ========== */
.ck-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* 新增打卡按钮跟剧本管理的「新增剧本」对个尺寸 */
.btn-primary.ck-add-btn { width: auto; margin-top: 0; height: 40px; padding: 0 20px; font-size: 14px; border-radius: 10px; }
.ck-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
/* 打卡 / 开本记录：整块做成一张卡，跟剧本管理上面那排一个样 */
.ck-tools {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 14px; align-items: center;
}
.ck-tools .ck-toolbar { display: flex; gap: 10px; align-items: center; width: 100%; flex-wrap: wrap; }
.ck-tools .ck-toolbar input[type="text"] {
  flex: 1 1 220px; max-width: 360px; width: auto; height: 40px !important; padding: 0 14px;
  font-size: 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfbfd; outline: none; font-family: inherit; transition: .18s;
}
.ck-tools .ck-toolbar input[type="text"]:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft);
}
.ck-tools .ck-toolbar .btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.ck-tools .ck-filters {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.ck-tools .ck-filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ck-tools .ck-filters select, .ck-tools .ck-filters input {
  height: 34px; padding: 0 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px;
  background: #fbfbfd; outline: none; font-family: inherit; color: var(--ink);
}
.ck-tools .ck-filters select { padding-right: 6px; min-width: 96px; }
.ck-tools .ck-filters input { width: 110px; }
.ck-tools .ck-filters select:focus, .ck-tools .ck-filters input:focus { border-color: var(--brand); background: #fff; }
.ck-tools .ck-filters .ck-reset { height: 34px; padding: 0 14px; font-size: 13px; }
.ck-tools input[type="text"], .ck-tools input[type="date"] {
  width: auto; height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; background: #fff;
}
.ck-tools input[type="text"] { width: 220px; }
.ck-tools .btn-primary { width: auto; height: 34px; padding: 0 14px; font-size: 13px; margin: 0; }
.ck-tools .btn-ghost { height: 34px; padding: 0 12px; font-size: 13px; }

.ck-list { display: flex; flex-direction: column; gap: 10px; }
.ck-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 13px 16px 11px; border-left: 3px solid var(--line);
}
.ck-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ck-script { font-size: 15px; font-weight: 600; color: var(--ink); }
.ck-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); margin-top: 7px; }
.ck-meta b { font-weight: 500; color: #9aa1b4; margin-right: 5px; }
.ck-meta i { font-style: normal; }
.ck-ok { color: var(--ok); font-weight: 600; }
.ck-no { color: #e5484d; font-weight: 600; }
.ck-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ck-pay, .ck-note {
  font-size: 12px; line-height: 18px; padding: 2px 9px; border-radius: 999px;
  background: #f3f5fa; color: #59617a;
}
.ck-pay { background: var(--brand-soft); color: var(--brand); }
.ck-pay b, .ck-note b { font-weight: 600; margin-right: 4px; }
.ck-pay b { color: var(--brand); }
.ck-pay-amt { font-style: normal; margin-left: 5px; font-weight: 600; color: var(--brand); }
.ck-note b { color: #8b93a7; }
.ck-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ck-note { background: #faf7ef; color: #7a6a4a; }
.ck-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.ck-tag { font-size: 11.5px; color: #8b93a7; background: #f3f5fa; border-radius: 999px; padding: 1px 8px; }
.ck-tag.soft { background: #eef7f0; color: var(--ok); }
.ck-time { font-size: 11.5px; color: #b0b7c0; margin-left: auto; }
.fb-tag.t-clock { background: var(--brand-soft); color: var(--brand); }
.ck-acts { display: flex; gap: 6px; }
.ck-acts .mini-btn { height: 26px; }

/* 弹窗 */
.ck-modal {
  width: 620px; max-width: 100%; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
  text-align: left; padding: 22px 20px 14px; overflow: hidden;
}
.ck-modal h3 { margin: 0 0 4px; font-size: 17px; flex: 0 0 auto; }
.ck-modal > .modal-hint { flex: 0 0 auto; margin-bottom: 10px; }
.ck-modal form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
/* 内容区自己滚，别把按钮挤到弹窗外面去 */
.ck-body { overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 4px 2px; min-height: 0; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
/* 卡片里那些可点的块，别被手指一拖就变成拖元素 */
.ck-modal .ck-ph, .ck-modal .ck-status, .ck-modal .state-pick button { -webkit-user-drag: none; touch-action: manipulation; }
.ck-modal .modal-actions {
  flex: 0 0 auto; margin: 12px -20px -14px; padding: 12px 20px 14px;
  border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 16px 16px;
}
.ck-req { color: var(--busy); font-style: normal; }
.ck-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ck-ph {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; border: 1px dashed #d6dbe6;
  background: #fbfbfd; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; overflow: hidden; font-size: 12px; color: #9aa1b4;
}
.ck-ph:hover { border-color: var(--brand); }
.ck-ph.has { border-style: solid; border-color: var(--line); background: #fff; }
.ck-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-ph-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px;
  background: rgba(20, 24, 40, .55); color: #fff; text-align: center;
}
.ck-ph-plus { font-size: 22px; color: #c3c9d6; }
.ck-ph-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; line-height: 18px;
  text-align: center; border-radius: 50%; background: rgba(20, 24, 40, .6); color: #fff; font-size: 14px;
}
.ck-form-ro input, .ck-form-ro select, .ck-form-ro textarea { background: #f7f8fb; color: #59617a; }
#ckForm.ro input, #ckForm.ro select, #ckForm.ro textarea { background: #f7f8fb; color: #59617a; }
.ck-view { background: transparent; padding: 0; width: auto; box-shadow: none; }
/* 大图查看要压在别的弹窗上面，不然会被挡住 */
#ckViewMask { z-index: 90; }
.ck-view img { max-width: 82vw; max-height: 82vh; border-radius: 10px; display: block; }
.ck-view .close { color: #fff; top: -28px; right: 0; font-size: 26px; }

/* 老板审批里的打卡详情 */
.ck-approve-box { text-align: left; }
.ck-approve-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ck-approve-head .ck-script { font-size: 16px; }
.ck-approve-head .meta { font-size: 12px; color: #9aa1b4; }
.ck-approve-pays { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ck-approve-pay {
  display: flex; gap: 10px; font-size: 13px; padding: 7px 10px; border-radius: 9px; background: #f7f8fb;
}
.ck-approve-pay b { color: var(--brand); font-weight: 600; min-width: 54px; }
.ck-approve-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ck-approve-photos .ck-ph { cursor: zoom-in; }
.ck-approve-photos .ck-ph.none { cursor: default; }
.ck-approve-note { font-size: 13px; margin-top: 8px; color: #59617a; }
.ck-approve-note b { color: #9aa1b4; font-weight: 500; margin-right: 5px; }
.ck-approve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 13px; margin-top: 10px; }
.ck-approve-grid div b { color: #9aa1b4; font-weight: 500; margin-right: 5px; }

@media (max-width: 720px) {
  .ck-photos, .ck-approve-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ck-approve-grid { grid-template-columns: 1fr; }
  .ck-tools input[type="text"] { width: 100%; }
}

/* ===== 拼本信息：便签卡 ===== */
.pin-tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
/* 拼本搜索行：输入框 / 搜索按钮 尺寸与 DM 评级页一致（38 高、300 宽、胶囊按钮） */
.pin-tools.toolbar { margin-bottom: 14px; margin-top: 0; gap: 20px; } /* 与 DM 评级页搜索行一致：上无空隙、下留 14px */
/* 输入框与 DM 评级页同高同宽 */
.pin-tools.toolbar input[type="text"] {
  width: 300px; max-width: 100%; height: 40px; min-height: 40px; max-height: 40px;
  padding: 0 12px !important; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 13px; font-family: inherit;
  box-sizing: border-box; outline: none;
}
.pin-tools.toolbar input[type="text"]:focus { border-color: var(--brand); }
.pin-tools.toolbar > .btn-sm {
  flex: none; width: auto; min-width: 0;
  height: 40px !important; min-height: 40px; max-height: 40px;
  margin: 0 !important; padding: 0 18px !important;
  border: 0; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-size: 14px !important; font-weight: 600; line-height: 1 !important;
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
}
.pin-tools.toolbar > .btn-sm:hover { background: #3350c4; }
.pin-tools.toolbar .pin-tip { margin-left: 0; }
#tabPlan .pin-tools.toolbar + .pin-grid,
#tabPlan .pin-tools.toolbar + .empty { margin-top: 0; }
.pin-tip { font-size: 12px; color: #a3aab6; }
.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.pin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 12px;
  min-height: 132px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.pin-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,40,80,.12); border-color: #e2e8f7; }
.pin-card-top { display: flex; align-items: baseline; gap: 8px; }
.pin-card-title {
  font-size: 14px; color: #22263a; line-height: 1.4;
  flex: 1 1 auto; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pin-card-date { flex: 0 0 auto; font-size: 12px; color: #a3aab6; }
/* 卡片区到搜索行的距离，跟 DM 评级页搜索行到表格一样留空隙 */
#tabPlan .pin-grid, #tabPlan #pinEmpty { margin-top: 0; }
.pin-card-body {
  margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.6;
  flex: 1 1 auto; min-height: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-wrap; word-break: break-word;
}
.pin-card-foot {
  margin-top: 10px; font-size: 12px; color: #b3bac6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pin-add {
  align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed #cfd7e8; background: #fbfcff; box-shadow: none;
  color: #8a93a8;
}
.pin-add:hover { border-color: var(--brand); color: var(--brand); }
.pin-add-plus { font-size: 26px; line-height: 1; }
.pin-add-txt { font-size: 13px; }
.pin-modal .modal-hint { margin-bottom: 12px; }
.pin-modal .ann-form { box-shadow: none; padding: 0; }
.pin-modal #pinBody { min-height: 180px; }
@media (max-width: 720px) {
  .pin-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pin-card { min-height: 116px; padding: 12px 12px 10px; }
  .pin-card-body { -webkit-line-clamp: 3; }
  .pin-tools input[type="text"] { width: 100%; }
  .pin-tools.toolbar { gap: 6px; }
  .pin-tools.toolbar > .btn-sm { flex: 0 0 auto; }
}

/* ---------------- 场次排期 ---------------- */

.sched-filter { margin: 12px 0 10px; }
/* ---------- 场次排期 · 日历（简洁整齐版） ---------- */
.cal-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eef0f6;
  padding: 16px 18px 18px;
}
.cal-bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid #f0f2f7;
}
.cal-title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .3px; }
.cal-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cal-nav-btn {
  height: 30px; min-width: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink-2);
  font-size: 13px; font-family: inherit; line-height: 1;
  cursor: pointer; transition: .16s;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { background: var(--brand-soft); border-color: #c8d2f5; color: var(--brand); }

.sched-legend {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 10px; font-size: 12px; color: #8b92a5;
}
.sched-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.lg-mine { background: #f59e0b; }
.lg-full { background: var(--busy); }
.lg-open { background: var(--wait); }

.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cal-week span {
  text-align: center; font-size: 12px; color: #9aa1b4;
  padding: 4px 0; font-weight: 500; letter-spacing: .5px;
}
.cal-week span:nth-child(6), .cal-week span:nth-child(7) { color: #c0a0a0; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-cell {
  position: relative;
  min-height: 88px;
  border-radius: 10px;
  border: 1px solid #eef0f6;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.cal-cell:hover { border-color: #c8d2f5; box-shadow: 0 2px 10px rgba(59, 91, 219, .10); }
.cal-cell.blank { background: transparent; border-color: transparent; cursor: default; box-shadow: none; }
.cal-cell.weekend { background: #fcfcfd; }
.cal-cell.weekend .cal-d { color: #d9534f; }
.cal-cell.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.cal-cell.mine { background: #fffdf7; border-color: #f3e2c2; }
.cal-cell.mine.today { border-color: var(--brand); }

.cal-top { display: flex; align-items: center; gap: 6px; }
.cal-d {
  font-size: 13px; font-weight: 600; color: #4a5064;
  width: 22px; height: 22px; line-height: 22px;
  text-align: center; border-radius: 7px;
}
.cal-cell.today .cal-d { background: var(--brand); color: #fff; }
.cal-n { margin-left: auto; font-size: 11px; color: #a3aabd; }
.cal-cell.mine .cal-n { color: #b57e1c; }

.cal-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.cal-b {
  font-size: 11px; line-height: 18px; padding: 0 6px;
  border-radius: 5px; white-space: nowrap; font-weight: 500;
}
.cal-b-full { background: var(--busy-soft); color: var(--busy); }
.cal-b-open { background: var(--wait-soft); color: var(--wait); }
.cal-b-mine { background: #fff1dc; color: #b57e1c; }

@media (max-width: 720px) {
  .cal-card { padding: 12px 10px 14px; }
  .cal-week, .cal-grid { gap: 4px; }
  .cal-cell { min-height: 62px; padding: 5px 4px; border-radius: 8px; }
  .cal-d { font-size: 12px; width: 19px; height: 19px; line-height: 19px; }
  .cal-n { display: none; }
  /* 窄屏：角标字号跟屏幕宽度等比缩小，四个字也放得下 */
  .cal-badges { gap: 2px; }
  .cal-b {
    font-size: clamp(7px, 2.1vw, 10px);
    line-height: 15px;
    padding: 0 3px;
    letter-spacing: -0.2px;
  }
  .cal-bar { margin-bottom: 10px; padding-bottom: 10px; }
  .sched-legend { gap: 10px; font-size: 11px; }
}

/* 手机竖屏：格子更窄，角标继续等比缩，字不换行也不出格 */
@media (max-width: 430px) {
  .cal-week, .cal-grid { gap: 3px; }
  .cal-cell { min-height: 64px; padding: 4px 3px; }
  .cal-badges { gap: 2px; }
  .cal-b {
    font-size: clamp(7px, 2vw, 9px);
    line-height: 14px;
    padding: 0 2.5px;
    letter-spacing: -0.25px;
  }
}

/* 当天车次弹窗 */
.day-modal .day-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.day-empty { text-align: center; color: #b0b7c0; font-size: 13px; padding: 22px 0; }
.day-row { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fcfcfe; }
.day-row.can-edit { cursor: pointer; }
.day-row.can-edit:hover { border-color: #c8d2f5; background: #f7f9ff; }
.day-row.mine { box-shadow: inset 3px 0 0 #f59e0b; }
.day-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-tag { font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 999px; flex: none; }
.slot-tag.t-full { background: var(--busy-soft); color: var(--busy); }
.slot-tag.t-open { background: var(--wait-soft); color: var(--wait); }
.day-script { font-size: 14px; color: var(--ink); }
.day-time { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.day-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.day-note { font-size: 12px; color: #8b93a6; margin-top: 4px; }
.day-acts { justify-content: flex-end; }
.day-acts .btn-primary { width: auto; height: 40px; margin-top: 0; padding: 0 18px; font-size: 14px; }
.day-acts .btn-primary[hidden] { display: none; }

/* 编辑一车：整块照「新增打卡」弹窗的 field 风格 */
.slot-modal { max-width: 460px; }
.slot-modal form { display: block; }
.slot-modal .field { margin-bottom: 14px; }
.slot-modal .field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.slot-modal .field input[type="text"],
.slot-modal .field input[type="time"],
.slot-modal .field input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  transition: .18s;
}
.slot-modal .field input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.slot-modal .field-tip { margin: 6px 0 0; font-size: 12px; color: #9a9aa8; line-height: 1.5; }
.slot-modal .seg { display: flex; gap: 8px; }
.slot-modal .seg-btn {
  flex: 1;
  height: 40px;
  border: 1px solid #dbe0ec;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.slot-modal .seg-btn.on[data-state="open"] { background: var(--wait-soft); border-color: #f0c48a; color: var(--wait); font-weight: 600; }
.slot-modal .seg-btn.on[data-state="full"] { background: var(--busy-soft); border-color: #f1b3b5; color: var(--busy); font-weight: 600; }
.slot-modal .num-open { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.num-open[hidden], .num-row[hidden] { display: none !important; }
.slot-modal .num-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slot-modal .num-cell span { font-size: 12px; color: var(--ink-2); }
.slot-modal .num-cell input { text-align: center; padding: 0 4px; }
.slot-modal .dm-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-modal .dm-chip {
  border: 1px solid #dbe0ec;
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.slot-modal .dm-chip.on { background: var(--brand-soft); border-color: #b9c6f5; color: var(--brand); font-weight: 600; }
.slot-modal .dm-none { font-size: 12px; color: #b0b7c0; }
.slot-modal .dm-joined { font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.slot-modal .opt { font-size: 11px; color: #b0b7c0; font-weight: 400; margin-left: 4px; }
.slot-modal .must { font-size: 11px; color: var(--busy); font-weight: 400; margin-left: 4px; }
.slot-modal .ann-num { font-size: 11px; color: #b0b7c0; font-weight: 400; margin-left: auto; }
.slot-modal .slot-acts { margin: 12px -20px -14px; padding: 12px 20px 14px; border-top: 1px solid var(--line); justify-content: flex-end; gap: 10px; }
.slot-modal .slot-acts .btn-ghost,
.slot-modal .slot-acts .btn-primary { width: auto; flex: none; height: 44px; padding: 0 22px; margin-top: 0; font-size: 15px; border-radius: 10px; }
.slot-modal .slot-acts #slotDel { color: var(--busy); border-color: #f1b3b5; }
.slot-modal .slot-acts #slotDel[hidden] { display: none; }
@media (max-width: 720px) {
  .num-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 标题与选项卡间距统一压缩 */
.page-head { min-height: 0 !important; margin-bottom: 6px !important; align-items: flex-start !important; }
.page-head h2 { margin: 0 0 2px !important; }
.page-head .sub { margin: 0 !important; }
.tabs { margin-top: 0 !important; margin-bottom: 18px !important; }

/* 删除开本记录：弹窗里的红色按钮 + 确认弹窗 */
/* 跟旁边的取消/发布同一个高度、同一字号，别自己单独定 40 */
.ck-modal .modal-actions > .ck-del-btn {
  flex: 0 0 auto; width: auto; min-width: 76px; height: 46px; padding: 0 18px;
  margin-top: 0; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #f3c7c7; border-radius: 10px; background: #fff6f6;
  color: #d43c3c; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer;
  transition: .16s;
}
.ck-del-btn:hover { background: #ffecec; border-color: #e9a8a8; }
.ck-del-btn:disabled { opacity: .6; cursor: default; }
.ck-del-btn[hidden] { display: none !important; }
/* 删除确认弹窗：红色按钮就别抢两个一等宽了，正常三个字大小 */
.confirm-modal .modal-actions { gap: 10px; }
.confirm-modal .modal-actions > .ck-danger-btn {
  flex: 1 1 0; height: 40px; padding: 0 18px;
  border: 1px solid #e34b4b; border-radius: 10px; background: #e34b4b;
  color: #fff; font-size: 14px; font-family: inherit; font-weight: 600; cursor: pointer;
}
.confirm-modal .modal-actions > .ck-danger-btn:hover { background: #d33b3b; }
.confirm-modal .confirm-text { margin-bottom: 16px; color: #6b7280; }
