:root {
  --red: #c51b10;
  --side: #ffffff;
  --bg: #f3f5f9;
  --text: #344054;
  --muted: #667085;
  --line: #e6eaf0;
  --blue: #3b7ddd;
  --green: #28a745;
  --cyan: #17a2b8;
  --side-width: 286px;
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
}
a { color: #2f80ed; text-decoration: none; cursor: pointer; }
.boot-screen, .login-screen {
  min-height: 100vh;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.login-screen {
  background: linear-gradient(120deg, #b9140b, #28405f);
}
.login-card {
  width: 380px;
  padding: 32px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.2);
}
.login-card h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.login-card p { color: #88929f; margin-bottom: 22px; }
.login-card label { margin-top: 12px; margin-bottom: 6px; }
.login-card small { display: block; margin-top: 12px; color: #9099a6; text-align: center; }

.layout {
  min-height: 100vh;
  background: var(--bg);
}
.side {
  width: var(--side-width);
  position: fixed;
  inset: 16px auto 16px 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--side);
  color: #27313f;
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(25, 36, 58, .10);
  overflow: hidden;
  transition: transform .2s ease;
}
.brand {
  flex: 0 0 auto;
  padding: 14px 16px 0;
  color: #fff;
  background: linear-gradient(135deg, #c51b10, #8f1009);
}
.brand-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-main > div { min-width: 0; }
.brand-main strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.brand-main > div > span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255,255,255,.74);
}
.brand-seal {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 4px;
  color: #a9160d;
  background: #fff;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}
.brand-section {
  height: 31px;
  margin-top: 11px;
  padding-left: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.side-scroll { min-height: 0; flex: 1; }
.side-menu {
  --el-menu-hover-bg-color: #fff7f6;
  --el-menu-active-color: #b42318;
  border-right: 0;
  padding: 9px 10px 14px;
}
.side-menu .el-sub-menu__title {
  height: 46px;
  padding: 0 14px !important;
  border-radius: 6px;
  color: #344054;
  font-weight: 700;
  line-height: 46px;
}
.side-menu .el-sub-menu__title:hover {
  color: #b42318;
  background: #fff7f6;
}
.side-menu .el-sub-menu.is-active > .el-sub-menu__title {
  color: #b42318;
  background: #fff5f3;
}
.side-menu .el-sub-menu__icon-arrow {
  right: 12px;
  margin-top: -6px;
  color: #98a2b3;
  font-size: 13px;
}
.side-menu .el-sub-menu.is-active > .el-sub-menu__title .el-sub-menu__icon-arrow {
  color: #b42318;
}
.menu-icon {
  width: 18px;
  margin-right: 10px;
  flex: 0 0 18px;
  color: #667085;
  font-size: 17px;
}
.side-menu .el-sub-menu.is-active > .el-sub-menu__title .menu-icon {
  color: #b42318;
}
.group-title {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.group-badge {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  margin-right: 20px;
  padding: 0 6px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: #d92d20;
  box-shadow: 0 0 0 2px #fff5f3;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}
.side-menu .el-menu-item {
  width: calc(100% - 12px);
  min-width: 0;
  height: 38px;
  margin: 2px 0 2px 12px;
  padding: 0 12px 0 14px !important;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  border-radius: 0 5px 5px 0;
  color: #475467;
  font-size: 13px;
  line-height: 38px;
}
.side-menu .el-menu-item:hover { color: #b42318; background: #fff8f7; }
.side-menu .el-menu-item.is-active {
  color: #b42318;
  background: #fff1ef;
  border-left-color: var(--red);
  box-shadow: none;
  font-weight: 700;
}
.child-mark {
  width: 13px;
  margin-right: 4px;
  flex: 0 0 13px;
  color: #b7bec8;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}
.side-menu .el-menu-item.is-active .child-mark { color: var(--red); }
.menu-item-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-badge {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #d92d20;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}
.side-menu .el-menu-item.is-active .menu-badge { background: var(--red); }

.main {
  min-width: 0;
  margin-left: calc(var(--side-width) + 32px);
  padding: 16px 16px 24px 0;
  transition: margin-left .2s ease;
}
.layout.compact .side {
  transform: translateX(-318px);
}
.layout.compact .main {
  margin-left: 16px;
}
.top {
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(25, 36, 58, .06);
  position: sticky;
  top: 16px;
  z-index: 20;
}
.collapse-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #475467;
  font-size: 19px;
}
.collapse-button:hover {
  color: var(--red) !important;
  background: #fff1ef !important;
}
.event-chip {
  padding: 8px 12px;
  border-radius: 6px;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  font-size: 14px;
}
.event-switch { width: min(380px, 34vw); }
.event-switch .el-select__wrapper {
  min-height: 34px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px #e5eaf1 inset;
}
.event-option-status { float: right; margin: 3px 0 0 18px; }
.account { margin-left: auto; color: #344054; font-size: 14px; }
.top-spacer { flex: 1; }
.account {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: #344054;
  background: #f8fafc;
  cursor: pointer;
}
.work {
  min-height: calc(100vh - 90px);
  padding: 18px 0 0;
}
.page-head {
  min-height: 76px;
  margin-bottom: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(25, 36, 58, .05);
}
.page-head h2 {
  margin: 3px 0 0;
  color: #1f2937;
  font-size: 22px;
  font-weight: 700;
}
.crumb {
  color: var(--muted);
  font-size: 12px;
}
.head-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #667085;
  font-size: 12px;
}
.head-info span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}
.loading {
  margin-bottom: 16px;
  padding: 8px 14px;
  color: #777;
  background: #fff;
  border-radius: 4px;
}
.tool-card, .table-card, .form-card {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(25, 36, 58, .04);
}
.tool-card { padding: 14px 16px; min-height: 58px; }
.tool-card.el-card, .table-card.el-card, .form-card.el-card { padding: 0; }
.tool-card .el-card__body { padding: 14px 16px; }
.table-card .el-card__body { padding: 0; }
.form-card .el-card__body { padding: 28px; }
.tool-card.inside { box-shadow: none; border: 0; margin: 0 0 18px; }
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .form-control, .toolbar .form-select {
  width: auto;
  min-width: 118px;
  height: 34px;
  border-color: #d7dce4;
  color: #627080;
  border-radius: 6px;
}
.toolbar .form-control { min-width: 210px; }
.tool-input { width: 220px; }
.tool-select { width: 150px; }
.dialog-control { width: 100%; }
.import-summary {
  margin: 18px 0 12px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  color: #475467;
}
.import-summary strong { margin-left: 4px; color: #b42318; font-size: 17px; }
.import-foot {
  min-height: 42px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #667085;
  font-size: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.metric-item {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #f8fafc;
}
.metric-item span {
  display: block;
  color: #667085;
  font-size: 12px;
}
.metric-item strong {
  display: block;
  margin-top: 4px;
  color: #b42318;
  font-size: 18px;
  font-weight: 700;
}
.btn {
  height: 34px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-info { color: #fff; background: var(--cyan); border-color: var(--cyan); }
.btn-warning { color: #fff; background: #f4b000; border-color: #f4b000; }
.btn-secondary { background: #6c757d; border-color: #6c757d; }
.metric {
  margin-left: 10px;
  white-space: nowrap;
  color: #4d5966;
}
.metric b { color: red; font-weight: 500; }
.table-card { overflow: hidden; }
.detail-section-title { margin: 24px 0 10px; color: #344054; font-size: 15px; }
.detail-block { margin-top: 12px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-links a { padding: 7px 10px; border: 1px solid #cfe0f7; border-radius: 6px; background: #f5f9ff; }
.detail-empty { padding: 14px; color: #98a2b3; background: #f8fafc; border-radius: 6px; }
.assignment-summary { margin-bottom: 22px; }
.hotel-assignment-form { padding: 20px 8px 0; border-top: 1px solid #eef2f6; }
.hotel-assignment-form .el-select, .hotel-assignment-form .el-input { width: 100%; }
.hotel-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hotel-option strong { color: #263244; font-weight: 600; }
.hotel-option span { max-width: 55%; overflow: hidden; color: #98a2b3; text-overflow: ellipsis; white-space: nowrap; }
.status-timeline { margin-top: 12px; }
.status-timeline .el-timeline-item__content { color: #475467; line-height: 1.7; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #fff;
}
.data-table th {
  height: 42px;
  padding: 10px 12px;
  color: #344054;
  font-weight: 700;
  border-bottom: 1px solid #dfe5ee;
  background: #f8fafc;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.data-table td {
  min-height: 40px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: #475467;
}
.data-table tbody tr:nth-child(odd) { background: #fbfcfe; }
.data-table tbody tr:nth-child(even) { background: #fff; }
.data-table tbody tr:hover { background: #fff7f6; }
.thumb { width: 132px; height: 58px; object-fit: cover; }
.el-image.thumb {
  width: 132px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
}
.money { color: #b42318; font-weight: 700; }
.actions {
  min-width: 170px;
  line-height: 1.55;
}
.actions a {
  display: inline-block;
  margin: 0 6px 4px 0;
  color: #2f6fed;
  font-size: 13px;
}
.empty { text-align: center; color: #999; }
.red { color: red; }
.green { color: green; }
.check { color: green; font-weight: 700; }
.cross { color: red; font-weight: 700; }
.switch {
  width: 28px;
  height: 16px;
  display: inline-block;
  border-radius: 999px;
  background: #e8edf2;
  position: relative;
  cursor: pointer;
}
.switch::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #b7c0c9;
}
.switch.on { background: #d8e9ff; }
.switch.on::after { left: 14px; background: #3b7ddd; }
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding: 12px 16px;
  border-top: 1px solid #eef2f6;
  background: #fff;
}
.pager span { margin-right: 12px; }
.pager button {
  min-width: 42px;
  height: 34px;
  border: 1px solid #dde2e8;
  background: #fff;
  color: #637080;
}
.pager button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.modal-content { border-radius: 0; border: 0; }
.el-dialog {
  border-radius: 8px;
}
.el-dialog__header {
  margin-right: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f6;
}
.el-dialog__body { padding: 20px; }
.el-dialog__footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #eef2f6;
}
.edit-form .el-input,
.edit-form .el-select,
.password-form .el-input {
  max-width: 620px;
}
.dialog-toolbar { margin-bottom: 14px; }
.modal-header {
  height: 48px;
  padding: 12px 22px;
  border-bottom: 1px solid #edf0f4;
}
.modal-header h5 { margin: 0; font-size: 16px; }
.edit-form, .password-card {
  max-width: 900px;
  padding: 8px 0;
}
.form-card { padding: 32px; }
.form-line {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}
.form-line label {
  padding-top: 7px;
  text-align: right;
  color: #53606d;
}
.form-line small {
  grid-column: 2;
  color: #7e8894;
}
.edit-form .form-control, .edit-form .form-select, .password-card .form-control {
  max-width: 620px;
  min-height: 34px;
}
.password-card { max-width: none; }
.password-card .form-line { max-width: 820px; margin-left: 160px; }
.password-card p { margin-left: 354px; color: #86919d; font-size: 12px; }
.password-card .btn { margin-left: 354px; }
.plans-modal .modal-body { min-height: 680px; background: #fafbff; padding: 26px; }

@media (max-width: 1100px) {
  .layout { display: block; }
  .side {
    position: fixed;
    inset: 12px auto 12px 12px;
    width: min(var(--side-width), calc(100vw - 24px));
    min-width: 0;
    margin: 0;
    max-height: calc(100vh - 24px);
    box-shadow: 0 18px 48px rgba(25, 36, 58, .22);
  }
  .main {
    margin-left: 0;
    padding: 12px 12px 20px;
  }
  .layout.compact .side { transform: translateX(calc(-100% - 24px)); }
  .layout.compact .main { margin-left: 0; }
  .top { top: 12px; }
  .top > .el-tag { display: none; }
  .event-switch { width: auto; min-width: 0; flex: 1 1 auto; }
  .top-spacer { flex: 0; }
  .work { padding: 14px 0 0; }
  .page-head { display: block; }
  .head-info { justify-content: flex-start; margin-top: 10px; }
  .form-line { grid-template-columns: 1fr; }
  .form-line label { text-align: left; }
  .password-card .form-line, .password-card p, .password-card .btn { margin-left: 0; }
}
