:root {
  color-scheme: light;
  --text-major: #409eff;
  --border: #ebeef5;
  --text: #303133;
  --muted: #909399;
  --danger: #f56c6c;
  --success: #67c23a;
  --warning: #e6a23c;
  --info: #909399;
  --surface: #ffffff;
  --page: #f5f7fa;
  font-family: "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

[v-cloak] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Compatibility layer for Bootstrap 4 utility names and Element UI class names
   while the page loads Bootstrap 5 and Element Plus. */
.mr-auto {
  margin-right: auto !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.mr-3 {
  margin-right: 1rem !important;
}

.float-right {
  float: right !important;
}

.float-left {
  float: left !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.el-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 8px 15px;
  background: #fff;
  color: #606266;
  line-height: 1;
  white-space: nowrap;
}

.el-button:hover,
.el-button:focus {
  border-color: #c6e2ff;
  background: #ecf5ff;
  color: var(--text-major);
}

.el-button--mini {
  min-height: 28px;
  padding: 7px 10px;
  font-size: 12px;
}

.el-button--primary {
  border-color: var(--text-major);
  background: var(--text-major);
  color: #fff;
}

.el-button--success {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.el-button--danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.el-button--warning {
  border-color: var(--warning);
  background: var(--warning);
  color: #fff;
}

.el-button--info {
  border-color: var(--info);
  background: var(--info);
  color: #fff;
}

.el-button.is-active {
  filter: brightness(0.94);
}

.el-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.el-button--text {
  min-height: auto;
  border-color: transparent;
  padding: 0;
  background: transparent;
  color: inherit;
}

.el-button-group {
  display: inline-flex;
  vertical-align: middle;
}

.el-button-group .el-button + .el-button {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.el-input__inner {
  width: 100%;
  height: 32px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

.el-menu {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.el-menu-item,
.el-submenu__title {
  cursor: pointer;
}

.app-root {
  display: block;
  min-height: 100vh;
}

.app-navbar {
  height: 40px !important;
  padding: 0;
}

.navbar {
  min-height: 40px;
  height: 40px;
  align-items: stretch;
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  height: 40px;
  margin-right: 0;
  padding: 0 16px;
  font-size: 20px;
}

.navbar-major-menu {
  display: flex;
  align-items: stretch;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

.navbar-major-menu .el-menu-item {
  display: flex;
  align-items: center;
  height: 40px;
  line-height: 40px;
  color: #fff;
  border-bottom: 0;
  padding: 0 18px;
}

.navbar-major-menu .nav-submenu {
  display: flex;
  align-items: stretch;
  position: relative;
  height: 40px;
  color: #fff;
  list-style: none;
}

.nav-submenu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  line-height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
}

.nav-submenu:hover .nav-dropdown,
.nav-submenu:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 2100;
  display: none;
  min-width: 180px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.nav-dropdown .el-menu-item {
  display: block;
  height: 38px;
  line-height: 38px;
  color: var(--text);
  border-bottom: 0;
}

.nav-dropdown .top-nav__link.el-menu-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  height: 38px;
  line-height: 1.2;
  padding: 0 16px;
}

.nav-dropdown .top-nav__link.el-menu-item i {
  width: 18px;
  line-height: 1;
  text-align: center;
}

.nav-dropdown .top-nav__link.el-menu-item span {
  min-width: 0;
  line-height: 1.2;
}

.nav-dropdown .nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  color: inherit;
  text-decoration: none;
}

.nav-dropdown .nav-dropdown-link-item {
  padding: 0 18px;
}

.nav-dropdown .el-menu-item:hover,
.nav-dropdown .el-menu-item.is-active {
  background: #ecf5ff;
  color: var(--text-major);
}

.navbar-major-menu .el-menu-item.is-active,
.navbar-major-menu .el-menu-item:hover,
.navbar-major-menu .nav-submenu.is-active .nav-submenu-title,
.navbar-major-menu .nav-submenu:hover .nav-submenu-title {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-bottom: 0;
}

.navbar-tools {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.navbar-tools .nav-submenu {
  position: relative;
  height: 40px;
}

.navbar-tools .nav-submenu-title {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-tools .nav-dropdown {
  right: 0;
  left: auto;
}

.current-user {
  max-width: 220px;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef5f0 46%, #f8f3ec 100%);
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(48, 49, 51, 0.12);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
}

.auth-card label,
.settings-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #606266;
}

.auth-card.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.uid-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #fff;
}

.uid-field input {
  width: 76px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-body {
  display: block;
  min-height: calc(100vh - 40px);
}

.breadcrumb-header {
  height: auto !important;
  padding: 0;
}

.breadcrumb {
  margin: 0;
  min-height: 40px;
  border-radius: 0;
  background: #fff;
  align-items: center;
}

.text-major {
  color: var(--text-major);
}

.money-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  background: #fff;
}

.money-section {
  display: contents;
}

.manager-view {
  padding: 0;
  background: #fff;
}

.manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.manager-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.manager-parent-tabs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manager-table th {
  color: #606266;
  font-weight: 500;
  background: #fff;
}

.order-header,
.order-cell {
  width: 120px;
  text-align: center;
}

.manager-order-input {
  width: 82px;
  height: 32px;
  text-align: center;
}

.settings-page {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  align-items: start;
  gap: 20px;
  min-height: calc(100vh - 80px);
  padding: 20px;
  background: #fff;
}

.settings-menu {
  border-right: 1px solid var(--border);
  padding-right: 12px;
}

.settings-side-menu {
  border-right: 0;
  background: transparent;
}

.settings-side-menu .el-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  line-height: 40px;
  border-left: 3px solid transparent;
  padding: 0 12px !important;
}

.settings-side-menu .el-menu-item.is-active {
  border-left-color: var(--text-major);
  background: #ecf5ff;
  color: var(--text-major);
}

.settings-content {
  min-width: 0;
}

.settings-panel {
  max-width: 760px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
}

.settings-panel h2,
.settings-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 500;
}

.settings-panel h2 {
  font-size: 22px;
}

.settings-panel h3 {
  font-size: 17px;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.profile-summary {
  display: grid;
  gap: 4px;
  color: #606266;
}

.social-accounts {
  display: grid;
  gap: 10px;
}

.social-account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #606266;
}

.social-account img,
.social-account > i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.social-account > i {
  display: grid;
  place-items: center;
  background: #f4f4f5;
  color: #606266;
}

.social-account div {
  display: grid;
  gap: 2px;
}

.social-account span {
  color: var(--muted);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.money-topbar {
  height: auto !important;
  min-height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.book-tabs,
.record-tabs {
  border-bottom: 0;
  background: transparent;
}

.book-tabs {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
}

.book-tabs.el-menu--horizontal,
.record-tabs.el-menu--horizontal {
  flex: 0 0 auto;
  height: 32px;
  border-bottom: 0;
  overflow: visible;
}

.book-tabs .el-menu-item,
.record-tabs .el-menu-item {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
}

.book-tabs .el-menu-item {
  height: 32px;
  line-height: 14px;
  padding: 8px 12px;
}

.record-tabs .el-menu-item {
  height: 32px;
  line-height: 14px;
  padding: 8px 12px;
}

.book-tabs .el-menu-item,
.record-tabs .el-menu-item {
  flex: 0 0 auto;
  max-width: none;
}

.book-tabs .el-menu-item.is-active,
.record-tabs .el-menu-item.is-active {
  color: var(--text-major);
  border-bottom-color: var(--text-major);
}

.money-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 8px;
}

.search-wrap {
  display: inline-flex;
  align-items: stretch;
  width: min(260px, 42vw);
  height: 28px;
}

.search-wrap .el-input__inner {
  height: 28px;
  line-height: 28px;
  border-radius: 4px 0 0 4px;
}

.search-wrap .el-button {
  width: 42px;
  height: 28px;
  min-height: 28px;
  border-radius: 0 4px 4px 0;
  border-left: 0;
  padding: 0;
}

.money-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
  flex: 1;
}

.class-aside {
  width: 300px !important;
  display: block;
  border-right: 1px solid var(--border);
  background: #fff;
}

.class-menu {
  width: 300px;
  border-right: 0;
}

.class-menu-item,
.class-group-title {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 35px;
  border: 0;
  border-left: 3px solid transparent;
  padding: 0 10px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.class-menu > .class-menu-item,
.class-group-title {
  min-height: 45px;
  padding: 0 16px;
}

.class-menu-child {
  padding-left: 45px;
}

.class-menu-item:hover,
.class-menu-item.is-active {
  color: var(--text-major);
  border-left-color: var(--text-major);
  background: #ecf5ff;
}

.class-menu .el-menu-item,
.class-menu .el-submenu__title,
.class-menu .el-sub-menu__title {
  display: flex;
  align-items: center;
  height: 45px;
  line-height: 45px;
  border-left: 3px solid transparent;
}

.class-menu > .el-menu-item,
.class-menu > .el-sub-menu > .el-sub-menu__title {
  padding: 0 16px !important;
}

.class-menu .el-submenu .el-menu-item,
.class-menu .el-sub-menu .el-menu-item,
.class-menu .el-menu--inline .el-menu-item {
  height: 35px;
  line-height: 35px;
  padding: 0 10px 0 45px !important;
}

.class-menu .is-active,
.class-menu .el-menu-item.is-active {
  color: var(--text-major);
  border-left-color: var(--text-major);
  background: #ecf5ff;
}

.class-title,
.class-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.class-title {
  padding-right: 20px;
}

.class-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.class-total {
  flex: 0 0 auto;
  display: inline-block;
  margin-left: auto;
  max-width: 118px;
  height: 20px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  border: 1px solid #d3d4d6;
  border-radius: 4px;
  padding: 0 5px;
  color: #909399;
  background: #f4f4f5;
  font-size: 12px;
  font-weight: 400;
}

.parent-currency-tags {
  display: inline-flex;
  margin-left: auto;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.currency-tag {
  display: inline-block;
  height: 20px;
  border: 1px solid #d3d4d6;
  border-radius: 4px;
  padding: 0 5px;
  color: #909399;
  background: #f4f4f5;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

.money-main {
  min-width: 0;
  padding: 0;
  background: #fff;
}

.visual-panel {
  min-height: 300px;
  border-bottom: 1px solid var(--border);
}

.legacy-calendar {
  background: #fff;
}

.money-calendar.el-calendar {
  --el-calendar-cell-width: 36px;
}

.money-calendar .el-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--border);
}

.calendar-title {
  font-weight: 500;
  white-space: nowrap;
}

.money-calendar .el-calendar__body {
  padding: 0;
}

.money-calendar .el-calendar-table {
  table-layout: fixed;
}

.money-calendar .el-calendar-table th {
  height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 400;
  text-align: left;
}

.money-calendar .el-calendar-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.money-calendar .el-calendar-table td:last-child {
  border-right: 0;
}

.money-calendar .el-calendar-day {
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.money-calendar .el-calendar-table:not(.is-range) td.next,
.money-calendar .el-calendar-table:not(.is-range) td.prev {
  color: inherit;
}

.calendar-weekday,
.calendar-day {
  min-height: 35px;
  padding: 3px 5px;
  border-bottom: 1px solid #f2f6fc;
}

.native-calendar-header,
.native-calendar-weekdays,
.native-calendar-grid {
  display: grid;
}

.native-calendar-header {
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--border);
}

.native-calendar-weekdays,
.native-calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.native-calendar-weekdays span {
  min-height: 36px;
  border-bottom: 1px solid var(--border);
  padding: 9px 8px;
  color: var(--muted);
  font-size: 12px;
}

.native-calendar-grid .calendar-day {
  min-height: 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calendar-weekday {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.calendar-day {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  color: var(--text);
  line-height: 1.2;
}

.money-calendar .calendar-day {
  min-height: 0;
  padding: 7px 8px;
  border-bottom: 0;
}

.money-calendar .el-calendar-table td.is-selected {
  background: transparent;
}

.calendar-day:hover,
.calendar-day.is-selected {
  background: #ecf5ff;
  color: var(--text-major);
}

.calendar-day.is-today {
  color: var(--text-major);
  font-weight: 700;
}

.calendar-day.is-muted {
  color: #c0c4cc;
}

.chart-view {
  width: 100%;
  height: 300px;
  padding: 0;
}

.chart-view .highcharts-container,
.chart-view .highcharts-root {
  width: 100% !important;
  height: 100% !important;
}

.analytics-chart {
  height: 300px;
}

.chart-view svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-axis {
  stroke: #dcdfe6;
  stroke-width: 1;
}

.chart-column {
  fill: var(--warning);
  opacity: 0.72;
}

.chart-line-in {
  fill: none;
  stroke: var(--danger);
  stroke-width: 3;
}

.chart-line-out {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
}

.chart-dot-in {
  fill: var(--danger);
}

.chart-dot-out {
  fill: var(--success);
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-radius: 50%;
}

.legend-in {
  background: var(--danger);
}

.legend-out {
  background: var(--success);
}

.legend-diff {
  background: var(--warning);
}

.empty-visual {
  padding: 48px 16px;
  color: var(--muted);
  text-align: center;
}

.money-listbar {
  padding: 8px 0 6px;
}

.record-table-wrap {
  overflow-x: auto;
  padding-bottom: 24px;
}

.legacy-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #606266;
}

.record-table {
  min-width: 680px;
  table-layout: fixed;
}

.legacy-table tr:nth-child(even) {
  background: #fafafa;
}

.legacy-table td,
.legacy-table th {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  vertical-align: middle;
}

.date-cell {
  width: 80px;
  text-align: center;
  color: #606266;
  white-space: nowrap;
}

.record-table .date-cell {
  width: 72px;
  min-width: 72px;
}

.date-cell span,
.date-cell strong {
  white-space: nowrap;
}

.date-cell strong {
  display: block;
  color: var(--text);
}

.class-flow {
  width: 170px;
  min-width: 170px;
  white-space: nowrap;
}

.class-flow > div,
.class-flow i {
  white-space: nowrap;
}

.record-note {
  min-width: 138px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.record-note-inline {
  display: inline;
  white-space: normal;
}

.record-note-inline .fa-link {
  margin-left: 4px;
}

.amount-cell {
  width: 112px;
  min-width: 112px;
  text-align: right;
  white-space: nowrap;
}

.record-time-cell {
  width: 150px;
  min-width: 150px;
  white-space: nowrap;
}

.action-cell {
  width: 38px;
  min-width: 38px;
  text-align: right;
}

.record-table .action-cell {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -1px 0 0 var(--border);
}

.record-table tr:nth-child(even) .action-cell {
  background: #fafafa;
}

.record-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.record-action-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-major);
}

.record-action-trigger:hover,
.record-action-menu:focus-within .record-action-trigger {
  background: #ecf5ff;
}

.el-dropdown-menu__item {
  gap: 8px;
}

.record-action-dropdown {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 30;
  display: none;
  min-width: 92px;
  padding: 4px 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.record-action-menu:hover .record-action-dropdown,
.record-action-menu:focus-within .record-action-dropdown {
  display: block;
}

.record-action-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: #606266;
  text-align: left;
  white-space: nowrap;
}

.record-action-dropdown button:hover {
  background: #ecf5ff;
  color: var(--text-major);
}

.text-danger {
  color: var(--danger) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.empty-table {
  padding: 36px 12px;
  color: var(--muted);
  text-align: center;
}

.loading-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text-major);
  font-size: 28px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2050;
  background: rgba(0, 0, 0, 0.35);
}

.drawer-panel {
  width: min(75vw, 340px);
  height: 100%;
  overflow: auto;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.18);
}

.drawer-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-panel .class-menu,
.drawer-panel .class-aside {
  width: 100% !important;
}

.legacy-dialog {
  width: min(70vw, 880px);
  max-width: calc(100vw - 24px);
  border: 0;
  border-radius: 2px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.legacy-element-dialog.el-dialog,
.legacy-element-dialog .el-dialog {
  width: min(70vw, 880px);
  max-width: calc(100vw - 24px);
  border-radius: 2px;
}

.legacy-element-dialog.wide-dialog.el-dialog,
.legacy-element-dialog.wide-dialog .el-dialog {
  width: min(70vw, 980px);
}

.legacy-element-dialog .el-dialog__body {
  padding: 0;
}

.legacy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.wide-dialog {
  width: min(70vw, 980px);
}

.dialog-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.dialog-form h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.dialog-form label {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
}

.dialog-stack {
  display: grid;
  gap: 12px;
}

.switch-line {
  grid-template-columns: auto 1fr !important;
  justify-content: start;
}

.transfer-row,
.money-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.money-row {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.money-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transfer-row label,
.money-row label {
  grid-template-columns: 80px minmax(0, 1fr);
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.analytics-grid {
  display: grid;
  gap: 16px;
}

.analytics-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px;
}

.analytics-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
}

.native-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
}

.native-modal-panel {
  width: min(70vw, 880px);
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.native-modal-panel.wide-panel {
  width: min(70vw, 980px);
}

.analytics-bars {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 150px;
  border-bottom: 1px solid var(--border);
}

.analytics-bar {
  min-height: 2px;
  background: var(--warning);
}

.analytics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.analytics-pill {
  border-radius: 4px;
  padding: 4px 8px;
  background: #f4f4f5;
  color: #606266;
}

#toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  transform: translateY(80px);
  transition: transform 160ms ease;
  border-radius: 4px;
  padding: 10px 14px;
  background: #303133;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

#toast.show {
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .money-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .money-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .search-wrap {
    order: 3;
    width: 100%;
  }

  .money-workspace {
    display: block;
  }

  .class-aside {
    display: none !important;
  }

  .money-main {
    width: 100%;
  }

  .settings-page {
    display: block;
    padding: 12px;
  }

  .settings-menu {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 8px;
    margin-bottom: 14px;
  }

  .record-tabs {
    max-width: calc(100vw - 18px);
    overflow-x: auto;
  }

  .legacy-table,
  .legacy-table tbody,
  .legacy-table tr,
  .legacy-table td {
    display: block;
    width: 100%;
  }

  .legacy-table tr {
    border-bottom: 1px solid var(--border);
  }

  .legacy-table td {
    border-bottom: 0;
  }

  .record-table {
    display: table;
    min-width: 680px;
  }

  .record-table tbody {
    display: table-row-group;
  }

  .record-table tr {
    display: table-row;
  }

  .record-table td {
    display: table-cell;
    width: auto;
    border-bottom: 1px solid var(--border);
  }

  .date-cell,
  .amount-cell,
  .action-cell {
    text-align: left;
  }

  .record-table .date-cell {
    text-align: center;
  }

  .record-table .amount-cell,
  .record-table .action-cell {
    text-align: right;
  }

  .legacy-dialog,
  .wide-dialog,
  .native-modal-panel,
  .native-modal-panel.wide-panel {
    width: 98%;
  }

  .dialog-form label,
  .transfer-row label,
  .money-row label {
    grid-template-columns: 1fr;
  }

  .transfer-row,
  .money-row,
  .money-row.two {
    grid-template-columns: 1fr;
  }
}
