:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-soft: #eff4ff;
  --sel: #ef5350;
  --sel-hover: #e5484d;
  --sel-soft: #fdecec;
  --sel-line: #f6b9b5;
  --border: #e5e7eb;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  --info: #2563eb;
  --purple: #7c3aed;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font-family: inherit; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#login {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #38bdf8 100%);
  z-index: 100;
}
.login-card {
  position: relative;
  width: 360px; background: #fff; border-radius: 14px; padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.icp { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.icp a { color: inherit; text-decoration: none; }
.icp a:hover { color: var(--sel); }
.outlet-sw { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.outlet-sw a {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 4px; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: #1e293b; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
  text-decoration: none;
}
.outlet-sw a span { font-size: 14px; line-height: 1; }
.outlet-sw a:hover { background: #e2e8f0; }
.outlet-sw a.on { background: #1e293b; border-color: #1e293b; color: #fff; }
#app { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  background: #1e293b; color: #cbd5e1; padding: 0 20px; height: 58px;
  position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.topbar .brand { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 1px; white-space: nowrap; }
.topbar .brand span { display: block; font-size: 10px; font-weight: 400; color: #64748b; letter-spacing: 2px; }
.topbar .nav-wrap { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; position: relative; }
.topbar nav { display: flex; gap: 3px; flex: 0 1 auto; min-width: 0; overflow: visible; }
.topbar nav a.nav-off { display: none; }
.topbar nav a.nav-denied, .topbar nav .nav-drop.nav-denied { display: none !important; }
.topbar nav a {
  display: block; padding: 8px 11px; color: #cbd5e1; text-decoration: none; font-size: 13.5px;
  border-radius: 6px; white-space: nowrap; border-bottom: 2px solid transparent;
}
.topbar nav a:hover { background: #334155; color: #fff; }
.topbar nav a.active { background: #2563eb; color: #fff; font-weight: 600; }
.topbar .nav-more {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border: 0; border-radius: 6px; background: transparent;
  color: #cbd5e1; font-size: 14px; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.topbar .nav-more:hover { background: #334155; color: #fff; }
.topbar .nav-more.on { background: var(--sel); color: #fff; font-weight: 600; }
.topbar .nav-more.on:hover { background: var(--sel-hover); }
.topbar .nav-more i { font-style: normal; font-size: 10px; opacity: .85; }
.topbar .nav-more[hidden] { display: none; }
.topbar .nav-more-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 156px; padding: 6px; border-radius: 10px; background: #1e293b;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .42);
  display: flex; flex-direction: column; gap: 2px;
}
.topbar .nav-more-menu[hidden] { display: none; }
.topbar .nav-more-menu a {
  display: block; padding: 8px 12px; border-radius: 6px; color: #cbd5e1;
  text-decoration: none; font-size: 14px; white-space: nowrap;
}
.topbar .nav-more-menu a:hover { background: #334155; color: #fff; }
.topbar .nav-more-menu a.on { background: var(--sel); color: #fff; font-weight: 600; }
.topbar .who { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
@media (max-width: 1400px) { .topbar .who .who-role { display: none; } }
@media (max-width: 1200px) {
  .topbar { gap: 12px; padding: 0 14px; }
  .topbar nav a { font-size: 13px; padding: 8px 8px; }
}
.topbar .who b { color: #fff; }
.topbar .who .btn.ghost { background: transparent; border-color: #475569; color: #cbd5e1; }
.topbar .who .btn.ghost:hover { background: #334155; color: #fff; }
.topbar .who .biz-tag {
  font-size: 12.5px; padding: 3px 10px; border-radius: 20px; white-space: nowrap;
  font-weight: 700; letter-spacing: .2px;
  background: #dc2626; border: 1px solid #fca5a5; color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.topbar .who .biz-tag.warn {
  background: rgba(245, 158, 11, .2); border-color: var(--warn); color: #fbbf24;
  font-weight: 700; box-shadow: none;
}
.topbar .who .biz-tag.hot {
  background: #fdecec; border-color: #dc2626; color: #dc2626;
  font-weight: 700;
  animation: bizTagHot 1.2s ease-in-out infinite alternate;
}
@keyframes bizTagHot {
  from { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  to   { box-shadow: 0 0 0 4px rgba(220, 38, 38, .28); }
}
.audit-state { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 12px; margin-bottom: 12px; background: #fbfcfe; }
.audit-state .as-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.audit-state .as-row + .as-row { border-top: 1px dashed var(--border); }
.audit-state .as-row > span:first-child { color: var(--muted); }
.set-sec { font-weight: 600; margin: 18px 0 8px; padding-left: 8px; border-left: 3px solid var(--primary); }
.to-orange { color: #b45309; }
main { flex: 1; padding: 22px 26px 40px; overflow-x: hidden; overflow-x: clip; }
header.top { margin-bottom: 18px; }
header.top h2 { margin: 0; font-size: 20px; }
@media (max-width: 900px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .topbar .nav-wrap { flex: 1 0 100%; order: 3; width: 100%; }
  .topbar nav { flex: 0 1 auto; padding-bottom: 2px; }
  .topbar .who { margin-left: auto; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .topbar { gap: 14px; padding: 0 16px; }
  .topbar .brand { font-size: 15px; }
  .topbar nav a { padding: 8px 10px; }
  .topbar .nav-more { padding: 8px 10px; }
  .topbar .who { gap: 6px; }
}
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card-h { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.card-b { padding: 18px; overflow-x: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.blue .value { color: var(--info); }
.kpi.green .value { color: var(--ok); }
.kpi.amber .value { color: var(--warn); }
.kpi.purple .value { color: #7c5cd6; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.page-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.page-bar .pb-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.page-bar .pb-title { font-size: 15px; font-weight: 700; }
.page-bar .pb-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.page-bar .pb-left > .muted {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-bar.rp-bar { flex-wrap: nowrap; }
.page-bar.rp-bar .pb-left { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; }
.page-bar.rp-bar .pb-left > .pb-title { flex: 0 0 auto; white-space: nowrap; }
.page-bar.rp-bar .pb-left > .muted { flex: 1 1 auto; min-width: 90px; }
.page-bar.rp-bar .pb-actions { flex: 0 0 auto; flex-wrap: nowrap; }
@media (max-width: 900px) {
  .page-bar.rp-bar { flex-wrap: wrap; }
  .page-bar.rp-bar .pb-left { flex: 1 1 100%; }
}
.today-bar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 16px;
  padding: 14px 18px; background: var(--panel); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow);
}
.today-bar .tb-main { min-width: 190px; }
.today-bar .tb-label { font-size: 12px; color: var(--muted); }
.today-bar .tb-value { font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1.25; }
.today-bar .tb-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.today-bar .tb-split { flex: 1; min-width: 230px; }
.today-bar .tb-split .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #eef2f7; }
.today-bar .tb-split .bar i { display: block; height: 100%; }
.today-bar .tb-split .bar i.fee { background: var(--primary); }
.today-bar .tb-split .bar i.chg { background: #f59e0b; }
.bar i.pfee { background: #7c5cd6; }
.today-bar .tb-split .bar i.pfee { background: #7c5cd6; }
.today-bar .tb-split .lg { margin-top: 7px; }
.today-bar .tb-split .lg span { margin-right: 16px; }
.today-bar .tb-items { display: flex; gap: 20px; flex-wrap: wrap; }
.today-bar .tb-items .it { text-align: center; min-width: 56px; }
.today-bar .tb-items .it b { display: block; font-size: 18px; line-height: 1.2; }
.today-bar .tb-items .it span { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .today-bar .tb-items { gap: 14px; } }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
th { background: #f9fafb; color: var(--muted); font-weight: 600; }
tbody tr:hover { background: #f9fafb; }
tr.grp td {
  background: #f1f5f9; font-size: 12px; font-weight: 700; color: #334155;
  padding: 7px 12px; border-bottom: 1px solid var(--border);
}
tr.grp .tag { margin-left: 8px; }
tr.grp .muted { font-weight: 400; margin-left: 8px; }
.vip-tag {
  display: inline-block; margin-left: 5px; padding: 0 4px; border-radius: 3px; font-size: 10px;
  font-weight: 800; color: #78350f; background: linear-gradient(135deg, #fde68a, #f59e0b); vertical-align: 1px;
}
.btn.qk.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.btn.qk.on:hover { background: #1d4ed8; }
.chg-old {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 12px;
}
.chg-old .bill-line { font-size: 13px; }
.chg-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 0; margin-bottom: 10px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
}
.chg-quick .btn { padding: 5px 10px; font-size: 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; font-size: 13px;
  white-space: nowrap; flex: 0 0 auto;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: #f3f4f6; }
.btn.primary, .btn.ok, .btn.warn, .btn.violet, .btn.red, .btn.teal, .btn.cyan, .btn.danger-solid {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .16);
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.soft { background: #eef2ff; border-color: #c7d2fe; color: #1e3a8a; font-weight: 600; }
.btn.soft:hover { background: #e0e7ff; border-color: #a5b4fc; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { background: #15803d; }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.warn:hover { background: #d97706; }
.btn.violet { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.btn.violet:hover { background: #6d28d9; }
.btn.red { background: var(--sel); border-color: var(--sel); color: #fff; }
.btn.red:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.btn.teal { background: #0d9488; border-color: #0d9488; color: #fff; }
.btn.teal:hover { background: #0f766e; }
.btn.cyan { background: #0891b2; border-color: #0891b2; color: #fff; }
.btn.cyan:hover { background: #0e7490; }
.btn.danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn.danger:hover { background: #fef2f2; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-solid:hover { background: #b91c1c; }
.btn.ctrip { background: #0086f6; border-color: #0074d9; color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .16); }
.btn.ctrip:hover { background: #0074d9; border-color: #0066c2; }
.btn.mt { background: #ffd100; border-color: #e8bd00; color: #1f2937; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .16); }
.btn.mt:hover { background: #f2c400; border-color: #dcb400; }
.btn.ch-on { outline: 2px solid #e5484d; outline-offset: 1px; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn.md { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.btn.rp-back {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 1px 3px rgba(37, 99, 235, .22);
}
.btn.rp-back:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.btn.rp-back:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
input:hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled), textarea:hover:not(:focus):not(:disabled) { border-color: #c4ccd6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=radio], input[type=checkbox] { width: auto; height: auto; padding: 0; margin: 0; flex: none; }
label.f { display: block; margin-bottom: 12px; }
.login-card label.f[hidden] { display: none; }
label.f > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.f-title { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.radio-line { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 0; white-space: nowrap; }
.radio-line input[type=radio] { accent-color: var(--primary); }
.dh-list { display: flex; flex-direction: column; gap: 6px; }
.dh-list .dh { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 8px;
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff;
  font-size: 13px; text-align: left; cursor: pointer; }
.dh-list .dh:hover { border-color: #b9c9e6; }
.dh-list .dh.on { border-color: var(--primary); background: var(--primary-soft); }
.dh-list .dh > input[type=radio] { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); }
.dh-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; text-align: left; }
.dh-amt { color: var(--danger); }
.dh-u { color: var(--muted); font-size: 12px; }
.dh-num { width: 92px; padding: 5px 8px; text-align: right; }
.dh-num:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.grid { display: grid; gap: 0 14px; align-items: start; }
.grid > label { margin-bottom: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-row.co-money { grid-template-columns: minmax(0, 1fr) 120px minmax(140px, 180px); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; line-height: 18px; }
.tag.vacant { background: #dcfce7; color: #15803d; }
.tag.occupied { background: #fee2e2; color: #b91c1c; }
.tag.reserved { background: #fef3c7; color: #b45309; }
.tag.live_clean { background: #d1fae5; color: #047857; }
.tag.live_dirty { background: #fae8d0; color: #8a5a1b; }
.tag.cleaning { background: #e5e7eb; color: #4b5563; }
.tag.maintenance { background: #ede9fe; color: #6d28d9; }
.tag.locked { background: #eef2ff; color: #4338ca; }
.tag.ghost { background: #f1f5f9; color: #475569; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.room {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: #fff;
  border-top: 4px solid var(--border); cursor: pointer; transition: .15s;
}
.room:hover { box-shadow: 0 4px 12px rgba(16, 24, 40, .12); transform: translateY(-1px); }
.room.vacant { border-top-color: var(--ok); }
.room.occupied { border-top-color: var(--danger); }
.room.reserved { border-top-color: var(--warn); }
.room.cleaning { border-top-color: #9ca3af; }
.room.maintenance { border-top-color: var(--purple); }
.room.locked { border-top-color: #8b5cf6; }
.room .no { font-size: 20px; font-weight: 700; }
.room .type { color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.room .price { font-size: 13px; font-weight: 600; }
#app:has(.rooms-wrap) { height: 100vh; min-height: 0; }
main:has(.rooms-wrap) {
  flex: 1 1 0; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; padding: 8px 14px 12px;
}
main:has(.rooms-wrap) header.top { display: none; }
main:has(.rooms-wrap) #view { flex: 1; min-height: 0; }
.rooms-wrap { display: flex; gap: 14px; height: 100%; align-items: stretch; }
@media (min-width: 861px) {
  .rooms-page.stat-right .rooms-wrap { flex-direction: row-reverse; }
}
.rooms-side {
  width: var(--rs-w, 256px); min-width: 0; max-width: none;
  flex-shrink: 0; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  height: 100%; min-height: 0;
  display: flex; flex-direction: column;
}
.rs-head { flex-shrink: 0; }
.rs-body { position: relative; flex: 1; min-height: 0; display: flex; }
.rs-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.rs-scroll::-webkit-scrollbar { width: 0; height: 0; }
.rs-track { position: absolute; top: 2px; right: 0; bottom: 4px; width: 9px; border-radius: 5px; pointer-events: none; }
.rs-track.on { pointer-events: auto; }
.rs-thumb {
  position: absolute; left: 0.5px; width: 8px; height: 0; border-radius: 4px;
  background: #b3bdca; cursor: pointer; transition: background .15s;
}
.rs-track:hover .rs-thumb, .rs-track.drag .rs-thumb { background: #7f8b9c; }
.rs-scroll > .rs-sec:last-child { border-bottom: 0; }
.rs-tools { padding: 12px; border-bottom: 1px solid var(--border); display: flex; gap: 6px; align-items: center; }
.rs-tools #roomQ { flex: 1; min-width: 0; }
.rs-lockbtns { display: flex; gap: 6px; }
.rs-lockbtns .btn { white-space: nowrap; }
.rs-sec { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.rs-sec:last-child { border-bottom: 0; }
.rs-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; }
.rs-occ b { color: var(--danger); font-size: 13px; }
.rs-scroll .rs-title,
.rs-scroll .rs-title .muted,
.rs-scroll .rs-stat, .rs-scroll .rs-stat b,
.rs-scroll .rs-type, .rs-scroll .rs-type b,
.rs-scroll .rs-pick .nm, .rs-scroll .rs-pick b,
.rs-scroll .rs-pick select,
.rs-scroll .rs-tag, .rs-scroll .rs-tag b,
.rs-scroll .rs-legend { color: #1b2536; }
.rs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.rs-stat {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted);
  cursor: pointer; padding: 3px 4px; border-radius: 5px;
}
.rs-stat:hover { background: #f3f4f6; }
.rs-stat.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.rs-stat i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.rs-stat b { margin-left: auto; color: var(--text); font-size: 13px; }
.rs-stat.blue i { background: var(--rc-blue, #05a9f5); }
.rs-stat.orange i { background: var(--rc-orange, #ff8624); }
.rs-stat.green i { background: var(--rc-green, #0bd08f); }
.rs-stat.brown i { background: var(--rc-brown, #a9b3bf); }
.rs-stat.gray i { background: var(--rc-gray, #64748b); }
.rs-stat.red i { background: var(--rc-red, #ef4444); }
.rs-stat.mt i { background: var(--rc-mt, #f5ed00); }
.rs-stat.purple i { background: var(--rc-purple, #7c3aed); }
.rs-stat.teal i { background: #0d9488; }
.rs-type {
  display: flex; justify-content: space-between; align-items: center; padding: 4px 4px;
  font-size: 12px; color: var(--muted); cursor: pointer; border-radius: 5px;
}
.rs-type:hover { background: #f3f4f6; }
.rs-type.on { background: var(--primary-soft); color: var(--primary); }
.rs-type .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-type b { color: var(--text); }
.rs-type.on b { color: var(--primary); }
.rs-dims { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 2px 6px; }
.rs-dims .rs-type {
  flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 4px; padding: 2px 4px; line-height: 1.35;
}
.rs-dims .rs-type .nm {
  flex: 0 1 auto; min-width: 0; font-size: 11.5px;
  white-space: normal; overflow: hidden; text-overflow: clip;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.rs-dims .rs-type b { flex: 0 0 auto; font-size: 13px; line-height: 1.2; }
.rs-more { font-size: 12px; color: var(--primary); cursor: pointer; padding: 3px 4px; margin-top: 2px; }
.rs-more:hover { text-decoration: underline; }
.rs-extra { margin-top: 2px; }
.rs-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; }
.rs-tag {
  display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 4px;
  border: 0; background: none; border-radius: 5px; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 12px; color: var(--muted);
}
.rs-tag:hover { background: #f3f4f6; }
.rs-tag i {
  flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #bcd0ef; border-radius: 4px; background: #f4f8ff; color: #2f6fd0;
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
}
.rs-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-tag b { margin-left: auto; color: var(--text); font-size: 12px; font-weight: 600; }
.rs-tag.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.rs-tag.on i { background: var(--primary); border-color: var(--primary); color: #fff; }
.rs-tag.on b { color: var(--primary); }
.rs-note { font-weight: 400; color: #1b2536; letter-spacing: 0; }
.rs-pick { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12px; color: var(--muted); }
.rs-pick .nm { flex: none; width: 26px; }
.rs-pick select {
  flex: 1; min-width: 0; height: 26px; padding: 0 4px; font-size: 12px; color: var(--text);
  border: 1px solid var(--border); border-radius: 5px; background: #fff;
}
.rs-pick b { flex: none; min-width: 18px; text-align: right; color: var(--text); font-size: 12px; }
.opt-list.sortable .opt-tag { cursor: default; user-select: none; }
.opt-drag {
  font-style: normal; cursor: grab; color: #9aa4b2; margin-right: 5px; letter-spacing: -2px;
  font-size: 12px; vertical-align: 1px;
}
.opt-list.sortable .opt-tag:hover .opt-drag { color: var(--primary); }
.opt-drag:active { cursor: grabbing; }
.opt-tag.dragging { opacity: .45; outline: 1px dashed var(--primary); }
.rs-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.rs-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.rs-legend i.blue { background: #05a9f5; }
.rs-legend i.orange { background: #ff8624; }
.rs-legend i.green { background: #0bd08f; }
.rs-legend i.brown { background: #a9b3bf; }
.rs-legend i.gray { background: #64748b; }
.rs-legend i.red { background: #ef4444; }
.rs-legend i.purple { background: #7c3aed; }
.rs-legend i.teal { background: #0d9488; }
.rs-legend i.due { background: #fff; box-shadow: inset 0 0 0 2px #ffd166; }
.rs-legend i.over { background: #fff; box-shadow: inset 0 0 0 2px #b91c1c; }
.rs-legend i.vip { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.rs-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px 12px; }
.rs-quick .btn { justify-content: center; padding: 6px 4px; }
.pbar { height: 8px; background: #eef2f7; border-radius: 5px; overflow: hidden; margin-bottom: 2px; }
.pbar i { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.qsec { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.qsec:last-child { border-bottom: 0; }
.qsec-h { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.qsec-h b { color: var(--danger); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 9px; border-radius: 5px; font-size: 12px; cursor: pointer; color: #fff;
  background: #64748b; white-space: nowrap;
}
.chip:hover { filter: brightness(1.08); }
.chip.green { background: #27b178; }
.chip.orange { background: #f0923f; }
.chip.red { background: #dd4040; }
.chip.gray { background: #a9b3bf; }
.chip.purple { background: #8b5cf6; }
.rooms-main {
  flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; height: 100%; min-height: 0;
}
.rooms-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.floor-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ft {
  padding: 5px 14px; border: 1px solid var(--border); background: #fff; border-radius: 6px;
  font-size: 13px; cursor: pointer; color: var(--text);
}
.ft:hover { border-color: var(--primary); color: var(--primary); }
.ft.active { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.rooms-actions { display: flex; align-items: center; gap: 8px; }
.lk-tools { display: none; align-items: center; gap: 6px; flex: none; }
.rooms-page.look-floor-sel .lk-tools,
.rooms-page.look-bldg-sel .lk-tools { display: flex; }
.rooms-page.look-floor-sel #floorTabs { display: none; }
#floorSel, #bldgSel { display: none; }
.rooms-page.look-floor-sel #floorSel { display: inline-block; }
.rooms-page.look-bldg-sel #bldgSel { display: inline-block; }
.lk-sel {
  width: auto; max-width: 160px; height: 28px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #111;
  font-family: inherit; font-size: 12.5px;
}
.rooms-page { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.rooms-page > .rooms-wrap { flex: 1 1 0; min-height: 0; height: auto; }
.statbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: 18px; height: 36px; padding: 0 16px;
  background: #1e293b; color: #cbd5e1; font-size: 13px; font-weight: 400; white-space: nowrap;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .18);
}
.statbar .sb-item { color: #cbd5e1; }
.statbar .sb-item b { color: #fff; font-weight: 400; }
.statbar .sb-brand { color: #fff; }
.statbar .sb-item:nth-of-type(3) b { color: #ffb500; }
.statbar .sb-gap { flex: 1; }
.rooms-page:has(.statbar) { padding-bottom: 36px; }
.rn-bar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.rn-list { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), rgba(0, 0, 0, .18));
  mask-image: linear-gradient(to right, #000 calc(100% - 16px), rgba(0, 0, 0, .18)); }
.rn-list::-webkit-scrollbar { height: 0; }
.rn-item {
  flex: none; display: inline-flex; align-items: center; gap: 5px; font-family: inherit;
  font-size: 12.5px; font-weight: 500; line-height: 1; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #111;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.rn-item:hover { border-color: var(--sel); color: var(--sel); background: var(--sel-soft); }
.rn-item.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 600; }
.rn-item.on:hover { background: var(--sel-hover); color: #fff; }
.rn-b {
  font-style: normal; font-size: 11px; font-weight: 600; line-height: 1; padding: 2px 5px;
  border-radius: 9px; background: var(--sel); color: #fff;
}
.rn-item.on .rn-b { background: #fff; color: var(--sel); }
.rn-sep { flex: none; width: 1px; height: 18px; background: #cbd3e0; margin: 0 3px; }
.rn-gear {
  flex: none; display: inline-flex; align-items: center; gap: 5px; font-family: inherit;
  font-size: 12.5px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 7px;
  background: #fff; color: #111; cursor: pointer; transition: .15s;
}
.rn-gear:hover { border-color: var(--sel); color: var(--sel); }
.rn-gear svg { flex: none; }
.rn-future, .rn-forecast { padding: 12px 14px 4px; }
.rn-fx-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rn-fx-tt { font-size: 14px; font-weight: 700; color: #111; }
.rn-fx-tt span { font-size: 12.5px; font-weight: 400; color: #111; margin-left: 6px; }
.rn-fx-seg { margin-left: auto; }
.rn-fx-leg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #111; }
.rn-fx-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.rn-fx-leg i.ok { background: #f1f5f9; border: 1px solid #cbd5e1; }
.rn-fx-leg i.tight { background: #fef3c7; border: 1px solid #fcd34d; margin-left: 10px; }
.rn-fx-leg i.full { background: #fee2e2; border: 1px solid #fca5a5; margin-left: 10px; }
.rooms-page.fx-mode .rooms-side,
.rooms-page.side-off .rooms-side { display: none; }
.rooms-page.fx-mode #roomBoard { padding: 0 0 4px; }
.rooms-page.fx-mode .rn-future,
.rooms-page.fx-mode .rn-forecast { padding: 12px 12px 0; }
.rn-fx-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; max-height: 100%; }
.rn-fx-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rn-fx-t th, .rn-fx-t td { padding: 7px 4px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--border); }
.rn-fx-t thead th { background: #f8fafc; color: #111; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.rn-fx-t thead th em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: #111; opacity: .72; margin-top: 2px; }
.rn-fx-t th.rm { text-align: left; padding-left: 12px; min-width: 132px; background: #fff; border-right: 1px solid var(--border); }
.rn-fx-t th.rm em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: #111; opacity: .72; margin-top: 2px; }
.rn-fx-t td.fx-c { min-width: 44px; font-weight: 600; color: #111; }
.rn-fx-t td.fx-c.tight { background: #fef3c7; color: #92400e; }
.rn-fx-t td.fx-c.full { background: #fee2e2; color: #b91c1c; }
.rn-fx-t td.tot, .rn-fx-t th.tot { background: #f8fafc; font-weight: 700; color: #111; }
.rn-fx-t tbody tr:hover td.fx-c { outline: 2px solid var(--sel-line); outline-offset: -2px; }
.rn-fx-t tfoot th, .rn-fx-t tfoot td { background: #f8fafc; font-weight: 700; color: #111; }
.rn-fx-note { margin: 8px 2px 6px; font-size: 12px; color: #111; line-height: 1.65; }
.frx { padding: 10px 12px 14px; }
.frx-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.frx-q { flex: none; width: 180px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #111; font-family: inherit; font-size: 12.5px; }
.frx-bar .btn { flex: none; }
.frx-leg { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.frx-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #111; }
.frx-lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.frx-stay { background: var(--fr-stay, #4cae8f); }
.frx-book { background: var(--fr-book, #5b9bd5); }
.frx-credit { background: var(--fr-credit, #454545); }
.frx-maint { background: var(--fr-maint, #a9b3bf); }
.frx-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.frx-fl-lb { flex: none; font-size: 12.5px; color: #111; }
.frx-dnav { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.frx-dnav input[type="date"] { flex: none; width: 132px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #111; font-family: inherit; font-size: 12.5px; }
.frx-span { font-size: 12px; color: #111; margin-left: 4px; white-space: nowrap; }
.frx-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; max-height: 100%; }
.frx-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.frx-t th, .frx-t td { border: 1px solid #eef1f5; padding: 0; }
.frx-t thead th { background: #f8fafc; color: #111; font-weight: 600; padding: 5px 4px; text-align: center; position: sticky; top: 0; z-index: 2; min-width: 48px; }
.frx-t thead th b { display: block; font-size: 12.5px; }
.frx-t thead th b.red { color: #e5484d; }
.frx-t thead th em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: #111; margin-top: 1px; }
.frx-t thead th em.pend { color: #1d4ed8; }
.frx-t thead th.today { background: #e8f1fb; }
.frx-t th.rm { text-align: left; padding: 3px 8px; background: #fff; position: sticky; left: 0; z-index: 1; min-width: 104px; }
.frx-t thead th.rm { z-index: 3; }
.frx-t th.rm b { display: block; font-size: 12.5px; color: #111; }
.frx-t th.rm em { display: block; font-style: normal; font-size: 11px; color: #111; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frx-t tr.frx-grp td { background: #f1f5f9; color: #111; font-weight: 700; text-align: left; padding: 4px 10px; font-size: 12.5px; }
.frx-t td.frx-e { height: 30px; background: #fff; min-width: 48px; }
.frx-t td.frx-empty { padding: 18px 12px; color: #111; text-align: center; }
.frx-t td.frx-b { height: 30px; min-width: 48px; color: #fff; font-weight: 400; }
.frx-t td.frx-b.frx-go { cursor: pointer; }
.frx-t td.frx-b.frx-go:hover { outline: 2px solid rgba(17, 24, 39, .35); outline-offset: -2px; }
.frx-t td.frx-stay { background: var(--fr-stay, #4cae8f); }
.frx-t td.frx-book { background: var(--fr-book, #5b9bd5); }
.frx-t td.frx-credit { background: var(--fr-credit, #454545); }
.frx-t td.frx-maint { background: var(--fr-maint, #a9b3bf); text-align: center; font-size: 12px; }
.frx-t td.frx-b > span { display: flex; align-items: center; gap: 4px; padding: 0 6px; height: 30px; overflow: hidden; white-space: nowrap; }
.frx-t td.frx-b .frx-g { overflow: hidden; text-overflow: ellipsis; }
.frx-t td.frx-b .frx-sbadge { font-style: normal; flex: none; background: rgba(255, 255, 255, .88); color: #111; font-size: 11px; line-height: 16px; border-radius: 2px; padding: 0 3px; }
.frxset-row { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.frxset-lb { flex: none; font-size: 13.5px; color: #111; font-weight: 600; }
.frxset-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: #111; cursor: pointer; }
.frxset-radio input { width: auto; }
.frxset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 10px 0 4px; }
.frxset-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #111; }
.frxset-item input[type="color"] { width: 76px; height: 28px; padding: 1px 2px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; }
.frxset-tip { font-size: 12px; color: #111; line-height: 1.7; border-top: 1px dashed var(--border); padding-top: 8px; }
.fc-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fc-bar { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.fc-lb { flex: none; font-size: 12.5px; color: #111; }
.fc-d {
  flex: none; width: 132px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: #111; font-family: inherit; font-size: 12.5px;
}
.fc-sel {
  flex: none; width: auto; max-width: 168px; height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: #111; font-family: inherit; font-size: 12.5px;
}
.fc-seg { flex: none; }
.fc-seg .gb-seg-i { padding: 5px 10px; font-size: 12.5px; }
.fc-chip {
  height: 28px; padding: 0 11px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: #111; font-family: inherit; font-size: 12.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.fc-chip:hover { border-color: var(--sel); color: var(--sel); }
.fc-chip.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 600; }
.fc-t th.rm { position: sticky; left: 0; top: 0; z-index: 3; width: 150px; min-width: 150px; max-width: 150px; }
.fc-t th.fc-n, .fc-t td.fc-n { position: sticky; left: 150px; top: 0; z-index: 3; width: 56px; min-width: 56px; max-width: 56px; background: #fff; font-weight: 600; }
.fc-t th.fc-k, .fc-t td.fc-k { position: sticky; left: 206px; top: 0; z-index: 3; width: 96px; min-width: 96px; max-width: 96px; background: #fff; font-size: 12px; }
.fc-t thead th.fc-n, .fc-t thead th.fc-k { background: #f8fafc; }
.fc-t tfoot th.rm, .fc-t tfoot td.fc-n, .fc-t tfoot td.fc-k { background: #f8fafc; z-index: 4; }
.fc-t tbody td.fc-n, .fc-t tbody td.fc-k, .fc-t tbody th.rm { top: auto; }
.fc-t .fc-name,
.fc-t th.rm em {
  display: block; max-width: 146px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fc-t td.fc-k { white-space: normal; line-height: 1.35; }
.fc-t td.fc-c { min-width: 58px; font-size: 12.5px; }
.fc-t td.fc-c b { color: #111; font-weight: 600; }
.fc-t td.fc-c.has b { color: #1d4ed8; }
.fc-t td.fc-c em { display: block; font-style: normal; font-size: 11px; color: #111; opacity: .72; margin-top: 2px; }
.fc-t td.fc-c.full { background: #fee2e2; }
.fc-t td.fc-c.full b { color: #b91c1c; }
.fc-t td.fc-c.over { background: #fecaca; }
.fc-t td.fc-c.over b { color: #991b1b; }
.fc-t th.we, .fc-t td.fc-c.we { background: #f1f5f9; }
.fc-t th.today { background: #dbeafe; }
.fc-t td.fc-c.today { background: #eff6ff; }
.fc-t td.tot-c { background: #f8fafc; font-weight: 700; }
.fc-t td.fc-empty { padding: 18px 0; text-align: center; color: #111; }
.fc-t td.fc-c.go { cursor: pointer; }
.fc-t td.fc-c.go b { color: #e5484d; text-decoration: underline; }
.fd-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fd-tab {
  height: 30px; padding: 0 16px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: #111; font-family: inherit; font-size: 13px; cursor: pointer;
}
.fd-tab.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 600; }
.fd-sub { margin-left: auto; font-size: 12.5px; color: #111; }
.fd-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fd-t th, .fd-t td { border-bottom: 1px solid var(--border); padding: 7px 8px; text-align: left; color: #111; vertical-align: middle; }
.fd-t thead th { background: #f8fafc; font-weight: 600; white-space: nowrap; }
.fd-t tbody tr { cursor: pointer; }
.fd-t tbody tr:hover { background: #eff6ff; }
.fd-t td.num { text-align: right; white-space: nowrap; }
.fd-t .fd-g b { display: block; }
.fd-t .fd-g em { display: block; font-style: normal; font-size: 12px; color: #111; margin-top: 1px; }
.fd-t .fd-una { font-style: normal; color: #e5484d; }
.fd-empty { margin: 18px 0; text-align: center; font-size: 13px; color: #111; }
.rnd-smart {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 12px;
  border: 1px solid #f1c4c2; border-radius: 8px; background: #fff7f7;
}
.rnd-smart-ic {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: var(--sel-soft); color: var(--sel);
}
.rnd-smart-copy { flex: 1; min-width: 0; }
.rnd-smart-copy b { display: block; font-size: 13.5px; color: #111; font-weight: 400; }
.rnd-smart-copy small { display: block; margin-top: 2px; font-size: 12px; color: #111; line-height: 1.45; }
.rnd-smart .btn[disabled] { cursor: default; opacity: .55; }
.rnd-sec { margin-bottom: 14px; }
.rnd-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.rnd-h b { font-size: 13.5px; color: #111; }
.rnd-n { font-size: 12px; color: #111; background: #eef1f6; border-radius: 10px; padding: 1px 8px; }
.rnd-tip { margin-left: auto; font-size: 12px; color: #111; }
.rnd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.rnd-tile {
  position: relative; display: flex; align-items: center; gap: 6px; min-height: 38px;
  padding: 8px 9px; border: 1px dashed #cfd6e0; border-radius: 8px; background: #fafbfd;
  font-size: 13px; color: #111; user-select: none;
}
#rndOn .rnd-tile { background: #fff; border-style: solid; border-color: var(--border); cursor: grab; }
#rndOn .rnd-tile:hover { border-color: var(--sel); }
.rnd-tile.dragging { opacity: .45; border-style: dashed; border-color: var(--sel); }
.rnd-tile.add { cursor: pointer; }
.rnd-tile.add:hover { border-color: var(--sel); background: var(--sel-soft); color: var(--sel); }
.rnd-grip { flex: none; color: #111; opacity: .4; font-size: 13px; line-height: 1; cursor: grab; }
.rnd-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rnd-x {
  flex: none; border: 0; background: transparent; color: var(--sel); font-size: 12px;
  line-height: 1; padding: 3px 5px; border-radius: 5px; cursor: pointer;
}
.rnd-x:hover { background: var(--sel-soft); }
.rnd-plus { flex: none; color: var(--sel); font-size: 13px; line-height: 1; }
.rnd-none { grid-column: 1 / -1; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; font-size: 12.5px; color: #111; }
.rnd-foot { font-size: 12px; color: #111; }
.kc-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kc-bar input {
  flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 7px; font-family: inherit; font-size: 13px; color: #111;
}
.kc-bar input:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); }
.kc-cnt { flex: none; font-size: 12.5px; color: #111; }
.kc-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.kc-t th, .kc-t td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.kc-t th { background: #f8fafc; color: #111; font-weight: 600; font-size: 12.5px; }
.kc-t .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #111; }
.kc-empty { text-align: center; color: #111; padding: 18px 0; }
.kc-note { margin: 10px 2px 0; font-size: 12px; color: #111; line-height: 1.65; }
label.f > span.kc-same {
  display: flex; align-items: center; gap: 6px; height: 34px; margin-bottom: 12px;
  font-size: 13px; font-weight: 400; color: #111; white-space: nowrap; cursor: pointer;
}
label.f > span.kc-same input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.kc-qty:disabled { background: #f3f4f6; color: #475569; cursor: not-allowed; }
.kn-lnk { color: var(--sel); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
#roomBoard {
  padding: 12px 14px 18px; flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.floor-block { display: flex; gap: 12px; padding: 8px 0; }
.floor-block + .floor-block { border-top: 1px dashed var(--border); }
.floor-label {
  width: 46px; flex-shrink: 0; text-align: center; font-weight: 700; color: var(--muted);
  font-size: 13px; padding-top: 12px;
}
.rooms-main .floor-label { display: none; }
#roomBoard.board-by-floor .floor-label { display: none; }
#roomBoard.board-by-floor.board-multi-bldg .floor-label { display: block; width: 44px; text-align: right; padding: 6px 8px 0 0; color: #111; font-size: 12.5px; }
#roomBoard.board-by-type .floor-label {
  display: block; flex: none; width: 104px; text-align: right; padding: 4px 10px 0 0;
  color: #111; font-size: 12.5px; font-weight: 600; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: normal;
}
#roomBoard .bldg-group + .bldg-group { margin-top: 4px; }
#roomBoard .bldg-row {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 2px;
  font-size: 13px; font-weight: 700; color: #111;
}
#roomBoard .bldg-row::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.floor-block .rgrid { flex: 1; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--rc-w, 128px), 1fr)); gap: 8px; }
.rcard {
  border-radius: 6px; padding: 8px 9px; min-height: var(--rc-h, 94px); cursor: pointer; color: #fff;
  display: flex; flex-direction: column; transition: .12s; overflow: hidden;
  box-shadow: var(--rc-sh, none);
}
.rcard:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(16, 24, 40, .28); filter: brightness(1.06); }
.rcard.blue { background: var(--rc-blue, #05a9f5); }
.rcard.orange { background: var(--rc-orange, #ff8624); }
.rcard.green { background: var(--rc-green, #0bd08f); }
.rcard.brown { background: var(--rc-brown, #a9b3bf); }
.rcard.gray { background: var(--rc-gray, #64748b); }
.rcard.red { background: var(--rc-red, #ef4444); }
.rcard.mt { background: var(--rc-mt, #f5ed00); color: #1b1b1b; }
.rcard.purple { background: var(--rc-purple, #7c3aed); }
.rcard.due { outline: 2px solid #ffd166; outline-offset: -2px; }
.rcard.over { outline: 2px solid #b91c1c; outline-offset: -2px; }
.rctip {
  position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none;
  width: max-content; min-width: 228px; max-width: 306px;
  padding: 11px 13px 10px; border-radius: 10px;
  background: linear-gradient(180deg, #24313f 0%, #1a2432 100%);
  color: #fff; font-size: 12px; line-height: 1.5; text-align: left;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 14px 32px rgba(12, 20, 30, .32), 0 3px 8px rgba(12, 20, 30, .24);
  opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
}
.rctip.rct-show { opacity: 1; transform: translateY(0); }
.rctip::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
}
.rctip::after {
  content: ''; position: absolute; left: var(--ax, 50%); margin-left: -5px;
  width: 10px; height: 10px; transform: rotate(45deg);
}
.rctip.rct-above::after {
  bottom: -5px; background: #1a2432;
  border-right: 1px solid rgba(255, 255, 255, .13); border-bottom: 1px solid rgba(255, 255, 255, .13);
  border-radius: 0 0 2px 0;
}
.rctip.rct-below::after {
  top: -5px; background: #24313f;
  border-left: 1px solid rgba(255, 255, 255, .13); border-top: 1px solid rgba(255, 255, 255, .13);
  border-radius: 2px 0 0 0;
}
.rctip .rct-h { display: flex; align-items: center; gap: 7px; }
.rctip .rct-no { font-size: 18px; font-weight: 800; letter-spacing: .4px; line-height: 1.1; }
.rctip .rct-st {
  font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; letter-spacing: .3px; white-space: nowrap;
}
.rctip .rct-st.blue { background: rgba(56, 189, 248, .18); color: #7dd3fc; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .38); }
.rctip .rct-st.orange { background: rgba(251, 146, 60, .18); color: #fdba74; box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .38); }
.rctip .rct-st.green { background: rgba(52, 211, 153, .18); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .38); }
.rctip .rct-st.brown { background: rgba(208, 160, 106, .2); color: #e3bd90; box-shadow: inset 0 0 0 1px rgba(208, 160, 106, .4); }
.rctip .rct-st.gray { background: rgba(154, 167, 182, .2); color: #c3ccd7; box-shadow: inset 0 0 0 1px rgba(154, 167, 182, .38); }
.rctip .rct-st.red { background: rgba(248, 113, 113, .18); color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .38); }
.rctip .rct-st.mt { background: rgba(239, 68, 68, .22); color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .45); }
.rctip .rct-st.purple { background: rgba(196, 181, 253, .18); color: #c4b5fd; box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .38); }
.rctip .rct-vip {
  font-size: 10px; font-weight: 800; color: #fde68a; padding: 1px 4px; border-radius: 4px;
  border: 1px solid rgba(253, 230, 138, .45); white-space: nowrap;
}
.rctip .rct-ty {
  margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .62);
  max-width: 98px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rctip .rct-g { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.rctip .rct-gn { font-size: 13px; font-weight: 700; }
.rctip .rct-ph { font-size: 11px; color: rgba(255, 255, 255, .68); letter-spacing: .2px; }
.rctip .rct-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rctip .rct-tags i {
  font-style: normal; font-size: 10.5px; line-height: 1; padding: 3px 5px;
  border-radius: 4px; background: rgba(255, 255, 255, .11); color: rgba(255, 255, 255, .92);
}
.rctip .rct-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 9px;
  padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.rctip .rct-k { font-size: 11px; color: rgba(255, 255, 255, .64); }
.rctip .rct-v { font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.rctip .rct-v em { font-style: normal; margin-left: 7px; font-size: 11px; color: rgba(255, 255, 255, .68); }
.rctip .rct-pay {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px;
  padding-top: 7px; border-top: 1px dashed rgba(255, 255, 255, .16);
}
.rctip .rct-pay span { font-size: 11px; color: rgba(255, 255, 255, .66); }
.rctip .rct-pay b { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.rctip .rct-pay b.warn { color: #ffcf70; }
.rctip .rct-note { margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.rctip .rct-hint { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11px; color: #9dc2f5; }
.rctip .rct-hint::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex: none; }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; margin-top: 6px; }
.rc-vip {
  background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; font-size: 10px; font-weight: 800;
  width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
}
.rc-link {
  font-size: 10px; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 4px;
  flex-shrink: 0; white-space: nowrap;
}
.rc-link.master { background: #7c3aed; color: #fff; }
.rc-link.sub { background: #ede9fe; color: #6d28d9; box-shadow: inset 0 0 0 1px #c4b5fd; }
.rc-head {
  display: flex; align-items: center; gap: 5px;
  margin: -8px -9px 1px; padding: 3px 8px;
  background: #334155;
}
.rc-head .rc-type { flex: 1 1 auto; min-width: 0; }
.rc-head .rc-tag {
  background: #fff; color: #000;
  font-size: 12px; font-weight: 800; line-height: 17px; letter-spacing: .5px;
  padding: 0 6px; border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .95), 0 1px 3px rgba(0, 0, 0, .35);
}
.rc-no { font-size: var(--rc-fno, 14px); font-weight: 700; line-height: 1.15; color: #1b2536; }
.rc-type { font-size: var(--rc-ftype, 11px); font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-guest { font-size: var(--rc-fguest, 12px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1b2536; }
.rc-flags {
  display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 4px;
  margin-top: auto; padding-top: 3px; min-height: 16px;
}
.rc-tag {
  background: rgba(0, 0, 0, .26); color: #fff; font-size: 10px; font-weight: 700;
  padding: 0 4px; border-radius: 3px; line-height: 15px; flex: none;
}
.rc-tag.src-ctrip { background: #1d6fe0; color: #fff; }
.rc-tag.src-mt { background: #f5c518; color: #1b1b1b; }
.rc-badge {
  background: rgba(255, 255, 255, .92); color: #1f2937; font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px; white-space: nowrap;
}
.rc-badge.hot { background: #ffd166; color: #78350f; }
.rc-price { font-size: 11px; font-weight: 700; opacity: .95; }
.rc-out { font-size: 10px; opacity: .95; white-space: nowrap; }
.rc-guest.muted2 { opacity: .55; }
.rc-flags:empty, .rc-flags:not(:has(> *)) { display: none; }
.rc-flag {
  font-size: 10px; font-weight: 700; padding: 0 4px; border-radius: 3px; line-height: 15px;
  background: rgba(255, 255, 255, .92); color: #1f2937; white-space: nowrap;
}
.rc-flag.dirty { background: #475569; color: #fff; }
.rc-flag.lock { background: rgba(0, 0, 0, .38); color: #fff; }
.rc-flag.due2 { background: #ffd166; color: #78350f; }
.rc-flag.ow2 { background: #b91c1c; color: #fff; }
.rc-flag.owe { background: #fff; color: #b91c1c; box-shadow: inset 0 0 0 1px #fca5a5; }
.rc-flag.dep {
  background: rgba(255, 255, 255, .75); color: #334155;
  position: relative; overflow: hidden;
}
.rc-flag.dep::after {
  content: ''; position: absolute; left: -8%; right: -8%; top: 50%; height: 1.5px;
  background: currentColor; opacity: .9; transform: translateY(-50%) rotate(22deg);
}
.rc-flag.hour { background: #7c3aed; color: #fff; }
.rc-flag.long { background: #0e7490; color: #fff; }
.rc-flag.team { background: #1d4ed8; color: #fff; }
.rc-flag.ext { background: #a16207; color: #fff; }
.rc-flag.wake { background: #fff; color: #0f766e; box-shadow: inset 0 0 0 1px #99f6e4; }
.rc-flag.allday { background: #fff; color: #475569; box-shadow: inset 0 0 0 1px #cbd5e1; }
.rc-flag.vac { background: #dbeafe; color: #1e40af; }
.rc-flag.chk { background: #dcfce7; color: #15803d; }
.rc-flag.dnd { background: #0f766e; color: #fff; }
.rc-flag.noq { background: #fff; color: #6d28d9; box-shadow: inset 0 0 0 1px #ddd6fe; }
.rc-flag.bday { background: #fce7f3; color: #9d174d; }
.hour-tag {
  display: inline-block; margin-left: 5px; padding: 0 4px; border-radius: 3px; font-size: 10px;
  font-weight: 700; color: #fff; background: #7c3aed; vertical-align: 1px;
}
.hrs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.hrs.hrs-tier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hrs.hrs-tier .btn { width: 100%; }
.hrs .btn.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 700; }
.hrs .btn.on:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.hrs .btn.tier-off { opacity: .42; text-decoration: line-through; color: #64748b; }
.hrs-other { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #111; }
.hrs-other input { width: 66px; flex: none; }
.hrs-other i { font-style: normal; color: #111; }
#roomBoard.selecting .rcard { cursor: copy; }
.rcard.sel { outline: 3px solid var(--sel); outline-offset: -3px; }
.rcard.sel::after {
  content: '✓'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; line-height: 1;
  color: var(--sel-hover); background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .3), 0 0 0 2px var(--sel);
  z-index: 3; pointer-events: none;
}
.rcard { position: relative; }
.batch-bar {
  position: sticky; top: 58px; z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
}
.batch-bar b { color: var(--danger); font-size: 15px; }
.bb-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
@media (max-width: 860px) {
  #app:has(.rooms-wrap) { height: auto; }
  main:has(.rooms-wrap) { display: block; height: auto; overflow: visible; padding: 22px 16px 40px; }
  main:has(.rooms-wrap) #view { display: block; }
  .rooms-wrap { flex-direction: column; height: auto; align-items: stretch; }
  .rooms-main { height: auto; }
  #roomBoard { overflow-y: visible; }
  .rooms-side { width: 100%; min-width: 0; max-width: none; height: auto; max-height: 380px; }
  .floor-block { flex-direction: column; gap: 6px; }
  .floor-label { width: auto; text-align: left; padding-top: 0; }
  .rooms-page { height: auto; }
  .rn-bar { flex-wrap: wrap; }
  .rn-list { flex-wrap: wrap; overflow: visible; }
  .rn-fx-wrap { max-height: none; }
}
.bars { display: flex; align-items: stretch; gap: 10px; height: 190px; padding-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar {
  width: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px;
}
.bar i { display: block; width: 100%; }
.bar i.fee { background: var(--primary); }
.bar i.chg { background: #f59e0b; }
.bar-col .d { font-size: 11px; color: var(--muted); }
.bar-col .v { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.occ-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #eef2f7; margin-bottom: 12px; }
.occ-bar i { height: 100%; }
.rs-line { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; }
.rs-line i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.rs-line b { font-size: 14px; }
.rooms-side { font-size: var(--rs-fs, 14px); }
.rooms-side .rs-title,
.rooms-side .rs-pick,
.rooms-side .rs-pick .nm,
.rooms-side .rs-pick b,
.rooms-side .rs-pick select,
.rooms-side .rs-more,
.rooms-side .rs-legend,
.rooms-side .rs-tag,
.rooms-side .rs-tag b,
.rooms-side .rs-stat,
.rooms-side .rs-type,
.rooms-side .rs-type b { font-size: calc(var(--rs-fs, 14px) - 1px); }
.rooms-side .rs-dims .rs-type .nm { font-size: calc(var(--rs-fs, 14px) - 1.5px); }
.rooms-side .rs-occ b,
.rooms-side .rs-stat b,
.rooms-side .rs-dims .rs-type b { font-size: var(--rs-fs, 14px); }
.sub-h { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; margin: 14px 0 8px; }
.lgd { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 400; }
.lgd i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 2px; }
.lgd i + i, .lgd i:not(:first-child) { margin-left: 8px; }
.up { color: var(--danger); }
.down { color: var(--ok); }
.cat-line { margin-bottom: 12px; }
.cl-h { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.cl-h i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .46); display: flex;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: mMaskIn .15s ease-out;
}
@keyframes mMaskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mBoxIn { from { opacity: 0; transform: translateY(12px) scale(.975); } to { opacity: 1; transform: none; } }
.modal {
  background: #fff; border-radius: 14px; width: 520px; max-width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .24), 0 4px 14px rgba(15, 23, 42, .1);
  animation: mBoxIn .2s cubic-bezier(.2, .8, .3, 1.15);
}
@media (prefers-reduced-motion: reduce) { .modal-mask, .modal { animation: none; } }
.modal.wide { width: 720px; }
.modal-h {
  padding: 15px 20px 14px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 15px; color: #111; letter-spacing: .2px;
  display: flex; justify-content: space-between; align-items: center; flex: none;
  background: linear-gradient(180deg, #f7f9fc, #fdfefe 92%);
}
.modal-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-b {
  padding: 18px 20px; overflow: auto; flex: 1 1 auto; min-height: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 14px;
  scrollbar-width: thin; scrollbar-color: #cbd3dd transparent;
}
.modal-b::-webkit-scrollbar { width: 9px; }
.modal-b::-webkit-scrollbar-thumb { background: #ccd4de; border-radius: 5px; border: 2px solid #fff; }
.modal-b::-webkit-scrollbar-thumb:hover { background: #b3bfcd; }
.modal-b::-webkit-scrollbar-track { background: transparent; }
.modal-b > * { flex: 1 1 100%; min-width: 0; }
.modal-b > label.f { flex: 1 1 215px; margin-bottom: 12px; }
.modal-b label.f > span { font-size: 12px; font-weight: 600; color: #111; margin-bottom: 6px; }
.modal table th { color: #111; background: #f5f8fc; font-weight: 600; }
.modal table th, .modal table td { border-bottom: 1px solid #eef1f6; }
.modal table tbody tr:hover { background: #f8fafd; }
.modal-f {
  padding: 13px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end;
  align-items: center;
  gap: 10px; flex-wrap: nowrap;
  flex: none;
  background: linear-gradient(180deg, #ffffff, #fafbfd);
}
.modal-f .foot-item {
  display: flex; align-items: center; min-width: 0; flex: 1 1 auto; margin-right: 8px;
}
.modal-f .bk-sms {
  margin-top: 0; justify-content: flex-start; gap: 6px; flex: 1 1 auto;
  white-space: nowrap;
}
.modal-f .bk-sms input { flex: none; width: 14px; height: 14px; margin: 0; }
.modal-f > .btn { flex: none; }
.modal-f.scrollx .foot-item { flex: none; }
.modal-f.scrollx { justify-content: flex-start; overflow-x: auto; }
.modal-f.scrollx::-webkit-scrollbar { height: 6px; }
.modal.cfm-modal { width: 470px; }
.modal.cfm-modal .modal-b { padding: 17px 20px 16px; }
.modal.cfm-modal .modal-f .btn { min-width: 78px; justify-content: center; }
.cfm { display: flex; align-items: flex-start; gap: 13px; width: 100%; }
.cfm-ic {
  flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; line-height: 1; font-style: normal; user-select: none;
  background: #f59e0b; box-shadow: 0 2px 6px rgba(245, 158, 11, .32);
}
.cfm-ic.danger { background: var(--sel); box-shadow: 0 2px 6px rgba(239, 83, 80, .34); }
.cfm-main { flex: 1 1 auto; min-width: 0; padding-top: 5px; }
.cfm-q { font-size: 14px; line-height: 1.7; color: #111; overflow-wrap: anywhere; }
.cfm-sub { margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e4e9f1; }
.cfm-sub p { margin: 0 0 6px; font-size: 13px; line-height: 1.75; color: #111; overflow-wrap: anywhere; }
.cfm-sub p:last-child { margin-bottom: 0; }
.cfm-sub p.cfm-warn { color: #c2410c; }
.close {
  cursor: pointer; color: #98a2b3; font-size: 19px; line-height: 1;
  width: 28px; height: 28px; margin-right: -6px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.close:hover { background: #f0f2f6; color: #111; }
.toast {
  position: fixed; right: 22px; bottom: 22px; background: #111827; color: #fff; padding: 12px 18px;
  border-radius: 8px; z-index: 200; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); font-size: 13px;
}
.toast.err { background: var(--danger); }
.empty { color: var(--muted); text-align: center; padding: 30px 0; font-size: 13px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.bill-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.bill-line.total { border: 0; font-weight: 700; font-size: 15px; padding-top: 10px; }
.bill-line.sum-blue > span:first-child, .bill-line.sum-blue > span:last-child { color: #1d6fe0; font-weight: 700; }
.bill-line.sum-blue .tag.ghost { color: #1d6fe0; border-color: #b8d0f5; }
.bill-sub { font-size: 12px; color: #111; padding: 2px 0 6px; border-bottom: 1px dashed var(--border); }
.bill-line.voided, .od-row.voided { opacity: .55; }
.bill-line.voided > span:last-child { text-decoration: line-through; }
.to-red { color: var(--danger); }
.to-green { color: #059669; }
.rd-cols { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; }
.rd-cols.rd-solo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rd-empty { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.rd-cols > .rd-col { min-width: 0; padding-right: 20px; }
.rd-cols > .rd-col.r { border-left: 1px dashed var(--border); padding-right: 0; padding-left: 20px; }
.rd-col > .rd-sec:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .rd-cols { grid-template-columns: minmax(0, 1fr); }
  .rd-cols > .rd-col { padding-right: 0; }
  .rd-cols > .rd-col.r { border-left: 0; padding-left: 0; margin-top: 12px; }
}
.rd-sec {
  border: 1px solid #e8edf3; border-radius: 12px;
  padding: 13px 16px 14px; margin-bottom: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.rd-h {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  margin-bottom: 10px; letter-spacing: .3px;
}
.rd-h::before { content: ''; flex: none; width: 3px; height: 12px; border-radius: 2px; background: var(--primary); }
.rd-tag { font-weight: 500; }
.rd-h-note { font-weight: 400; font-size: 11.5px; color: #111; letter-spacing: 0; line-height: 1.5; }
.rd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; font-size: 12.5px; }
.rd-col.r .rd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 14px; }
.rd-grid > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; min-width: 0; }
.rd-grid > div > span:first-child { color: var(--muted); flex: none; min-width: 64px; white-space: nowrap; }
.rd-grid > div > span:last-child { min-width: 0; word-break: break-word; }
.rd-grid > div.full { grid-column: 1 / -1; }
.rd-grid b { font-weight: 600; }
.rd-guest-acts { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; font-size: 12px; font-weight: 400; }
.rd-guest-acts a { color: var(--primary); cursor: pointer; white-space: nowrap; }
.guest-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.guest-chip { min-width: 0; padding: 8px 10px; border: 1px solid #e6eaf1; border-radius: 8px; background: #f8fafc; }
.guest-chip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #111; }
.guest-chip > span { display: block; margin-top: 2px; font-size: 11.5px; color: #111; opacity: .68; }
.guest-phone { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 5px; }
.guest-phone i { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11.5px; color: #111; }
.guest-phone a { flex: none; color: var(--primary); cursor: pointer; font-size: 11.5px; }
.guest-phone-in { flex: 1 1 100px; min-width: 60px; padding: 2px 5px; border: 1px solid var(--border); border-radius: 5px; font-size: 11.5px; }
.guest-phone .btn.sm { padding: 2px 6px; font-size: 11px; }
.sd-guest-acts { flex-wrap: wrap; justify-content: flex-end; }
.guest-list { max-height: 52vh; overflow: auto; }
.guest-list-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.guest-list-t th, .guest-list-t td { padding: 8px 9px; border-bottom: 1px solid #eceff4; text-align: left; white-space: nowrap; color: #111; }
.guest-list-t th { background: #f8fafc; font-weight: 600; }
.rd-mute { color: var(--muted); font-style: normal; font-size: 11.5px; margin-left: 6px; white-space: nowrap; }
.rd-phone { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.rd-phone .rd-mute { white-space: nowrap; }
.rd-phone .rd-phone-num { color: var(--text); font-size: 12.5px; }
.rd-phone-none { color: #cbd5e1; }
.rd-phone .rd-phone-none { color: #cbd5e1; }
.rd-phone-act { flex: none; color: var(--primary); cursor: pointer; font-size: 12px; }
.rd-grid > div.rd-wide { grid-column: 1 / -1; }
.rd-phone-in {
  flex: 0 1 220px; min-width: 90px; padding: 4px 8px; font-size: 12.5px;
  border: 1px solid var(--border); border-radius: 6px;
}
.rd-phone .btn.sm { padding: 3px 9px; font-size: 12px; }
.rd-sub { display: block; margin-left: 0; line-height: 1.5; }
.rd-red { color: var(--danger); font-weight: 700; }
.rd-green { color: #059669; }
.rd-st-row { display: flex; align-items: stretch; gap: 10px; }
.rd-st-row label.f { flex: 1 1 auto; min-width: 140px; margin-bottom: 0; }
.rd-st-row .btn.sm {
  flex: none; padding: 0 16px; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
}
.rd-hero {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 11px; margin-bottom: 11px; border-bottom: 1px dashed var(--border);
}
.rd-hero .rd-no { font-size: 26px; font-weight: 800; color: #111; line-height: 1; letter-spacing: .5px; }
.rd-hero-mid { flex: 1 1 auto; min-width: 0; }
.rd-hero .rd-type { display: block; font-size: 13px; font-weight: 600; color: #111; }
.rd-hero .tag { flex: none; }
.rd-grid.rd-flow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rd-fin { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.rd-fin > div {
  background: #f8fafc; border: 1px solid #eceff4; border-radius: 8px;
  padding: 8px 11px 9px; min-width: 0;
}
.rd-fin .fl { display: block; font-size: 11.5px; color: var(--muted); }
.rd-fin .fv { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; color: #111; word-break: break-word; }
.rd-fin .fv .rd-mute { margin-left: 4px; }
.rd-fin .rd-sub { margin-top: 1px; }
.rd-note-v { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.rl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.rl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rl-tabs .btn.sm { padding: 0 14px; white-space: nowrap; }
.rl-date { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #111; flex: none; white-space: nowrap; margin-left: auto; }
.rl-date > span, .rl-date .btn { flex: none; white-space: nowrap; }
.rl-date input[type="date"] { flex: none; width: 136px; padding: 4px 8px; font-size: 12.5px; border: 1px solid var(--border); border-radius: 6px; color: #111; }
.rl-cnt { font-size: 12.5px; color: #111; padding: 9px 0 4px; }
.rl-cnt b { color: #e5484d; font-weight: 700; }
.rl-sum { font-size: 12.5px; color: #111; background: #f0faf4; border: 1px solid #bbf0d0; border-radius: 8px; padding: 7px 12px; margin: 4px 0 8px; }
.rl-sum b { font-weight: 700; }
.rl-t-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.rl-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rl-t thead th { position: sticky; top: 0; background: #f6f7f9; color: #111; font-weight: 600; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rl-t tbody td { padding: 8px 12px; border-bottom: 1px solid #f0f1f3; color: #111; vertical-align: middle; }
.rl-t tbody tr:hover { background: #fafbfc; }
.rl-t .lnk.rl-room { color: #e5484d; text-decoration: underline; cursor: pointer; font-weight: 600; }
.rl-arrow { color: #111; font-style: normal; font-weight: 700; padding: 0 2px; }
.rl-tag { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 600; line-height: 1.7; }
.rl-tag.clean { background: #f0faf4; border: 1px solid #a7e8c2; color: #16794c; }
.rl-tag.block { background: #fff5f5; border: 1px solid #fecaca; color: #b91c1c; }
.rl-tag.ub { background: #eef4ff; border: 1px solid #c3d4f5; color: #1d4ed8; }
.rl-empty { font-size: 12.5px; color: #111; text-align: center; padding: 26px 0; margin: 0; }
.rd-warn {
  margin-top: 12px; padding: 9px 12px; border: 1px solid #fecaca; border-left: 3px solid #dc2626;
  background: #fff5f5; border-radius: 8px; font-size: 12.5px; line-height: 1.8; color: #111;
}
.rd-warn b { display: block; color: #b91c1c; }
.rd-warn-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 10px; margin: 3px 0; }
.rd-warn-list a { color: #b91c1c; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.rd-warn-list span { min-width: 0; word-break: break-word; }
.rd-warn i { display: block; font-style: normal; color: #111; font-size: 11.5px; margin-top: 2px; }
.rd-ordlink { color: #1d6fe0; text-decoration: underline; cursor: pointer; font-weight: 700; }
.rd-ordlink:hover { color: #1257b8; }
.rd-futnote {
  margin: 10px 0 0; padding: 8px 11px; border: 1px solid #fde68a; border-left: 3px solid #f59e0b;
  background: #fffbeb; border-radius: 8px; font-size: 12px; line-height: 1.75; color: #111;
}
.rd-futnote b { color: #92400e; }
.rd-notecard {
  margin-top: 12px; padding: 9px 12px 10px;
  border: 1px solid #e2e8f0; border-radius: 8px; background: #fcfdff;
}
.rd-notecard-h {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #111; margin-bottom: 5px; letter-spacing: .3px;
}
.rd-notecard-h::before { content: ''; flex: none; width: 3px; height: 11px; border-radius: 2px; background: var(--primary); }
.rd-notecard .rd-note-v { width: 100%; }
.rd-notecard .rd-note-edit { width: 100%; }
.rd-notecard .rd-note-txt.rd-none { color: #475569; }
.rd-note-txt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.65; word-break: break-word; min-width: 0; flex: 1 1 auto;
}
.rd-note-txt.rd-none { color: #cbd5e1; }
.rd-note-act { flex: none; color: var(--primary); cursor: pointer; font-size: 12px; }
.rd-note-act.off { color: #cbd5e1; cursor: not-allowed; }
.rd-note-edit { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-note-ta {
  width: 100%; padding: 7px 9px; font-size: 12.5px; line-height: 1.6;
  border: 1px solid var(--border); border-radius: 6px; resize: vertical;
}
.rd-note-btns { display: flex; align-items: center; gap: 8px; }
.rd-note-btns .rd-mute { margin-left: 2px; white-space: normal; }
.tag.voided { background: #f1f5f9; border-color: #cbd5e1; color: #64748b; text-decoration: none; }
.tag.amber { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.adj-log-h { margin-top: 8px; color: var(--text); font-size: 11.5px; }
.adj-log-row { font-size: 12px; }
.adj-log-row > span:first-child { color: var(--text); }
.adj-log-row i.muted { font-style: normal; margin-left: 4px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters input, .filters select { width: auto; min-width: 130px; }
.set-layout { display: flex; gap: 18px; align-items: flex-start; }
.set-nav { width: 196px; flex: none; position: sticky; top: 18px; }
.set-nav .card-b { padding: 8px; }
.set-item {
  display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text);
}
.set-item + .set-item { margin-top: 4px; }
.set-item:hover { background: var(--primary-soft); }
.set-item b { display: block; font-size: 14px; font-weight: 600; }
.set-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.set-item.active { background: var(--primary); }
.set-item.active b { color: #fff; }
.set-item.active span { color: #ffe4e3; }
.set-body { flex: 1; min-width: 0; }
@media (max-width: 800px) {
  .set-layout { flex-direction: column; }
  .set-nav { width: 100%; position: static; }
  .set-nav .card-b { display: flex; flex-wrap: wrap; gap: 6px; }
  .set-item + .set-item { margin-top: 0; }
}
.crm-stats { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 18px 0; }
.crm-stats > div {
  flex: 1 1 132px; min-width: 118px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: #f8fafc;
}
.crm-stats b { display: block; font-size: 18px; line-height: 1.3; color: var(--text); }
.crm-stats span { font-size: 12px; color: #4b5563; }
.owner-room-pick {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
  max-height: 190px; overflow: auto; padding: 10px; border: 1px solid var(--border);
  border-radius: 8px; background: #f8fafc;
}
.owner-room-pick label {
  display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 8px;
  border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; cursor: pointer;
}
.owner-room-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.owner-room-pick b { color: #111; white-space: nowrap; }
.owner-room-pick i { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11px; color: #4b5563; }
.crm-table th, .crm-table td { white-space: nowrap; }
.crm-table th { font-weight: 600; }
.modal.xl { width: 1080px; }
.modal.xxl { width: 1240px; }
.modal.ci-modal { max-height: calc(100vh - 34px); max-width: calc(100vw - 36px); }
.modal.ci-modal .modal-b { padding: 13px 18px 12px; }
.modal.ci-modal .modal-h { padding: 12px 18px 11px; }
.modal.ci-modal .modal-f { padding: 10px 18px; }
.modal.bk-modal { max-height: calc(100vh - 34px); max-width: calc(100vw - 36px); }
.modal.bk-modal .modal-b { padding: 13px 18px 12px; }
.modal.bk-modal .modal-h { padding: 12px 18px 11px; }
.modal.bk-modal .modal-f { padding: 10px 18px; }
.bk { display: grid; grid-template-columns: 356px 1fr; gap: 16px; align-items: start; }
.modal.modal-fluid .bk { grid-template-columns: minmax(380px, 32%) 1fr; }
.bk.bk-one { grid-template-columns: 1fr; }
.bk-col { border: 1px solid #eceff4; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.bk-h {
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: space-between;
}
.bk-b { padding: 12px 14px; }
.bk-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bk-lb { min-width: 60px; flex: none; white-space: nowrap; font-size: 12px; color: var(--muted); }
.bk-row > input:not([type=radio]):not([type=checkbox]), .bk-row > select, .bk-row > textarea { flex: 1; min-width: 0; }
.bk-row > textarea { resize: vertical; }
.bk-d { max-width: 130px; }
.bk-t { max-width: 92px; }
.bk-radios { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.bk-rd { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.bk-rd input { accent-color: var(--primary); }
.bk-step { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.bk-step button {
  width: 26px; height: 26px; border: 0; background: #f8fafc; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--muted);
}
.bk-step button:hover { background: var(--primary-soft); color: var(--primary); }
.bk-step input { width: 34px; height: 26px; border: 0; text-align: center; font-size: 13px; flex: none; }
.bk-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bk-chk input { accent-color: var(--primary); }
.bk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.bk-f { display: flex; flex-direction: column; gap: 4px; }
.bk-f > span { font-size: 12px; color: var(--muted); }
.bk-f input, .bk-f select { width: 100%; }
.bk-sep { margin: 14px 0 10px; border-top: 1px dashed var(--border); padding-top: 10px; font-size: 11px; color: var(--muted); }
.bk-ro {
  flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 8px;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 6px;
  font-size: 12px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.bk-st {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; flex: none;
  background: var(--primary-soft); color: var(--primary);
}
.bk-guest {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: -2px 0 12px; padding: 8px 10px; border-radius: 6px;
  background: var(--primary-soft); font-size: 12px;
}
.bk-gname { font-weight: 600; }
.bk-gph { color: var(--muted); }
.bk-gtag { background: #fff; border: 1px solid var(--primary); color: var(--primary); border-radius: 10px; padding: 0 6px; font-size: 11px; }
.bk-gco { color: var(--muted); margin-left: auto; }
.bk-sum { font-weight: 700; color: var(--primary); padding-top: 6px; font-size: 15px; }
.bk-tbwrap { max-height: 430px; overflow: auto; }
.bk-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.bk-tb th {
  position: sticky; top: 0; z-index: 1; background: #f8fafc; padding: 8px 10px; font-size: 12px;
  color: var(--muted); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 500;
}
.bk-tb td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bk-tb tr:last-child td { border-bottom: 0; }
.bk-tb th.num, .bk-tb td.num { text-align: right; }
.bk-in { width: 74px; padding: 4px 6px; font-size: 12px; text-align: right; }
.bk-in:disabled { background: #f3f4f6; color: var(--muted); cursor: not-allowed; }
.bk-pk { border-top: 1px solid var(--border); padding: 10px 14px; background: #fffbfa; }
.bk-pk-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.bk-pk-row + .bk-pk-row { margin-top: 8px; }
.bk-pk-lb { color: var(--muted); }
.bk-un { justify-content: flex-end; color: var(--muted); }
.bk-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bk-tag {
  display: inline-flex; align-items: center; gap: 4px; background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--sel-line); border-radius: 4px; padding: 2px 6px; font-size: 12px;
}
.bk-tag b { cursor: pointer; color: var(--danger); font-weight: 700; }
.bk-warn { color: var(--danger); font-weight: 700; }
.bk-sms { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.bk-sms input { accent-color: var(--primary); }
@media (max-width: 1000px) {
  .bk { grid-template-columns: 1fr; }
  .bk-tbwrap { max-height: none; }
}
.ci { font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.ci-sec { border: 1px solid #e8edf5; border-radius: 10px; background: #fff; overflow: hidden; position: relative; }
.ci-sec-h {
  display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 3px 14px;
  background: linear-gradient(180deg, #fbfcfe, #f6f9fd); border-bottom: 1px solid #eef2f8;
  font-size: 13px; font-weight: 700; color: #111; letter-spacing: .2px;
}
.ci-sec-h::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); flex: none; }
.ci-sec-n { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 400; color: #334155; }
.ci-sec-b { padding: 9px 14px 8px; }
.ci-topnote { margin-left: 6px; font-weight: 400; color: #334155; white-space: nowrap; }
.ci-grid { display: grid; gap: 10px 16px; align-items: start; }
.ci-g1 { grid-template-columns: minmax(360px, .92fr) minmax(450px, 1fr) minmax(158px, .34fr); }
.ci-g2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ci-g6 { grid-template-columns: 1fr 1fr 1.25fr 1.25fr 1.45fr 1fr; }
.ci-gext { grid-template-columns: minmax(240px, 1fr) 2.2fr; margin-top: 10px; }
.ci-fld { min-width: 0; }
.ci-lb { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #111; }
.ci-fld input:not([type=checkbox]), .ci-fld select, .ci-fld textarea,
.ci-payform select, .ci-amtbox input, .ci-cell input, .ci-cell select {
  width: 100%; height: 32px; padding: 0 9px; font-size: 12.5px; color: #111;
  border: 1px solid #d9e0ea; border-radius: 7px; background-color: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ci-fld textarea { height: auto; padding: 7px 9px; line-height: 1.6; resize: vertical; }
.ci-fld input:focus, .ci-fld select:focus, .ci-fld textarea:focus,
.ci-payform select:focus, .ci-amtbox input:focus,
.ci-cell input:focus, .ci-cell select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.ci-fld select, .ci-payform select, .ci-cell select {
  appearance: none; -webkit-appearance: none; padding-right: 24px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 10px 6px;
}
.ci-seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px; height: 32px;
  background: #f1f4f9; border: 1px solid #e6ebf3; border-radius: 8px; flex: none;
}
.ci-seg button {
  border: 0; background: transparent; height: 26px; padding: 0 12px; border-radius: 6px;
  font-size: 12.5px; font-weight: 500; color: #374151; cursor: pointer; white-space: nowrap;
  transition: background .14s, color .14s, box-shadow .14s;
}
.ci-seg button:hover { background: #e5eaf3; color: #111; }
.crm-filter { position: relative; display: block; min-width: 0; }
.crm-filter-q {
  width: 100%; height: 30px; padding: 0 26px 0 9px; font-size: 12.5px; color: #111; font-family: inherit;
  border: 1px solid #d9e0ea; border-radius: 7px; background-color: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 10px 6px;
}
.crm-filter-q:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.crm-filter-dd {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 80; display: none;
  background: #fff; border: 1px solid #d9e0ea; border-radius: 8px; padding: 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16); max-height: 232px; overflow: auto;
}
.crm-filter.open .crm-filter-dd { display: block; }
.crm-filter-it {
  padding: 6px 9px; font-size: 12.5px; color: #111; cursor: pointer; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crm-filter-it b { font-weight: 600; }
.crm-filter-it span { font-weight: 400; }
.crm-filter-it em { font-style: normal; color: #b42318; }
.crm-filter-it:hover { background: #f1f4f9; }
.crm-filter-all { border-bottom: 1px solid #eef1f6; margin-bottom: 2px; }
.crm-filter-none { padding: 8px 9px; font-size: 12px; color: #111; cursor: default; }
.crm-filter-gt { padding: 5px 9px 3px; font-size: 11px; font-weight: 700; color: #111; }
.bk-row .crm-filter { display: inline-flex; flex: none; width: 150px; margin: 0; }
.bk-row .crm-filter-q { height: 30px; }
.ci-fld .crm-filter-q { padding-right: 26px; }
.ci-inline .crm-filter { flex: 1 1 0; }
.ci-inline .crm-filter > input { width: 100%; min-width: 0; }
.bk-row .crm-filter.mb-filter { flex: none; width: 150px; }
.bk-row .crm-filter.mb-filter > input { width: 100%; }
.fld-locked { pointer-events: none; opacity: .62; }
.ci-seg button.on {
  background: linear-gradient(180deg, #f0605c, #e5484d); color: #fff;
  box-shadow: 0 1px 3px rgba(229, 72, 77, .32);
}
.ci-seg-full { display: flex; width: 100%; }
.ci-seg-full button { flex: 1 1 0; padding: 0 4px; }
.ci-range {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px;
  border: 1px solid #d9e0ea; border-radius: 7px; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ci-range:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: #fff; }
.ci-range input {
  height: 28px; padding: 0 3px; font-size: 12.5px; color: #111;
  border: 0; background: transparent; box-shadow: none;
}
.ci-range input:focus { outline: none; box-shadow: none; }
.ci-range input:disabled { color: #475569; }
.ci-date { flex: 1.35 1 0; min-width: 104px; }
.ci-time { flex: 1 1 0; min-width: 76px; }
.ci-arrow { color: #64748b; font-size: 12px; flex: none; padding: 0 2px; }
.ci-nightwrap { display: flex; align-items: center; gap: 8px; height: 32px; }
.ci-step { height: 32px; border-radius: 7px; border-color: #d9e0ea; }
.ci-step button { width: 26px; height: 30px; background: #f7f9fc; font-size: 15px; color: #475569; }
.ci-step button:hover { background: var(--primary-soft); color: var(--primary); }
.ci .ci-step input {
  width: 36px; height: 30px; padding: 0; border: 0; background: transparent;
  font-size: 13px; font-weight: 600; color: #111; text-align: center;
}
.ci .ci-step input:focus { outline: none; box-shadow: none; }
.ci-unit { font-size: 12.5px; color: #334155; flex: none; }
.ci-inline { display: flex; gap: 8px; }
.ci-inline input { flex: 1 1 0; width: auto; min-width: 0; }
.ci-inline .btn { flex: none; height: 32px; padding: 0 14px; font-size: 12.5px; }
.ci-extfld { grid-column: span 2; }
.ci-notefld { grid-column: 1 / -1; margin: 0; padding: 0; border-top: 0; }
.ci-ttag {
  margin-left: 10px; padding: 2px 9px; border-radius: 999px; vertical-align: 1px;
  background: #f1f4f9; border: 1px solid #e6ebf3;
  font-size: 12px; font-weight: 500; color: #334155; letter-spacing: 0;
}
.ci-tbwrap { overflow-x: auto; overflow-y: hidden; }
.ci-tbbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  padding: 6px 12px; border-bottom: 1px solid #e9eef6; background: #fbfcff;
}
.ci-tbbar .btn { height: 26px; padding: 0 10px; }
.ci-tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.ci-tb th {
  background: #f6f8fc; color: #111; font-weight: 600; text-align: left;
  padding: 9px 12px; border-bottom: 1px solid #e9eef6; font-size: 12px; white-space: nowrap;
}
.ci-tb td { padding: 9px 12px; border-bottom: 1px solid #f1f4f9; vertical-align: middle; }
.ci-tb tbody tr:last-child td { border-bottom: 0; }
.ci-tb tbody tr:hover td { background: #fbfcff; }
.ci-room { display: flex; flex-direction: column; gap: 2px; }
.ci-room b { font-size: 14px; font-weight: 700; color: #111; letter-spacing: .3px; line-height: 1.2; }
.ci-sub { font-size: 14px; font-weight: 700; color: #111; line-height: 1.3; }
.ci-price { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ci-price-l { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.ci-money {
  display: inline-flex; align-items: center; height: 30px; border: 1px solid #d9e0ea;
  border-radius: 7px; background: #fff; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.ci-money:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ci-money i { font-style: normal; font-size: 12px; color: #64748b; padding-left: 7px; }
.ci-money input {
  width: 62px; height: 28px; padding: 0 4px 0 1px; border: 0; background: transparent;
  font-size: 13px; font-weight: 600; color: #111;
}
.ci-money input:focus { outline: none; }
.ci-money input:disabled { background: #f3f5f9; color: #475569; cursor: not-allowed; }
.ci-std { font-size: 11.5px; color: #475569; white-space: nowrap; }
.ci-bf { display: inline-flex; align-items: center; gap: 5px; height: 30px; white-space: nowrap; flex: none; }
.ci-bf i { font-style: normal; font-size: 11.5px; color: #475569; }
.ci-bf input {
  width: 42px; height: 24px; padding: 0 2px; text-align: center;
  border: 1px solid #d9e0ea; border-radius: 5px; background: #fff;
  font-size: 12.5px; font-weight: 400; color: #111;
}
.ci-bf input:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 2px rgba(239, 83, 80, .14); }
.ci-bf em { font-style: normal; font-size: 11px; color: #475569; }
.ci-chp, .bk-chp {
  flex: none; white-space: nowrap; padding: 3px 8px; font-size: 12px; cursor: pointer;
  color: var(--primary); background: #fff; border: 1px solid var(--primary); border-radius: 6px;
}
.ci-chp:hover, .bk-chp:hover { background: var(--primary); color: #fff; }
.ci-chp:disabled, .bk-chp:disabled { opacity: .55; cursor: not-allowed; border-color: var(--border); color: #475569; background: #f8fafc; }
.ci-flag, .bk-flag {
  font-style: normal; flex: none; font-size: 11px; color: var(--primary);
  background: var(--primary-soft); border-radius: 4px; padding: 1px 5px;
}
.bk-pwrap { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.bk-pwrap .bk-in { width: 76px; }
.bk-row > .bk-plan-sel { flex: none; width: 150px; }
.bk-row > input#bkMember { flex: 1 1 auto; width: auto; min-width: 190px; }
.bk-plan-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bk-plan-hint.off { color: #c62828; }
.ci-flag.off, .bk-flag.off { color: #c62828; background: #fdeaea; }
.ci-tiers {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 10px; padding: 9px 12px;
  background: #f7f9fc; border: 1px solid #e6eaf1; border-radius: 10px;
}
.ci-tier-tip { color: #111; font-size: 13px; font-weight: 600; }
.ci-tiers .btn.tier-off { opacity: .42; text-decoration: line-through; }
.ci-tier-fee { margin-left: auto; color: #111; font-size: 13px; }
.ci-tier-fee b { color: var(--danger); font-size: 15px; margin-left: 3px; }
.pd-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.pd-in { width: 92px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 5px; font-size: 12px; }
.pd-list { max-height: 46vh; overflow: auto; border: 1px solid var(--border); border-radius: 6px; }
.pd-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.pd-row:last-child { border-bottom: 0; }
.pd-d { font-variant-numeric: tabular-nums; }
.pd-n { flex: 1; color: var(--muted); font-size: 12px; }
.pd-foot { font-size: 12px; color: var(--muted); }
.pd-foot b { color: var(--primary); font-size: 13px; margin: 0 2px; }
.ci-cell { display: flex; gap: 6px; align-items: center; }
.ci-cell input { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.ci-cell select { flex: none; width: 98px; padding: 0 22px 0 8px; font-size: 12px; }
.ci-cell input[data-idcard], .ci-cell input[data-jidcard] { flex: 0 1 150px; width: 150px; min-width: 118px; }
.ci-tb th:nth-child(3), .ci-tb th:nth-child(4),
.ci-tb td:nth-child(3), .ci-tb td:nth-child(4) { padding-left: 34px; }
.ci-ghist {
  position: fixed; z-index: 1400; display: none;
  background: #fff; border: 1px solid #d5d8de; border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .16); padding: 4px 0; max-height: 268px; overflow: auto;
}
.ci-ghist-h {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 6px 12px 7px; font-size: 12px; color: #111; border-bottom: 1px solid #eef0f3;
}
.ci-ghist-h i { font-style: normal; color: #111; opacity: .7; }
.ci-ghist-i { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; font-size: 13px; color: #111; cursor: pointer; white-space: nowrap; }
.ci-ghist-i:hover { background: #fff3e4; }
.ci-ghist-i b { font-weight: 400; min-width: 56px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: #111; }
.ci-ghist-i span { color: #111; }
.ci-ghist-i em { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-size: 12px; color: #111; opacity: .72; }
.ci-read {
  flex: none; white-space: nowrap; height: 32px; padding: 0 10px; font-size: 12px; cursor: pointer;
  color: var(--primary); background: #fff; border: 1px solid var(--primary); border-radius: 7px;
  transition: background .14s, color .14s;
}
.ci-read:hover:not(:disabled) { background: var(--primary); color: #fff; }
.ci-read:disabled { opacity: .6; cursor: progress; border-color: var(--border); color: #475569; }
.ci-owe {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 2px 0 10px; padding: 8px 10px; border-radius: 6px;
  background: var(--primary-soft); color: var(--text); font-size: 12px;
}
.ci-owe b { font-size: 15px; color: var(--primary); margin-left: 4px; }
.ci-owe.neg { background: #ecfdf5; }
.ci-owe.neg b { color: #047857; }
.ci-ops { white-space: nowrap; }
.ci-ops a {
  display: inline-flex; align-items: center; height: 24px; padding: 0 7px; margin-right: 4px;
  border-radius: 6px; font-size: 12px; color: var(--primary); cursor: pointer; text-decoration: none;
  transition: background .14s;
}
.ci-ops a:last-child { margin-right: 0; }
.ci-ops a:hover { background: var(--primary-soft); }
.ci-ops a.ci-x { color: var(--danger); }
.ci-ops a.ci-x:hover { background: #fdeaea; }
.ci-jrow > td:first-child { padding-left: 14px; }
.ci-jtag {
  display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap;
  color: var(--primary); background: var(--primary-soft);
}
.ci-sec-k { font-size: 12px; font-weight: 400; color: #334155; margin-left: 2px; }
.ci-sec-h .btn { height: 26px; padding: 0 10px; }
.ci-payb { padding: 8px 14px 9px; }
.ci-paymeta { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 8px; }
.ci-payadd {
  height: 26px; padding: 0 12px; border: 0; border-radius: 6px; cursor: pointer; flex: none;
  background: linear-gradient(180deg, #f0605c, #e5484d); color: #fff;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(229, 72, 77, .32); transition: filter .14s;
}
.ci-payadd:hover { filter: brightness(.94); }
.ci-payrows { display: flex; flex-direction: column; gap: 8px; }
.ci-payrow { display: flex; align-items: center; gap: 8px; }
.ci-payrow .ci-seg { flex: none; }
.ci-pmseg button { padding: 0 10px; }
.ci-payrow .ci-way { width: 148px; flex: none; }
.ci-payrow .ci-amtbox { flex: none; }
.ci-payrow .ci-amtbox input { width: 104px; }
.ci-del {
  height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent;
  font-size: 12.5px; color: var(--danger); cursor: pointer; transition: background .14s;
}
.ci-del:hover { background: #fdeaea; }
.ci-chip.ci-chip-sm { height: 24px; padding: 0 9px; border-radius: 7px; gap: 5px; }
.ci-chip.ci-chip-sm i { font-size: 11.5px; }
.ci-chip.ci-chip-sm b { font-size: 12.5px; }
.ci-depchips { display: flex; align-items: center; gap: 10px; flex: none; }
.ci-chip {
  display: inline-flex; align-items: baseline; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 8px; background: #f7f9fd; border: 1px solid #e8edf5;
}
.ci-chip i { font-style: normal; font-size: 12px; color: #334155; }
.ci-chip b { font-size: 14px; font-weight: 700; color: #111; }
.ci-chip:first-child b { color: var(--primary); }
.ci-payform { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 16px; border-left: 1px dashed #e6ecf5; flex-wrap: wrap; }
.ci-payform select { width: 132px; }
.ci-amtbox {
  display: inline-flex; align-items: center; height: 32px; overflow: hidden;
  border: 1px solid #d9e0ea; border-radius: 7px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ci-amtbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ci-amtbox i { font-style: normal; font-size: 12px; color: #64748b; padding-left: 9px; }
.ci-amtbox input {
  width: 118px; height: 30px; padding: 0 9px 0 3px; border: 0; background: transparent;
  font-size: 13px; font-weight: 600; color: #111;
}
.ci-amtbox input:focus { outline: none; }
.ci-receipts { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.ci-receipts:empty { display: none; }
.ci-rc {
  display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--sel-line); border-radius: 999px; padding: 3px 10px; font-size: 12px;
}
.ci-rc b { cursor: pointer; color: var(--danger); }
.ci-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-height: 320px; overflow: auto; }
.ci-pick.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; max-height: 46vh; }
.ci-pick.grid .btn {
  width: 100%; height: 40px; justify-content: flex-start; gap: 6px; padding: 0 10px;
  text-align: left; overflow: hidden; font-weight: 400; position: relative;
}
.ci-pick.grid .btn.on {
  border-color: var(--primary); background: var(--sel-soft); color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary); padding-right: 22px;
}
.ci-pick.grid .btn.on::after {
  content: '✓'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 700;
}
.ci-pick-no { font-weight: 600; flex: none; }
.ci-pick-ty { font-size: 12px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ci-pick.grid .btn.on .ci-pick-ty { color: var(--primary); }
.ci-pick-dirty {
  font-style: normal; font-size: 11px; color: #b45309; background: #fef3c7;
  border-radius: 4px; padding: 0 4px; margin-left: 2px;
}
@media (max-width: 560px) { .ci-pick.grid { grid-template-columns: 1fr; } }
.ci-foot { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #334155; white-space: nowrap; }
.ci-fi { display: inline-flex; align-items: baseline; gap: 4px; }
.ci-fi i { font-style: normal; font-size: 12px; color: #334155; }
.ci-fi b { font-size: 14px; font-weight: 700; color: #111; }
.ci-fi em { font-style: normal; font-size: 12px; color: #334155; }
.ci-sep { width: 1px; height: 12px; background: #dbe2ec; flex: none; }
.ci-ftotal { margin-left: 2px; padding: 4px 12px; border-radius: 8px; background: var(--primary-soft); gap: 6px; }
.ci-ftotal b { font-size: 18px; color: var(--primary); letter-spacing: -.2px; }
.ci-cq { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px;
  color: #334155; white-space: nowrap; cursor: pointer; }
.ci-cq input { width: 46px; height: 26px; padding: 0 6px; font-size: 12px; text-align: center;
  border: 1px solid #d9e0ea; border-radius: 6px; color: #111; }
.ci-cq input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
@media (max-width: 1040px) {
  .ci-g1 { grid-template-columns: 1fr 1fr; }
  .ci-g1 > .ci-fld:first-child { grid-column: 1 / -1; }
  .ci-g2, .ci-g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-date { width: 108px; }
}
@media (max-width: 820px) { .ci-g1, .ci-g2, .ci-g6, .ci-gext { grid-template-columns: 1fr; } }
.ci-cq input:focus { outline: none; border-color: var(--primary); }
.od { min-width: 0; }
.od-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.od-st { font-size: 12px; font-weight: 400; padding: 1px 8px; border-radius: 4px; background: #eef2ff; color: #4338ca; }
.od-st.instay { background: #ecfdf5; color: #047857; }
.od-st.done { background: #f3f4f6; color: #4b5563; }
.od-st.canceled { background: #fef2f2; color: #b91c1c; }
.od-st.noshow { background: #f3f4f6; color: #6b7280; }
.od-st.lock { background: #fef3c7; color: #b45309; }
.od-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.od-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-top: 10px; }
.od-tab {
  border: 0; background: none; padding: 7px 14px; font-size: 13px; color: #111;
  cursor: pointer; border-bottom: 2px solid transparent;
}
.od-tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.od-acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0; align-items: center; }
.od-ro-note {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  background: #f8fafc; border: 1px dashed var(--border); border-radius: 6px;
  padding: 5px 10px;
}
.od-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.od-card { border: 1px solid #eceff4; border-radius: 10px; padding: 12px 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.od-h {
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.od-h-act { align-items: flex-start; flex-wrap: wrap; }
.od-h-t { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.od-h-sum {
  font-style: normal; font-weight: 600; color: #111; padding: 2px 8px;
  border: 1px solid #e2e8f0; border-radius: 6px; background: #f7f9fc;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.od-h-sum b { color: var(--danger); font-weight: 700; }
.od-h-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.od-master {
  margin-left: 6px; font-style: normal; font-size: 10px; padding: 1px 5px;
  border-radius: 4px; background: #1d4ed8; color: #fff; font-weight: 600;
}
.od-unrow td { background: #fafafa; }
.od-edit-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.od-edit-tb th {
  text-align: left; color: var(--muted); font-weight: 400; padding: 6px 4px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.od-edit-tb td { padding: 6px 4px; border-bottom: 1px dashed var(--border); }
.od-edit-tb td.num, .od-edit-tb th.num { text-align: right; }
.od-edit-tb select { min-width: 200px; }
.od-edit-tb input[type=number] { width: 92px; text-align: right; }
.od-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.od-pick-g { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.od-pick-h { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.od-pick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.od-pick-i {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
}
.od-pick-i:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.od-pick-i.dis { opacity: .55; cursor: not-allowed; background: #f5f5f5; }
.od-pick-i.dis b { text-decoration: line-through; }
.od-kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.od-kvs > div { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.od-kvs > div > span { color: var(--muted); flex: none; min-width: 58px; white-space: nowrap; }
.od-kvs b.od-ext { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.od-row { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 1px 0; flex-wrap: wrap; }
.od-row > span:first-child { color: var(--muted); flex: none; min-width: 58px; white-space: nowrap; }
.od-guest { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin: 6px 0; background: #fafafa; }
.od-gline { display: flex; gap: 8px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.od-gline > span { color: var(--muted); }
.od-gline a, .od-row a { color: var(--primary); cursor: pointer; }
.od-row.pay-tr { background: #eff6ff; border: 1px solid #dbeafe; border-radius: 6px; padding: 5px 8px; margin: 3px 0; }
.od-row.pay-tr > span:first-child { width: 44px; }
.pay-tr-t { flex: 1 1 auto; min-width: 0; color: #111; }
.pay-tr-t b { color: #111; }
.od-row.pay-tr > b { margin-left: auto; font-size: 12.5px; }
.tag.tr-in, .tag.tr-out { font-weight: 600; color: #111; }
.tag.tr-in { background: #dbeafe; border: 1px solid #93c5fd; }
.tag.tr-out { background: #fef3c7; border: 1px solid #fbbf24; }
.tag.tr-move { background: #eef2f7; border: 1px solid #cbd5e1; color: #111; font-weight: 600; }
.tag.ha { background: rgba(229,72,77,.10); border: 1px solid rgba(229,72,77,.45); color: #e5484d; font-weight: 700; }
.bill-line.hist-adj > span:first-child,
.bill-line.hist-adj > span:last-child,
.od-row.hist-adj,
.od-row.hist-adj > b,
.od-row.hist-adj > span:first-child { color: #e5484d; }
.gb-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--border);
}
.gb-seg {
  display: inline-flex; align-items: stretch; flex: none;
  border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: #fff;
}
.gb-seg-i {
  border: 0; background: #fff; color: #111; font-family: inherit;
  font-size: 12.5px; font-weight: 500; line-height: 1; padding: 7px 14px; cursor: pointer;
}
.gb-seg-i + .gb-seg-i { border-left: 1px solid var(--border); }
.gb-seg-i:hover:not(.on) { background: #f3f4f6; }
.gb-seg-i.on { background: var(--sel, #dc2626); color: #fff; font-weight: 600; }
.gb-bar-t { margin-left: auto; font-size: 12.5px; color: #111; }
.gb-card { max-width: 1180px; }
.gb-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.gb-t th, .gb-t td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.gb-t th { background: #f8fafc; color: #111; font-weight: 600; font-size: 12.5px; }
.gb-t th.num, .gb-t td.num { text-align: right; white-space: nowrap; }
.gb-t tbody tr { cursor: pointer; }
.gb-t tbody tr:hover td { background: #f8fafc; }
.gb-t tbody tr.on td { background: #eff6ff; }
.gb-t tfoot td { font-weight: 700; color: #111; background: #f8fafc; border-top: 2px solid var(--border); border-bottom: 0; }
.gb-t td.gb-pay b { color: var(--danger); }
.gb-t td.gb-pay.gb-neg b { color: #047857; }
.gb-t .gb-room b { font-size: 13.5px; }
.gb-t .gb-room .tag { margin-left: 4px; }
.gb-g { font-size: 11.5px; color: #111; font-weight: 400; margin-top: 2px; }
.gb-pend { font-size: 12px; color: #111; }
.tag.mine { background: #eff6ff; border: 1px solid #93c5fd; color: #111; }
.bill-tr { color: #111; }
.lnk-warn {
  border: 1px solid #fbbf24; background: #fffbeb; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 12px;
}
.lnk-warn-t { font-size: 13px; font-weight: 700; color: #b91c1c; margin-bottom: 6px; }
.lnk-warn-l { font-size: 12.5px; line-height: 1.75; color: #111; }
.lnk-warn-l b { color: #111; font-weight: 700; }
.lnk-tip { font-size: 12.5px; line-height: 1.7; color: #111; margin: 10px 0 0; }
.lk-pick-wrap { margin-top: 14px; }
.lk-pick-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: #111; margin-bottom: 6px; }
.lk-pick-n { font-size: 12.5px; font-weight: 400; color: #111; }
.lk-pick { border: 1px solid var(--border); border-radius: 8px; max-height: 216px; overflow: auto; background: #fff; scrollbar-gutter: stable; }
.lk-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border-bottom: 1px solid #eef1f6; cursor: pointer; color: #111; font-size: 13px; }
.lk-row:last-child { border-bottom: 0; }
.lk-row:hover { background: #f8fafd; }
.lk-row:has(input:checked) { background: #eff6ff; }
.lk-row input { width: 15px; height: 15px; margin: 0; accent-color: #2563eb; cursor: pointer; }
.lk-no { min-width: 52px; white-space: nowrap; color: #111; font-weight: 700; }
.lk-nm { min-width: 76px; white-space: nowrap; color: #111; }
.lk-tp { flex: 1; white-space: nowrap; color: #111; }
.lk-st { white-space: nowrap; font-size: 12px; color: #111; }
.lk-st.tied { color: #b45309; font-weight: 600; }
.lk-pick-e { padding: 14px 10px; font-size: 12.5px; color: #111; text-align: center; }
.lk-tip2 { font-size: 12.5px; line-height: 1.7; color: #111; margin: 10px 0 0; }
.od-hr { border: 0; border-top: 1px dashed var(--border); margin: 8px 0; }
.od-stats { display: flex; gap: 16px; font-size: 12px; color: var(--muted); padding-bottom: 8px; flex-wrap: wrap; }
.od-stats b { color: var(--text); }
.od-total { color: var(--danger); font-size: 14px; }
.od-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.od-tb th {
  text-align: left; color: var(--muted); font-weight: 400; padding: 6px 4px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.od-tb td { padding: 6px 4px; border-bottom: 1px dashed var(--border); white-space: nowrap; }
.od-tb td.num, .od-tb th.num { text-align: right; }
.od-tip { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.kr-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #111; }
.kr-note > span { min-width: 0; }
.kr-note .btn { flex: 0 0 auto; white-space: nowrap; }
.od-log { list-style: none; padding: 0; margin: 0; }
.od-log li {
  display: grid; grid-template-columns: 132px 80px 1fr; gap: 8px;
  font-size: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border);
}
@media (max-width: 900px) { .od-cols { grid-template-columns: 1fr; } }
.pk-filters { display: flex; gap: 12px; flex-wrap: nowrap; align-items: flex-end; }
.pk-filters .f { flex: 1; min-width: 130px; margin: 0; }
.pk-filters .f:first-child { flex: 0 0 240px; }
.pk-tip { font-size: 12px; color: var(--muted); margin: 12px 0 8px; }
.pk-tip b { color: var(--primary); }
.pk-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px;
  max-height: min(46vh, 360px); overflow-y: auto; padding: 2px;
}
@media (max-width: 900px) {
  .pk-filters { flex-wrap: wrap; }
  .pk-filters .f:first-child { flex: 1 1 100%; }
}
.pk-room {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left;
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
  cursor: pointer; font: inherit; color: var(--text); position: relative;
}
.pk-room:hover:not(.dis) { border-color: var(--primary); background: var(--primary-soft); }
.pk-room b { font-size: 15px; }
.pk-room .muted { font-size: 11px; }
.pk-room .tag { font-size: 11px; padding: 1px 6px; }
.pk-room.dis { opacity: .55; cursor: not-allowed; background: #f9fafb; }
.pk-flag {
  position: absolute; top: 6px; right: 7px; font-style: normal; font-size: 10px;
  color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px;
}
.pk-room.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.pk-room .pk-flag.on { color: var(--primary); border-color: var(--primary); background: #fff; }
.pk-foot { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pk-foot b { color: var(--primary); font-size: 14px; margin: 0 2px; }
.perm-tb { width: 100%; border-collapse: collapse; }
.perm-tb th { padding: 10px 18px; font-size: 12px; color: var(--muted); text-align: left; font-weight: 500;
  background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.perm-tb th.num, .perm-tb td.num { text-align: right; }
.perm-tb td { padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.perm-tb tr:last-child td { border-bottom: 0; }
.bk-tag.dirty { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.bk-tag.dirty i { font-style: normal; font-size: 10px; border: 1px solid currentColor; border-radius: 3px; padding: 0 3px; }
.modal-mask:has(.sd) { padding: 0; }
.modal.xxl:has(.sd) {
  width: 95vw; max-width: 95vw;
  height: 95vh; max-height: 95vh;
  border: 0; border-radius: 0;
}
.modal .modal-b.sd-modal-b { padding: 0; }
.modal.xxl:has(.sd) .modal-b.sd-modal-b { overflow: hidden; }
.sd { min-width: 0; height: 100%; display: flex; flex-direction: column; padding: 18px 24px 14px; }
.sd-modal .modal-b { background: #f3f5f9; }
.modal.sd-modal .modal-h { display: none; }
.modal.sd-modal .modal-f { padding: 12px 24px; }
.modal.sd-modal .modal-f .btn {
  min-width: 132px; padding: 9px 32px; font-size: 14px; font-weight: 600;
  background: var(--sel); border-color: var(--sel); color: #fff;
  justify-content: center; text-align: center; line-height: 1.2;
}
.modal.sd-modal .modal-f .btn:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.sd-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 20px; flex-wrap: wrap; margin-bottom: 10px;
}
.sd-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sd-sub { font-size: 12.5px; color: #111; margin-left: auto; text-align: right; min-width: 0; }
.sd-x {
  flex: none; border: 0; background: none; cursor: pointer; font: inherit;
  width: 28px; height: 28px; border-radius: 8px; color: #98a2b3;
  font-size: 18px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.sd-x:hover { color: #111; background: #f0f2f6; }
.sd-sum {
  display: flex; align-items: stretch; margin: 10px 0 12px;
  border: 1px solid #e6eaf1; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.sd-si { padding: 9px 16px; border-right: 1px solid #eef1f6; flex: 1 1 auto; min-width: 0; }
.sd-si > span { display: block; font-size: 11.5px; color: #111; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-tag {
  font-style: normal; font-size: 10px; font-weight: 600; color: #111;
  border: 1px solid #94a3b8; border-radius: 3px; padding: 0 3px; margin-left: 4px; vertical-align: 1px;
}
.sd-si > b {
  display: block; font-size: 15px; font-weight: 700; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.sd-si > em {
  display: block; font-style: normal; font-size: 11.5px; color: #111; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-si.sd-remark { flex: 2 1 200px; }
.sd-si.sd-remark > b { font-weight: 400; font-size: 12.5px; }
.sd-si > em a, .sd-si a { color: var(--primary); cursor: pointer; font-style: normal; margin-left: 6px; }
.sd-si.sd-auth > b { color: #b45309; }
.sd-fix {
  flex: none; position: relative; z-index: 6;
  margin: 0 -26px; padding: 10px 26px 10px;
  background: #fff; border-bottom: 1px solid transparent;
  transition: box-shadow .15s;
}
.sd-fix .sd-sum { margin: 0 0 2px; }
.sd-fix .od-tabs { margin-top: 2px; }
.sd-fix .sd-acts { margin: 8px 0 0; }
.sd-fix.stuck { border-bottom-color: var(--border); box-shadow: 0 10px 12px -12px rgba(15, 23, 42, .45); }
.sd-mfix { flex: none; background: #fff; border-bottom: 1px solid var(--border); }
.sd-mfix .od-tabs { margin-top: 2px; }
.sd-mfix .sd-acts { margin: 8px 0; justify-content: flex-end; border-bottom: 0; }
.od-h-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ae-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.ae-t {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  text-align: left; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s;
}
.ae-t span { font-size: 11px; font-weight: 400; color: var(--muted); }
.ae-t:hover { border-color: var(--sel-line); }
.ae-t.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.ae-t.on span { color: var(--primary); }
.ae-ar-tip {
  margin: 8px 0 8px; padding: 9px 12px; border-radius: 9px;
  background: #eff6ff; border: 1px solid #dbeafe; color: #111;
  font-size: 12px; line-height: 1.65;
}
.ae-ar-tip b { color: #1d4ed8; }
@media (max-width: 640px) { .ae-seg { grid-template-columns: 1fr; } }
.sd-bal {
  flex: none; background: var(--danger); color: #fff; padding: 8px 18px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 2px;
}
.sd-bal > span { font-size: 11.5px; opacity: .92; }
.sd-bal > b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.sd-bal.neg { background: #047857; }
.sd-acts {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 9px 12px; background: #f8fafc; border: 1px solid #e6eaf1;
  border-radius: 10px; margin-bottom: 12px;
}
.sd-sep { width: 1px; height: 18px; background: #dbe1ea; margin: 0 4px; }
.sd-layout { flex: 1 1 auto; min-height: 0; display: flex; gap: 16px; margin-top: 12px; }
.sd-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.sd-body { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #cbd3dd transparent; }
.sd-body::-webkit-scrollbar { width: 9px; }
.sd-body::-webkit-scrollbar-thumb { background: #ccd4de; border-radius: 5px; border: 2px solid #f3f5f9; }
.sd-body::-webkit-scrollbar-track { background: transparent; }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sd-side {
  flex: none; width: 216px; min-height: 0;
  display: flex; flex-direction: column;
  border: 1px solid #e6eaf1; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.sd-side-h { padding: 10px 12px; font-size: 12.5px; color: #111; font-weight: 500; background: #f8fafc; border-bottom: 1px solid #eef1f6; }
.sd-side-h b { color: var(--text); }
.sd-rooms { flex: 1 1 auto; min-height: 0; overflow: auto; }
.sd-rm {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  border: 0; border-bottom: 1px dashed var(--border); background: #fff;
  padding: 9px 12px; cursor: pointer; font: inherit; color: var(--text);
}
.sd-rm:last-child { border-bottom: 0; }
.sd-rm:hover { background: #f8fafc; }
.sd-rm.on { background: #fff7ed; box-shadow: inset 3px 0 0 #f97316; }
.sd-rm-top { display: flex; align-items: center; gap: 6px; }
.sd-rm-top b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sd-rm-top .tag { font-size: 10.5px; padding: 0 5px; }
.sd-rm.master:not(.on) { box-shadow: inset 3px 0 0 #1d4ed8; }
.tag.master { background: #1d4ed8; color: #fff; font-weight: 600; }
.sd-rm-g { font-size: 12.5px; color: #111; }
.sd-rm-a { font-size: 12.5px; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }
.sd-rm-a.neg { color: #047857; }
.sd-rm-a-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 18px; }
.sd-mk {
  flex: none; font-size: 11px; line-height: 1; color: #fff; background: #1d4ed8;
  border-radius: 5px; padding: 3px 7px; cursor: pointer; white-space: nowrap; user-select: none;
}
.sd-mk:hover { background: #1e40af; }
.sd-mk:active { transform: translateY(1px); }
.sd-mkbox { display: flex; flex-direction: column; gap: 6px; }
.sd-mkbox > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; border: 1px solid #e6eaf1; border-radius: 8px; background: #fbfcfe; }
.sd-mkbox > div > span { font-size: 12.5px; color: #111; }
.sd-mkbox > div > b { font-size: 13px; color: #111; font-weight: 700; }
.co-kind.sd-mk-kind { grid-template-columns: 1fr; gap: 8px; margin: 10px 0 0; }
.sd-mk-kind .co-kind-i { padding: 9px 11px; }
.sd-mk-kind .co-kind-i > span { flex: 1; min-width: 0; }
.sd-mk-kind .co-kind-i b { white-space: normal; font-size: 12.5px; }
.sd-mk-kind .co-kind-i em { margin-top: 2px; font-size: 11px; line-height: 1.5; }
.sd-mk-kind .co-kind-i.off { background: #f6f7f9; border-style: dashed; cursor: not-allowed; }
.sd-mk-sum { font-weight: 700; color: #e5484d; }
.sd-side-f { padding: 9px 12px; font-size: 11.5px; color: #111; background: #fbfcfd; border-top: 1px solid var(--border); line-height: 1.5; }
@media (max-height: 820px) {
  .sd-side-h { padding: 7px 11px; font-size: 12px; }
  .sd-rm { padding: 6px 11px; gap: 1px; }
  .sd-rm-top b { font-size: 14px; }
  .sd-rm-g, .sd-rm-a { font-size: 12px; }
  .sd-side-f { padding: 6px 11px; font-size: 11px; line-height: 1.45; }
}
.sd-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sd-card.sd-grow { flex: 1 1 auto; }
.sd-card { border: 1px solid #e6eaf1; border-radius: 12px; background: #fff; padding: 13px 16px; box-shadow: 0 1px 3px rgba(16, 24, 40, .05); }
.sd-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13.5px; font-weight: 700; padding-bottom: 9px; border-bottom: 1px solid #eef1f6; margin-bottom: 11px;
  position: relative; padding-left: 12px;
}
.sd-h::before {
  content: ''; position: absolute; left: 0; top: 1px; bottom: 10px;
  width: 4px; border-radius: 2px; background: var(--primary);
}
.sd-h-acts { display: flex; gap: 10px; font-weight: 400; font-size: 12.5px; }
.sd-h-acts a, .sd-kv a { color: var(--primary); cursor: pointer; }
.sd-kv a { white-space: nowrap; margin-left: 6px; }
.sd-kv { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px minmax(0, 1fr); gap: 10px 14px; font-size: 13.5px; }
.sd-kv > div { grid-column: span 2; display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.sd-kv > div > span:first-child { color: #111; font-weight: 500; flex: none; width: 72px; }
.sd-kv .full { grid-column: 1 / -1; }
.sd-none { color: #111; opacity: .45; }
.sd-mask { letter-spacing: .6px; font-variant-numeric: tabular-nums; }
.sd-muted { color: #111; opacity: .72; font-style: normal; }
.sd-red { color: var(--danger); }
.sd-plan {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e6eaf1;
  font-size: 12px; color: #111; line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.sd-set { display: flex; flex-direction: column; gap: 9px; align-items: stretch; }
.sd-f { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.sd-f > span { color: #111; font-weight: 500; flex: none; width: 72px; }
.sd-f > input, .sd-f > textarea { flex: 1 1 auto; min-width: 0; padding: 6px 9px; font-size: 13px; resize: vertical; }
.sd-checks { display: flex; gap: 14px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.sd-chk { display: flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.sd-tip { font-size: 12.5px; color: #111; margin: 0; }
.sd-set > .btn { align-self: flex-start; }
.inv-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e6eaf1; margin-bottom: 16px; }
.inv-tab {
  border: 0; background: none; padding: 7px 14px; font-size: 13px; color: #111;
  cursor: pointer; border-bottom: 2px solid transparent;
}
.inv-tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.inv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.inv-lb { flex: none; width: 118px; text-align: right; font-size: 13px; color: #111; white-space: nowrap; }
.inv-lb i, .inv-f i { color: #e02e2e; font-style: normal; margin-right: 2px; }
.inv-grow { display: flex; flex: 1 1 auto; gap: 10px; align-items: center; min-width: 0; }
.inv-grow input { flex: 1 1 auto; min-width: 0; padding: 7px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; }
.inv-row select { width: 200px; padding: 7px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.inv-seg { display: inline-flex; gap: 8px; }
.inv-seg button {
  padding: 7px 16px; font-size: 13px; background: #fff; color: #111;
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.inv-seg button.on { color: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); font-weight: 600; }
.inv-money { flex-wrap: nowrap; }
.inv-f { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.inv-f > span { color: #111; white-space: nowrap; }
.inv-f input { width: 150px; padding: 7px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; }
.inv-f b { font-size: 14px; }
.inv-red { color: #e02e2e; }
.inv-blue { color: var(--primary); }
.inv-recs { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.inv-recs th, .inv-recs td { padding: 7px 9px; border-bottom: 1px solid #eceff4; text-align: center; white-space: nowrap; color: #111; }
.inv-recs th { background: #f8fafc; font-weight: 600; }
.inv-recs td.tl, .inv-recs th.tl { text-align: left; white-space: normal; overflow-wrap: anywhere; min-width: 160px; }
.inv-recs tr.voided td { color: #94a3b8; text-decoration: line-through; }
.inv-recs tr.voided td .tag { text-decoration: none; }
.inv-st-issued { background: #e8f7ee; color: #167c3d; }
.inv-st-pending { background: #fff4e5; color: #b25e00; }
.inv-st-void { background: #f1f5f9; color: #64748b; }
.inv-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 0 54px; }
.inv-empty p { margin: 0; font-size: 13px; color: #9aa4b2; }
.inv-tip { font-size: 12.5px; color: #111; margin: 12px 0 0; line-height: 1.6; }
@media (max-width: 1040px) {
  .sd-grid { grid-template-columns: 1fr; }
  .sd-sum { flex-wrap: wrap; }
  .sd-bal { width: 100%; align-items: flex-start; }
  .modal.xxl:has(.sd) .modal-b.sd-modal-b { overflow: auto; }
  .sd { display: block; }
  .sd-layout { flex-direction: column; }
  .sd-main { display: block; }
  .sd-side { width: 100%; display: block; }
  .sd-rooms { max-height: 40vh; }
  .sd-body { overflow: visible; }
}
.audit-tasks th { white-space: nowrap; }
.audit-tasks td:nth-child(1), .audit-tasks td:nth-child(3), .audit-tasks td:nth-child(4) { white-space: nowrap; }
.late-box { border: 1px solid var(--warn); border-radius: 8px; background: rgba(245, 158, 11, .08); padding: 12px 14px; margin-bottom: 12px; }
.late-box .lb-t { font-size: 13px; font-weight: 400; color: #b45309; margin-bottom: 6px; }
.late-box.need-pick { border: 2px solid var(--danger, #ef5350); background: #fdecec; animation: lb-pick-pulse 1.5s ease-in-out 2; }
.late-box.need-pick .lb-t { font-size: 14px; color: #b91c1c; margin-bottom: 8px; }
.late-box.need-pick .lb-opt { border-color: #f0b4b2; }
.late-box.need-pick .lb-opt:hover { border-color: var(--danger, #ef5350); background: #fff6f6; }
@keyframes lb-pick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 83, 80, 0); }
  45% { box-shadow: 0 0 0 5px rgba(239, 83, 80, .14); }
}
.lb-req { display: inline-block; margin-left: 8px; padding: 1px 7px; font-size: 11px; font-style: normal;
  color: #fff; background: var(--danger, #ef5350); border-radius: 3px; vertical-align: 1px; }
.late-box.picked { border-color: #e2b6b4; background: #fffaf9; }
.late-box.picked .lb-t { color: #111; }
.late-box.picked .lb-opt { border-color: #e8dcdb; }
.late-box .lb-r { margin: 0 0 10px; padding-left: 18px; font-size: 12px; color: #111; line-height: 1.7; }
.lb-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.lb-scope-lb { font-size: 14px; font-weight: 700; color: #111; white-space: nowrap; }
.lb-opt-s { display: inline-flex; align-items: center; padding: 8px 18px; font-size: 14px; font-weight: 600; color: #111; background: #fff; border: 1px solid #d7dbe0; border-radius: 6px; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.lb-opt-s input { display: none; }
.lb-opt-s:hover { border-color: var(--danger); color: var(--danger); }
.lb-opt-s:has(input:checked) { background: var(--danger); border-color: var(--danger); color: #fff; }
.lb-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.lb-opt { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; padding: 8px 10px; cursor: pointer; font-size: 13px; }
.lb-opt:has(input:checked) { border-color: var(--danger); background: #fdecec; }
.lb-opt input { margin-right: 6px; vertical-align: -1px; }
.lb-opt em { font-style: normal; font-size: 11px; color: #111; }
.lb-opt input[type=number] { width: 84px; }
.lb-opt-hour { grid-column: span 2; }
.lb-opt-stay { border-color: #f0b4b2; background: #fffaf9; }
.exd-warn { border: 1px solid var(--danger, #ef5350); background: #fdecec; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.exd-warn-t { font-size: 14px; font-weight: 400; color: #b91c1c; margin-bottom: 6px; }
.exd-warn .lb-r { margin: 0; padding-left: 18px; font-size: 12px; color: #111; line-height: 1.7; }
.exd-tip { font-size: 13px; color: #111; background: #ffedcf; border: 1px solid #fa6d01; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; line-height: 1.7; }
.exd-tip b { color: #b91c1c; font-weight: 400; font-size: 16px; }
.exd-sum { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; font-size: 14px; color: #111; display: flex; align-items: baseline; gap: 8px; }
.exd-sum b { font-size: 22px; color: #b91c1c; font-weight: 400; }
.exd-sum i { font-style: normal; font-size: 12px; color: #111; }
.lb-opt .lb-hf { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 4px; }
.lb-opt .lb-hf-l { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.lb-opt .lb-hf-l b { color: var(--text); font-weight: 600; }
.lb-opt select {
  padding: 2px 4px; font-size: 11.5px; color: var(--text);
  border: 1px solid var(--border); border-radius: 5px; background: #fff;
}
.lb-opt .lb-hf input[type=number] { width: 92px; margin: 0; font-size: 11.5px; padding: 2px 5px;
  border: 1px solid var(--border); border-radius: 5px; }
.co-sum { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 8px; }
.co-sum .bill-line { border: 0; padding: 2px 0; }
.co-lock {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 6px;
  background: #fff8e6; border: 1px solid #f3cf8a; border-left: 3px solid #fa6d01;
  color: #111; font-size: 12.5px; line-height: 1.7; font-weight: 400;
}
.co-lock-t { font-size: 12px; color: #b45309; margin-bottom: 3px; letter-spacing: .3px; }
.co-lock-l { color: #111; }
.bill-line.pend { background: #fffaf0; }
.bill-line.pend > span:first-child { color: #92400e; }
.tag.pend { background: #fff2d8; color: #92400e; border: 1px solid #f0c98a; }
.bill-sub.lock { color: #111; }
.co-head {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px;
  background: var(--primary-soft); border: 1px solid #dbe6ff; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 14px;
}
.co-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-cell i { font-style: normal; font-size: 12px; color: var(--muted); }
.co-cell b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-full { margin-bottom: 14px; }
.co-full .late-box { margin-bottom: 0; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.co-grid > .co-col { min-width: 0; padding-right: 22px; }
.co-grid > .co-col.r { border-left: 1px dashed var(--border); padding-right: 0; padding-left: 22px; }
.co-t { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .5px; margin: 0 0 6px; }
.co-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.co-note b { color: var(--text); }
.co-zero {
  margin: 12px 0 10px; padding: 10px 12px; font-size: 13px; line-height: 1.7; color: #111;
  background: #f1f8f2; border: 1px solid #cfe8d4; border-left: 3px solid #16a34a; border-radius: 6px;
}
.co-zero b { color: #111; }
.co-short {
  margin: 10px 0 0; padding: 9px 12px; font-size: 13px; line-height: 1.7; color: #111;
  background: #fff5f5; border: 1px solid #fecaca; border-left: 3px solid #dc2626; border-radius: 6px;
}
.co-short b { color: #b91c1c; }
.co-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.co-kind-i {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
}
.co-kind-i.on { border-color: var(--primary); background: rgba(37, 99, 235, .06); }
.co-kind-i input { margin: 3px 0 0; flex: none; }
.co-kind-i b { display: block; font-size: 13px; font-weight: 700; color: #111; white-space: nowrap; }
.co-kind-i em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; line-height: 1.55; color: #111; }
@media (max-width: 640px) { .co-kind { grid-template-columns: 1fr; } }
.co-multi { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 4px; }
.co-multi-i { display: inline-flex; align-items: center; gap: 6px; color: #111; white-space: nowrap; font-size: 13px; }
.co-multi-i input { margin: 0; flex: none; }
.warn-t { color: var(--warn); font-weight: 600; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.modal:has(.ci),
.modal:has(.bk),
.modal:has(.pk),
.modal:has(.sd),
.modal:has(.pd-list),
.modal:has(.rd-cols),
.set-layout {
  --primary: var(--sel);
  --primary-soft: var(--sel-soft);
}
.modal:has(.ci) .btn.primary:hover,
.modal:has(.bk) .btn.primary:hover,
.modal:has(.pk) .btn.primary:hover,
.modal:has(.sd) .btn.primary:hover,
.modal:has(.pd-list) .btn.primary:hover,
.modal:has(.rd-cols) .btn.primary:hover,
.set-layout .btn.primary:hover {
  background: var(--sel-hover); border-color: var(--sel-hover);
}
.set-layout input[type=checkbox],
.set-layout input[type=radio] { accent-color: var(--sel); }
.modal:has(.perm-grp) { --primary: var(--sel); --primary-soft: var(--sel-soft); }
.modal:has(.perm-grp) .btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.modal:has(.perm-grp) input[type=checkbox] { accent-color: var(--sel); }
.perm-grp { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.perm-grp-h {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--primary-soft); border-bottom: 1px solid var(--border); font-size: 13px;
}
.perm-grp-h .perm-a { margin-left: auto; font-size: 12px; color: var(--primary); text-decoration: none; }
.perm-grp-h .perm-a + .perm-a { margin-left: 0; }
.perm-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line, var(--border)); font-size: 13px; }
.perm-row:last-child { border-bottom: 0; }
.perm-row.entry { background: #fff6f6; }
.perm-row .muted { font-size: 12px; }
.emp-hd { gap: 16px; flex-wrap: wrap; }
.emp-tabs { display: flex; align-items: center; gap: 4px; }
.emp-tab {
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
  padding: 6px 14px; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--muted);
}
.emp-tab:hover { background: var(--primary-soft); color: var(--primary); }
.emp-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.emp-tab.active:hover { background: var(--sel-hover); border-color: var(--sel-hover); color: #fff; }
.wh-page,
.modal.wh-modal {
  --primary: var(--sel);
  --primary-soft: var(--sel-soft);
}
.wh-page a,
.modal.wh-modal a { color: var(--sel); }
.wh-page .btn.primary:hover,
.modal.wh-modal .btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.wh-page input[type=checkbox], .wh-page input[type=radio],
.modal.wh-modal input[type=checkbox], .modal.wh-modal input[type=radio] { accent-color: var(--sel); }
.stk-top { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.stk-top .f { flex: 1; min-width: 200px; }
.stk-top .f span { white-space: nowrap; }
.stk-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px; max-height: 420px; overflow: auto; padding: 2px;
}
.stk-it {
  display: flex; align-items: center; gap: 8px; color: #111;
  border: 1px solid var(--border); border-radius: 4px; padding: 7px 9px; cursor: pointer;
}
.stk-it:hover { border-color: var(--sel); }
.stk-it input { flex: none; }
.stk-it .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-it .m { margin-left: auto; font-size: 12px; color: #111; white-space: nowrap; }
.stk-it.on { border-color: var(--sel); background: var(--sel-soft); }
.modal.wh-modal .modal-f .foot-item { font-size: 13px; color: #111; white-space: nowrap; }
.wh-page [data-whpane] { transition: border-color .15s, box-shadow .15s, color .15s; }
.wh-page [data-whpane]:hover {
  border-color: var(--sel); color: var(--sel);
  box-shadow: 0 2px 10px rgba(239, 83, 80, .16);
}
.ci-block {
  display: flex; gap: 12px; align-items: flex-start; line-height: 1.9;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--primary-soft);
}
.ci-block.warn { background: #fff7ed; border-color: #fed7aa; }
.ci-block p { margin: 0; }
.ci-block-i {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 700; text-align: center; line-height: 24px;
}
.ci-block.warn .ci-block-i { background: var(--warn); }
.ci-block-sub { margin-top: 6px !important; font-size: 12px; color: #475569; }
.audit-log { table-layout: auto; }
.audit-log th, .audit-log td { white-space: nowrap; }
.audit-log tbody tr:hover { background: #f8fafc; }
.tag.ghost.opt-tag.off { background: #f6f7f9; color: #9aa4b2; text-decoration: line-through; }
.scope-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.scope-pick .sp {
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text); font-size: 13px; cursor: pointer; user-select: none;
}
.scope-pick .sp:hover { border-color: var(--primary); color: var(--primary); }
.scope-pick .sp.on {
  border-color: var(--primary); background: var(--primary-soft, #eef4ff);
  color: var(--primary); font-weight: 600;
}
.drillable { cursor: pointer; }
.drillable:hover { background: #f5f6f8; }
.kpi.drillable:hover { box-shadow: 0 2px 10px rgba(15, 23, 42, .08); }
.kpi .dr-i { color: var(--sel); font-weight: 700; }
.dr-sub { color: var(--sel-hover); font-weight: 700; }
.dr-sub:hover { text-decoration: underline; }
tr.drillable td, tr.drillable td b { color: var(--sel-hover); font-weight: 600; }
tr.drillable:hover td { color: var(--sel); }
.cat-line.drillable { border-radius: 8px; padding: 4px 6px; margin: 0 -6px; color: var(--sel-hover); font-weight: 600; }
.cat-line.drillable:hover { background: #f5f6f8; color: var(--sel); }
.modal:has(.drill) { --primary: var(--sel); --primary-soft: var(--sel-soft); }
.modal:has(.drill) .btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.dr-num {
  font: inherit; font-weight: 700; color: var(--sel-hover);
  background: transparent; border: 0; border-radius: 0;
  padding: 0; margin: 0; cursor: pointer; white-space: nowrap;
}
.dr-num:hover { text-decoration: underline; }
.dr-num:focus-visible { outline: 2px solid var(--sel-line); outline-offset: 2px; }
.dr-num.no { font-weight: 700; font-size: 12.5px; letter-spacing: .2px; }
.dr-num.total { font-weight: 700; }
.dr-act {
  background: transparent; border: 1px solid var(--sel-line); color: var(--sel-hover);
  padding: 7px 18px; font-size: 13px; font-weight: 600; border-radius: 8px;
  min-width: 76px;
}
.dr-act:hover { background: transparent; border-color: var(--sel); color: var(--sel); box-shadow: 0 1px 6px rgba(239, 83, 80, .16); }
.dr-act:active { transform: translateY(1px); }
.drill .dl-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0 0 10px; font-size: 12px;
}
.rp-back { background: #f2f3f5; border: 1px solid #e2e4e8; color: #1f2937; padding: 6px 14px; font-weight: 600; }
.rp-back:hover { background: #e9ebee; }
.drill .dl-wrap { max-height: min(52vh, 470px); overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.drill table { width: 100%; border-collapse: collapse; font-size: 13px; }
.drill thead th {
  position: sticky; top: 0; z-index: 1; background: #fafbfc;
  color: var(--text); font-weight: 600; text-align: left; padding: 9px 10px; white-space: nowrap;
}
.drill tbody td { padding: 8px 10px; border-top: 1px solid var(--border); }
.drill tbody tr:hover { background: #f5f6f8; }
.drill .dl-sum {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px;
  margin-top: 10px; padding: 10px 2px 2px; font-size: 13px;
  background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0;
}
.drill .dl-sum b { color: var(--sel-hover); }
.drill .dl-sum b.big { font-size: 16px; }
.drill .dl-sum .fc { background: #fff1f0; border-radius: 6px; padding: 2px 9px; box-shadow: inset 0 0 0 1px #fbd5d5; }
.drill .dl-sum .fc b { font-weight: 900; }
.drill table td .btn { white-space: nowrap; }
.drill tbody td b, .drill thead th { white-space: nowrap; }
.drill .empty { padding: 26px; text-align: center; color: var(--muted); }
.tb-main.drillable { border-radius: 10px; }
.tb-main.drillable:hover { background: #f5f6f8; }
.bar-col.drillable:hover .bar { filter: brightness(1.08); }
.meet-board { padding: 14px 16px 18px; }
.meet-ruler { position: relative; height: 18px; margin-left: 132px; margin-bottom: 2px; }
.meet-ruler span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.meet-row { display: flex; align-items: stretch; margin-bottom: 6px; }
.meet-rm { width: 132px; flex: none; display: flex; flex-direction: column; justify-content: center;
  padding: 6px 10px; border-right: 1px solid var(--border); }
.meet-rm b { font-size: 13px; }
.meet-rm i { font-style: normal; font-size: 11px; color: var(--muted); }
.meet-lane { position: relative; flex: 1; min-height: 44px; height: 44px;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(100%/16 - 1px), var(--border) calc(100%/16 - 1px), var(--border) calc(100%/16)); }
.meet-block { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; padding: 3px 8px;
  overflow: hidden; cursor: pointer; font-size: 12px; line-height: 1.3; display: flex; flex-direction: column; justify-content: center; }
.meet-block b { font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.meet-block span { font-size: 11px; opacity: .85; white-space: nowrap; }
.meet-block.reserved { background: var(--primary-soft, #e8f0fe); color: var(--primary); border: 1px solid var(--primary); }
.meet-block.occupied { background: #e7f6ec; color: #1a7f37; border: 1px solid #1a7f37; }
.meet-block.ghost { background: var(--bg, #f2f3f5); color: var(--muted); border: 1px dashed var(--border); }
.meet-block.maintenance { background: #fdecec; color: var(--danger, #c0392b); border: 1px solid var(--danger, #c0392b); text-decoration: line-through; }
.meet-lane:hover { background-color: var(--sel-hover, rgba(0,0,0,.02)); }
.biz-mask {
  position: fixed; inset: 0; z-index: 500;
  background: linear-gradient(160deg, #1e293b 0%, #334155 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.biz-wrap {
  width: 780px; max-width: 94vw; background: #fff; border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35); padding: 36px 34px 28px; text-align: center;
}
.biz-title { font-size: 22px; font-weight: 600; color: #1f2937; }
.biz-sub { font-size: 13px; color: #6b7280; margin-top: 8px; }
.biz-cards { display: flex; gap: 16px; margin-top: 26px; }
.biz-card {
  flex: 1 1 0; min-width: 0; background: #eff4ff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 26px 8px 20px; cursor: pointer; transition: all .18s;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(37, 99, 235, .22); border-color: #93b4f5; }
.biz-ico { font-size: 44px; line-height: 1; }
.biz-nm { font-size: 17px; font-weight: 400; color: #1f2937; margin-top: 14px; white-space: nowrap; }
.biz-desc { font-size: 12px; color: #6b7280; margin-top: 6px; white-space: nowrap; }
.biz-go { font-size: 13px; font-weight: 400; color: #2563eb; margin-top: 16px; white-space: nowrap; }
.biz-tip { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 18px; }
.shift-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.shift-card {
  flex: 1 1 150px; min-width: 150px; background: #eff4ff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 22px 16px 18px; cursor: pointer; transition: all .18s; text-align: center;
}
.shift-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(37, 99, 235, .2); border-color: #93b4f5; }
.shift-card.cur { border-color: #2563eb; background: #e2ecff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .18); }
.shift-card.picked { border-color: #2563eb; background: #dbe7ff; }
.shift-nm { font-size: 17px; font-weight: 700; color: #1f2937; }
.shift-tm { font-size: 13px; color: #6b7280; margin-top: 8px; font-variant-numeric: tabular-nums; }
.shift-go { font-size: 12px; font-weight: 600; color: #2563eb; margin-top: 14px; }
.shift-card.cur .shift-go { color: #1d4ed8; }
.shift-row {
  display: grid; grid-template-columns: 150px 200px 64px 1fr; align-items: center; gap: 10px;
  padding: 9px 10px; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.shift-row:last-child { border-bottom: 0; }
.shift-row .nm { font-weight: 600; }
.shift-row .tm { color: var(--muted); font-variant-numeric: tabular-nums; }
.shift-row.off { opacity: .55; }
.shift-row .ops { display: flex; gap: 10px; justify-content: flex-end; }
.shift-row .ops b { cursor: pointer; color: var(--muted); }
.shift-row .ops b.del { color: var(--danger); }
.tf-h {
  margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.tf-tb { width: 100%; }
.tf-tb th, .tf-tb td { padding: 5px 8px; }
.tf-tb tbody tr:first-child td:first-child { color: var(--muted); }
.tf-tb input[type="number"] { width: 96px; text-align: right; }
.tf-tb .tf-sub { font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn.sel { background: var(--sel); border-color: var(--sel); color: #fff; }
.btn.sel:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.modal:has(.tm-new) { --primary: var(--sel); --primary-soft: var(--sel-soft); }
.modal:has(.tm-new) .btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.modal:has(.tm-new) input[type=checkbox],
.modal:has(.tm-new) input[type=radio] { accent-color: var(--sel); }
.modal:has(.tm-detail) { --primary: var(--sel); --primary-soft: var(--sel-soft); }
.modal:has(.tm-detail) .btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.btn.sel-deep { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sel-deep:hover { background: #b91c1c; border-color: #b91c1c; }
.modal:has(.red-scope) { --primary: var(--sel); --primary-soft: var(--sel-soft); }
.modal:has(.red-scope) .btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.modal:has(.red-scope) input[type=checkbox],
.modal:has(.red-scope) input[type=radio] { accent-color: var(--sel); }
.tm-page { --primary: var(--sel); --primary-soft: var(--sel-soft); }
.tm-page .btn.qk.on:hover,
.tm-page .emp-tab.active:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.tm-page .emp-tab:hover { background: var(--sel-soft); color: var(--sel); }
.tm-page .btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.tm-page input[type=checkbox], .tm-page input[type=radio] { accent-color: var(--sel); }
.btn.blue { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.blue:hover { background: #1d4ed8; border-color: #1d4ed8; }
.tm-roomcell { white-space: nowrap; }
.tm-rno { display: flex; align-items: baseline; gap: 6px; }
.tm-gname { font-size: 12px; font-weight: 500; color: var(--text); max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.tm-gmore { padding: 1px 7px; font-size: 11px; line-height: 1.6; border-radius: 999px; }
.tm-tel { width: 116px; margin-top: 4px; padding: 3px 6px; font-size: 12px; border-radius: 5px; }
.tm-telro { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tm-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tm-bar .muted { font-size: 12px; }
.mt-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #111; margin-bottom: 5px; }
.mt-h .muted { font-size: 12px; color: #111; }
.mt-stay { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border: 1px solid #bbf7d0;
  background: #f0fdf4; border-radius: 8px; padding: 7px 10px; font-size: 13px; color: #111; }
.mt-stay b { color: #15803d; }
.mt-stay .muted { color: #111; font-size: 12px; }
.bi-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.bi-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 300px; overflow: auto; }
.bi-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; font-size: 13px; border: 1px solid transparent; }
.bi-list li + li { margin-top: 2px; }
.bi-list li b { min-width: 46px; }
.bi-list li .bi-nm { font-weight: 500; }
.bi-list li .bi-st { margin-left: auto; font-size: 12px; color: var(--muted); }
.bi-list li.cur { background: rgba(37, 99, 235, .10); border-color: #2563eb; }
.bi-list li.cur .bi-st { color: #2563eb; font-weight: 500; }
.bi-list li.ok b, .bi-list li.ok .bi-nm { color: var(--muted); font-weight: 500; }
.bi-list li.ok .bi-st { color: var(--ok, #17a34a); }
.bi-now { font-size: 13px; padding: 8px 10px; border-radius: 6px; background: rgba(37, 99, 235, .08); }
.bi-now b { font-size: 15px; }
body.pms .mb-wrap,
body.pms .mb-mask { --primary: var(--sel); --primary-soft: var(--sel-soft); }
body.pms .mb-btn.primary { background: var(--sel); border-color: var(--sel); }
body.pms .mb-btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); filter: none; }
body.pms .mb-btn.sm.go { background: var(--sel-soft); color: var(--sel-hover); border-color: var(--sel-line); }
body.pms .mb-btn.sm.go:hover { background: #fbdcdc; color: var(--sel-hover); border-color: var(--sel-line); }
body.pms .mb-input:focus,
body.pms .mb-f input:focus,
body.pms .mb-f select:focus,
body.pms .mb-f textarea:focus,
body.pms .mb-tier input:focus,
body.pms .mb-rule-row input:focus,
body.pms .mb-rule-row select:focus { border-color: var(--sel-line); box-shadow: 0 0 0 3px rgba(239, 83, 80, .14); }
body.pms .mb-side-i.active { background: var(--sel-soft); color: var(--sel-hover); }
body.pms .mb-side-i.active b { color: var(--sel-hover); }
body.pms .mb-side-grp:hover,
body.pms .mb-side-i:hover { background: var(--sel-soft); color: var(--sel-hover); }
body.pms .mb-side-op i:hover { background: var(--sel-soft); color: var(--sel-hover); }
body.pms .mb-side-add { border-color: var(--sel-line); color: var(--sel); }
body.pms .mb-side-add:hover { background: var(--sel-soft); border-color: var(--sel); }
body.pms .mb-mt.on { background: var(--sel-soft); border-color: var(--sel-line); color: var(--sel-hover); }
body.pms .mb-mt:hover { border-color: var(--sel-line); color: var(--sel-hover); }
body.pms .mb-chip { background: var(--sel-soft); color: var(--sel-hover); }
body.pms .mb-chip:hover { background: #fbdcdc; }
body.pms .mb-grid tr:hover td { background: #fffafa; }
body.pms .mb-dlg-x:hover { color: var(--sel); }
body.pms .mb-rbar { border-color: var(--sel-line); background: linear-gradient(180deg, #fff9f9, #fdfefe); }
body.pms .mb-rbar-h em { color: var(--sel-hover); background: var(--sel-soft); }
body.pms .mb-rc { border-color: var(--sel-line); }
body.pms .mb-rc:hover { border-color: var(--sel); box-shadow: 0 2px 8px rgba(239, 83, 80, .16); }
body.pms .mb-rd-r > span b { color: var(--sel-hover); }
body.pms .mb-tag.info { background: #eef2f7; color: #111; }
.btn.primary { background: var(--sel); border-color: var(--sel); color: #fff; }
.btn.primary:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.btn.qk.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 600; }
.btn.qk.on:hover { background: var(--sel-hover); }
.od-tab.on { color: var(--sel); border-bottom-color: var(--sel); }
.emp-tab.active { background: var(--sel); border-color: var(--sel); color: #fff; }
.emp-tab.active:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
#login .btn.primary,
#login .btn.primary:hover { background: #2563eb; border-color: #2563eb; }
.topbar nav a.active { background: var(--sel); }
.topbar nav a.active:hover { background: var(--sel-hover); }
.ob-outlet { color: var(--sel); }
table.ob-list th, table.ob-list td { padding: 6px 8px; }
table.ob-list th { white-space: nowrap; font-size: 12px; }
table.ob-list td .btn.sm { padding: 2px 8px; font-size: 12px; }
.tf-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tf-k { flex: 1 1 130px; min-width: 120px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: #fff; }
.tf-k i { font-style: normal; display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.tf-k b { font-size: 17px; font-weight: 700; }
.tf-k.hot { border-color: var(--sel-line); background: var(--sel-soft); }
.tf-k.hot b { color: var(--sel); }
.tf-owe { color: var(--sel); }
table.tf-tb th, table.tf-tb td { padding: 7px 8px; }
table.tf-tb th { white-space: nowrap; font-size: 12px; }
table.tf-tb tbody tr.tf-det > td { background: #fcfcfd; padding: 0 12px; }
table.tf-lines { margin: 4px 0 8px; }
table.tf-lines td { padding: 4px 6px; font-size: 12px; border-bottom: 1px dashed var(--border); }
table.tf-lines tr:last-child td { border-bottom: 0; }
.tf-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.gsrc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.gsrc .btn { min-width: 120px; justify-content: center; }
.gsrc .muted { font-size: 12px; }
.dest-ch { display: flex; flex-direction: column; gap: 10px; }
.dest-opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: .15s; background: #fff; }
.dest-opt:hover { border-color: var(--primary); background: #f7f9ff; }
.dest-opt .di { font-size: 22px; line-height: 1; }
.dest-opt b { font-size: 14px; }
.dest-opt .muted { font-size: 12px; }
.rate-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.plan-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-tab {
  padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s;
}
.plan-tab:hover { border-color: var(--primary); color: var(--primary); }
.plan-tab.on { border-color: transparent; color: #fff; }
.rate-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.rate-range { font-size: 12px; color: var(--muted); margin: 0 4px; }
.rate-scroll { overflow-x: auto; }
.rate-table { border-collapse: collapse; width: max-content; min-width: 100%; }
.rate-table th, .rate-table td { border: 1px solid var(--line); padding: 0; }
.rate-table thead th {
  position: sticky; top: 0; background: #f8fafc; z-index: 2;
  padding: 6px 8px; font-size: 12px; text-align: center; min-width: 64px;
}
.rate-table thead th b { display: block; font-size: 12px; }
.rate-table thead th span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.rate-table thead th.weekend b, .rate-table thead th.weekend span { color: #e25c5c; }
.rate-table thead th.today { background: #fff3f0; }
.rate-type-col {
  position: sticky; left: 0; z-index: 1; background: #f8fafc; text-align: left;
  padding: 8px 12px !important; min-width: 108px; max-width: 132px;
}
thead .rate-type-col { z-index: 3; }
.rate-type-col b { display: block; font-size: 13px; }
.rate-type-col span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.rate-base { border: none; background: none; padding: 0; font: inherit; color: #e5484d; font-weight: 600;
  cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.rate-base:hover { color: #c5353a; }
.rate-td { text-align: center; }
.rate-cell {
  position: relative; display: block; width: 100%; min-height: 44px; padding: 6px 4px;
  border: none; background: transparent; font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: .12s; font-variant-numeric: tabular-nums;
}
.rate-cell:hover { background: var(--primary-soft); }
.rate-cell.today { background: #fff3f0; }
.rate-cell.weekend { color: #b4433f; }
.rate-cell.ov::after {
  content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--pc, #334155);
}
.rate-cell input {
  width: 100%; min-width: 58px; padding: 4px 2px; font-size: 13px; font-weight: 600;
  border: 2px solid var(--primary); border-radius: 6px; text-align: center; outline: none;
  font-variant-numeric: tabular-nums;
}
.rate-note { padding: 10px 14px; font-size: 12px; color: #1b2536; border-top: 1px solid var(--line); }
.dot-ov { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.rate-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 9px 14px; border-top: 1px solid var(--line); background: #fbfcfe;
}
.rb-grp { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex: 0 0 auto; }
.rb-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rate-bar input[type="date"] {
  height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 12px; color: var(--text); background: #fff; font-variant-numeric: tabular-nums;
}
.rb-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-pick {
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 12px; color: var(--text); cursor: pointer; user-select: none; transition: .12s;
}
.rb-pick:hover { border-color: var(--primary); color: var(--primary); }
.rb-pick.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.rb-ctl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text); cursor: pointer; }
.rate-matrix thead th { min-width: 92px; vertical-align: middle; }
.rate-matrix .rate-type-col { width: 110px; min-width: 110px; max-width: 110px; }
.rate-ch-col {
  position: sticky; left: 110px; z-index: 1; background: #f8fafc; text-align: left;
  padding: 8px 10px !important; min-width: 150px; max-width: 190px;
  font-size: 12px; font-weight: 600; line-height: 1.45;
}
.rate-ch-col i { display: block; margin-top: 3px; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; }
thead .rate-ch-col { z-index: 3; }
.rate-sub-col { min-width: 52px !important; font-size: 11px; color: var(--muted); font-weight: 400; }
.rate-sub {
  padding: 6px 8px !important; text-align: left; font-size: 12px; color: #64748b;
  background: #fcfdff; white-space: nowrap;
}
.rate-type-col em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; }
.rate-type-col b { font-size: 13px; }
.rm-price .rate-cell { min-height: 40px; }
.rm-qty td, .rm-avail td, .rm-chstock td { border-top: none; }
.rate-qty { padding: 4px 3px !important; }
.rq { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rq-unl { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 3px; font-size: 11px; color: #64748b; cursor: pointer; }
.rq-unl input { width: 12px; height: 12px; accent-color: var(--primary); }
.rq-num {
  width: 100%; max-width: 64px; height: 22px; padding: 0 4px; border: 1px solid var(--primary);
  border-radius: 5px; font-size: 12px; text-align: center; outline: none;
}
.rq-btn {
  width: 100%; max-width: 74px; height: 22px; border: 1px solid #f0a8a2; border-radius: 5px;
  background: #fff; color: var(--primary); font-size: 11px; font-weight: 600; cursor: pointer; transition: .12s;
}
.rq-btn:hover { background: var(--primary-soft); }
.rq-btn.off { border-color: var(--line); color: #94a3b8; background: #f6f7f9; }
.rq.off .rq-unl { color: #b6bdc9; }
.rate-avail { font-size: 12px; color: #475569; padding: 6px 4px !important; font-variant-numeric: tabular-nums; }
.rate-avail.off { color: #94a3b8; }
.rate-avail.full { color: var(--primary); font-weight: 600; }
.rate-chstock { font-size: 12px; color: #1e293b; padding: 6px 4px !important; font-variant-numeric: tabular-nums; }
.rate-chstock.none { color: #94a3b8; }
.rate-chstock.diff { color: #c62828; background: #fdeceb; font-weight: 600; }
.rate-matrix .rate-td.today { background: #fff3f0; }
.rate-matrix tbody tr.rm-qty > td { background: #fcfdff; }
#rateBody .list thead th { color: #1b2536; }
#rateBody .muted { color: #1b2536; }
.rq.off .rq-unl { color: #6b7280; }
.rate-avail.off { color: #6b7280; }
.rq-btn.off { color: #6b7280; }
.hp-tbl td { vertical-align: middle; }
.hp-tbl td.num, .hp-tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-tbl .hp-in { width: 124px; text-align: right; font-variant-numeric: tabular-nums; }
.hp-tbl .hp-tin { width: 88px; }
.hp-tbl .hp-tin::placeholder { color: #6b7280; opacity: 1; }
.hp-tbl td .hp-tin + .hp-tin { margin-left: 0; }
.hp-tbl tr.hp-over .hp-in { border-color: var(--sel-hover); color: var(--sel-hover); }
.hp-tbl tr.hp-over .hp-in:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.hp-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fffaf9; font-size: 13px; color: #111; }
.hp-alert label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hp-alert input[type=number] { width: 66px; text-align: right; }
.hp-alert i { font-style: normal; font-size: 12px; color: #111; }
.hp-alert .hp-voice { margin-left: auto; }
.hp-tiers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hp-tier { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 8px;
  border: 1px solid #e6e9ef; border-radius: 6px; background: #fbfcfe; white-space: nowrap; }
.hp-tier b { font-size: 12px; font-weight: 400; color: #111; }
.hp-tier .hp-tin { width: 78px; }
.hp-tier-x { font-style: normal; font-size: 14px; line-height: 1; color: #8a94a6; cursor: pointer; padding: 0 2px; }
.hp-tier-x:hover { color: var(--danger, #ef5350); }
.hp-tier-none { font-size: 12px; color: #111; }
.hp-tier-add { height: 26px; padding: 0 8px; font-size: 12px; color: #ef5350; background: #fdecec;
  border: 1px dashed #ef5350; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.hp-tier-add:hover { background: #ef5350; color: #fff; border-style: solid; }
.hp-addtip { margin: 0 0 10px; font-size: 13px; color: #111; }
.hp-addgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.hour-box .hour-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: #111; }
.hour-box .hour-line b { font-weight: 400; }
.hour-box .hour-red { color: #ef5350; }
.hour-box .hour-act { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.hour-box .hour-act i { font-style: normal; font-size: 12px; color: #111; }
.re-pick { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px 11px; background: #fbfcfe; }
.re-seg-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.re-seg-h b { font-size: 12px; color: #1b2536; font-weight: 600; }
.re-clear {
  margin-left: auto; border: none; background: none; padding: 0; font-size: 12px;
  color: #94a3b8; cursor: pointer; text-decoration: underline;
}
.re-clear:hover { color: var(--primary); }
.re-segs { display: flex; flex-direction: column; gap: 6px; }
.re-seg {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) 10px minmax(0, 1fr) 60px 80px 20px;
  align-items: center; gap: 6px;
  padding: 5px 8px; border: 1px solid #e4eaf3; border-radius: 8px; background: #fff;
  transition: border-color .12s, background .12s;
}
.re-seg:hover { border-color: #cfdced; }
.re-seg.bad { border-color: #f0a8a2; background: #fffafa; }
.re-seg input[type=date] {
  width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; background: #fff; color: #1b2536;
}
.re-seg input[type=date]:focus { border-color: var(--primary); outline: none; }
.re-seg.bad input[type=date] { border-color: #f0a8a2; background: #fffafa; }
.re-seg-n { font-size: 11px; color: #94a3b8; text-align: center; }
.re-seg-sep { font-size: 12px; color: #94a3b8; text-align: center; }
.re-seg-d { font-size: 12px; color: #475569; text-align: right; font-variant-numeric: tabular-nums; }
.re-seg.bad .re-seg-d { color: #b91c1c; }
.re-seg-tag {
  font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-soft);
  border-radius: 9px; padding: 1px 6px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.re-seg-tag:empty { visibility: hidden; }
.re-seg-x {
  width: 20px; height: 20px; border: none; border-radius: 50%; background: none;
  color: #a8b2c0; font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.re-seg-x:hover { background: var(--primary-soft); color: var(--primary); }
.re-add-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.re-add-hint { font-size: 12px; color: #9aa4b2; }
.re-calbtn {
  height: 22px; padding: 0 9px; margin-left: auto; border: 1px solid var(--sel-line);
  border-radius: 11px; background: #fff; color: #111; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.re-calbtn:hover { border-color: var(--sel); color: var(--sel-hover); }
.re-calbtn.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 600; }
.re-cal {
  margin-top: 8px; padding: 8px 10px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
.re-cal-h { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.re-cal-yb {
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 5px;
  background: #fff; color: #111; font-size: 13px; line-height: 1; cursor: pointer; padding: 0;
}
.re-cal-yb:hover { border-color: var(--sel); color: var(--sel-hover); }
.re-cal-ym { font-size: 13px; color: #111; font-weight: 600; min-width: 88px; text-align: center; font-variant-numeric: tabular-nums; }
.re-cal-sum { font-size: 12px; color: #111; margin-left: 6px; }
.re-cal-sum b { color: var(--sel-hover); font-variant-numeric: tabular-nums; }
.re-cal-h .btn { margin-left: 0; }
.re-cal-h [data-calok] { margin-left: auto; }
.re-cal-wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 3px; }
.re-cal-wk span { text-align: center; font-size: 12px; color: #111; font-weight: 600; }
.re-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.re-cal-e { height: 30px; }
.re-cal-d {
  height: 30px; border: 1px solid #e8eef6; border-radius: 6px; background: #fff;
  color: #111; font-size: 12px; cursor: pointer; padding: 0; font-variant-numeric: tabular-nums;
}
.re-cal-d:hover { background: var(--sel-soft); border-color: var(--sel-line); }
.re-cal-d.today { border-color: var(--sel-line); }
.re-cal-d.in { background: var(--sel-soft); color: var(--sel-hover); border-color: var(--sel-line); font-weight: 600; }
.re-cal-d.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 700; }
.re-cal-d.on:hover { background: var(--sel-hover); border-color: var(--sel-hover); }
.re-wk { display: inline-flex; align-items: center; gap: 5px; margin: 11px 0 2px; font-size: 13px; color: #1b2536; }
.re-hol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 10px 0 0; padding-top: 9px; border-top: 1px dashed var(--line);
}
.re-hol-l { font-size: 12px; color: var(--muted); }
.re-year { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: #1b2536; }
.re-year b { font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.re-yb { width: 18px; height: 20px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  color: #64748b; font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
.re-yb:hover { border-color: var(--primary); color: var(--primary); }
.re-hbtn {
  height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: #334155; font-size: 12px; cursor: pointer; transition: .12s;
}
.re-hbtn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.re-hbtn:disabled { color: #c3cad5; cursor: not-allowed; background: #f8fafc; border-color: #edf1f6; }
.modal-mask { --muted: #111; }
.modal-mask .rd-h-note,
.modal-mask .rd-grid > div > span:first-child,
.modal-mask .re-seg-h,
.modal-mask .re-clear,
.modal-mask .re-seg-n,
.modal-mask .re-seg-sep,
.modal-mask .re-add-hint,
.modal-mask .re-seg-x,
.modal-mask .re-hol-l,
.modal-mask .re-yb,
.modal-mask .re-hbtn:disabled,
.modal-mask .rq-btn.off,
.modal-mask .rate-avail.off,
.modal-mask .rq.off .rq-unl,
.modal-mask .od-st.noshow,
.modal-mask .biz-tip,
.modal-mask .biz-sub,
.modal-mask .biz-desc,
.modal-mask .shift-tm,
.modal-mask .tag.ghost,
.modal-mask .tag.ghost.opt-tag.off,
.modal-mask .meet-block.ghost,
.modal-mask .rate-avail,
.modal-mask .re-seg-d,
.modal-mask .re-hbtn,
.modal-mask .re-year,
.modal-mask .re-wk { color: #111; }
.ci-mtip {
  margin: 10px 0 0; padding: 7px 10px; border-radius: 8px;
  background: #fdf2f2; border: 1px solid #f6d5d3; font-size: 12.5px; color: #111; line-height: 1.65;
}
.ci-mtip b { color: #c62828; font-weight: 700; }
.ch-wrap { display: flex; flex-direction: column; gap: 14px; }
.ch-sub { font-weight: 400; font-size: 12.5px; color: #111; margin-left: 8px; }
.ch-key { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.ch-key label { min-width: 76px; white-space: nowrap; font-weight: 600; font-size: 13px; color: #111; }
.ch-key input {
  flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #d8dee8;
  border-radius: 8px; background: #f7f9fc; font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px; color: #111;
}
.ch-hint { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: #111; }
.ch-hint code, .ch-cmds code {
  background: #eef2f7; border-radius: 5px; padding: 1px 6px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #111;
}
.ch-cmds { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e6ebf2; }
.ch-cmds > div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #111; }
.ch-cmds b { font-weight: 600; white-space: nowrap; }
.ch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ch-stat {
  background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.ch-stat b { font-size: 22px; font-weight: 700; line-height: 1.2; color: #111; }
.ch-stat span { font-size: 12.5px; color: #111; }
.ch-stat.ok b { color: #15803d; }
.ch-stat.manual b { color: #b45309; }
.ch-stat.fail b { color: #c62828; }
.ch-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ch-table th {
  text-align: left; font-weight: 600; font-size: 12.5px; color: #111;
  padding: 9px 12px; background: #f7f9fc; border-bottom: 1px solid #e6ebf2; white-space: nowrap;
}
.ch-table td { padding: 9px 12px; border-bottom: 1px solid #f1f4f9; color: #111; vertical-align: middle; }
.ch-table tr:last-child td { border-bottom: 0; }
.ch-no { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: nowrap; }
.ch-no i { font-style: normal; margin-left: 6px; font-size: 11.5px; color: #111; opacity: .55; }
.ch-msg { line-height: 1.6; }
.ch-chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.ch-chip.ok { background: #e8f5ec; color: #15803d; border-color: #c9e7d3; }
.ch-chip.skip { background: #eef2f7; color: #111; border-color: #dfe6f0; }
.ch-chip.fail { background: #fdeceb; color: #c62828; border-color: #f6d5d3; }
.ch-chip.manual { background: #fdf5e6; color: #b45309; border-color: #f3e2c0; }
.ch-chip.warn { background: #fff3d6; color: #92400e; border-color: #f2d79a; }
.ch-sec { margin-bottom: 10px; }
.ch-sec b { display: block; font-size: 14px; font-weight: 600; color: #111; }
.ch-sec span { display: block; font-size: 12px; color: #111; margin-top: 3px; line-height: 1.6; }
.ch-map-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-map-form label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #111; white-space: nowrap; }
.ch-map-form input { width: 190px; }
.ch-map-form select { width: 170px; }
.ch-un { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-un b { font-size: 12.5px; font-weight: 600; color: #111; }
.ch-pend { background: #fff5f5; }
.ch-pend:hover { background: #ffeded; }
.ch-map-form label.ch-hold-end input[type="date"]:disabled { background: #f1f5f9; color: #64748b; }
.ch-map-form .ch-cb { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: #111; white-space: nowrap; }
.ch-map-form .ch-cb input[type="checkbox"] { width: auto; margin: 0; }
.ch-forever-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 600;
  color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; vertical-align: 1px; }
.ch-chip.off { background: #fdeceb; color: #c62828; border-color: #f6d5d3; }
.ch-chip.dict { background: #e8f1fd; color: #1d4ed8; border-color: #c7dbf8; }
.ch-org-none { color: #111; font-weight: 600; }
.ch-map-form label.ch-org-pick select { font-weight: 600; }
.ch-map-form .ch-org-pick { min-width: 0; }
.ch-bar { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ch-bar .ch-sec { flex: 1; margin-bottom: 0; min-width: 0; }
.ch-bar > .btn { flex: 0 0 auto; margin-top: 1px; }
.ch-tip { font-size: 12.5px; line-height: 1.65; color: #111; margin: -2px 0 10px; }
.ch-rs-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.ch-rs-bar .ch-cb { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: #111; white-space: nowrap; }
.ch-rs-bar .ch-cb input[type="checkbox"] { width: auto; margin: 0; }
.ch-rs-k { font-size: 12.5px; color: #111; white-space: nowrap; }
.ch-rs-bar .ch-cb.off { cursor: default; }
.ch-rs-bar .ch-cb.off input[type="checkbox"] { cursor: not-allowed; }
.ch-rs-grant { flex: 1 1 100%; font-size: 12.5px; line-height: 1.6; color: #111;
  background: #ffedcf; border-left: 3px solid #fa6d01; padding: 5px 9px; border-radius: 3px; }
.ch-rs-tb { margin-bottom: 0; }
.ch-rs-none { color: #111; font-weight: 600; }
.ch-rs-tip { font-size: 12.5px; line-height: 1.65; color: #111; margin: 8px 0 0; }
.ch-rs-name { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-rs-st { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px; white-space: nowrap;
  border: 1px solid var(--border); background: #f1f5f9; color: #111; }
.ch-rs-st.sent { background: #fff3d6; color: #92400e; border-color: #f2d79a; }
.ch-rs-st.ok { background: #e8f5ec; color: #15803d; border-color: #c9e7d3; }
.ch-rs-st.dead { background: #fdeceb; color: #c62828; border-color: #f6d5d3; }
.ch-chip.mode-direct { background: #e8f1fd; color: #1d4ed8; border-color: #c7dbf7; }
.ch-chip.mode-collector { background: #eef2f7; color: #111; border-color: #dfe6f0; }
.ch-chip.mode-import { background: #e8f5ec; color: #15803d; border-color: #c9e7d3; }
.ch-chip.sit { background: #e8f1fd; color: #1d4ed8; border-color: #c7dbf7; }
.ch-hid span { display: block; font-size: 12.5px; line-height: 1.5; color: #111; }
.ch-hid i {
  font-style: normal; display: inline-block; min-width: 28px; margin-right: 4px;
  font-size: 11px; font-weight: 600; color: #1d4ed8;
}
.ch-src { font-size: 12px; color: #111; opacity: .72; }
.ch-imp-prev {
  border: 1px solid #e6ebf2; border-radius: 8px; padding: 8px 10px;
  max-height: 236px; overflow: auto; background: #fbfcfe;
}
.ch-imp-sum { font-size: 12.5px; line-height: 1.7; color: #111; margin-bottom: 6px; }
.ch-imp-warn { color: #c62828; margin-left: 8px; }
.ch-test { display: flex; flex-direction: column; gap: 8px; }
.ch-test-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.ch-test-top.ok { background: #e8f5ec; color: #15803d; }
.ch-test-top.bad { background: #fdeceb; color: #c62828; }
.ch-test-top b { font-size: 14px; }
.ch-test-top span { color: #111; }
.ch-test-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px;
  border: 1px solid #e6ebf2; border-radius: 8px; font-size: 13px;
}
.ch-test-row i {
  font-style: normal; flex: 0 0 auto; font-size: 12px; font-weight: 600;
  padding: 1px 7px; border-radius: 20px;
}
.ch-test-row.ok i { background: #e8f5ec; color: #15803d; }
.ch-test-row.bad i { background: #fdeceb; color: #c62828; }
.ch-test-row span { color: #111; line-height: 1.6; }
.ch-test-row b { margin-right: 6px; }
#app:has(.bk-layout) { height: 100vh; min-height: 0; }
main:has(.bk-layout) {
  flex: 1 1 0; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; padding: 8px 14px 12px;
}
main:has(.bk-layout) header.top { display: none; }
main:has(.bk-layout) #view { flex: 1; min-height: 0; }
.bk-layout { display: flex; gap: 14px; align-items: stretch; height: 100%; }
.bk-side {
  flex: 0 0 154px; width: 154px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 4px 4px; height: 100%; overflow: auto;
}
.bk-grp + .bk-grp { border-top: 1px solid #eef1f5; margin-top: 2px; padding-top: 2px; }
.bk-grp-h {
  font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .5px;
  background: #e5484d; border-radius: 6px; padding: 3px 8px; margin: 3px 0;
}
.bk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 4px 8px; border-radius: 7px; color: #111; text-decoration: none; font-size: 13px;
}
.bk-item:hover { background: #f5f7fb; }
.bk-item.on { background: #eef2ff; color: #2b4acb; font-weight: 700; }
.bk-item i {
  font-style: normal; font-size: 12px; color: #111; background: #f1f3f8;
  border-radius: 9px; padding: 0 5px; text-align: center;
}
.bk-item.on i { background: #dfe6ff; color: #2b4acb; }
.bk-main { flex: 1; min-width: 0; height: 100%; display: flex; }
.bk-card { margin-top: 0; height: 100%; width: 100%; display: flex; flex-direction: column; min-height: 0; }
.bk-card > .card-h { flex: 0 0 auto; }
.bk-card > .card-b { flex: 1 1 0; min-height: 0; overflow: auto; }
.bk-card > .card-b .bk-table thead th { position: sticky; top: 0; z-index: 2; }
.bk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bk-table th {
  background: #f7f9fc; color: #111; font-weight: 700; text-align: left; white-space: nowrap;
  padding: 9px 10px; border-bottom: 1px solid #e8ecf2; font-size: 12px;
}
.bk-table td { padding: 9px 10px; border-bottom: 1px solid #f0f2f6; color: #111; vertical-align: middle; }
.bk-table tbody tr:hover { background: #fafbfe; }
.bk-table .num { text-align: right; }
.bk-table th:nth-child(1), .bk-table td:nth-child(1),
.bk-table th:nth-child(2), .bk-table td:nth-child(2),
.bk-table th:nth-child(3), .bk-table td:nth-child(3),
.bk-table th:nth-child(4), .bk-table td:nth-child(4) { width: 1%; white-space: nowrap; }
.bk-table td.bk-src { padding-right: 6px; }
.bk-table .bk-src-in { display: inline-flex; align-items: center; white-space: nowrap; }
.bk-table .bk-src-in .dsep { color: #94a3b8; margin: 0 2px; }
.bk-table .bk-src-in .tag { white-space: nowrap; }
.bk-table td.bk-date { white-space: nowrap; }
.bk-date .bk-dt {
  display: grid; grid-template-columns: auto 12px auto;
  justify-content: start; align-items: start; column-gap: 0; row-gap: 1px;
}
.bk-date .bk-dt .dsep { text-align: center; color: #94a3b8; }
.bk-date .bk-dt .t-end { justify-self: end; text-align: right; }
.bk-table td:nth-child(1) { padding-right: 8px; }
.bk-table td:nth-child(2) { padding-left: 8px; padding-right: 8px; }
.bk-table td.bk-ch { white-space: nowrap; }
.bk-table .bk-direct {
  margin-left: 3px; padding: 0 4px; border-radius: 4px;
  background: #eef2ff; color: #1e40af; font-size: 11px; font-weight: 600;
}
.bk-table .tag { white-space: nowrap; }
.bk-table .sub { font-size: 12px; color: #111; }
.bk-table .nowrap { white-space: nowrap; }
.bk-card .card-h { padding: 9px 12px; }
.bk-card .card-h > .filters { margin-left: 0; gap: 6px; }
.bk-card .card-h > .filters > #bkQ { width: 150px; min-width: 150px !important; box-sizing: border-box; }
.bk-card .card-h > #bkPaneTitle, .bk-card .card-h > #bkCount { white-space: nowrap; }
.bk-range { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bk-range > b { font-size: 12px; font-weight: 700; color: #111; }
.bk-range > em { font-style: normal; color: #94a3b8; font-size: 12px; }
.bk-range input { min-width: 0 !important; width: 106px; }
.bk-acts { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; white-space: nowrap; }
.bk-acts .btn { padding-left: 6px; padding-right: 6px; }
@media (max-width: 1440px) {
  .bk-card .card-h > .filters { gap: 6px; }
  .bk-card .card-h > .filters > #bkQ { width: 120px; min-width: 110px !important; }
  .bk-card .card-h .filters > select { min-width: 88px; }
  .bk-range > b { display: none; }
  .bk-range input { width: 96px; }
  .bk-acts .btn { padding-left: 6px; padding-right: 6px; }
}
.bkset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.bkset-col .f { display: flex; flex-direction: column; gap: 6px; }
.bkset-col .f > span { font-weight: 700; color: #111; }
.bkset-chs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px;
  border: 1px solid #e6e9ee; border-radius: 8px; padding: 10px 12px; max-height: 220px; overflow: auto; }
.bkset-ch { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #111; cursor: pointer; white-space: nowrap; }
.bkset-note { font-size: 12.5px; color: #111; line-height: 1.65; margin-top: 2px; }
.bkset-chs em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: #111; }
@media (max-width: 900px) { .bkset-grid { grid-template-columns: 1fr; } }
.bk-card .card-h .filters > select { min-width: 92px; }
.bk-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; border-bottom: 1px solid #eef1f5;
}
.bk-note { font-size: 12px; color: #111; margin: 10px 14px 14px; line-height: 1.6; }
.bk-link { color: #2b4acb; text-decoration: none; font-size: 12px; font-weight: 700; }
.bk-link:hover { text-decoration: underline; }
.bk-link.red { color: #d92d20; }
.bk-roomlink { color: #111; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bk-roomlink .bk-roomswap {
  font-style: normal; font-size: 11px; font-weight: 700; margin-left: 3px;
  padding: 0 4px; border-radius: 8px; background: #fdecec;
  color: #ef5350; vertical-align: 1px;
}
.bk-roomlink:hover { color: #ef5350; }
.bk-roomlink:hover .bk-roomswap { background: #ef5350; color: #fff; }
.rp-lock {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px;
  background: #fdeaea; color: #d92d20; font-style: normal; font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}
#bkPane > .kpis { padding: 14px 14px 0; }
#bkPane > .card { margin: 12px 14px 14px !important; box-shadow: none; }
#bkPane .empty { padding: 28px 0; }
@media (max-width: 1100px) {
  #app:has(.bk-layout) { height: auto; min-height: 100vh; }
  main:has(.bk-layout) { display: block; overflow: visible; padding: 14px 16px 28px; }
  main:has(.bk-layout) #view { flex: none; }
  .bk-layout { flex-direction: column; height: auto; }
  .bk-side { width: 100%; flex: 0 0 auto; height: auto; overflow: visible; }
  .bk-item { display: inline-flex; margin: 2px 4px 2px 0; }
  .bk-main { height: auto; }
  .bk-card { height: auto; }
  .bk-card > .card-b { overflow: visible; }
}
.kpis.kpis-mono .kpi .label,
.kpis.kpis-mono .kpi .sub,
.kpis.kpis-mono .kpi .sub b,
.kpis.kpis-mono .kpi .dr-i,
.kpis.kpis-mono .kpi .dr-sub { color: #111; }
.kpis.kpis-mono .kpi.drillable .value,
.kpis.kpis-mono .kpi .dr-sub[data-drill] { color: var(--sel-hover); cursor: pointer; }
.kpis.kpis-mono .kpi.drillable .dr-i { color: var(--sel); }
.kpis.kpis-mono .kpi.drillable:hover .value,
.kpis.kpis-mono .kpi .dr-sub[data-drill]:hover { color: var(--sel); }
.kpis.kpis-ar .kpi .value { color: var(--sel-hover); }
.kpis.kpis-ar .kpi .dr-i { color: var(--sel); }
.co-credit {
  margin: 14px 0 0; padding: 9px 12px; font-size: 13px; line-height: 1.75;
  color: #111; background: #fff5f5; border-left: 3px solid var(--danger); border-radius: 6px;
}
.co-credit b { color: #b91c1c; }
.tag.novoid { background: #fff5f5; color: #b91c1c; border: 1px solid #fecaca; }
.tag.ar { background: #eef2ff; color: #3730a3; }
.tag.temp { background: #fff7ed; color: #9a3412; }
.lnk { color: #b91c1c; text-decoration: underline; cursor: pointer; }
.lnk:hover { color: #7f1d1d; }
.ext-hd {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px;
  padding: 12px 14px; margin-bottom: 12px;
  background: #f7f9ff; border: 1px solid #dbe6ff; border-radius: 8px;
}
.ext-hd-i { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ext-hd-i i { font-style: normal; font-size: 12px; color: #111; }
.ext-hd-i b { font-size: 13.5px; font-weight: 600; color: #111; white-space: nowrap; }
.ext-hd-i b.hot { color: #dc2626; font-size: 15px; }
.ext-tabs { display: flex; gap: 24px; margin: 0 0 14px; border-bottom: 1px solid var(--border); }
.ext-tab {
  position: relative; padding: 5px 2px 9px; font-size: 14px; color: #111;
  background: none; border: 0; cursor: pointer;
}
.ext-tab.on { color: #dc2626; font-weight: 700; }
.ext-tab.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 2px; background: #dc2626;
}
.ext-tab:disabled { opacity: .45; cursor: not-allowed; }
.ext-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 34px; margin-bottom: 12px; }
.ext-fld { display: flex; align-items: center; gap: 8px; }
.ext-fld > span { font-size: 13px; color: #111; white-space: nowrap; }
.ext-step { display: inline-flex; align-items: stretch; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.ext-step button { width: 34px; border: 0; background: #eef3fc; color: #111; font-size: 16px; line-height: 1; cursor: pointer; }
.ext-step button:hover { background: #e2ebfb; }
.ext-step button:disabled { opacity: .4; cursor: not-allowed; }
.ext-step .ext-num { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 74px; padding: 0 10px; }
.ext-step .ext-num b { font-size: 13.5px; color: #111; }
.ext-step .ext-num i { font-style: normal; font-size: 12px; color: #111; }
.ext-grid-wrap { overflow-x: auto; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 8px; }
table.ext-grid { width: 100%; border-collapse: collapse; }
table.ext-grid th, table.ext-grid td {
  padding: 6px 5px; font-size: 12.5px; color: #111; text-align: center;
  border: 1px solid #e6ecf7;
}
table.ext-grid thead th { background: #f4f7fd; font-weight: 600; white-space: nowrap; }
table.ext-grid th.ext-lb { width: 96px; }
table.ext-grid th.ext-lb.sub { font-weight: 400; }
table.ext-grid td.ext-lb { background: #fafbfe; }
table.ext-grid input[type=number] { width: 100%; min-width: 66px; text-align: center; }
table.ext-grid .ext-std { margin-top: 3px; font-size: 11.5px; color: #111; }
.ext-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.7; color: #111; }
.ext-note b { color: #111; }
.ext-remark textarea { min-height: 56px; }
.ext-foot-l { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ext-total { font-size: 14px; color: #111; white-space: nowrap; }
.ext-total b { color: #111; }
.ext-total b.hot { color: #dc2626; font-size: 16px; }
.ext-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #111; white-space: nowrap; }
.rn-bar { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.rn-bar input { width: 170px; }
.rn-bar > .btn { flex: 0 0 auto; }
.rn-tip { flex: 1; margin: 0; font-size: 12.5px; line-height: 1.7; color: #111; }
.rn-tip b { color: #111; }
.rn-wrap { overflow-x: auto; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 8px; }
table.rn-grid { width: 100%; border-collapse: collapse; }
table.rn-grid th, table.rn-grid td {
  padding: 8px 6px; font-size: 12.5px; color: #111; text-align: center;
  border-bottom: 1px solid #e6ecf7; white-space: nowrap;
}
table.rn-grid thead th { background: #f4f7fd; font-weight: 600; }
table.rn-grid tbody tr { cursor: pointer; }
table.rn-grid tbody tr:hover { background: #f7f9ff; }
table.rn-grid tbody tr.on { background: #fff5f5; }
table.rn-grid th.rn-ck, table.rn-grid td.rn-ck { width: 36px; }
table.rn-grid td.rn-no { font-weight: 600; }
.rn-nights { margin-left: 4px; font-style: normal; font-size: 11.5px; color: #111; white-space: nowrap; }
.tag.xc { margin-left: 4px; padding: 0 4px; font-size: 11px; color: #111; background: #eef3fc; border: 1px solid #cfdffa; border-radius: 3px; }
.rn-empty {
  margin: 0 0 10px; padding: 16px 12px; font-size: 12.5px; color: #111; text-align: center;
  background: #fafbff; border: 1px dashed #d8e2f3; border-radius: 8px;
}
.rn-bill { padding: 10px 12px; background: #f7f9ff; border: 1px solid #dbe6ff; border-radius: 8px; }
.rn-bill-hd { margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: #111; }
.rn-bill-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 8px; font-size: 12.5px; color: #111; }
.rn-bill-row b { color: #111; }
.rn-bill-row b.hot { color: #dc2626; }
.rn-kind { margin-bottom: 8px; }
.rn-reason-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 8px; }
.rn-reason-line input { width: 240px; }
.rn-note-ok { margin-bottom: 8px; font-size: 12.5px; color: #111; }
.rn-new { padding-top: 8px; font-size: 12.5px; color: #111; border-top: 1px dashed #cfdffa; }
.rn-new b { color: #111; }
.rn-foot-note { padding-left: 14px; font-size: 12.5px; color: #111; border-left: 1px solid #cfdffa; }
.card-h .ar-tabs { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; }
.card-h .ar-tabs .btn.ar-tab { min-width: 84px; justify-content: center; background: #fff; color: #111; font-weight: 600; }
.card-h .ar-tabs .btn.ar-tab.ar-red.ar-on { background: #e5484d; border-color: #e5484d; color: #fff; }
.card-h .ar-tabs .btn.ar-tab.ar-red.ar-on:hover { background: #d63c41; }
.card-h .ar-tabs .btn.ar-tab.ar-green.ar-on { background: #0e9f6e; border-color: #0e9f6e; color: #fff; }
.card-h .ar-tabs .btn.ar-tab.ar-green.ar-on:hover { background: #0c8a5f; }
.od-renew { margin: 8px 0; padding: 8px 10px; background: #f7f9ff; border: 1px solid #dbe6ff; border-radius: 6px; }
.od-renew > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.9; color: #111; }
.od-renew > div > span { font-weight: 600; color: #111; }
.od-renew i { font-style: normal; color: #111; }
.tag.violet { background: #ede9fe; color: #111; }
.tag.st { background: #fef3c7; color: #111; }
.sd-renew { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px;
  padding: 6px 10px; background: #f7f9ff; border: 1px solid #dbe6ff; border-radius: 6px;
  font-size: 12.5px; line-height: 1.8; color: #111; }
.sd-renew > span { font-weight: 600; color: #111; }
.sd-renew i { font-style: normal; color: #111; }
.co-kind-i.rn-must { display: block; }
.rn-must b { display: flex; align-items: center; gap: 6px; }
.co-kind-i.rn-pick > span > b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lk { position: relative; }
.lk-share-tip { margin: 0 0 10px; padding: 7px 10px; border: 1px solid #ffd7a8; border-left: 3px solid #fa6d01; background: #ffedcf; border-radius: 3px; font-size: 12.5px; font-weight: 400; color: #111; line-height: 1.5; }
.lk-share-tip b { font-weight: 400; color: #d4580a; }
.lk-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.lk-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.lk-lb { flex: none; width: 112px; padding-top: 6px; font-size: 12.5px; font-weight: 600; color: #111; }
.lk-seg { flex: none; }
.lk-seg .gb-seg-i { padding: 6px 14px; font-size: 12.5px; }
.lk-side-seg .gb-seg-i { min-width: 78px; font-weight: 400; }
.lk-num { flex: none; display: flex; align-items: center; gap: 5px; padding-top: 3px; color: #111; font-size: 12.5px; font-weight: 400; }
.lk-num input[type=number] { width: 78px; flex: none; margin: 0; padding: 5px 6px; font-size: 12.5px; font-weight: 400; color: #111; }
.lk-note { font-size: 12px; color: #111; line-height: 1.6; padding-top: 8px; }
.lk-sh-pv {
  flex: none; width: 52px; height: 30px; margin-top: 1px; border-radius: 6px;
  background: #29a8e0; display: inline-block;
}
.lk-note-full { flex-basis: 100%; margin: 2px 0 0; padding-top: 2px; }
.lk input[type=checkbox], .lk input[type=radio] { width: auto; height: auto; margin: 0; flex: none; }
.lk-sizes { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.lk-sz {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 7px 9px 5px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer;
}
.lk-sz.on { border-color: var(--sel); background: var(--sel-soft); }
.lk-box { display: block; border: 1px dashed #9aa4b2; border-radius: 3px; background: #eef1f6; }
.lk-sz.on .lk-box { background: #fff; border: 1px solid var(--sel); }
.lk-sz span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #111; }
.lk-fonts { flex: 1 1 auto; min-width: 0; }
.lk-fr { display: flex; align-items: center; gap: 12px; padding: 3px 0; }
.lk-fl { flex: none; width: 66px; font-size: 12.5px; color: #111; }
.lk-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #111; cursor: pointer; white-space: nowrap; }
.lk-chk:hover { color: var(--sel); }
.lk-tags { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lk-tg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lk-tl { flex: none; width: 66px; font-size: 12.5px; color: #111; }
.lk-colors { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.lk-cl { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #111; }
.lk-sw {
  width: 28px; height: 20px; padding: 0; border: 1px solid rgba(0, 0, 0, .22); border-radius: 5px; cursor: pointer;
}
.lk-sw:hover { box-shadow: 0 0 0 2px var(--sel-line); }
.lk-pop {
  position: fixed; z-index: 999; width: 272px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .2);
}
.lk-pop-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: #111; }
.lk-pop-h b { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 500; color: #111; }
.lk-pop-g { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lk-dot { width: 100%; height: 22px; padding: 0; border: 1px solid rgba(0, 0, 0, .14); border-radius: 5px; cursor: pointer; }
.lk-dot:hover { transform: scale(1.08); box-shadow: 0 0 0 2px var(--sel-line); }
.lk-pop-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.lk-cus { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #111; }
.lk-cus input[type=color] { width: 42px; height: 24px; padding: 0; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
label.f > span.ct { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
label.f > span.ct > input { flex: 1 1 auto; width: auto; min-width: 0; }
.modal-b label.f > span { color: #111; }
.modal-b .sd-tip { color: #111; }
.io-hint { font-size: 12.5px; color: #111; margin: 2px 0 8px; }
.io-hint b { font-weight: 600; }
.io-pick {
  margin: 0 0 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #f8fafc; font-size: 13px; color: #111;
}
.io-pick b { font-size: 14px; }
.io-pick span { display: block; margin-top: 3px; font-size: 12.5px; color: #111; }
.cp-tabs { display: flex; gap: 18px; align-items: center; margin: -4px 0 10px; }
.cp-tabs a { font-size: 14px; font-weight: 700; color: var(--primary); padding-bottom: 4px; border-bottom: 2px solid var(--primary); }
.cp-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #111; margin-bottom: 8px; }
.cp-head .cp-sum { font-size: 15px; color: var(--primary); }
.cp-add { display: inline-flex; gap: 0; }
.cp-add input { width: 210px; border-radius: 6px 0 0 6px; }
.cp-add .btn { border-radius: 0 6px 6px 0; }
.cp-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-t th, .cp-t td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; color: #111; }
.cp-t th { background: #f8fafc; font-weight: 600; font-size: 12.5px; color: #111; white-space: nowrap; }
.cp-t .cp-num { text-align: right; white-space: nowrap; }
.cp-t .cp-empty { text-align: center; color: #111; padding: 22px; }
.cp-t .cp-mini { font-size: 11.5px; color: #111; margin-top: 2px; }
.cp-red { color: var(--primary); }
.cp-note { font-size: 12px; color: #b45309; margin-top: 10px; line-height: 1.7; }
.cp-foot { display: flex; justify-content: flex-end; gap: 26px; align-items: center; font-size: 13px; color: #111; margin-top: 8px; }
.cp-foot b { font-size: 16px; color: var(--primary); }
.cp-foot span:last-child b { font-size: 15px; color: #b45309; }
.cp-detail {
  border: 1.5px solid var(--primary); border-radius: 8px; padding: 10px 14px;
  margin: 2px 0 10px; background: #fff; font-size: 13px; color: #111; line-height: 1.9;
}
.cp-detail.bad { border-color: var(--danger); }
.cp-detail > b:first-child { font-size: 14px; }
.cp-grid { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.cp-grid span { font-size: 12.5px; color: #111; }
.cp-why { color: var(--danger); font-size: 12.5px; }
.cp-st {
  display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent;
}
.cp-st.ok { background: #e8f6ee; color: #047857; border-color: #b7e2c8; }
.cp-st.r { background: #fdecec; color: var(--danger); border-color: #f5c2c2; }
#ptPts { -moz-appearance: textfield; appearance: textfield; }
#ptPts::-webkit-outer-spin-button, #ptPts::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sh-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-filter input[type=date] { width: 150px; }
.sh-filter select { width: 122px; }
.sh-lb { font-size: 12.5px; font-weight: 600; color: #111; }
.sh-show {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
}
.sh-show .sh-r { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #111; }
.sh-show .sh-r input { width: auto; height: auto; margin: 0; }
.sh-tip { font-size: 12px; color: #111; margin-left: auto; }
.sh-blk {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px 14px; margin-bottom: 14px;
}
.sh-h { text-align: center; font-size: 15px; font-weight: 700; color: #111; padding: 2px 0 8px; }
.sh-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; color: #111; padding: 0 2px 4px; }
.sh-meta b { color: #111; }
.sh-notice {
  background: #ffedcf; border: 1px solid #fa6d01; border-radius: 6px;
  padding: 7px 12px; margin: 0 0 12px; font-size: 12.5px; color: #111;
}
.sh-note { font-size: 12px; color: #111; background: #f8fafc; border: 1px dashed var(--border);
  border-radius: 6px; padding: 5px 9px; margin: 2px 0 4px; }
.sh-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.sh-tbl th, .sh-tbl td { border: 1px solid var(--border); padding: 5px 8px; font-size: 12.5px; color: #111; }
.sh-tbl .sh-th-h { background: #f1f5f9; text-align: left; font-weight: 700; }
.sh-tbl .sh-i { text-align: center; width: 52px; }
.sh-tbl .num { text-align: right; }
.sh-tbl .sh-sum { background: #f8fafc; font-weight: 700; text-align: right; }
.sh-tbl .sh-none { text-align: center; color: #111; }
.sh-row { cursor: pointer; }
.sh-tbl .sh-row td,
.sh-tbl .sh-row td b,
.sh-tbl .sh-row .lnk { color: var(--sel-hover); }
.sh-tbl .sh-row:hover td { background: var(--sel-soft); color: var(--sel); }
.sh-row .lnk { text-underline-offset: 2px; }
.sh-amt { color: var(--sel-hover); font-weight: 700; }
.sh-sm { font-size: 12px; color: #111; margin-left: 6px; font-weight: 400; }
.rn-item.rn-pin { font-weight: 600; }
@media print {
  body:has(.sh-blk) { background: #fff; }
  body:has(.sh-blk) .page-bar, body:has(.sh-blk) .sh-filter, body:has(.sh-blk) .sh-show,
  body:has(.sh-blk) #nav, body:has(.sh-blk) .top, body:has(.sh-blk) .topbar, body:has(.sh-blk) .side,
  body:has(.sh-blk) .card:has(.sh-filter) { display: none !important; }
  body:has(.sh-blk) .sh-blk { border: 0; padding: 0; margin: 0 0 10px; page-break-inside: avoid; }
}
@media print {
  body.sh-print-80 .sh-blk { max-width: 74mm; margin: 0 auto 8px; }
  body.sh-print-80 .sh-h { font-size: 13px; padding-bottom: 4px; }
  body.sh-print-80 .sh-meta { gap: 2px 10px; font-size: 10.5px; }
  body.sh-print-80 .sh-tbl th, body.sh-print-80 .sh-tbl td { padding: 2px 4px; font-size: 10.5px; }
  body.sh-print-80 .sh-tbl .sh-i { width: 26px; }
  body.sh-print-80 .sh-sm { display: none; }
  body.sh-print-pin .sh-blk { margin: 0 auto 8px;
    font-family: SimSun, "NSimSun", monospace; }
  body.sh-print-pin .sh-h { font-size: 13px; }
  body.sh-print-pin .sh-meta { gap: 2px 8px; font-size: 10.5px; }
  body.sh-print-pin .sh-tbl { margin-top: 4px; }
  body.sh-print-pin .sh-tbl th, body.sh-print-pin .sh-tbl td {
    border: 0; padding: 1px 3px; font-size: 10.5px; background: none !important; color: #000 !important; }
  body.sh-print-pin .sh-tbl .sh-th-h { text-align: center;
    border-top: 1px dashed #000; border-bottom: 1px dashed #000; }
  body.sh-print-pin .sh-tbl .sh-row td, body.sh-print-pin .sh-tbl .sh-row td b,
  body.sh-print-pin .sh-tbl .sh-row .lnk, body.sh-print-pin .sh-amt { color: #000 !important; }
  body.sh-print-pin .sh-sm { display: none; }
}
#shBlocks.fmt-80 .sh-blk { max-width: 320px; margin: 0 auto 12px; }
#shBlocks.fmt-80 .sh-h { font-size: 15px; padding-bottom: 4px; }
#shBlocks.fmt-80 .sh-meta { gap: 2px 10px; font-size: 11.5px; }
#shBlocks.fmt-80 .sh-tbl th, #shBlocks.fmt-80 .sh-tbl td { padding: 2px 5px; font-size: 11.5px; }
#shBlocks.fmt-80 .sh-tbl .sh-i { width: 30px; }
#shBlocks.fmt-80 .sh-sm { display: none; }
#shBlocks.fmt-pin .sh-blk { margin: 0 auto 12px; font-family: SimSun, "NSimSun", monospace; }
#shBlocks.fmt-pin .sh-h { font-size: 15px; }
#shBlocks.fmt-pin .sh-meta { gap: 2px 8px; font-size: 11.5px; }
#shBlocks.fmt-pin .sh-tbl { margin-top: 4px; }
#shBlocks.fmt-pin .sh-tbl th, #shBlocks.fmt-pin .sh-tbl td { border: 0; padding: 1px 4px; font-size: 11.5px; background: none; }
#shBlocks.fmt-pin .sh-tbl .sh-th-h { text-align: center; border-top: 1px dashed #b9c2ce; border-bottom: 1px dashed #b9c2ce; }
#shBlocks.fmt-pin .sh-tbl .sh-row:hover td { color: var(--sel); }
#shBlocks.fmt-pin .sh-tbl .sh-sum { text-align: right; }
#shBlocks.fmt-pin .sh-sm { display: none; }
.rp-page { display: flex; flex-direction: column; gap: 12px; }
.rp-tabs { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #fff;
  border: 1px solid #e6ebf2; border-radius: 10px; }
.rp-tab { min-width: 104px; height: 32px; padding: 0 16px; border: 0; border-radius: 8px;
  background: #f2f5fa; color: #111; font-size: 13px; font-weight: 400; cursor: pointer; }
.rp-tab:hover { background: #e9eef6; }
.rp-tab.on { background: var(--sel); color: #fff; font-weight: 400; }
.rp-search { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
  width: 230px; height: 32px; padding: 0 8px; box-sizing: border-box; background: #fff;
  border: 1px solid #e0e5ed; border-radius: 8px; position: relative; }
.rp-search:focus-within { border-color: var(--sel); }
.rp-search-ico { flex: 0 0 auto; color: #64748b; }
.rp-search-in { flex: 1 1 auto; min-width: 0; height: 28px; padding: 0; border: 0; outline: 0;
  background: transparent; color: #111; font-size: 13px; font-weight: 400; }
.rp-search-in::placeholder { color: #64748b; opacity: 1; }
.rp-search-cnt { flex: 0 0 auto; font-size: 12px; color: #334155; white-space: nowrap; }
.rp-search-cnt:empty { display: none; }
.rp-search-x { flex: 0 0 auto; width: 18px; height: 18px; padding: 0; border: 0; line-height: 16px;
  background: transparent; color: var(--sel); font-size: 16px; font-weight: 400; cursor: pointer; }
.rp-search-none { padding: 18px; text-align: center; color: #111; font-size: 13px; }
.rp-search-drop { position: absolute; top: calc(100% + 4px); right: 0; z-index: 60;
  width: 360px; max-height: 360px; overflow-y: auto; background: #fff; color: #111;
  border: 1px solid var(--sel); border-radius: 8px; box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
  padding: 4px; }
.rp-search-drop[hidden] { display: none; }
.rp-sd-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; }
.rp-sd-row:hover { background: #fff3f0; }
.rp-sd-code { flex: 0 0 auto; width: 64px; color: #64748b; font-size: 12px; }
.rp-sd-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #111; }
.rp-sd-grp { flex: 0 0 auto; max-width: 96px; overflow: hidden; text-overflow: ellipsis;
  color: #334155; font-size: 12px; }
.rp-sd-empty { padding: 12px; text-align: center; color: #111; font-size: 13px; }
.rp-sd-more { padding: 8px; text-align: center; color: #64748b; font-size: 12px; }
.rp-sub { font-size: 12px; color: #334155; font-weight: 400; }
.rp-page > .rp-group { margin-top: 0; }
.rp-wrap { display: grid; grid-template-columns: 140px 132px minmax(0, 1fr); gap: 12px; align-items: start; }
.rp-wrap.rp-2col { grid-template-columns: 170px minmax(0, 1fr); }
.rp-main .page-bar { margin-bottom: 12px; }
main:has(.rp-2col) { display: flex; flex-direction: column; padding-bottom: 12px;
  flex: 0 0 auto; height: calc(100vh - 58px); overflow: hidden; }
main:has(.rp-2col) #view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.rp-page:has(.rp-2col) { flex: 1; min-height: 0; }
.rp-wrap.rp-2col { flex: 1; min-height: 0; align-items: stretch; }
.rp-side { background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 4px; overflow: auto; }
.rp-main { min-width: 0; overflow-y: auto; }
.hm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-kpi { background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 14px 18px; }
.hm-kpi .lb { font-size: 12px; color: #334155; }
.hm-lb-tip { font-style: normal; font-size: 11px; font-weight: 500; color: #b45309; margin-left: 5px; }
.hm-kpi .vl { font-size: 25px; font-weight: 800; color: #111; margin-top: 8px; letter-spacing: -.4px; }
.hm-cmp { display: inline-block; font-style: normal; font-size: 12px; margin-top: 7px; color: #334155; }
.hm-cmp.up { color: #dc2626; }
.hm-cmp.down { color: #15803d; }
.hm-goal { display: flex; flex-direction: column; gap: 10px; }
.hm-goal-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-goal-h > b { font-size: 15px; font-weight: 800; color: #111; letter-spacing: -.2px; }
.hm-cmpseg button { border: 0; background: #fff; color: #111; font-family: inherit; font-size: 12.5px;
  font-weight: 500; line-height: 1; padding: 7px 12px; cursor: pointer; }
.hm-cmpseg button + button { border-left: 1px solid var(--border); }
.hm-cmpseg button:hover:not(.on) { background: #f3f4f6; }
.hm-cmpseg button.on { background: var(--sel, #dc2626); color: #fff; font-weight: 600; }
.hm-left { background: #fdeaea; color: #dc2626; border: 1px solid #f7c9c9; border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 3px 10px; }
.hm-tgt-btn { color: var(--sel-hover); font-weight: 700; }
.hm-tgt-btn:hover { background: #fdeaea; }
.hm-inc { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: #111; cursor: pointer; user-select: none; }
.hm-inc input { width: 15px; height: 15px; accent-color: var(--sel); cursor: pointer; }
.hm-kpi.drill { cursor: pointer; }
.hm-kpi.drill:hover { border-color: var(--sel); box-shadow: 0 2px 10px rgba(229, 72, 77, .12); }
.hm-kpi.drill .vl { color: var(--sel-hover); cursor: pointer; }
.hm-kpi.drill:hover .vl { color: var(--sel); }
.hm-kpi.dim { background: #fbfcfe; }
.hm-notgt { font-size: 15px; font-weight: 700; color: #334155; }
.hm-odd-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hm-odd-card { background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 14px 18px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hm-odd-card:hover { border-color: var(--sel); box-shadow: 0 2px 10px rgba(229, 72, 77, .12); }
.hm-oc-lb { font-size: 12.5px; font-weight: 600; color: #111; }
.hm-oc-vl { font-size: 26px; font-weight: 800; color: var(--sel-hover); margin-top: 6px; letter-spacing: -.6px; }
.hm-oc-vl small { font-size: 13px; font-weight: 600; color: #111; margin-left: 4px; letter-spacing: 0; }
.hm-oc-ft { font-size: 12px; color: #111; margin-top: 6px; min-height: 17px; }
@media (max-width: 1100px) {
  .hm-odd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hm-bar { height: 6px; border-radius: 999px; background: #eef1f6; margin-top: 9px; overflow: hidden; }
.hm-bar > i { display: block; height: 100%; background: var(--sel, #dc2626); border-radius: 999px; }
.hm-goal-note { font-size: 12px; color: #334155; line-height: 1.6; }
.tgt-box { display: flex; flex-direction: column; gap: 10px; }
.tgt-dim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tgt-lb { font-size: 13px; font-weight: 600; color: #111; }
.tgt-dim .gb-seg button { border: 0; background: #fff; color: #111; font-family: inherit; font-size: 12.5px;
  line-height: 1; padding: 7px 14px; cursor: pointer; }
.tgt-dim .gb-seg button + button { border-left: 1px solid var(--border); }
.tgt-dim .gb-seg button.on { background: var(--sel, #dc2626); color: #fff; font-weight: 600; }
.tgt-year { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.tgt-year b { font-size: 14px; color: #111; }
.tgt-scroll { max-height: min(52vh, 430px); overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.tgt-tbl { margin: 0; }
.tgt-tbl thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; }
.tgt-tbl td, .tgt-tbl th { font-size: 13px; color: #111; }
.tgt-tbl tbody tr.cur td { background: #fff5f5; }
.tgt-th { width: 200px; }
.tgt-tbl input { width: 100%; height: 30px; padding: 0 10px; font-family: inherit; font-size: 13px; color: #111;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.tgt-tbl input:focus { outline: 2px solid rgba(239, 83, 80, .35); border-color: var(--sel); }
.tgt-now { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--sel);
  border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.hm-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 2px solid #e6ebf2; }
.hm-tab { border: 0; background: transparent; padding: 9px 18px; font-size: 13px; font-weight: 600;
  color: #111; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.hm-tab:hover { color: var(--sel-hover); }
.hm-tab.on { color: var(--sel-hover); border-bottom-color: var(--sel); font-weight: 700; }
.hm-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-qk { display: inline-flex; gap: 6px; }
.hm-qk .btn.on { background: var(--sel); border-color: var(--sel); color: #fff; }
.hm-days { font-size: 12px; color: #334155; }
.hm-tip { font-size: 12px; color: #b45309; background: #fff8eb; border: 1px solid #fde3b8; border-radius: 6px; padding: 3px 8px; }
.hm-live { margin: 0 0 10px; padding: 8px 12px; font-size: 13px; line-height: 1.75; color: #111;
  background: #fff8eb; border: 1px solid #fde3b8; border-left: 3px solid #fa6d01; border-radius: 6px; }
.hm-live b { color: #c2410c; font-weight: 400; }
.hm-live-btns { margin-left: 8px; white-space: nowrap; }
.hm-live-btns .btn { margin-left: 6px; }
.hm-est { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 3px;
  font-size: 11px; font-weight: 400; line-height: 16px; color: #c62828;
  background: #fdecec; border: 1px solid #f6c4c4; vertical-align: 1px; }
.hm-more { margin-left: auto; }
.hm-sec { background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; overflow: hidden; }
.hm-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: linear-gradient(90deg, #e8f1fe, #f7fbff);
  border-bottom: 1px solid #e6ebf2; font-size: 14px; font-weight: 700; color: #111; }
.hm-sec-h.or { background: linear-gradient(90deg, #fff0e2, #fffaf5); }
.hm-sec-h .sub { font-size: 12px; font-weight: 400; color: #334155; margin-left: 8px; }
.hm-sec-b { padding: 14px 16px 16px; }
.hm-ms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hm-ms6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hm-m { border: 1px solid #eef2f7; border-radius: 8px; padding: 10px 12px; background: #fbfcfe; }
.hm-m-lb { font-size: 12px; color: #334155; }
.hm-m-v { font-size: 19px; font-weight: 800; color: #111; margin-top: 6px; }
.hm-m-v small { font-size: 12px; font-weight: 600; color: #334155; margin-left: 2px; }
.hm-tb-h { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 2px;
  font-size: 13px; font-weight: 700; color: #111; }
.hm-tb-h .sub { font-size: 12px; font-weight: 400; color: #334155; }
.hm-tbl { margin-top: 4px; table-layout: fixed; }
.hm-tbl th:first-child, .hm-tbl td:first-child { width: 26%; }
.hm-tbl th:not(:first-child) { width: 18.5%; }
.hm-tbl th, .hm-tbl td { padding: 8px 10px; }
.hm-eq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px;
  background: #fbfcfe; border: 1px solid #eef2f7; border-radius: 8px; }
.hm-eq-t, .hm-eq-p { display: flex; flex-direction: column; gap: 4px; min-width: 132px; }
.hm-eq-t span, .hm-eq-p span { font-size: 12px; color: #334155; }
.hm-eq-t b, .hm-eq-p b { font-size: 18px; font-weight: 800; color: #111; }
.hm-eq-op { font-style: normal; font-size: 16px; font-weight: 700; color: #334155; }
.hm-eq-go { cursor: pointer; border-radius: 7px; padding: 3px 8px; margin: -3px -8px;
  transition: background .12s, box-shadow .12s; }
.hm-eq-go b { color: var(--sel-hover); }
.hm-eq-go:hover { background: #fff5f5; box-shadow: inset 0 0 0 1px #fbd5d5; }
.hm-eq-go:hover b { color: var(--sel); }
.hm-m-drill { cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.hm-m-drill .hm-go { color: var(--sel-hover); }
.hm-m-drill:hover { background: #fff; border-color: #fbd5d5; box-shadow: 0 1px 6px rgba(239, 83, 80, .14); }
.hm-m-drill:hover .hm-go { color: var(--sel); }
.hm-note { margin: 10px 0 0; font-size: 12px; color: #334155; line-height: 1.8; }
.mem-tbl { table-layout: auto; }
.mem-tbl th, .mem-tbl td { padding: 7px 10px; }
.mem-tbl td.mem-amt { color: #111; font-weight: 700; white-space: nowrap; }
.mem-tbl td.mem-note { color: #111; font-size: 12.5px; }
.mem-tbl tfoot td { color: #111; }
.mem-gift { display: inline-block; padding: 0 6px; border-radius: 4px; background: #fff4e5;
  color: #b45309; font-size: 11.5px; font-weight: 700; }
@media (max-width: 900px) {
  .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-ms, .hm-ms6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rp-favpage { display: flex; flex-direction: column; gap: 12px; }
.rp-plan .card-b { padding: 14px 16px; }
.rp-plan .rp-desc { margin: 0; line-height: 1.9; }
.rp-plan-l { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 12px; }
.rp-plan-l span { font-size: 13px; color: #111; }
.rp-plan-l i { font-style: normal; color: var(--sel-hover); font-weight: 700; margin-right: 4px; }
.rp-plan-n { margin: 0 !important; padding-top: 10px; border-top: 1px dashed #dbe2ea; }
.rp-col-h { font-size: 12px; font-weight: 700; color: #111; padding: 8px 8px 6px; }
.rp-fav-i { display: block; padding: 5px 8px; border-radius: 8px; text-decoration: none; }
.rp-fav-i b { display: block; font-size: 11px; font-weight: 700; color: var(--sel-hover); }
.rp-fav-i span { display: block; font-size: 12px; color: #111; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.rp-fav-i:hover { background: #f6f8fb; }
.rp-none { font-size: 13px; color: #111; padding: 8px 10px; line-height: 1.6; }
.rp-none .btn { margin-left: 10px; vertical-align: middle; }
.rp-cat { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 7px 10px; border-radius: 8px; text-decoration: none; color: #111; font-size: 13px; }
.rp-cat b { font-size: 11px; font-weight: 600; color: #334155; }
.rp-cat:hover { background: #f6f8fb; }
.rp-cat.on { background: var(--sel); color: #fff; font-weight: 700; }
.rp-cat.on b { color: #fff; opacity: .92; }
.rp-main { min-width: 0; }
.rp-group { margin-top: 12px; }
.rp-group:first-of-type { margin-top: 0; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2px 16px; padding: 10px 14px; }
.rp-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  text-decoration: none; color: #111; }
.rp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-item:hover { background: #fff3f3; }
.rp-code { font-style: normal; font-size: 12px; font-weight: 700; color: var(--sel-hover); min-width: 40px; }
.rp-name { flex: 1; font-size: 13px; color: #111; }
.rp-favb { font-size: 13px; color: #c3cad4; padding: 0 2px; cursor: pointer; }
.rp-favb:hover { color: var(--sel); }
.rp-item.fav .rp-favb { color: var(--sel-hover); }
.rp-item.todo .rp-name { color: #6b6b6b; }
.rp-todo-tag { font-style: normal; font-size: 11px; color: var(--sel); background: var(--sel-lite, #fdecec);
  border: 1px solid #f6c9c9; border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.rp-refh { font-size: 13px; color: #111; margin: 12px 0 6px; }
.rp-refcols { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-refcols span { font-size: 12.5px; color: #111; background: #f7f8fa; border: 1px solid #e3e6ec;
  border-radius: 4px; padding: 2px 8px; }
.rp-todo { margin: 8px 4px; font-size: 13px; color: #111; line-height: 1.7; }
.rp-cond-b { display: flex; flex-direction: column; gap: 8px; }
.rp-q { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-qs { display: inline-flex; align-items: center; gap: 6px; }
.rp-qs .rp-ql { font-size: 13px; color: #111; font-weight: 600; }
.rp-qs i { font-style: normal; font-size: 12px; color: #111; }
.rp-qs input { width: 146px; flex: none; }
.rp-qk { display: inline-flex; gap: 6px; }
.rp-desc { font-size: 13px; color: #111; line-height: 1.75; }
.rp-dt { display: flex; flex-direction: column; gap: 10px; }
.rp-dt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rp-dt-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-dt-crumb { font-size: 13px; color: #111; white-space: nowrap; }
.rp-dt-name b { font-size: 17px; color: #111; white-space: nowrap; }
.rp-dt-fav { border: 0; background: transparent; font-size: 18px; color: #c3cad4; cursor: pointer; padding: 0 4px; line-height: 1; }
.rp-dt-fav:hover { color: var(--sel); }
.rp-dt-fav.on { color: var(--sel-hover); }
.rp-dt-acts { display: flex; align-items: center; gap: 10px; }
.rp-dt-bd { font-size: 12px; color: #111; white-space: nowrap; }
.rp-dt-tabs { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid #e6e9ef; }
.rp-dt-tab { border: 0; background: transparent; padding: 8px 16px; font-size: 13px; color: #111; cursor: pointer;
  border-bottom: 2px solid transparent; }
.rp-dt-tab:hover { color: var(--sel-hover); }
.rp-dt-tab.on { color: var(--sel-hover); border-bottom-color: var(--sel-hover); font-weight: 700; }
.rp-cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 18px; align-items: center; }
.rp-fd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-fd > span:first-child { font-size: 13px; color: #111; white-space: nowrap; min-width: 62px; }
.rp-fd select, .rp-fd input[type="date"] { height: 30px; padding: 0 8px; line-height: 28px;
  font-size: 13px; min-width: 0; flex: 1; }
.rp-fd-range { grid-column: 1 / -1; }
.rp-dates { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.rp-dates i { font-style: normal; font-size: 12px; color: #111; }
.rp-dates input[type="date"] { width: 142px; flex: none; }
.rp-qks { display: inline-flex; gap: 6px; margin-left: 4px; }
.rp-fd-chk > span:first-child { min-width: 0; }
.rp-fd-chk input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--sel); }
.rp-cond-acts { display: flex; align-items: center; gap: 8px; justify-content: flex-end; grid-column: 1 / -1; }
.rp-desc-b p { margin: 0 0 6px; font-size: 13px; color: #111; line-height: 1.85; }
.rp-desc-meta { font-size: 12px; color: #333; }
.rp-colset-tip { margin: 0 0 10px; font-size: 12px; color: #111; }
.rp-colset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px 14px; }
.rp-colset-i { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #111; cursor: pointer; }
.rp-colset-i input { width: 15px; height: 15px; }
.rp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 10px; padding: 8px 12px; }
.rp-tb-l, .rp-tb-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-tb-sep { width: 1px; height: 18px; background: #e6e9ef; margin: 0 4px; }
.rp-tb-txt { font-size: 12px; color: #111; white-space: nowrap; }
.rp-tb-txt b { color: var(--sel-hover); }
.rp-toolbar select { width: auto; height: 30px; padding: 0 6px; line-height: 28px; font-size: 12px; }
.rp-paper-wrap { background: #eef1f6; border: 1px solid #e6e9ef; border-radius: 10px; padding: 12px; overflow: auto; }
.rp-paper { background: #fff; border: 1px solid #dfe3ea; border-radius: 6px; padding: 16px 20px 12px; min-height: 300px;
  box-shadow: 0 1px 3px rgba(20, 30, 50, .06); transform-origin: top left; }
.rp-paper-full { position: fixed; inset: 12px; z-index: 90; overflow: auto; box-shadow: 0 12px 42px rgba(0, 0, 0, .28); }
.rp-paper-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #111; }
.rp-paper-title { text-align: center; font-size: 16px; font-weight: 700; color: #111; margin: 6px 0 8px; }
.rp-paper-cond { font-size: 12px; color: #111; line-height: 1.7; margin-bottom: 8px; word-break: break-all; }
.rp-paper-tbl { width: 100%; min-width: 1180px; font-size: 12px; }
.rp-paper-tbl th { background: #f4f6fa; color: #111; font-weight: 700; white-space: nowrap; padding: 5px 6px; border: 1px solid #e2e6ee; }
.rp-paper-tbl td { padding: 4px 6px; border: 1px solid #e9ecf2; color: #111; white-space: nowrap; }
.rp-paper-tbl td.rp-cell-wrap { white-space: normal; word-break: break-all; max-width: 260px; line-height: 1.55; }
.rp-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-seq { width: 42px; text-align: center; }
.rp-total-note { text-align: right; font-weight: 700; color: #111; }
.jy03 { padding: 4px 0 8px; }
.jy03-cap { margin: 2px 0 10px; color: #1e293b; font-size: 13px; }
.jy03-cap b { color: var(--sel); font-weight: 400; }
.jy03-sec { margin: 14px 0 18px; }
.jy03-sec-t { font-size: 14px; color: #1e293b; border-left: 3px solid var(--sel); padding: 2px 0 2px 8px; margin-bottom: 6px; font-weight: 400; }
.jy03-tbl-wrap { overflow-x: auto; }
.jy03-tbl { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.jy03-tbl th { background: #f4f6fa; color: #111; font-weight: 400; white-space: nowrap; padding: 5px 7px; border: 1px solid #e2e6ee; text-align: center; }
.jy03-tbl td { padding: 4px 7px; border: 1px solid #e9ecf2; color: #111; white-space: nowrap; }
.jy03-tbl td.num, .jy03-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.jy03-tbl .jy03-m { text-align: center; background: #fbfcfe; white-space: nowrap; }
.jy03-tbl .rp-total td { background: #f4f6fa; font-weight: 400; }
.jy03-tbl .rp-total .jy03-m { background: #f4f6fa; }
.jy03-note { margin-top: 8px; color: #444; font-size: 12px; line-height: 1.6; }
.rp-fd-multi { display: block; }
.rp-fd-multi > span { display: inline-block; min-width: 84px; }
.rp-multi-box { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; vertical-align: top; }
.rp-multi-i { font-weight: 400; white-space: nowrap; }
.rp-mm-cb { width: 14px; height: 14px; vertical-align: middle; margin: 0 4px 0 0; accent-color: var(--sel); }
.rp-paper-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #333; margin-top: 8px; }
.rp-jl { font-size: 12px; color: #111; }
.rp-jl-head { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 12px; color: #111;
  padding: 2px 0 8px; border-bottom: 1px solid #d9d9d9; margin-bottom: 10px; }
.rp-jl-t { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 18px; font-size: 12px; }
.rp-jl-t th, .rp-jl-t td { border: 1px solid #9a9a9a; padding: 4px 6px; color: #111; font-weight: 400;
  white-space: nowrap; overflow: hidden; vertical-align: middle; line-height: 1.5; }
.rp-jl-t td.num, .rp-jl-t th.num { text-align: right; }
.rp-jl-t td.lbl { text-align: left; }
.rp-jl-t tr.rp-jl-sectr td { text-align: center; font-size: 13px; padding: 6px 4px; }
.rp-jl-t tr.rp-jl-th th { text-align: center; background: #f2f2f2; }
.rp-jl-t tr.rp-jl-grp td { text-align: left; background: #fff; padding-left: 8px; }
.rp-jl-t tr.rp-jl-sub td { font-weight: 700; }
.rp-jl-t td.rp-jl-vc { vertical-align: top; padding-top: 6px; }
.rp-jl-v { margin-top: 10px; font-size: 12px; color: #111; }
.rp-jl-t td.drillable { color: var(--sel-hover); cursor: pointer; }
.rp-jl-t td.drillable:hover { color: var(--sel); text-decoration: underline; }
.rp-jl-t td.jl-o-grp { background: #fff4d9; color: #111; }
.rp-jl-t td.jl-o-i1 { padding-left: 18px; color: #111; }
.rp-jl-t td.jl-o-total { background: #ffedcf; color: #111; }
.rp-jl-t td.jl-o-guest { background: #ffe0b2; color: #111; }
.rp-jl-t td.jl-o-na { background: #fff; color: #111; }
.rp-jl11 { overflow-x: auto; }
.rp-jl11-t { table-layout: auto; margin-bottom: 16px; }
.rp-jl11-t th, .rp-jl11-t td { white-space: nowrap; }
.rp-jl11-t tr.rp-jl11-sum td { background: #fafafa; }
.rp-jl11-t td.drillable { color: var(--sel-hover); cursor: pointer; }
.rp-jl11-t td.drillable:hover { color: var(--sel); text-decoration: underline; }
.rp-cw04-t td.rp-cw04-grp { background: #f7f7f7; }
.rp-cw04-t td.rp-cw04-sum { background: #efefef; color: #111; }
.rp-cw04-t td.rp-cw04-i1 { padding-left: 16px; }
.rp-cw04-t td.rp-cw04-i2 { padding-left: 30px; }
.rp-cw04-t td.rp-cw04-sec {
  background: #fdf1f0; color: #111; font-weight: 400; padding: 5px 8px;
  border-left: 3px solid var(--sel);
}
.rp-cw04-t td.rp-cw04-sec .rp-cw04-tag {
  margin-left: 8px; padding: 0 6px; font-size: 11px; font-style: normal;
  color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 3px;
}
.rp-cw04-t td.rp-cw04-norev { color: #b45309; font-style: normal; }
.rp-cw04-warn {
  margin: 8px 0 0; padding: 6px 10px; font-size: 12px; color: #b45309;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 4px;
}
.rp-cw04-t td.num a.rp-cw-lk { color: var(--sel-hover); text-decoration: none; }
.rp-cw04-t td.num a.rp-cw-lk:hover { color: var(--sel); text-decoration: underline; }
.rp-cw04-t tr.rp-jl-sectr td { background: #fff; }
td.num.drillable { color: var(--sel-hover); cursor: pointer; }
td.num.drillable:hover { color: var(--sel); text-decoration: underline; }
@media print {
  body.rp-printing .rp-toolbar, body.rp-printing .rp-dt-tabs, body.rp-printing .rp-cond,
  body.rp-printing .sum-bar, body.rp-printing .rp-note { display: none !important; }
  body.rp-printing .rp-paper-wrap { background: #fff; border: 0; padding: 0; overflow: visible; }
  body.rp-printing .rp-paper { border: 0; box-shadow: none; zoom: 1 !important; position: static; }
}
.rp-res { margin-top: 12px; }
.rp-tbl { width: 100%; }
.rp-tbl tfoot td { background: #f7f9fc; font-weight: 700; }
.rp-tbl tr.rp-grp td { background: #fff7ed; color: #1e293b; padding: 7px 10px; border-top: 1px solid #e5e7eb; }
.rp-tbl tr.rp-sumrow td { background: #fafafa; color: #111; border-top: 1px solid #e5e7eb; }
.rp-tbl tr.rp-row.drillable { cursor: pointer; }
.rp-tbl tr.rp-row.drillable td { color: #111; font-weight: 400; }
.rp-tbl tr.rp-row.drillable:hover { background: #fff6f6; }
.rp-tbl tr.rp-row.drillable:hover td { color: #111; }
.rp-tbl tr.rp-row.drillable td .lnk { color: var(--sel-hover); font-weight: 600; }
.rp-tbl tr.rp-row.drillable:hover td .lnk { color: var(--sel); }
.rp-tbl tr.rp-row.drillable td.num,
.rp-tbl tr.rp-row.drillable td.nowrap { color: var(--sel-hover); font-weight: 600; }
.rp-tbl tr.rp-row.drillable:hover td.num,
.rp-tbl tr.rp-row.drillable:hover td.nowrap { color: var(--sel); }
.rp-note { margin: 10px 4px 0; font-size: 12px; line-height: 1.8; color: #333; }
.rp-daytip { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 10px; padding: 8px 12px; background: #fff8e6; border: 1px solid #ffd9a8;
  border-left: 3px solid #fa6d01; border-radius: 3px; font-size: 13px; line-height: 1.6; color: #1e293b; }
.rp-daytip-d { color: #fa6d01; }
.rp-daytip .btn { flex: none; }
body.rp-printing .rp-daytip { display: none !important; }
@media print {
  body.rp-printing .sidebar, body.rp-printing #nav, body.rp-printing .top,
  body.rp-printing .page-bar, body.rp-printing .rp-cond, body.rp-printing .rp-note,
  body.rp-printing .rp-side { display: none !important; }
  body.rp-printing .rp-tbl tfoot td { background: #fff; }
  body.rp-printing .card { border: 0; }
}
.rp-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 16px; border-top: 1px solid #eef2f7; font-size: 13px; color: #111; }
.rp-sum span b { font-weight: 800; color: #111; }
.rp-tbl td.nowrap { white-space: nowrap; }
.rp-cw-bal { margin: 10px 0 2px; border: 1px solid #b9b9b9; font-size: 13px; color: #111; }
.rp-cw-bal-h, .rp-cw-bal-v { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr; align-items: center; }
.rp-cw-bal-h span { text-align: center; padding: 5px 4px; border-bottom: 1px solid #d9d9d9; }
.rp-cw-bal-h span:nth-child(1) { grid-column: 1; }
.rp-cw-bal-h span:nth-child(2) { grid-column: 3; }
.rp-cw-bal-h span:nth-child(3) { grid-column: 5; }
.rp-cw-bal-h span:nth-child(4) { grid-column: 7; }
.rp-cw-bal-v > * { text-align: center; padding: 7px 4px; }
.rp-cw-bal-v b { font-weight: 400; }
.rp-cw-bal-v i { font-style: normal; color: #111; }
a.rp-cw-lk { color: var(--sel); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
a.rp-cw-lk:hover { color: var(--sel-hover); }
.ch-svg { width: 100%; height: auto; display: block; }
.ch-ax { font-size: 11px; fill: #334155; }
.ch-pt { cursor: pointer; }
.ch-pt:hover .ch-bar { fill: #ef5350; }
.ch-dwrap { display: flex; align-items: center; gap: 30px; padding: 8px 4px; flex-wrap: wrap; }
.ch-donut { width: 188px; height: 188px; flex: none; }
.ch-donut g { cursor: pointer; }
.ch-donut g:hover circle { opacity: .8; }
.ch-dc1 { font-size: 16px; font-weight: 800; fill: #111; }
.ch-dc2 { font-size: 11px; fill: #334155; }
.ch-legend { display: flex; flex-direction: column; gap: 8px; min-width: 320px; max-width: 560px; flex: 1; }
.ch-li { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.ch-li:hover { background: #f4f6fa; }
.ch-li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ch-ln { color: #111; }
.ch-lv { color: var(--sel-hover); font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }
.ch-ls { color: #334155; width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.ch-hlist { display: flex; flex-direction: column; gap: 7px; padding: 6px 2px; }
.ch-hrow { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.ch-hrow:hover { background: #f4f6fa; }
.ch-hname { width: 96px; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.ch-htrack { flex: 1; height: 14px; background: #eef2f7; border-radius: 7px; overflow: hidden; }
.ch-htrack i { display: block; height: 100%; border-radius: 7px; }
.ch-hval { width: 96px; text-align: right; color: var(--sel-hover); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.ch-hsub { width: 170px; text-align: right; color: #334155; font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.ch-sum { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 4px 4px 10px; font-size: 13px; color: #111; }
.ch-sum b { font-weight: 800; font-variant-numeric: tabular-nums; }
.ch-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; align-items: start; }
@media (max-width: 1180px) { .ch-hsub { display: none; } .ch-2col { grid-template-columns: 1fr; } }
.ch-kpis { margin: 0 0 14px; }
.ch-kpis .hm-kpi { padding: 13px 16px; }
.ch-kpis .hm-kpi .vl { font-size: 23px; }
.ch-kpis .hm-kpi .vl small { font-size: 12px; font-weight: 600; color: #111; margin-left: 2px; }
.ch-kpis .hm-kpi .lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) { .ch-kpis.hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ch-kpi-note { font-size: 12px; color: #334155; margin: -6px 0 14px; padding-left: 2px; }
@media (max-width: 1080px) {
  .ci-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-extfld, .ci-notefld { grid-column: 1 / -1; }
}
@media (max-height: 820px) {
  .ci { gap: 6px; }
  .ci-sec-h { min-height: 31px; padding: 2px 13px; }
  .ci-sec-b { padding: 6px 13px 6px; }
  .ci-grid { gap: 6px 14px; }
  .ci-lb { margin-bottom: 4px; }
  .ci-tb th { padding: 6px 12px; }
  .ci-tb td { padding: 6px 12px; }
  .ci-notefld textarea { min-height: 44px; }
  .ci-payb { padding: 5px 13px 5px; }
}
.topbar nav .nav-drop { position: relative; display: flex; }
.topbar nav .nav-drop > a::after { content: '▾'; font-size: 9px; margin-left: 3px; opacity: .85; }
.topbar nav .nav-drop.nav-off { display: none; }
.topbar nav .nav-drop .nav-sub {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 214px;
  padding: 8px; border-radius: 10px; background: #1e293b;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .42);
  display: none; flex-direction: column; gap: 2px;
}
.topbar nav .nav-drop .nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.topbar nav .nav-drop:hover .nav-sub { display: flex; }
.topbar nav .nav-drop.open .nav-sub { display: flex; }
.topbar nav .nav-drop .nav-sub button {
  display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 7px;
  background: transparent; color: #e2e8f0; font-family: inherit; font-size: 13px; cursor: pointer;
}
.topbar nav .nav-drop .nav-sub button:hover { background: #334155; color: #fff; }
.topbar nav .nav-drop .nav-sub button b { display: block; font-size: 13px; font-weight: 600; }
.topbar nav .nav-drop .nav-sub button span { display: block; font-size: 11px; color: #c8d2e0; margin-top: 1px; }
.topbar nav .nav-drop .nav-sub button:hover span { color: #cbd5e1; }
.ot-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 1px; white-space: nowrap;
}
.ot-tag.on { background: #dcfce7; color: #15803d; }
.ot-tag.ext { background: #fff1df; color: #b45309; }
.ot-tag.todo { background: #fef3c7; color: #b45309; }
.ot-tag.bad, .ot-tag.hist { background: #fee2e2; color: #b91c1c; }
.ot-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.ot-kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.ot-kpi > span { display: block; font-size: 12px; color: #475569; }
.ot-kpi > b { display: block; margin-top: 2px; font-size: 17px; color: #111; }
.ot-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ot-seg { display: inline-flex; gap: 4px; }
.ot-red { color: #e5484d; }
.ot-muted { font-weight: 400; font-size: 12px; color: #475569; }
.ot-tabs { display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.ot-tabs button {
  border: 1px solid var(--border); background: #fff; color: #111; font-family: inherit;
  font-size: 13px; padding: 6px 12px; border-radius: 7px; cursor: pointer;
}
.ot-tabs button.on { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 400; }
.ot-tabs button i { font-style: normal; font-size: 11px; opacity: .85; margin-left: 3px; }
.ot-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ot-tbl th {
  background: #f8fafc; color: #334155; font-weight: 600; text-align: left;
  padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.ot-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: #111; }
.ot-tbl tbody tr:hover { background: #f8fafc; }
.ot-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.ot-tbl .ot-amt { font-weight: 700; }
.ot-no { color: #e5484d; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ot-acts .btn.ot-new { padding: 9px 26px; font-size: 15px; font-weight: 600; border-radius: 8px; }
.ot-why { color: #111; font-size: 12.5px; }
.ot-no-sm { font-size: 12px; }
.ot-bc { display: inline-block; margin-left: 8px; font-size: 11.5px; color: #475569; }
.ot-code { display: block; margin-top: 1px; font-size: 11.5px; color: #475569; }
.ot-tbl td.ot-namecell { min-width: 232px; }
.ot-tbl td.ot-namecell > b { white-space: nowrap; }
.ot-tbl td.ot-namecell .ot-code { white-space: nowrap; }
.ot-names { color: #111; }
.ot-tbl td.ot-nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-off td { opacity: .62; }
.ot-void { background: #fef2f2; }
.ot-void:hover { background: #fef2f2; }
.ot-acc-row { cursor: pointer; }
.ot-acc-row.on { background: #fdecec; box-shadow: inset 3px 0 0 var(--sel); }
.ot-acc-row.on:hover { background: #fdecec; }
.ot-stcell { white-space: nowrap; }
.ot-stcell .btn.sm { margin-left: 6px; }
.ot-off td.ot-stcell { opacity: 1; }
.ot-off-tip {
  padding: 9px 16px; background: #fff7ed; color: #111; font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.ot-nav .set-item b, .ot-tbl th, .ot-tabs button, .ot-sec-h, .ot-tag { font-weight: 400; }
.ot-empty { padding: 26px 16px; color: #475569; }
.ot-sec-h {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px;
  border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 700; color: #111;
}
.ot-sec-h .ot-seg { margin-left: auto; }
.ot-empty-box { padding: 40px 24px; max-width: 620px; }
.ot-empty-box > b { display: block; font-size: 15px; color: #111; margin-bottom: 8px; }
.ot-empty-box p { margin: 0 0 16px; font-size: 13px; line-height: 1.9; color: #111; }
.ot-form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ot-form2.ot-form3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ot-form2 .f { margin: 0; }
.ot-tip { margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; color: #111; }
.ot-tip b { color: #111; }
.ot-sale-h, .ot-srow {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px 76px 96px 28px;
  gap: 8px; align-items: center;
}
.ot-sale-h { padding: 0 2px 6px; font-size: 12px; font-weight: 600; color: #111; }
.ot-sale-h span:nth-child(2), .ot-sale-h span:nth-child(3), .ot-sale-h span:nth-child(4) { text-align: right; }
.ot-sale-rows { display: flex; flex-direction: column; gap: 8px; }
.ot-srow select, .ot-srow input {
  height: 32px; border: 1px solid var(--border); border-radius: 7px; padding: 0 9px;
  font-family: inherit; font-size: 13px; color: #111; background: #fff; width: 100%;
}
.ot-srow .ot-sprice, .ot-srow .ot-sqty { text-align: right; }
.ot-srow .ot-samt { text-align: right; font-size: 13px; color: #111; }
.ot-sdel {
  width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
  color: #b91c1c; cursor: pointer; font-size: 12px; line-height: 1;
}
.ot-sdel:hover { background: #fee2e2; border-color: #fecaca; }
.ot-sale-mid { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.ot-scan {
  position: relative;
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  padding: 8px 10px; border: 1px solid #fecaca; background: #fff7f7; border-radius: 9px;
}
.ot-scan-pop {
  display: none; position: absolute; top: calc(100% + 4px); left: 50px; right: 10px; z-index: 40;
  max-height: 216px; overflow: auto; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(17, 17, 17, .16);
}
.ot-pop-i {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px;
  font-size: 13px; color: #111; cursor: pointer;
}
.ot-pop-i:hover { background: #fff1f1; }
.ot-pop-i .nm { flex: 1 1 auto; }
.ot-pop-i .ot-pop-ab { margin-left: 7px; font-size: 11.5px; color: #111; opacity: .75; }
.ot-pop-i .pr { color: #e5484d; font-weight: 600; }
.ot-pop-empty { padding: 10px 12px; font-size: 12.5px; color: #111; }
.ot-scan-lb {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: #fff;
  background: #e5484d; border-radius: 6px; padding: 5px 9px;
}
#otScan {
  flex: 1 1 auto; min-width: 220px; height: 34px; border: 1px solid var(--border);
  border-radius: 7px; padding: 0 10px; font-family: inherit; font-size: 13.5px; color: #111; background: #fff;
}
#otScan:focus { outline: none; border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.ot-scan-hint {
  flex: 0 1 300px; font-size: 12px; color: #111; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ot-paybar { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ot-pay-sel { display: flex; flex-direction: column; gap: 5px; flex: 0 0 200px; }
.ot-pay-sel > span { font-size: 12px; font-weight: 600; color: #111; }
.ot-pay-sel select {
  height: 32px; border: 1px solid var(--border); border-radius: 7px; padding: 0 9px;
  font-family: inherit; font-size: 13px; color: #111; background: #fff; width: 100%;
}
.ot-payq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 1px; }
.ot-payq-lb { font-size: 12px; font-weight: 600; color: #111; margin-right: 1px; }
.ot-paybtn {
  padding: 4px 9px; border: 1px solid #e5484d; background: #fff; color: #e5484d;
  border-radius: 8px; font-family: inherit; font-size: 12px; line-height: 1.4; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: 0 0 auto;
}
.ot-paybtn:hover { background: #fee2e2; }
.ot-paybtn.on {
  background: #e5484d; border-color: #e5484d; color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.ot-paycfg {
  padding: 4px 9px; border: 1px solid #e5484d; background: #e5484d; color: #fff;
  border-radius: 8px; font-family: inherit; font-size: 12px; line-height: 1.4; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: 0 0 auto;
}
.ot-paycfg:hover { background: #d93a40; border-color: #d93a40; }
.ot-paypick { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.ot-paychk {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 7px; background: #fff;
  font-size: 13px; color: #111; cursor: pointer;
}
.ot-paychk input { width: 14px; height: 14px; margin: 0; }
.ot-paychk:has(input:checked) { border-color: #e5484d; background: #fff5f5; }
.ot-sale-sum { font-size: 13px; color: #111; }
.ot-sale-sum b { font-size: 20px; color: #e5484d; margin-left: 6px; }
.ot-settle { border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 12px; }
.ot-settle-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ot-settle-lb { font-size: 12.5px; font-weight: 600; color: #111; }
.ot-kinds { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; flex: 1; }
.ot-kinds .btn.qk { min-width: 0; width: 100%; justify-content: center; white-space: nowrap; }
.ot-ro {
  height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px;
  background: #f6f7f9; border: 1px dashed var(--border); font-size: 13px; color: #111;
}
.ot-inline { display: flex; gap: 8px; align-items: center; }
.ot-inline input { flex: 1; }
.ot-cpinfo {
  grid-column: 1 / -1; font-size: 12.5px; line-height: 1.7; color: #111;
  background: #f8f9fb; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
}
.ot-cpst { margin-left: 8px; font-weight: 600; }
.ot-cpst.ok { color: #15803d; }
.ot-cpst.bad { color: #b91c1c; }
.ot-tag.wait { background: #fef3c7; color: #b45309; }
.ot-tag.comm { background: #f1f5f9; color: #111; }
.ot-disc { font-size: 11px; color: #b45309; font-weight: 400; }
.ot-comm-tag { font-size: 11px; color: #111; font-weight: 400; margin-left: 6px; }
.ot-sub { display: block; font-size: 11px; color: #111; font-weight: 400; margin-top: 2px; }
.ot-store { font-size: 12.5px; color: #111; }
.ot-bulk {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; font-size: 12.5px; color: #111;
}
.ot-bulk[hidden] { display: none; }
.ot-bulk b { color: var(--sel, #dc2626); }
.ot-bulk .btn { height: 28px; }
.ot-filter {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff7ed; font-size: 12.5px; color: #111;
}
.ot-ctbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; font-size: 12.5px; color: #111;
}
.ot-ctbar .ot-ct-h { font-weight: 700; color: #111; }
.ot-ctbar .ot-ct-i i { font-style: normal; margin-left: 5px; color: #475569; }
.ot-comm { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.ot-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #111; }
.ot-chk input { width: 15px; height: 15px; }
.ot-chk .ot-sub { display: inline; margin: 0; }
.ot-comm-box { margin-top: 8px; }
.ot-comm-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 32px; }
.ot-comm-lb { flex: none; width: 88px; font-size: 12.5px; color: #111; }
.ot-comm-val { width: 120px; height: 32px; }
.ot-comm-row .ot-sub { display: inline; margin: 0; }
.ot-bom-tip { margin: 0 0 10px; font-size: 12.5px; line-height: 1.8; color: #111; }
.ot-bom { width: 100%; border-collapse: collapse; font-size: 13px; }
.ot-bom th {
  text-align: left; font-size: 12px; font-weight: 600; color: #111; background: #f8fafc;
  padding: 7px 10px; border: 1px solid var(--border);
}
.ot-bom td { padding: 6px 10px; border: 1px solid var(--border); }
.ot-bom select, .ot-bom input { width: 100%; height: 32px; }
.ot-bom-empty { color: #111; font-size: 12.5px; }
.ot-bom-add { margin-top: 8px; }
.ot-bom-foot { margin-top: 12px; }
.ot-bom-note {
  grid-column: 1 / -1; font-size: 12.5px; line-height: 1.8; color: #111;
  background: #f8f9fb; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
}
.ot-bom-note .lnk { margin: 0 4px; }
.ot-staff { margin-bottom: 16px; }
.ot-staff-hd {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px; font-size: 13px; color: #111;
}
.ot-staff-hd .ot-sub { display: inline; margin: 0; }
.ot-staff-sum { margin-left: auto; font-size: 12.5px; color: #111; }
.ot-ext { padding: 18px 20px 22px; max-width: 860px; }
.ot-ext-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ot-ext-ico { font-size: 30px; line-height: 1; }
.ot-ext-tt b { display: block; font-size: 16px; color: #111; }
.ot-ext-tt span { display: block; font-size: 12.5px; color: #475569; margin-top: 2px; }
.ot-ext-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 4px; }
.ot-ext-kv > div { border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; }
.ot-ext-kv span { display: block; font-size: 12px; color: #475569; }
.ot-ext-kv b { display: block; margin-top: 3px; font-size: 13px; color: #111; font-weight: 600; }
.ot-ext-act { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ot-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.ot-plan-i { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.ot-plan-i > i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eff6ff; color: #1d4ed8;
  font-style: normal; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ot-plan-i b { display: block; font-size: 13px; color: #111; }
.ot-plan-i span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.7; color: #475569; }
@media (max-width: 1080px) {
  .ot-form2, .ot-ext-kv, .ot-plan { grid-template-columns: 1fr; }
}
.ot-dt-h { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: #111; margin-bottom: 10px; }
.ot-dt-h b { color: #111; }
.ot-dt-f {
  display: flex; align-items: center; justify-content: flex-end; gap: 20px;
  padding: 10px 12px; border-top: 1px solid var(--border); font-size: 13px; color: #111;
}
.ot-dt-f b { color: #111; }
.ot-dt-f .ot-red { color: #e5484d; font-size: 16px; }
.ot-adj-row { background: #fff7f7; }
.ot-adj-row:hover { background: #fff1f1; }
.ot-adj-tag {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  background: #fee2e2; color: #b91c1c; font-style: normal; font-size: 10.5px; line-height: 16px;
}
.ot-tag.adj { background: #fee2e2; color: #b91c1c; }
.ot-adj-tbl .ot-adj-qty {
  width: 76px; height: 28px; text-align: right; border: 1px solid var(--border);
  border-radius: 6px; padding: 0 6px; font-size: 13px; color: #111; background: #fff;
}
.ot-adj-tbl .ot-adj-qty:disabled { background: #f1f5f9; color: #111; }
.ot-adj-tbl input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }
.ot-adj-stock {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: #f8fafc; font-size: 13px; color: #111; cursor: pointer;
}
.ot-adj-stock input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }
.ot-adj-stock .ot-sub { color: #111; font-size: 12px; }
.ot-adj-bal {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid #fecaca; background: #fff7f7; font-size: 13px; color: #111;
}
.ot-adj-bal b { color: #111; font-size: 15px; }
.ot-adj-bal .ot-ok { color: #15803d; }
.otd-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 2px 10px; }
.otd-tab { border: 0; background: none; font: inherit; font-size: 13.5px; color: #111; padding: 6px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.otd-tab.on { color: #e5484d; border-bottom-color: #e5484d; font-weight: 500; }
.otd-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.otd-tbl th { text-align: left; font-weight: 500; color: #111; padding: 8px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.otd-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--border); color: #111; vertical-align: middle; }
.otd-tbl .num { font-variant-numeric: tabular-nums; }
.otd-tel { margin-left: 6px; color: #111; font-size: 12px; }
.otd-reason { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd-ign { color: #b91c1c; }
.otd-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; padding: 4px 0 12px; }
.otd-info > div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.otd-info label { flex: 0 0 auto; color: #111; font-size: 12.5px; }
.otd-info b { color: #111; font-weight: 500; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd-tip { margin-top: 10px; padding: 9px 12px; border-radius: 8px; border: 1px solid #dbeafe; background: #f0f7ff; font-size: 12.5px; line-height: 1.6; color: #111; }
.otd-foot { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #fafafa; border: 1px solid var(--border); font-size: 12.5px; line-height: 1.7; color: #111; }
.otd-foot b { font-weight: 500; }
.cha { display: flex; flex-direction: column; gap: 14px; }
.cha-lead { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px;
  background: #fff5f5; border: 1px solid #f6cfcb; }
.cha-lead-ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #ef5350; color: #fff;
  font-style: normal; font-weight: 800; font-size: 15px; line-height: 26px; text-align: center; }
.cha-lead b { display: block; font-size: 14px; color: #111; margin-bottom: 3px; }
.cha-lead span { display: block; font-size: 12.5px; line-height: 1.65; color: #111; }
.cha-lead .cha-solved { margin-top: 5px; font-weight: 700; color: #0a7a3d; }
.cha-grp { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.cha-grp.cha-offline { border-color: #f3c1c1; background: #fdf3f3; }
.cha-grp.cha-offline .cha-h { background: #fbe9e9; border-bottom-color: #f3d5d5; }
.cha-grp.cha-offline .cha-dot { background: #b91c1c; box-shadow: 0 0 0 3px rgba(185, 28, 28, .14); }
.cha-grp.cha-offline .cha-hint { background: #fdf3f3; border-bottom-color: #f3d5d5; }
.cha-h { display: flex; align-items: center; gap: 9px; padding: 11px 14px; background: #fafbfc;
  border-bottom: 1px solid #eef1f5; }
.cha-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--cha, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }
.cha-h > b { font-size: 14px; font-weight: 700; color: #111; }
.cha-n { font-size: 12px; font-weight: 700; color: #111; background: #eef2f7; border-radius: 999px; padding: 1px 8px; }
.cha-go { margin-left: auto; }
.cha-hint { margin: 0; padding: 10px 14px; font-size: 12.5px; line-height: 1.65; color: #111;
  background: #fff; border-bottom: 1px solid #f1f5f9; }
.cha-hint b { color: #c62828; margin-right: 2px; }
.cha-body { padding: 0 4px 4px; }
.cha-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cha-tbl th { padding: 8px; text-align: left; font-size: 11.5px; font-weight: 700; color: #111;
  background: #f5f7fa; white-space: nowrap; }
.cha-tbl td { padding: 8px; border-top: 1px solid #f1f5f9; color: #111; vertical-align: top; }
.cha-tbl tbody tr:hover td { background: #fffdf5; }
.cha-t { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cha-no { font-size: 12px; font-family: ui-monospace, Consolas, "Courier New", monospace; word-break: break-all; }
.cha-d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cha-msg { line-height: 1.55; min-width: 240px; }
.cha-on { white-space: nowrap; font-weight: 600; }
.cha-rm { font-size: 11px; font-weight: 700; background: #eef2f7; border-radius: 4px; padding: 0 4px; }
.cha-none { font-size: 12px; }
.cha-more { padding: 9px 10px 4px; font-size: 12px; line-height: 1.6; color: #111; }
.cha-ch { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 5px; border: 1px solid transparent; white-space: nowrap; }
.cha-ch.ctrip { background: #0086f6; color: #fff; border-color: #0074d9; }
.cha-ch.mt { background: #ffd100; color: #1f2937; border-color: #e8bd00; }
.cha-ch.fliggy { background: #ff6a00; color: #fff; border-color: #e85f00; }
.cha-ch.oth { background: #eef2f7; color: #111; border-color: #dfe6f0; }
#nav a.cha-alert-on { position: relative; }
#navMore.cha-alert-on { position: relative; }
#nav a.cha-alert-on::after,
#navMore.cha-alert-on::after {
  content: attr(data-n); position: absolute; top: -6px; right: -7px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: #fff; color: #c62828; font-size: 10.5px; font-weight: 800;
  line-height: 16px; text-align: center; box-shadow: 0 0 0 1px #f0b4b2, 0 1px 3px rgba(0, 0, 0, .28);
}
#chNewStack { position: fixed; top: 58px; right: 14px; z-index: 1200; display: flex;
  flex-direction: column; gap: 10px; width: 322px; pointer-events: none; }
.chn-card { pointer-events: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18); overflow: hidden; cursor: pointer;
  animation: chnIn .22s ease-out; }
@keyframes chnIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.chn-card:hover { box-shadow: 0 12px 32px rgba(15, 23, 42, .26); }
.chn-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.chn-h > b { flex: 1; font-size: 13px; color: #fff; white-space: nowrap; }
.chn-x { font-style: normal; width: 20px; height: 20px; line-height: 18px; text-align: center;
  border-radius: 50%; color: #fff; font-size: 15px; font-weight: 700; }
.chn-x:hover { background: rgba(0, 0, 0, .18); }
.chn-b { padding: 8px 12px 10px; }
.chn-b > div { display: flex; gap: 8px; padding: 2.5px 0; font-size: 12.5px; line-height: 1.5; }
.chn-b span { flex: 0 0 74px; color: #111; font-weight: 600; }
.chn-b b { flex: 1; color: #111; font-weight: 600; word-break: break-all; }
.union-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 14px 18px; }
.union-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; cursor: pointer; background: #fff; }
.union-card:hover { border-color: #e5484d; box-shadow: 0 2px 8px rgba(229, 72, 77, .14); }
.union-card.u-bad { border-color: #e5484d; }
.union-card .u-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.union-card .u-cnt { font-size: 15px; font-weight: 700; color: #111; margin-top: 6px; }
.union-card .u-src { font-size: 12px; color: #111; margin-top: 4px; overflow-wrap: anywhere; }
.union-card .u-eff { font-size: 12px; color: #111; margin-top: 2px; }
.union-card .u-desc { font-size: 12px; color: #111; margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 6px; }
.union-card .tag.u-ok { background: #e7f6ee; color: #177a4c; }
.union-card .tag.u-badtag { background: #fdecec; color: #e5484d; }
.rc-flag.ali-pwr { background: #fdecec; color: #e5484d; }
.rc-flag.ali-eco { background: #e7f6ee; color: #177a4c; }
.ali-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px;
  padding: 8px 14px; border: 1px solid #f6b9b5; border-radius: 8px; background: #fff7f7; font-size: 12.5px; color: #111; }
.ali-banner b { color: #e5484d; }
.ali-stbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 2px 2px 10px; border-bottom: 1px solid var(--border); }
.ali-badge { padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; color: #111; background: #f1f3f7; }
.ali-badge.on { background: #e7f6ee; color: #177a4c; }
.ali-badge.off { background: #fdecec; color: #e5484d; }
.ali-badge.eco { background: #e7f6ee; color: #177a4c; }
.ali-mode-tag { margin-left: auto; font-size: 12px; color: #111; }
.ali-scene-row { display: flex; align-items: center; gap: 8px; padding: 12px 2px; }
.ali-scene-lb { font-weight: 700; color: #111; font-size: 13px; }
.ali-devs { display: grid; gap: 10px; }
.ali-dev { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.ali-dev-n { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ali-dev-n b { color: #111; font-size: 13.5px; }
.ali-dev-st { font-size: 12.5px; color: #111; padding: 2px 8px; border-radius: 12px; background: #f1f3f7; }
.ali-dev-st.on { background: #e7f6ee; color: #177a4c; }
.ali-dev-ac { flex-direction: column; align-items: stretch; }
.ali-ac-ops { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ali-temp { display: inline-flex; align-items: center; gap: 8px; color: #111; font-weight: 700; }
.ali-modes { display: inline-flex; gap: 6px; }
.ali-curt { display: inline-flex; gap: 6px; }
.ali-tip { font-size: 12px; color: #111; margin: 12px 2px 0; line-height: 1.7; }
.ali-set { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(420px, 7fr); }
.ali-set-cfg { padding: 14px 18px; border-right: 1px solid var(--border); }
.ali-set-log { padding: 14px 18px; min-width: 0; }
.ali-sw {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px;
  border: 1px solid #d5d8de; border-radius: 8px; background: #f7f9fb;
}
.ali-sw.off { background: #fff6e6; border-color: #f0c37a; }
.ali-sw-k { font-size: 13px; color: #111; }
.ali-sw-s { font-size: 12px; color: #111; padding: 1px 9px; border-radius: 10px; background: #e6f6ec; }
.ali-sw.off .ali-sw-s { background: #ffe2c2; }
.ali-sw .btn { margin-left: auto; }
.ali-sw-tip { font-size: 12px; color: #111; line-height: 1.7; margin: 2px 0 12px; }
.ali-set-h { font-weight: 700; color: #111; font-size: 13.5px; padding-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.ali-set-h .ali-log-sum { font-weight: 400; font-size: 12px; color: #111; }
.ali-set-cfg .f { display: flex; align-items: center; gap: 8px; margin: 7px 0; white-space: nowrap; }
.ali-set-cfg .f > span { flex: 0 0 auto; min-width: 130px; text-align: right; color: #111; font-size: 13px; }
.ali-set-cfg .f input, .ali-set-cfg .f select { flex: 1; min-width: 0; }
.ali-inline { display: inline-flex; align-items: center; gap: 6px; color: #111; font-size: 12.5px; white-space: nowrap; }
.ali-mode-row { margin-bottom: 2px; }
.ali-cb-row { font-size: 12.5px; color: #111; margin: 10px 0 12px; overflow-wrap: anywhere; }
.ali-cb-row code { background: #f1f3f7; border-radius: 6px; padding: 2px 8px; color: #111; }
.ali-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ali-log-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.ali-log { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ali-log th { position: sticky; top: 0; background: #f8fafc; color: #111; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ali-log td { padding: 7px 10px; border-bottom: 1px solid var(--border); color: #111; vertical-align: top; }
.ali-log td.ali-log-t { min-width: 220px; overflow-wrap: anywhere; }
.ali-log-st { padding: 2px 8px; border-radius: 12px; font-size: 12px; background: #f1f3f7; color: #111; white-space: nowrap; }
.ali-log-st.ok { background: #e7f6ee; color: #177a4c; }
.ali-log-st.mock { background: #eff4ff; color: #2563eb; }
.ali-log-st.fail { background: #fdecec; color: #e5484d; }
.ali-log-d { font-style: normal; margin-left: 8px; color: #2563eb; cursor: pointer; white-space: nowrap; }
.ali-payload { white-space: pre-wrap; word-break: break-all; font-size: 12px; color: #111; max-height: 60vh; overflow: auto; }
@media (max-width: 1100px) { .ali-set { grid-template-columns: 1fr; } .ali-set-cfg { border-right: 0; border-bottom: 1px solid var(--border); } }
.rc-flag.ali-person { background: #eff4ff; color: #2563eb; }
.rc-flag.ali-empty { background: #fff4e0; color: #b45309; }
.ali-help { margin: -2px 0 8px 138px; font-size: 12px; color: #111; line-height: 1.6; }
.ali-log td.ali-log-time { white-space: nowrap; }
.if-center { padding: 14px 16px; }
.if-tabs { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.if-tab {
  padding: 8px 20px; font-size: 13px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: #111;
}
.if-tab:hover { border-color: var(--primary); color: var(--primary); }
.if-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.if-body { padding-top: 14px; }
.if-body > p { padding: 14px; color: #111; }
.if-info { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; max-width: 980px; }
.if-info-h { font-size: 14px; font-weight: 700; color: #111; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.if-info-h .if-ok { color: #15803d; }
.if-info-h .if-none { color: #b45309; }
.if-info-h .if-way { font-size: 12px; font-weight: 400; color: #111; background: #f4f1ea; border: 1px solid var(--border); border-radius: 12px; padding: 2px 10px; }
.if-info-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; font-size: 13px; color: #111; line-height: 1.7; }
.if-info-grid > div { padding: 6px 10px; background: #fafaf7; border: 1px solid var(--border); border-radius: 6px; overflow-wrap: anywhere; }
.if-info-grid > div > span { display: inline-block; font-weight: 700; margin-right: 8px; }
.hkcf-banner { display: flex; gap: 8px; align-items: center; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 8px 12px; margin-bottom: 14px; font-size: 12.5px; color: #111; }
.hkcf-banner b { color: #b91c1c; font-size: 14px; }
.hkcf-sec { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.hkcf-sec-h { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #f5f8fc; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 13.5px; color: #111; }
.hkcf-sec-h i { font-style: normal; color: #1d6fe0; font-size: 11px; }
.hkcf-add { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 14px 10px; }
.hkcf-add label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #111; white-space: nowrap; }
.hkcf-add input, .hkcf-add select { min-width: 104px; width: 116px; }
.hkcf-add input[type=month] { width: 150px; }
.hkcf-add .btn { flex: none; }
.hkcf-mode { display: flex; gap: 22px; flex-wrap: wrap; padding: 10px 14px 0; font-size: 12.5px; color: #111; }
.hkcf-mode label { display: flex; gap: 6px; align-items: center; cursor: pointer; white-space: nowrap; }
.hkcf-mode input { accent-color: #1d6fe0; }
.hkcf-tb { width: 100%; }
.hkcf-tb th, .hkcf-tb td { padding: 8px 14px; white-space: nowrap; }
.hkcf-del { color: #e5484d; text-decoration: underline; cursor: pointer; font-size: 12.5px; }
.hkcf-tip { padding: 8px 14px 11px; font-size: 12px; color: #111; line-height: 1.6; margin: 0; border-top: 1px dashed #f0e8e0; }
.hkcf-tip b { color: #b45309; margin-right: 4px; }
.hm-secwrap { scroll-margin-top: 14px; }
.hm-secwrap + .hm-secwrap { margin-top: 14px; }
.mem-stat-note td { font-size: 12px; color: #111; line-height: 1.7; padding: 9px 14px;
  background: #f8fafc; border-top: 1px dashed #e6ebf2; }
.rp-dim td { color: #55524e; }
.rp-tbl tr[data-hmd] { cursor: pointer; }
.rp-tbl tr[data-hmd] td, .rp-tbl tr[data-hmd] td b, .rp-tbl tr[data-hmd] td .lnk { color: var(--sel-hover); }
.rp-tbl tr[data-hmd] td.mem-amt { font-weight: 700; }
.rp-tbl tr[data-hmd]:hover td { background: #fff6f6; color: var(--sel); }
.rp-tbl tr[data-hmd]:hover td b, .rp-tbl tr[data-hmd]:hover td .lnk { color: var(--sel); }
.rp-tbl tr[data-hmcard] { cursor: pointer; }
.rp-tbl tr[data-hmcard] td.num, .rp-tbl tr[data-hmcard] td.num.mem-amt { color: var(--sel-hover); }
.rp-tbl tr[data-hmcard] td.num.mem-amt { font-weight: 700; }
.rp-tbl tr[data-hmcard]:hover td { background: #fff6f6; }
.rp-tbl tr[data-hmcard]:hover td.num { color: var(--sel); }
.sd-sup-row { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; }
.sd-sup-row .f { flex: 1; margin: 0; min-width: 0; }
.sd-sup-row .f.q { flex: 0 0 110px; }
.sd-sup-row .f span { white-space: nowrap; }
#sdSupAdd { margin-top: 2px; }
.sd-stock { font-size: 13px; }
.sd-stock.low { color: #b45309; }
.sd-stock.bad { color: #d4183d; }
.sd-warnbar { margin: 10px 18px 0; padding: 8px 12px; background: #fff4f4; border: 1px solid #f3c2c8;
  border-radius: 6px; color: #111; font-size: 12px; }
.tag.sd-k-consume { background: #eaf3ff; color: #1c4f9c; border-color: #cfe1fb; }
.tag.sd-k-backfill { background: #fff6e8; color: #8a5300; border-color: #f5dfbc; }
.tag.sd-k-in { background: #eaf9f1; color: #166b45; border-color: #c8ecd9; }
.ae-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.ae-cols.ae-one { grid-template-columns: minmax(0, 1fr); }
.ae-left { min-width: 0; }
.ae-left .chg-quick { flex-wrap: wrap; }
.cat-quick { display: flex; gap: 8px; margin: 0 0 10px; }
.cat-quick .btn { flex: 0 0 auto; padding: 6px 14px; font-size: 13px; }
.ae-right { min-width: 0; }
.sp-box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.sp-lw { border-right: 1px solid #eef1f6; min-width: 0; display: flex; flex-direction: column; }
.sp-top { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
.sp-top select, .sp-top input { height: 32px; border: 1px solid var(--border); border-radius: 7px; padding: 0 8px; font-size: 13px; color: #111; min-width: 0; background: #fff; }
.sp-lh, .sp-gh { display: grid; align-items: center; padding: 7px 12px; font-size: 13px; font-weight: 700; color: #111; background: #fff; border-bottom: 1px solid #eef1f6; }
.sp-lh { grid-template-columns: minmax(0, 1fr) 64px 76px 44px; gap: 6px; }
.sp-lh span, .sp-gh span { white-space: nowrap; }
.sp-gh { grid-template-columns: minmax(0, 1fr) 56px 84px 68px 40px; gap: 6px; }
.sp-list { max-height: 296px; overflow: auto; }
.sp-i { display: grid; grid-template-columns: minmax(0, 1fr) 64px 76px 44px; gap: 6px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #f2f4f8; font-size: 13px; color: #111; }
.sp-i:last-child { border-bottom: 0; }
.sp-i:hover { background: #f8fafd; }
.sp-i .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-i .pr, .sp-i .st { text-align: right; color: #111; white-space: nowrap; }
.sp-pw { min-width: 0; display: flex; flex-direction: column; }
.sp-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13px; color: #111; background: #fff; border-bottom: 1px solid #eef1f6; }
.sp-ph .sp-l { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sp-ph b { color: #111; }
.sp-ph .btn { padding: 3px 10px; font-size: 12px; }
.sp-sumtxt { white-space: nowrap; font-size: 13px; color: #111; }
.sp-sumtxt .sp-n, .sp-amt { color: #ff6a00; }
.sp-picks { max-height: 296px; overflow: auto; }
.sp-pick { display: grid; grid-template-columns: minmax(0, 1fr) 56px 84px 68px 40px; gap: 6px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #f2f4f8; font-size: 13px; color: #111; }
.sp-pick:last-child { border-bottom: 0; }
.sp-pick:hover { background: #f8fafd; }
.sp-pick .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-pick .pr, .sp-pick .tv { text-align: right; color: #111; white-space: nowrap; }
.sp-pick .tv { font-weight: 700; }
.sp-pick .qty { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.sp-pick .qty b { min-width: 22px; text-align: center; color: #111; }
.sp-pick .qty button { width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: #111; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.sp-add, .sp-rm { border: 0; background: none; color: #2f7df6; font-size: 13px; cursor: pointer; padding: 2px 0; white-space: nowrap; }
.sp-add:hover, .sp-rm:hover { text-decoration: underline; }
.sp-empty { padding: 26px 12px; text-align: center; font-size: 12px; color: #111; }
.pt-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 14px; padding: 14px; align-items: start; }
.pt-left, .pt-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pt-kind { display: flex; gap: 8px; }
.pt-kind-btn { flex: 1 1 0; border: 1px solid var(--border); background: #fff; border-radius: 9px; padding: 8px 10px; cursor: pointer; text-align: left; font-family: inherit; }
.pt-kind-btn b { display: block; font-size: 13.5px; color: #111; }
.pt-kind-btn span { display: block; font-size: 11px; color: #111; margin-top: 3px; line-height: 1.35; }
.pt-kind-btn.on { border-color: #e5484d; background: #fff5f5; box-shadow: inset 0 0 0 1px #e5484d; }
.pt-store { border: 1px solid var(--border); border-radius: 9px; padding: 10px; display: flex; gap: 8px; align-items: flex-end; }
.pt-store .f { flex: 1 1 auto; margin: 0; }
.pt-list { border: 1px solid var(--border); border-radius: 9px; padding: 10px; }
.pt-list-h { font-weight: 700; font-size: 13px; color: #111; margin-bottom: 8px; }
.pt-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.pt-item.on { border-color: #2f7df6; box-shadow: inset 0 0 0 1px #2f7df6; }
.pt-item-info b { font-size: 13px; color: #111; margin-right: 6px; }
.pt-item-info span { display: block; font-size: 11.5px; color: #111; margin-top: 2px; }
.pt-item-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.pt-badge { font-style: normal; font-size: 11px; color: #fff; background: #e5484d; border-radius: 5px; padding: 1px 6px; }
.pt-empty { font-size: 12.5px; color: #111; padding: 8px 2px; }
.pt-new { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pt-ed-h { font-weight: 700; font-size: 13.5px; color: #111; }
.pt-form { display: grid; grid-template-columns: 1fr 130px 1fr; gap: 8px; }
.pt-form .f { margin: 0; }
.pt-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-rowmode { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #111; background: #fff7e6; border: 1px solid #f0c37a; border-radius: 6px; padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.pt-rowmode input { margin: 0; }
.pt-tip { font-size: 11.5px; color: #111; line-height: 1.65; background: #f7f9fc; border: 1px dashed #b9c2ce; border-radius: 7px; padding: 6px 9px; }
.pt-tip code { font-family: Consolas, monospace; background: #fff; border: 1px solid #d8dfe8; border-radius: 4px; padding: 0 4px; color: #b91c1c; }
.pt-var { border: 1px solid #bcd4f6; background: #f4f8ff; color: #111; border-radius: 6px; padding: 3px 8px; font-size: 11.5px; cursor: pointer; font-family: inherit; }
.pt-var:hover { background: #e8f1ff; border-color: #2f7df6; }
#ptBody { width: 100%; min-height: 260px; resize: vertical; border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-family: Consolas, monospace; font-size: 12.5px; line-height: 1.5; color: #111; background: #fff; }
#ptBody:focus { outline: none; border-color: #e5484d; }
.pt-ed-btns { display: flex; gap: 8px; }
.pt-preview-h { font-weight: 700; font-size: 12.5px; color: #111; }
#ptPreviewFrame { width: 100%; height: 420px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.slip-pick { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.slip-pick-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.slip-pick-info b { font-size: 13.5px; color: #111; margin-right: 8px; }
.slip-pick-info span { display: block; font-size: 12px; color: #111; margin-top: 2px; }
.slip-pick-info i { display: block; font-style: normal; font-size: 11.5px; color: #b91c1c; margin-top: 2px; }
@media (max-width: 1100px) { .pt-wrap { grid-template-columns: 1fr; } .pt-form { grid-template-columns: 1fr; } }
.board-empty { padding: 52px 24px 60px; text-align: center; color: #1e293b; }
.board-empty .be-t { font-size: 16px; font-weight: 400; color: #1e293b; }
.board-empty .be-d { margin: 12px auto 0; max-width: 720px; font-size: 13px; line-height: 1.9; color: #1e293b; }
.board-empty .be-d b { font-weight: 400; color: var(--sel); }
.board-empty .be-b { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
.rp-mine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.rp-mine-i { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; background: #fff; }
.rp-mine-t { display: flex; align-items: center; gap: 8px; }
.rp-mine-code { font-style: normal; font-size: 12px; color: #1e293b; }
.rp-mine-n { font-size: 14px; color: #111; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-mine-meta { font-size: 12px; color: #111; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-mine-acts { display: flex; gap: 6px; margin-top: 9px; }
.rp-mine-acts .btn { font-size: 12px; padding: 3px 10px; }
.rpd { font-weight: 400; color: #111; }
.rpd-top { display: flex; gap: 14px; align-items: center; flex-wrap: nowrap; margin-bottom: 12px; }
.rpd-top label { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: #111; font-size: 13px; }
.rpd-top input, .rpd-top select, .rpd-drop select, .rpd-drop input {
  border: 1px solid var(--border); border-radius: 4px; padding: 5px 8px; font-size: 13px;
  color: #111; background: #fff; font-family: inherit; font-weight: 400; }
.rpd-top #rpdName { width: 210px; }
.rpd-top #rpdRemark { width: 230px; }
.rpd-topic-tip { font-size: 12px; color: #111; margin-left: auto; white-space: nowrap; }
.rpd-cols { display: grid; grid-template-columns: 230px minmax(320px, 1fr) minmax(320px, 1.2fr); gap: 12px; }
.rpd-pane { border: 1px solid var(--border); border-radius: 6px; background: #fff; display: flex; flex-direction: column; min-height: 430px; }
.rpd-h { font-size: 13px; color: #111; padding: 8px 10px; border-bottom: 1px solid var(--border);
  background: #fff7f4; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 400; }
.rpd-h .rpd-cnt { color: #1e293b; font-size: 12px; }
.rpd-search { margin: 8px 9px 4px; width: calc(100% - 18px); box-sizing: border-box; }
.rpd-fields { overflow: auto; flex: 1; padding: 2px 9px 10px; max-height: 470px; }
.rpd-f { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid var(--border);
  border-radius: 4px; margin-bottom: 5px; cursor: grab; background: #fff; }
.rpd-f:hover { border-color: var(--sel); }
.rpd-f-n { flex: 1; font-size: 13px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpd-f-t { font-size: 11px; color: #1e293b; white-space: nowrap; }
.rpd-add { color: var(--sel); font-size: 12px; cursor: pointer; white-space: nowrap; padding: 0 2px; }
.rpd-add:hover { text-decoration: underline; }
.rpd-zone { overflow: auto; flex: 1; padding: 8px; }
.rpd-z1 { min-height: 88px; max-height: 140px; border-bottom: 1px solid var(--border); }
.rpd-z2 { min-height: 76px; max-height: 128px; border-bottom: 1px solid var(--border); }
.rpd-z3 { min-height: 76px; max-height: 128px; border-bottom: 1px solid var(--border); }
.rpd-z4 { min-height: 52px; max-height: 84px; }
.rpd-drop.over { background: #fff5f4; }
.rpd-drop-tip { font-size: 12px; color: #111; padding: 14px 8px; text-align: center; }
.rpd-i { display: flex; align-items: center; gap: 6px; padding: 4px 6px; margin-bottom: 5px;
  border: 1px solid var(--border); border-radius: 4px; background: #fff; white-space: nowrap; }
.rpd-i-n { flex: 1; font-size: 13px; color: #111; overflow: hidden; text-overflow: ellipsis; }
.rpd-i .rpd-x { color: var(--sel); cursor: pointer; font-size: 13px; padding: 0 3px; }
.rpd-i select, .rpd-i input { max-width: 108px; }
.rpd-i input.rpd-fv { max-width: 120px; }
.rpd-preview { overflow: auto; flex: 1; max-height: 470px; padding: 0; }
.rpd-preview table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rpd-preview th, .rpd-preview td { border: 1px solid var(--border); padding: 5px 7px; text-align: left;
  color: #111; white-space: nowrap; font-weight: 400; }
.rpd-preview th { background: #fff7f4; }
.rpd-preview td.num, .rpd-preview th.num { text-align: right; }
.rpd-preview .rpd-empty { font-size: 13px; color: #111; padding: 24px 12px; text-align: center; }
.rpd-err { font-size: 12px; color: #b91c1c; padding: 8px 10px; white-space: normal; }
.rpd-h .rpd-fx-add { margin-left: auto; }
.rpd-z5 { min-height: 62px; max-height: 132px; border-bottom: 1px solid var(--border); }
.rpd-fx { gap: 4px; flex-wrap: wrap; }
.rpd-fx select, .rpd-fx input { max-width: 96px; font-size: 12px; }
.rpd-fx input.rpd-fx-name { max-width: 92px; }
.rpd-fx input.rpd-fx-c { max-width: 62px; }
.rpd-i .rpd-sep { color: #1e293b; font-size: 12px; }
.rpd-i input.rpd-fv-in { max-width: 150px; }
.rpd-ph { justify-content: space-between; }
.rpd-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.rpd-chk { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #111; white-space: nowrap; }
.rpd-chk input { margin: 0; }
.rpd-vtab { font-size: 12px; color: #1e293b; cursor: pointer; padding: 2px 8px;
  border: 1px solid var(--border); border-radius: 3px; background: #fff; }
.rpd-vtab.on { background: var(--sel); color: #fff; border-color: var(--sel); }
.rpd-preview .rp-grp td { background: #fff7f4; color: #111; }
.rpd-preview .rp-sumrow td { background: #fff5f4; color: #111; }
.rpd-chart { padding: 12px 14px; }
.rpd-chart-t { font-size: 13px; color: #111; margin-bottom: 12px; }
.rpd-chart-i { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.rpd-chart-l { width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #111; }
.rpd-chart-bar { flex: 1; height: 14px; background: #fff5f4; border-radius: 2px; overflow: hidden; }
.rpd-chart-bar i { display: block; height: 100%; background: var(--sel); }
.rpd-chart-v { width: 78px; text-align: right; font-size: 12px; color: #111; white-space: nowrap; }
@media (max-width: 1100px) { .rpd-cols { grid-template-columns: 1fr; } .rpd-pane { min-height: 220px; } }
.reenter-tip { color: #111; font-size: 13px; margin-bottom: 10px; }
.reenter-opt { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #e6ebf2;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.reenter-opt input { margin-top: 3px; accent-color: var(--sel); }
.reenter-opt:has(input:checked) { border-color: var(--sel); background: #fff5f4; }
.reenter-body { display: block; flex: 1; min-width: 0; }
.reenter-t { display: block; color: #111; font-size: 14px; font-weight: 400; }
.reenter-d { display: block; color: #111; font-size: 12px; margin-top: 3px; line-height: 1.5; }
.sl-tabs { display: flex; gap: 2px; border-bottom: 2px solid #fa6d01; background: #ffedcf; padding: 6px 10px 0; border-radius: 6px 6px 0 0; }
.sl-tab { border: 1px solid transparent; border-bottom: none; background: transparent; color: #111; font-size: 13px; font-weight: 400; padding: 7px 18px; border-radius: 4px 4px 0 0; cursor: pointer; white-space: nowrap; }
.sl-tab.on { background: #fff; color: #e65c00; border-color: #fa6d01; }
.sl-body { padding: 14px 2px 2px; }
.sl-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.sl-left, .sl-right { border: 1px solid #e6ebf2; border-radius: 8px; padding: 12px 14px; background: #fff; min-width: 0; }
.sl-h { color: #111; font-size: 14px; font-weight: 400; margin-bottom: 10px; border-bottom: 1px solid #f0f2f5; padding-bottom: 7px; }
.sl-mode { font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; white-space: nowrap; }
.sl-mode.mock { background: #fff4e0; color: #a35a00; border: 1px solid #f5c980; }
.sl-mode.live { background: #fff0ef; color: var(--sel); border: 1px solid #f3b3b0; }
.sl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.sl-kv { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 3px 0; }
.sl-kv span { color: #111; min-width: 66px; white-space: nowrap; }
.sl-kv b { color: #111; font-weight: 400; overflow-wrap: anywhere; }
.sl-on { color: #1a8a3c; }
.sl-off { color: #a35a00; }
.sl-pwdbox, .sl-bind { margin-top: 12px; }
.sl-pwd-line, .sl-newpwd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sl-pwd { font-size: 26px; color: var(--sel); letter-spacing: 4px; font-weight: 400; }
.sl-none { color: #111; font-size: 14px; }
.sl-exp { color: #111; font-size: 12px; white-space: nowrap; }
.sl-help { color: #111; font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.sl-hint, .sl-demo { background: #fff4e0; border: 1px solid #f5c980; color: #111; font-size: 12px; padding: 9px 11px; border-radius: 5px; margin-top: 10px; line-height: 1.6; }
.sl-bind-row { display: flex; align-items: flex-end; gap: 8px; }
.sl-bind-row .f { flex: 1; min-width: 0; }
.sl-bind-row .f span { white-space: nowrap; }
.sl-opbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-opbtns .btn { white-space: nowrap; }
.sl-result { margin-top: 12px; }
.sl-res { border: 1px solid #c9e9d2; background: #f4fbf6; border-radius: 6px; padding: 10px 12px; margin-top: 10px; }
.sl-res.bad { border-color: #f3b3b0; background: #fff4f3; }
.sl-res-t { color: #111; font-size: 13px; font-weight: 400; }
.sl-res-m { color: #111; font-size: 12px; margin-top: 4px; line-height: 1.5; }
.sl-newpwd { color: #111; font-size: 13px; margin-top: 9px; }
.sl-loading, .sl-err { color: #111; font-size: 13px; }
.sl-err { color: #e5484d; }
.sl-inline { display: inline-flex; align-items: center; gap: 6px; color: #111; font-size: 13px; }
.sl-inline input { width: 90px; }
.sl-set { grid-template-columns: 360px minmax(0, 1fr) !important; }
.sl-set .ali-set-h { font-weight: 400; }
.sl-admin-log { min-width: 0; padding: 14px 18px; }
.sl-table-wrap { max-height: 290px; overflow: auto; border: 1px solid #e6ebf2; border-radius: 6px; }
.sl-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sl-table th, .sl-table td { border-bottom: 1px solid #eef1f5; padding: 6px 8px; text-align: left; color: #111; font-weight: 400; white-space: nowrap; }
.sl-table th { background: #fafbfc; }
.sl-table td.sl-log-t { white-space: normal; min-width: 220px; overflow-wrap: anywhere; }
.sl-lock-input { width: 150px; height: 26px; border: 1px solid #dfe4ea; border-radius: 3px; padding: 2px 6px; font-size: 12px; color: #111; }
.sl-log-sum { font-size: 12px; color: #111; font-weight: 400; margin-left: 8px; }
.sl-log-st { font-size: 12px; color: #111; }
.sl-log-st.ok { color: #1a8a3c; }
.sl-log-st.mock { color: #a35a00; }
.sl-log-st.fail { color: #e5484d; }
@media (max-width: 1100px) { .sl-cols, .sl-set { grid-template-columns: 1fr !important; } }
.tt-set { grid-template-columns: 380px minmax(0, 1fr) !important; }
.tt-set .ali-set-h { font-weight: 400; }
.tt-admin { min-width: 0; padding: 14px 18px; }
.tt-mode { font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; white-space: nowrap; font-weight: 400; }
.tt-mode.mock { background: #fff4e0; color: #a35a00; border: 1px solid #f5c980; }
.tt-mode.live { background: #fff0ef; color: var(--sel); border: 1px solid #f3b3b0; }
.tt-inline { display: inline-flex; align-items: center; gap: 6px; color: #111; font-size: 13px; }
.tt-inline input[type=number] { width: 80px; }
.tt-inline input[type=checkbox] { width: auto; }
.tt-help { color: #111; font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.tt-help code { color: #a35a00; background: #fff4e0; padding: 1px 5px; border-radius: 3px; }
.tt-demo { background: #fff4e0; border: 1px solid #f5c980; color: #111; font-size: 12px; padding: 9px 11px; border-radius: 5px; margin-top: 10px; line-height: 1.6; }
.tt-sum { font-size: 12px; color: #111; font-weight: 400; margin-left: 8px; white-space: normal; }
.tt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tt-sub-h { color: #111; font-size: 12px; font-weight: 400; margin-bottom: 6px; }
.tt-table-wrap { max-height: 260px; overflow: auto; border: 1px solid #e6ebf2; border-radius: 6px; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tt-table th, .tt-table td { border-bottom: 1px solid #eef1f5; padding: 6px 8px; text-align: left; color: #111; font-weight: 400; white-space: nowrap; }
.tt-table th { background: #fafbfc; }
.tt-table td.tt-log-t { white-space: normal; min-width: 220px; overflow-wrap: anywhere; }
.tt-rtype { color: #111; font-size: 11px; }
.tt-none { color: #a35a00; }
.tt-st { font-size: 12px; color: #111; font-weight: 400; }
.tt-st.ok { color: #1a8a3c; }
.tt-st.mock { color: #a35a00; }
.tt-st.fail { color: #e5484d; }
.tt-open { background: var(--sel); color: #fff; border-color: var(--sel); }
.tt-inline-sel { height: 26px; border: 1px solid #dfe4ea; border-radius: 3px; padding: 2px 6px; font-size: 12px; color: #111; max-width: 180px; }
@media (max-width: 1100px) { .tt-set, .tt-two { grid-template-columns: 1fr !important; } }
#slTTDevEmbed { border-top: 1px solid #e6ebf2; }
#slTTDevEmbed .sl-cols { padding-top: 4px; }
.pwdlock-brand-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 10px 16px; background: #ffedcf; border-top: 2px solid #fa6d01; color: #111; font-size: 13px; font-weight: 400; }
.pwdlock-brand-bar > span:first-child { white-space: nowrap; color: #111; }
.pwdlock-brand-bar select { height: 28px; border: 1px solid #f0a860; border-radius: 3px; padding: 2px 8px;
  font-size: 13px; font-weight: 400; color: #111; background: #fff; min-width: 170px; }
.pwdlock-brand-bar .pwdlock-brand-tip { color: #111; font-size: 12px; font-weight: 400; }
#slHxjEmbed { margin-top: 14px; border-top: 1px solid #e6ebf2; padding-top: 12px; }
@media (max-width: 1100px) { .pwdlock-brand-bar { flex-direction: column; align-items: flex-start; } }
.pv-find { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.pv-find input { width: 260px; height: 30px; padding: 4px 10px; font-size: 13px; font-weight: 400; }
.pv-find-tip { margin-left: auto; font-size: 12px; color: #111; font-weight: 400; }
.pv-tbl .pv-code { font-size: 13px; color: #111; font-weight: 400; letter-spacing: .6px; font-variant-numeric: tabular-nums; }
.pv-sub { display: block; margin-top: 2px; font-size: 11.5px; color: #111; font-weight: 400; }
.pv-st { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 400; white-space: nowrap; }
.pv-st.unused { background: #feeceb; color: #c62828; border: 1px solid #f5c2c0; }
.pv-st.used { background: #e9f7ee; color: #1a8a3c; border: 1px solid #bfe3cc; }
.pv-st.void { background: #f2f2f2; color: #444; border: 1px solid #dedede; }
.pv-ops { white-space: nowrap; }
.pv-1l { white-space: nowrap; }
.pv-tbl td { vertical-align: middle; }
.pv-ops .btn { padding: 3px 9px; font-size: 12px; font-weight: 400; }
.pv-ops .pv-del { color: #c62828; border-color: #f0c9c7; }
.pv-none { padding: 26px 16px; }
.pv-codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.pv-codes .pv-code { padding: 7px 12px; border: 1px dashed #f0a860; border-radius: 4px;
  background: #fffaf2; color: #111; font-size: 16px; font-weight: 400; letter-spacing: 1.4px; }
.pv-st.pending { background: #fff7e6; color: #b26a00; border: 1px solid #f5d9a8; }
.pv-claim-list { max-height: 360px; overflow: auto; margin: 6px 0 4px; }
.pv-claim { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px dashed #ededed; }
.pv-claim:first-child { border-top: 0; }
.pv-claim-qr { width: 118px; height: 118px; flex: none; border: 1px solid #ededed; border-radius: 4px; background: #fff; }
.pv-claim-info { flex: 1; min-width: 0; }
.pv-claim-code { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #111;
  font-variant-numeric: tabular-nums; letter-spacing: .6px; }
.pv-claim-tag { padding: 1px 7px; border-radius: 3px; font-size: 11.5px; color: #b26a00;
  background: #fff7e6; border: 1px solid #f5d9a8; }
.pv-claim-sub { margin-top: 5px; font-size: 13px; color: #111; }
.pv-claim-sub b { font-size: 16px; letter-spacing: 2px; color: #c62828; font-weight: 400; }
.pv-claim-url { margin-top: 5px; font-size: 11.5px; color: #5f5f5f; word-break: break-all; }
.pv-claim-act { display: flex; gap: 8px; margin-top: 8px; }
.ai-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 392px; max-width: 96vw; z-index: 60;
  background: #fff; border-left: 1px solid #e3e3e3; box-shadow: -8px 0 24px rgba(0,0,0,.12);
  display: flex; flex-direction: column; }
.ai-drawer[hidden] { display: none; }
.ai-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-bottom: 1px solid #eee; background: #ffedcf; border-top: 2px solid #fa6d01; }
.ai-hd-t { font-size: 15px; font-weight: 400; color: #111; letter-spacing: .5px; }
.ai-scope { padding: 8px 12px; font-size: 12px; color: #111; background: #fafafa; border-bottom: 1px solid #eee; line-height: 1.6; }
.ai-log { flex: 1; overflow-y: auto; padding: 12px; background: #fff; }
.ai-item { margin-bottom: 12px; }
.ai-q { display: inline-block; max-width: 100%; padding: 6px 10px; border-radius: 4px; background: #f2f2f2;
  font-size: 13px; color: #111; margin-left: auto; }
.ai-a { border: 1px solid #eee; border-left: 3px solid var(--sel, #ef5350); border-radius: 4px; padding: 10px 12px; background: #fff; }
.ai-a.ai-busy { color: #111; font-size: 13px; border-left-color: #fa6d01; }
.ai-a.ai-warn { border-left-color: #e0a800; background: #fffdf5; color: #111; font-size: 13px; line-height: 1.6; }
.ai-big { font-size: 26px; color: #111; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.ai-name { margin-top: 4px; font-size: 13px; color: #111; display: flex; justify-content: space-between; gap: 8px; }
.ai-rg { color: #111; opacity: .72; white-space: nowrap; }
.ai-tip { margin-top: 6px; font-size: 12.5px; color: #111; line-height: 1.6; }
.ai-note { margin-top: 6px; font-size: 12px; color: #111; background: #fff7e6; border: 1px solid #f5d9a8; border-radius: 3px; padding: 5px 7px; line-height: 1.6; }
.ai-bd { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: #111; }
.ai-bd b { font-weight: 400; color: #c62828; }
.ai-ops { margin-top: 8px; }
.ai-ops .lnk { color: #c62828; font-size: 12.5px; cursor: pointer; }
.ai-src { margin-top: 6px; font-size: 11.5px; color: #111; opacity: .62; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid #f0f0f0; }
.ai-chip { font-size: 12px; color: #c62828; background: #fff; border: 1px solid #f0c9c9; border-radius: 12px;
  padding: 3px 9px; cursor: pointer; }
.ai-chip:hover { background: #fff5f5; }
.ai-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; }
.ai-in input { flex: 1; height: 32px; border: 1px solid #ddd; border-radius: 3px; padding: 0 9px; font-size: 13px; color: #111; }
.ai-in input:focus { outline: none; border-color: var(--sel, #ef5350); }
.ai-in .btn { background: var(--sel, #ef5350); color: #fff; border: 0; border-radius: 3px; padding: 0 14px; height: 32px; font-weight: 400; }
.ai-foot { padding: 0 12px 10px; font-size: 11.5px; color: #111; opacity: .62; line-height: 1.5; }
.ai-brief { margin: 10px 12px 0; border: 1px solid #f0c9c9; border-left: 3px solid var(--sel, #ef5350);
  border-radius: 4px; background: #fff; padding: 9px 11px; max-height: 200px; overflow-y: auto; }
.ai-brief-t { font-size: 12.5px; color: #111; display: flex; justify-content: space-between; gap: 8px; }
.ai-brief-t .ai-rg { color: #111; opacity: .62; white-space: nowrap; }
.ai-brief-c { margin-top: 4px; font-size: 12.5px; color: #111; line-height: 1.7; white-space: pre-wrap; }
.side-dock {
  position: fixed; top: 58px; bottom: 0; right: 0; width: 64px; z-index: 45;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 12px 6px; background: #fff; border-left: 1px solid var(--border, #e5e7eb);
  box-shadow: -1px 0 0 rgba(15, 23, 42, .04);
}
.side-dock[data-side="left"] { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border, #e5e7eb); box-shadow: 1px 0 0 rgba(15, 23, 42, .04); }
#app:has(.rooms-wrap) .side-dock { bottom: 36px; }
.sd-btn {
  width: 52px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; border-radius: 10px; background: transparent; color: #334155; cursor: pointer; padding: 6px 2px;
}
.sd-btn:hover { background: #f1f5f9; color: #0f172a; }
.sd-btn:active { background: #e2e8f0; color: #0f172a; }
.sd-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sd-btn span { font-size: 10px; line-height: 1.1; white-space: nowrap; }
#app.dock-right main { padding-right: calc(26px + 64px); }
#app.dock-left main { padding-left: calc(26px + 64px); }
#app.dock-right main:has(.rooms-wrap) { padding-right: 64px; }
#app.dock-left main:has(.rooms-wrap) { padding-left: 64px; }
@media (max-width: 900px) {
  .side-dock { top: auto; bottom: 12px; height: auto; width: 48px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px 0 0 12px; box-shadow: 0 8px 24px rgba(15,23,42,.12); padding: 6px 3px; }
  #app:has(.rooms-wrap) .side-dock { bottom: 48px; }
  .side-dock[data-side="left"] { border-radius: 0 12px 12px 0; }
  .sd-btn { width: 40px; min-height: 40px; }
  .sd-btn span { display: none; }
  #app.dock-right main { padding-right: calc(26px + 48px); }
  #app.dock-left main { padding-left: calc(26px + 48px); }
  #app.dock-right main:has(.rooms-wrap) { padding-right: 48px; }
  #app.dock-left main:has(.rooms-wrap) { padding-left: 48px; }
}
.modal.pc-modal { width: min(1320px, 96vw); height: 92vh; max-height: 92vh; }
.modal.pc-modal .modal-b { padding: 0; display: block; overflow: hidden; }
.pc-frame-wrap { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.pc-frame-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 12px; color: #111; flex-wrap: wrap; }
.pc-frame-bar b { font-weight: 600; }
.pc-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #f3f6f3; }
@media (max-width: 900px) {
  .modal.pc-modal { width: 98vw; height: 94vh; }
}
