* {
  box-sizing: border-box;
}


:root {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
  color: #333;
  background: #d4ddf7;
  --blue: #7c96ef;
  --blue-deep: #6685e8;
  --header: #d4ddf7;
  --side: #d4ddf7;
  --line: #dce3f3;
  --ink: #4359b1;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-size: 14px;
}

html:has(body.workspace-page) {
  height: 100%;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #6d8bec;
  outline-offset: 1px;
}

a {
  color: #735ee0;
  text-decoration: none;
}

/* Login page. */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 32px 20px;
  overflow-y: auto;
  background: #eef3f9;
  font-size: 16px;
}

.login-box {
  width: 100%;
  max-width: 520px;
  min-height: 0;
  margin: 0;
  overflow: visible;
}

.login-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 42px 44px 34px;
  border: 1px solid #e0e6ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(54, 72, 106, .14), 0 3px 12px rgba(54, 72, 106, .06);
}

.login-head {
  margin-bottom: 36px;
  text-align: center;
}

.login-box h1 {
  max-width: 390px;
  margin: 0;
  color: #1b2840;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

.login-head p {
  margin: 12px 0 0;
  color: #7b879a;
  font-size: 14px;
  text-align: center;
}

.field {
  position: relative;
  display: block;
  height: 68px;
  margin: 0;
}

.field:focus-within {
  color: #536fc4;
}

.login-fields {
  display: grid;
  gap: 24px;
}

.field-icon {
  position: absolute;
  top: 24px;
  left: 18px;
  z-index: 2;
  display: inline-block;
  width: 20px;
  height: 20px;
  color: #9aa6b8;
}

.user-icon::before,
.user-icon::after,
.lock-icon::before,
.lock-icon::after {
  position: absolute;
  content: "";
}

.user-icon::before {
  top: 0;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.user-icon::after {
  bottom: 0;
  left: 2px;
  width: 14px;
  height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: currentColor;
}

.lock-icon::before {
  top: 7px;
  left: 3px;
  width: 12px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
}

.lock-icon::after {
  top: 1px;
  left: 5px;
  width: 8px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.field:focus-within .field-icon {
  color: #536fc4;
}

.field input {
  display: block;
  width: 100%;
  height: 68px;
  padding: 26px 18px 10px 54px;
  border: 1px solid #d8e0eb;
  border-radius: 14px;
  background: #f9fbff;
  color: #1d2a40;
  font-size: 15px;
  line-height: 22px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field input::placeholder {
  color: transparent;
}

.field input:hover {
  border-color: #b9c5d8;
  background: #fff;
}

.field input:focus {
  border: 2px solid #536fc4;
  box-shadow: 0 0 0 4px rgba(83, 111, 196, .12);
  background: #fff;
}

.field-label {
  position: absolute;
  top: 23px;
  left: 54px;
  color: #8793a6;
  font-size: 15px;
  line-height: 20px;
  pointer-events: none;
  transition: top .15s, font-size .15s, color .15s;
}

.field input:focus ~ .field-label,
.field input:not(:placeholder-shown) ~ .field-label {
  top: 8px;
  color: #536fc4;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 0;
  font-size: 14px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #59677d;
}

.remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #536fc4;
}

.primary-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(to right, #839af7, #7791f8);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, .2), 0 4px 6px -4px rgba(79, 70, 229, .2);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.login-page .primary-button {
  background: #536fc4;
  box-shadow: 0 10px 20px rgba(83, 111, 196, .22);
}

.login-page .primary-button:hover {
  background: #3f5dad;
}

.primary-button:hover {
  background: var(--blue-deep);
}

.login-btn:hover {
  background: #3f5dad;
}

.primary-button:disabled {
  opacity: .7;
  cursor: wait;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.login-button-icon,
.login-button-icon svg {
  width: 16px;
  height: 16px;
}

.login-button-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.register-line {
  margin-top: 24px;
  color: #7b879a;
  font-size: 14px;
  text-align: center;
}

.register-line a {
  margin-left: 6px;
  color: #536fc4;
  font-weight: 600;
}

.form-message {
  min-height: 20px;
  margin-top: 12px;
  color: #d9534f;
  font-size: 13px;
  text-align: center;
}

/* Workspace frame */
.workspace-page {
  height: 100vh;
  overflow: hidden;
  background: var(--header);
}

.workspace-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 130px minmax(0, 1fr);
  height: 100%;
  min-height: 100vh;
  background: var(--header);
}

.workspace-header {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  height: 130px;
  overflow: visible;
  background: var(--header);
  color: #fff;
}

.workspace-title {
  position: absolute;
  top: 0;
  left: 40px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 50px;
  white-space: nowrap;
}

.workspace-user {
  position: absolute;
  top: 0;
  right: 55px;
  z-index: 5;
}

.workspace-user > button {
  height: 50px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 50px;
}

.user-menu {
  position: absolute;
  top: 24px;
  right: 0;
  width: 110px;
  padding: 4px;
  border: 1px solid #d7dff0;
  background: #fff;
  box-shadow: 0 5px 15px rgba(70, 90, 150, .18);
}

.user-menu[hidden] {
  display: none;
}

.user-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: #fff;
  color: #505a76;
  text-align: left;
}

.user-menu button:hover {
  background: #f0f4ff;
}

.header-nav {
  position: absolute;
  right: 125px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 21px;
  height: 50px;
}

.header-nav button {
  min-width: 53px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  line-height: 50px;
}

.header-nav button:hover {
  text-decoration: underline;
}

.header-nav i {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, .7);
}

.workspace-sidebar {
  position: relative;
  top: -1.333px;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: calc(100% + 1.333px);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--side);
}

.workspace-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.side-nav {
  width: 100%;
  padding: 0;
}

.menu-group {
  border: 0;
}

.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #9ca7c9;
  background: transparent;
  color: #292929;
  font-size: 14px;
  line-height: 40px;
  text-align: left;
}

.menu-title:hover {
  background: rgba(238, 241, 253, .55);
}

.menu-group.open .menu-title {
  background: linear-gradient(to right, #819af7, #a2b5f7);
  color: #fff;
}

.menu-title span {
  color: #3b4d7f;
  font-size: 18px;
  transition: transform .2s;
}

.menu-group.open .menu-title span:last-child {
  transform: rotate(180deg);
}

.menu-children {
  display: none;
  grid-template-columns: repeat(2, 48px);
  justify-content: center;
  gap: 8px 10px;
  padding: 14px 10px;
  border-bottom: 1px solid #edf0fa;
  background: #dfe5fa;
}

.menu-group.open .menu-children {
  display: grid;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 154px;
  padding: 16px 0 12px;
  border: 1px solid #d4ddf7;
  border-radius: 14px;
  background: linear-gradient(to right, #d4ddf7, #d4ddf7);
  box-shadow: 0 0 4px rgba(0, 0, 0, .4);
  color: #202020;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.menu-card:hover,
.menu-card.active {
  border-color: #d4ddf7;
  background: linear-gradient(to right, #7a94f7, #879ef7);
  color: #fff;
}

.menu-card-icon {
  display: block;
  width: 29px;
  height: 29px;
  margin-top: 0;
  border-radius: 50%;
  background: #eaf8f3;
  font-size: 17px;
  object-fit: contain;
}

.menu-card > span {
  width: 30px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.management-grid {
  grid-template-columns: repeat(4, 48px);
  gap: 16px 10px;
  padding: 14px 10px;
}

.management-grid .menu-card {
  min-height: 154px;
}

.management-grid .menu-card:nth-child(13):last-child {
  grid-column: 2 / 4;
}

.single-card .menu-children {
  grid-template-columns: 48px;
}

.side-collapsed .workspace-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.side-collapsed .workspace-sidebar {
  width: 0;
  overflow: hidden;
}

.side-collapsed .workspace-title {
  left: 40px;
}

.workspace-main {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding-top: 3px;
  background: var(--header);
}

.tab-strip {
  display: flex;
  flex: 0 0 38px;
  align-items: stretch;
  height: 38px;
  padding-right: 5px;
  background: #ebeff9;
  color: #5d6b91;
}

.strip-arrow {
  width: 35px;
  border: 0;
  background: transparent;
  color: #627096;
  font-size: 25px;
  line-height: 30px;
}

.strip-arrow:hover {
  background: #dde5f8;
}

.tab-list {
  display: flex;
  flex: 1;
  gap: 2px;
  overflow: hidden;
}

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-width: 120px;
  max-width: 180px;
  height: 35px;
  padding: 0 12px;
  border: 0;
  background: #e4eafa;
  color: #677496;
  font-size: 14px;
  white-space: nowrap;
}

.tab.active {
  background: linear-gradient(to right, #7a94f7, #879ef7);
  color: #fff;
}

.tab-dot {
  color: #cfd6eb;
  font-size: 9px;
}

.tab.active .tab-dot {
  color: #fff;
}

.tab .tab-close {
  margin-left: auto;
  font-size: 16px;
  opacity: .72;
}

.tab .tab-close:hover {
  opacity: 1;
}

.page-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 2px 10px 8px;
  background: var(--header);
}

.page-empty {
  height: 100%;
  min-height: 450px;
  background: var(--header);
}

/* Business page toolbar, filters, and charts */
.module-page {
  width: 100%;
  min-width: 762px;
  min-height: 100%;
  padding: 0 0 24px;
  background: #fff;
  color: #414141;
}

.top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 10px 10px;
}

.top-toolbar .action-row {
  padding: 0;
}

.top-toolbar .table-toolbar {
  margin-left: auto;
  padding: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.module-button {
  height: 32px;
  padding: 0 17px;
  border: 0;
  border-radius: 3px;
  background: #429deb;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
}

.module-button:hover {
  background: #278adf;
}

.module-button:active {
  transform: translateY(1px);
}

.button-glyph {
  margin-right: 5px;
}

.circle-tool {
  width: 34px;
  height: 34px;
  border: 1px solid #e3e5e8;
  border-radius: 50%;
  background: #fff;
  color: #888;
  font-size: 16px;
}

.circle-tool:hover {
  border-color: #9bb1e8;
  color: #4b73bf;
}

.filter-chart-card {
  display: block;
  min-height: 362px;
  margin: 0 10px 10px;
  border: 1px solid #ebeef5;
  background: #fff;
}

.filter-chart-card.no-chart {
  min-height: 112px;
}

.filter-panel {
  padding: 16px 20px 13px;
}

.filter-form {
  display: grid;
  grid-template-columns: 275px 275px;
  gap: 10px 30px;
  min-height: 103px;
}

.filter-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  color: #646b77;
  font-size: 13px;
}

.filter-field span {
  min-width: 82px;
  color: #666;
  text-align: right;
}

.filter-field input,
.filter-field select {
  width: 185px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dfe3ec;
  border-radius: 2px;
  background: #fff;
  color: #666;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #7793ed;
  outline: none;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-form .filter-actions {
  justify-content: flex-start;
  margin-left: 0;
}

.chart-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 214px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-top: 1px solid #ebeef5;
}

.chart-panel--axis {
  display: block;
  overflow: visible;
}

.chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-svg text {
  fill: #777d88;
  font-family: inherit;
  font-size: 10px;
}

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9ba3b4;
}

.chart-panel--doughnut {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  height: 214px;
  padding: 4px 14px 8px;
  border-top: 1px solid #ebeef5;
}

.chart-panel--doughnut.legend-top {
  grid-template-rows: auto minmax(0, 1fr);
}

.chart-panel--doughnut .chart-svg {
  min-height: 0;
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(var(--legend-columns, 4), minmax(0, 1fr));
  gap: 3px 9px;
  width: 100%;
  color: #777d88;
  font-size: 10px;
}

.chart-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  line-height: 1.35;
}

.chart-legend-item i {
  flex: 0 0 12px;
  width: 12px;
  height: 8px;
  margin-top: 2px;
  border-radius: 2px;
}

.chart-panel--doughnut.legend-top .chart-legend-item {
  white-space: nowrap;
}

.chart-panel--doughnut.legend-top .chart-legend-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-panel--dependency-labels {
  height: 245px;
  overflow: hidden;
  border-top: 1px solid #ebeef5;
}

.dependency-label-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 100%;
  padding: 24px 50px;
}

.dependency-label {
  max-width: 100%;
  color: var(--label-color);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--label-color) 30%, transparent);
  overflow-wrap: anywhere;
  cursor: crosshair;
}

.dependency-chart-tools {
  position: absolute;
  top: 8px;
  right: 16px;
  z-index: 1;
  display: flex;
  gap: 9px;
}

.dependency-chart-tools button {
  width: 18px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #969da7;
  font-size: 17px;
  line-height: 20px;
}

.dependency-data {
  position: absolute;
  inset: 35px 24px auto;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d9deea;
  background: rgba(255, 255, 255, .96);
  color: #666;
  font-size: 12px;
}

.dependency-data > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.chart-series-legend {
  position: absolute;
  top: 6px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  color: #555;
  font-size: 11px;
  white-space: nowrap;
}

.chart-series-legend i {
  width: 13px;
  height: 13px;
  border: 2px solid #667dc2;
  border-radius: 50%;
  background: #fff;
}

.chart-overview {
  display: flex;
  flex-direction: column;
  min-height: 362px;
}

.chart-overview .chart-panel {
  order: 0;
  border-top: 0;
}

.chart-overview .filter-panel {
  order: 1;
}

.chart-below {
  min-height: var(--panel-height, 327px);
  margin-bottom: 20px;
}

.chart-below .filter-panel {
  padding: 20px 20px 12px;
}

.chart-below .filter-form {
  min-height: 0;
  row-gap: 0;
}

.chart-below .chart-panel--doughnut {
  height: 231px;
}

.chart-below .chart-legend {
  transform: translateY(-30px);
}

.chart-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  align-items: center;
  min-height: 275px;
}

.chart-split .chart-panel {
  height: 250px;
  border: 0;
}

.chart-split .filter-panel {
  border-left: 1px solid #ebeef5;
}

.chart-split .filter-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.chart-split .filter-field {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.chart-split .filter-field span {
  min-width: 0;
  text-align: left;
}

.chart-split .filter-field input,
.chart-split .filter-field select {
  width: 100%;
}

.chart-split .filter-actions {
  flex-wrap: wrap;
}

/* Data table and record actions */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: #66718a;
}

.table-tools {
  display: flex;
  gap: 5px;
}

.column-menu {
  position: relative;
}

.column-menu-panel {
  position: absolute;
  top: 32px;
  right: 0;
  z-index: 4;
  display: grid;
  gap: 6px;
  width: 140px;
  padding: 9px;
  border: 1px solid #d9dfec;
  background: #fff;
  box-shadow: 0 7px 18px rgba(70, 90, 150, .18);
}

.column-menu-panel[hidden] {
  display: none;
}

.column-menu-panel label {
  color: #5f6675;
  font-size: 12px;
  white-space: nowrap;
}

.column-menu-actions {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.column-menu-actions button {
  padding: 3px 8px;
  border: 1px solid #d9deea;
  background: #fff;
  color: #64708e;
  font-size: 12px;
}

.data-table-wrap {
  margin: 0 25px 0 10px;
  overflow: auto;
  border: 0;
}

.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  height: 63px;
  max-width: 300px;
  padding: 10px 14px;
  overflow: hidden;
  border-right: 1px solid #e0e5f3;
  border-bottom: 1px solid #e0e5f3;
  font-size: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table th {
  height: 47px;
  background: #cbd3f6;
  color: #5365aa;
  font-weight: 600;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.sort-indicator {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.sort-indicator i {
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.sort-indicator i:first-child {
  border-bottom: 4px solid #c0c4cc;
}

.sort-indicator i:last-child {
  border-top: 4px solid #c0c4cc;
}

.sort-header.ascending .sort-indicator i:first-child {
  border-bottom-color: #409eff;
}

.sort-header.descending .sort-indicator i:last-child {
  border-top-color: #409eff;
}

.data-table th:first-child,
.data-table td:first-child {
  width: 45px;
}

.data-table tbody tr:nth-child(even) {
  background: #eef2ff;
}

.data-table tbody tr:hover {
  background: #e6ecff;
}

.data-table tbody tr {
  height: 90px;
}

.data-table tbody td {
  padding: 8px 14px;
}

.data-table .row-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  clip-path: polygon(10% 0, 90% 0, 100% 22%, 100% 78%, 90% 100%, 10% 100%, 0 78%, 0 22%);
  background: #8197f1;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.row-action:hover {
  filter: brightness(.94);
}

.row-action.delete {
  background: #8197f1;
}

.row-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.row-action-svg {
  display: block;
  width: 14px;
  height: 14px;
}

.empty-row {
  padding: 45px !important;
  color: #a0a5b2;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  height: 46px;
  margin: 0 10px;
  color: #818896;
}

.pager button {
  width: 27px;
  height: 27px;
  border: 1px solid #d9deea;
  border-radius: 3px;
  background: #fff;
  color: #64708e;
}

.pager button.active {
  border-color: #7895ed;
  background: #7895ed;
  color: #fff;
}

.pager button:disabled {
  background: #f7f8fb;
  color: #bcc3d1;
}

.pager-input {
  width: 38px;
  height: 26px;
  border: 1px solid #d9deea;
  border-radius: 3px;
  color: #64708e;
  text-align: center;
}

/* Editor, notifications, and print view */
.editor-dialog {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(31, 45, 92, .28);
}

dialog[hidden] {
  display: none !important;
}

.editor-dialog::backdrop {
  background: rgba(27, 39, 76, .32);
}

/* Keep the dialogs usable in browsers that expose <dialog> without showModal(). */
.editor-dialog.dialog-fallback-open,
.print-dialog.dialog-fallback-open {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 20;
  display: block;
  max-height: calc(100vh - 28px);
  transform: translate(-50%, -50%);
}

.dialog-fallback-open::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(27, 39, 76, .32);
  content: "";
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-bottom: 1px solid #e9ecf3;
}

.dialog-head h2 {
  margin: 0;
  color: #4a5eaa;
  font-size: 19px;
}

.dialog-head button {
  border: 0;
  background: transparent;
  color: #858b98;
  font-size: 25px;
}

.editor-dialog form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 22px;
}

.dialog-field {
  display: grid;
  gap: 6px;
  color: #65708b;
  font-size: 13px;
}

.dialog-field.wide {
  grid-column: 1 / -1;
}

.dialog-field input,
.dialog-field select,
.dialog-field textarea {
  width: 100%;
  min-height: 35px;
  padding: 7px 9px;
  border: 1px solid #dce2ee;
  border-radius: 5px;
  color: #3f4656;
}

.dialog-field textarea {
  min-height: 78px;
  resize: vertical;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 13px 22px;
  border-top: 1px solid #e9ecf3;
}

.plain-button {
  padding: 8px 18px;
  border: 1px solid #d9deea;
  border-radius: 5px;
  background: #fff;
  color: #64708e;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 30;
  padding: 10px 17px;
  border-radius: 5px;
  background: #4d609e;
  box-shadow: 0 6px 18px rgba(40, 55, 110, .25);
  color: #fff;
}

.toast.error {
  background: #c85c67;
}

.print-root {
  display: none;
}

.print-sheet {
  padding: 0;
  background: #fff;
  color: #222;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.print-sheet h1 {
  margin: 0 0 6mm;
  color: #3f518e;
  font-size: 20px;
  text-align: center;
}

.print-meta {
  margin-bottom: 4mm;
  color: #777;
  font-size: 11px;
  text-align: right;
}

.print-sheet table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.print-sheet th,
.print-sheet td {
  padding: 5px 4px;
  border: 1px solid #bfc5d1;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
}

.print-sheet th {
  background: #d8e1f8;
  color: #40548f;
  font-weight: 600;
}

.print-sheet tr:nth-child(even) td {
  background: #f7f9fd;
}

@page {
  size: A4 landscape;
  margin: 7mm;
}

@media print {
  .workspace-header,
  .workspace-sidebar,
  .tab-strip,
  .action-row,
  .filter-chart-card,
  .table-toolbar,
  .pager {
    display: none;
  }

  .workspace-layout {
    display: block;
  }

  .workspace-main,
  .page-content {
    display: block;
    padding: 0;
  }

  .module-page {
    min-width: 0;
  }

  body.print-mode > :not(#printRoot) {
    display: none !important;
  }

  body.print-mode .print-root {
    display: block !important;
    position: static !important;
  }

  .print-sheet {
    display: block !important;
  }

  .print-sheet .print-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #333;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-sheet .print-table th,
  .print-sheet .print-table td {
    height: auto;
    max-width: none;
    padding: 4px 3px;
    border: 1px solid #d9dde5;
    font-size: 7.5pt;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  .print-sheet .print-table th {
    background: #f2f3f5;
    color: #40444b;
    font-weight: 600;
  }

  .print-sheet .print-table tr:nth-child(even) td {
    background: #fff;
  }
}

@media (max-width: 900px) {
  .workspace-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    grid-template-rows: 124px minmax(0, 1fr);
  }

  .workspace-title {
    top: 43px;
    left: 22px;
    font-size: 23px;
  }

  .header-nav {
    right: 30px;
    gap: 13px;
  }

  .module-page {
    min-width: 820px;
  }
}

@media (max-width: 680px) {
  .workspace-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 115px auto minmax(0, 1fr);
  }

  .workspace-header {
    grid-column: 1;
    grid-row: 1;
    height: 115px;
  }

  .workspace-title {
    top: 12px;
    right: 65px;
    left: 15px;
    font-size: 18px;
    line-height: 24px;
    white-space: normal;
  }

  .header-nav {
    right: auto;
    bottom: 4px;
    left: 15px;
    gap: 12px;
    height: 35px;
  }

  .header-nav button {
    height: 35px;
    line-height: 35px;
  }

  .workspace-sidebar {
    grid-column: 1;
    grid-row: 2;
    max-height: 210px;
  }

  .side-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .menu-group {
    width: 50%;
  }

  .menu-title {
    height: 43px;
  }

  .menu-children {
    position: absolute;
    left: 0;
    z-index: 8;
    width: 100%;
  }

  .workspace-main {
    grid-column: 1;
    grid-row: 3;
  }

  .page-content {
    padding: 6px;
  }

  .module-page {
    min-width: 630px;
  }

  .editor-dialog form {
    grid-template-columns: 1fr;
  }

  .dialog-field.wide {
    grid-column: auto;
  }
}

/* Workspace rail and module proportions from the reference application. */
.workspace-layout {
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: 181px minmax(0, 1fr);
}

.workspace-header {
  grid-column: 2;
  grid-row: 1;
  height: 181px;
}

.workspace-title {
  display: none;
}

.workspace-user {
  top: 0;
  right: 45px;
}

.header-nav {
  right: 125px;
  bottom: -9px;
  gap: 21px;
}

.workspace-sidebar {
  top: 0;
  grid-column: 1;
  grid-row: 1 / -1;
  width: 56px;
  height: 100%;
  overflow: visible;
  background: #dfe5fa;
  z-index: 6;
}

.side-nav {
  width: 56px;
  padding: 0;
}

.menu-group {
  position: relative;
  width: 56px;
  height: 32px;
}

.menu-title {
  justify-content: center;
  width: 56px;
  height: 32px;
  padding: 0;
  border-bottom: 1px solid #b8c2df;
  color: #52638f;
}

.menu-title span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-title span:last-child {
  color: #52638f;
  font-size: 15px;
}

.menu-group.active .menu-title {
  background: #91a8ef;
  color: #fff;
}

.menu-group.active .menu-title span:last-child {
  color: #fff;
  transform: rotate(180deg);
}

.menu-group.open .menu-title {
  background: #91a8ef;
  color: #fff;
}

.menu-expanded .workspace-layout {
  grid-template-columns: 246px minmax(0, 1fr);
}

.menu-expanded .workspace-header {
  grid-column: 1 / -1;
}

.menu-expanded .workspace-title {
  display: block;
  top: 0;
}

.menu-expanded .workspace-sidebar {
  grid-row: 2;
  width: 246px;
  height: calc(100% + 1.333px);
  overflow-x: hidden;
  overflow-y: auto;
}

.menu-expanded .side-nav,
.menu-expanded .menu-group,
.menu-expanded .menu-title {
  width: 246px;
}

.menu-expanded .menu-group {
  height: auto;
}

.menu-expanded .menu-title {
  justify-content: space-between;
  height: 46px;
  padding: 0 10px;
}

.menu-expanded .menu-title span:first-child {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

.menu-expanded .menu-group.open .menu-children {
  position: static;
  z-index: auto;
  display: grid;
  justify-content: center;
  gap: 16px 10px;
  width: 246px;
  max-height: none;
  padding: 14px 10px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #edf0fa;
  background: #dfe5fa;
  box-shadow: none;
}

.menu-expanded .menu-group[data-group="management"].open .menu-children {
  grid-template-columns: repeat(4, 48px);
}

.menu-expanded .menu-group.open .menu-card {
  width: 100%;
  min-height: 154px;
  gap: 14px;
  padding: 16px 0 12px;
  font-size: 14px;
  line-height: 20px;
}

.menu-expanded .menu-group.open .menu-card.active {
  background: #819af7;
  color: #fff;
}

.menu-expanded .menu-group.open .menu-card-icon {
  width: 29px;
  height: 29px;
}

.menu-expanded .menu-group.open .menu-card > span {
  width: 30px;
  line-height: 20px;
}

.side-collapsed .workspace-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.side-collapsed .workspace-sidebar {
  width: 0;
  overflow: hidden;
}

.workspace-main {
  grid-column: 2;
  grid-row: 2;
  padding-top: 2px;
}

#collapseSide {
  display: none;
}

.page-content {
  padding: 0;
  background: #fff;
}

.module-page {
  min-width: 762px;
  padding-bottom: 24px;
}

.top-toolbar {
  padding: 30px 24px 30px 20px;
}

.action-row {
  gap: 8px;
}

.action-row .module-button:first-child {
  margin-right: 0;
  padding: 0 17px;
}

.module-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 20px;
  background: #8197f1;
  box-shadow: 0 2px 6px rgba(75, 92, 171, .16);
}

.module-button:hover {
  background: #7188e8;
}

.button-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.ui-icon {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circle-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.circle-tool .ui-icon {
  width: 15px;
  height: 15px;
}

.filter-chart-card {
  margin: 0 42px 22px;
  border: 0;
  border-radius: 24px;
  background: #f7f8fc;
}

.filter-chart-card.no-chart {
  margin: 0 42px 22px;
}

.chart-split {
  grid-template-columns: minmax(0, 1fr) minmax(170px, var(--filter-width, 230px));
  min-height: var(--panel-height, 275px);
  margin-bottom: 22px;
}

.chart-split.chart-right {
  grid-template-columns: minmax(170px, var(--filter-width, 220px)) minmax(280px, var(--panel-width, 1fr));
  column-gap: 10px;
  align-items: start;
}

.chart-split.chart-right .filter-panel {
  order: 0;
  border-right: 0;
  border-left: 0;
}

.chart-split.chart-right .chart-panel {
  order: 1;
}

.chart-split .chart-panel {
  height: 250px;
  min-height: 250px;
}

.chart-split.chart-right .chart-panel {
  align-self: start;
}

.chart-split.chart-right .filter-panel {
  padding-top: 20px;
}

.chart-split.chart-right .filter-form {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--filter-gap, 12px);
  min-height: 0;
}

.chart-split.chart-right {
  margin-bottom: 22px;
}

.chart-split:not(.chart-right) {
  align-items: center;
}

.chart-split.chart-right .filter-field {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.chart-split.chart-right .filter-field span {
  min-width: 0;
  text-align: left;
}

.chart-split.chart-right .filter-actions {
  flex-wrap: wrap;
}

.chart-split.chart-right.filters-inline .filter-field {
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.chart-split.chart-right.filters-inline .filter-field span {
  flex: 0 0 100px;
  text-align: right;
}

.chart-split.chart-right.filters-inline .filter-field input,
.chart-split.chart-right.filters-inline .filter-field select {
  flex: 0 1 193px;
  width: 193px;
}

.chart-split.chart-right .chart-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 250px;
  min-height: 250px;
  padding: 0;
  border: 0;
}

.chart-split.chart-right .chart-panel--axis .chart-svg {
  width: 100%;
  height: min(210px, 100%);
}

.chart-split.chart-right .chart-series-legend {
  top: 30px;
}

.chart-split .chart-panel--doughnut {
  height: 250px;
  padding: 10px 14px 8px;
}

.chart-split .chart-panel--doughnut.legend-top {
  position: relative;
  display: block;
}

.chart-split .chart-panel--doughnut.legend-top .chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-split .chart-panel--doughnut.legend-top .chart-legend {
  position: absolute;
  top: 36px;
  left: 0;
  z-index: 1;
  padding: 0 40px;
  box-sizing: border-box;
}

.chart-split .chart-panel--doughnut .chart-legend {
  grid-template-columns: repeat(var(--legend-columns, 4), minmax(0, 1fr));
}

.chart-split:not(.chart-right) .filter-panel {
  padding: 22px 20px 7px;
}

.chart-split:not(.chart-right) .filter-actions {
  flex-wrap: nowrap;
  width: max-content;
}

.chart-split.chart-right .chart-panel--doughnut:not(.legend-top) {
  grid-template-rows: minmax(0, 1fr) auto;
}

.chart-split.chart-right .chart-panel--doughnut:not(.legend-top) .chart-legend {
  grid-template-columns: repeat(var(--legend-columns, 2), minmax(0, 1fr));
}

.data-table-wrap {
  margin: 0 25px 0 20px;
}

@media (max-width: 900px) {
  .filter-chart-card,
  .filter-chart-card.no-chart {
    margin-right: 20px;
    margin-left: 20px;
  }
}

.dependency-chart-tools .ui-icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 680px) {
  .workspace-layout {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 124px minmax(0, 1fr);
  }

  .workspace-header {
    grid-column: 2;
    grid-row: 1;
    height: 124px;
  }

  .workspace-sidebar {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 56px;
    height: 100%;
    max-height: none;
    overflow: visible;
  }

  .side-nav {
    display: block;
    width: 56px;
  }

  .menu-group {
    width: 56px;
  }

  .menu-group.open .menu-children {
    left: 56px;
    width: min(224px, calc(100vw - 56px));
  }

  .workspace-main {
    grid-column: 2;
    grid-row: 2;
    padding-top: 8px;
  }

  .menu-expanded .workspace-layout {
    grid-template-columns: minmax(190px, 246px) minmax(0, 1fr);
  }

  .menu-expanded .workspace-sidebar,
  .menu-expanded .side-nav,
  .menu-expanded .menu-group,
  .menu-expanded .menu-title,
  .menu-expanded .menu-children {
    width: min(246px, 48vw);
  }

  .menu-expanded .menu-children {
    grid-template-columns: repeat(4, minmax(32px, 48px));
  }

  .page-content {
    padding: 0;
  }
}

@media print {
  .print-sheet .print-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .print-sheet .print-table thead {
    display: table-header-group;
  }

  .print-sheet .print-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-sheet .print-table th,
  .print-sheet .print-table td {
    height: auto;
    padding: 4px 3px;
    font-size: 7.5pt;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
  }
}

/* Data-driven chart interaction and the published page's responsive layouts. */
.chart-point {
  cursor: crosshair;
  pointer-events: all;
}

.chart-hit-area {
  pointer-events: all;
}

.chart-line-hit {
  pointer-events: all;
  cursor: crosshair;
}

.chart-line-hit-area {
  pointer-events: all;
  cursor: crosshair;
}

.chart-hit-overlay {
  position: absolute;
  inset: 8px 16px;
  z-index: 3;
  pointer-events: none;
}

.chart-html-hit {
  position: absolute;
  display: block;
  min-width: 8px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .001);
  cursor: crosshair;
  pointer-events: all;
}

.chart-tooltip {
  position: absolute;
  z-index: 8;
  max-width: 220px;
  padding: 6px 9px;
  border: 1px solid rgba(83, 107, 181, .32);
  border-radius: 3px;
  background: rgba(43, 54, 83, .94);
  box-shadow: 0 3px 10px rgba(34, 45, 77, .22);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
}

@page {
  margin: 10mm;
}

@page project-landscape {
  size: A4 landscape;
  margin: 10mm;
}

.print-sheet--landscape {
  page: project-landscape;
}

@media print {
  .print-sheet {
    width: 100%;
    color: #333;
  }

  .print-sheet h1 {
    margin: 0 0 8mm;
    font-size: 15pt;
    font-weight: 600;
    text-align: center;
  }

  .print-sheet .print-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .print-sheet .print-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-sheet .print-table th,
  .print-sheet .print-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-panel--funnel {
  height: 210px;
  padding: 0 10px;
  overflow: visible;
}

.chart-panel--funnel .chart-svg text {
  fill: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.chart-panel--pie .chart-point:hover path,
.chart-panel--doughnut .chart-point:hover path,
.chart-panel--funnel .chart-point:hover path {
  filter: brightness(1.08);
}

.chart-overview.filters-inline .filter-form,
.chart-below.filters-inline .filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
  min-height: 83px;
}

.chart-overview.filters-inline .filter-field,
.chart-below.filters-inline .filter-field {
  width: 275px;
}

.chart-overview.filters-inline .filter-actions,
.chart-below.filters-inline .filter-actions {
  width: auto;
}

.filter-field input[type="datetime-local"],
.filter-field input[type="date"] {
  color: #777d88;
}

.module-button .ui-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.row-action-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

@media print {
  .print-sheet .print-table {
    border-color: #d9dde5;
  }

  .print-sheet .print-table th,
  .print-sheet .print-table td {
    background: #fff;
    color: #40444b;
  }

  .print-sheet .print-table th {
    background: #f2f3f5;
  }
}

.datetime-control {
  position: relative;
  display: inline-block;
  width: 185px;
  max-width: 100%;
  vertical-align: middle;
}

.datetime-control > input {
  display: block;
  width: 100%;
}

.datetime-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #dfe3ec;
  border-radius: 2px;
  background: #fff;
  color: #9aa1ad;
  font-size: 12px;
  pointer-events: none;
}

.datetime-placeholder .ui-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.datetime-control.has-value .datetime-placeholder,
.datetime-control:focus-within .datetime-placeholder {
  display: none;
}

.chart-split.chart-right:not(.filters-inline) .filter-field > span {
  text-align: center;
}

.chart-split.chart-right:not(.filters-inline) .filter-field input,
.chart-split.chart-right:not(.filters-inline) .filter-field select {
  width: 100%;
}

.chart-split.chart-right:not(.filters-inline) .filter-actions {
  justify-content: center;
}

.chart-tooltip {
  display: grid;
  gap: 5px;
  min-width: 104px;
  padding: 8px 10px;
  border: 1px solid #e1e4eb;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  color: #606266;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.chart-tooltip-title {
  max-width: 220px;
  overflow-wrap: anywhere;
  color: #303133;
}

.chart-tooltip-value {
  display: flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.chart-tooltip-value i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--tooltip-color);
}

.print-field-list .print-actions-field {
  color: #9da3af;
}

.print-option-list label.disabled {
  color: #b6bac2;
}

.print-dialog {
  width: min(660px, calc(100% - 28px));
  max-height: min(80vh, 560px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(34, 44, 75, .24);
}

.print-dialog::backdrop {
  background: rgba(28, 38, 67, .28);
}

.print-dialog .dialog-head {
  min-height: 42px;
  padding: 10px 15px;
  background: #f8f9fb;
}

.print-dialog .dialog-head h2 {
  color: #404650;
  font-size: 16px;
  font-weight: 500;
}

.print-dialog-body {
  max-height: calc(80vh - 100px);
  padding: 16px 15px 8px;
  overflow-y: auto;
}

.print-title-field {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #606266;
}

.print-title-field input,
.print-settings-section select {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  color: #606266;
}

.print-settings-section {
  margin: 0 0 18px;
}

.print-settings-section h3 {
  margin: 0 0 10px;
  color: #404650;
  font-size: 14px;
  font-weight: 500;
}

.print-field-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 265px;
  padding: 12px;
  overflow: auto;
  border: 1px solid #ebeef5;
}

.print-field-list label,
.print-option-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #606266;
  font-size: 13px;
}

.print-field-list label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-field-list input,
.print-option-list input {
  margin: 0;
}

.print-field-list .print-field-all {
  flex: 0 0 auto;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebeef5;
  font-weight: 600;
}

.print-option-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px 18px;
}

.print-option-list label.disabled {
  color: #b6bac2;
}

.print-dialog .dialog-actions {
  min-height: 60px;
  background: #fff;
}

/* Header navigation in the reference shell is a fixed four-column strip. */
.workspace-user {
  top: 56px;
  right: 55px;
}

.header-nav {
  top: 129px;
  right: 90px;
  bottom: auto;
  width: 440px;
  height: 55px;
  gap: 6px;
  align-items: flex-start;
  padding-top: 20px;
  box-sizing: border-box;
}

.header-nav button {
  width: 100px;
  min-width: 100px;
  height: 20px;
  line-height: 20px;
}

.print-dialog .primary-button {
  width: auto;
  height: 34px;
  padding: 0 20px;
  border-radius: 2px;
  box-shadow: none;
  font-size: 14px;
}

.print-source {
  margin: 0;
  color: #333;
  font: 9pt/1.4 Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 560px) {
  .print-field-list,
  .print-option-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Reference application alignment. Keep the page-specific rules above small
   and make the shared frame follow the published workspace geometry. */
.workspace-layout {
  grid-template-columns: 246px minmax(0, 1fr);
  grid-template-rows: 180px minmax(0, 1fr);
}

.workspace-header {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 180px;
}

.workspace-title {
  display: block;
  top: 57px;
  left: 40px;
  font-size: 30px;
  line-height: 50px;
}

.workspace-user {
  top: 48px;
  right: 55px;
}

.header-nav {
  top: 129px;
  right: 84px;
  bottom: auto;
  width: 440px;
  height: 55px;
  gap: 6px;
  align-items: flex-start;
  padding-top: 20px;
}

.workspace-sidebar {
  top: 0;
  grid-column: 1;
  grid-row: 2;
  width: 246px;
  height: 100%;
  background: #dfe5fa;
  scrollbar-width: none;
}

.workspace-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.side-nav,
.menu-group,
.menu-title {
  width: 246px;
}

.menu-group {
  height: auto;
}

.menu-title {
  height: 50px;
  padding: 0 10px;
  border-bottom: 1px solid #b8c2df;
  color: #292929;
  line-height: 40px;
}

.menu-group.open .menu-title,
.menu-group.active .menu-title {
  background: #91a8ef;
  color: #fff;
}

.menu-title span:last-child,
.menu-group.open .menu-title span:last-child,
.menu-group.active .menu-title span:last-child {
  color: currentColor;
}

.menu-children,
.menu-group.open .menu-children {
  position: static;
  display: grid;
  width: 246px;
  max-height: none;
  padding: 14px 10px;
  overflow: visible;
  border-bottom: 1px solid #edf0fa;
  background: #dfe5fa;
  box-shadow: none;
}

.menu-group:not(.open) .menu-children {
  display: none;
}

.menu-group[data-group="management"] .menu-children {
  grid-template-columns: repeat(4, 48px);
  gap: 16px 10px;
}

.menu-group[data-group="resources"] .menu-children,
.menu-group[data-group="history"] .menu-children {
  grid-template-columns: repeat(2, 48px);
  gap: 16px 10px;
}

.menu-group[data-group="updates"] .menu-children {
  grid-template-columns: 48px;
  gap: 0;
}

.menu-group[data-group="system"] .menu-children {
  grid-template-columns: 48px;
  gap: 0;
}

.menu-card {
  width: 48px;
  min-height: 152px;
  gap: 14px;
  padding: 16px 0 12px;
  border-radius: 12px;
  background: #d4ddf7;
  box-shadow: 0 0 2px rgba(0, 0, 0, .25);
}

.menu-card:hover,
.menu-card.active {
  background: #819af7;
  color: #fff;
}

.menu-expanded .workspace-sidebar,
.menu-expanded .side-nav,
.menu-expanded .menu-group,
.menu-expanded .menu-title,
.menu-expanded .menu-children {
  width: 246px;
}

.menu-expanded .workspace-layout {
  grid-template-columns: 246px minmax(0, 1fr);
}

.menu-expanded .workspace-header {
  grid-column: 1 / -1;
}

.menu-expanded .workspace-title {
  display: block;
  top: 57px;
}

.workspace-main {
  grid-column: 2;
  grid-row: 2;
  padding-top: 3px;
}

.tab-strip {
  flex-basis: 35px;
  height: 35px;
}

.page-content {
  padding: 5px 10px 10px;
  background: #f2f2f2;
}

.module-page {
  min-width: 762px;
  padding-bottom: 20px;
  background: #fff;
}

.top-toolbar {
  padding: 30px 10px 30px;
}

.module-button {
  height: 32px;
  padding: 0 15px;
  border: 1px solid #409eff;
  border-radius: 3px;
  background: #409eff;
  box-shadow: none;
  font-size: 12px;
}

.action-row .module-button:first-child {
  padding: 0 15px;
}

.module-button:hover {
  background: #66b1ff;
}

.button-glyph {
  margin: 0;
}

.module-button .button-glyph .ui-icon {
  width: 12px;
  height: 12px;
  margin-right: 0;
}

.filter-chart-card,
.filter-chart-card.no-chart {
  min-height: 0;
  margin: 0 10px 10px;
  border: 1px solid #ebeef5;
  border-radius: 0;
  background: #fff;
}

.filter-panel {
  padding: 16px 20px 13px;
}

.filter-form {
  grid-template-columns: 275px 275px;
  gap: 10px 30px;
}

.filter-field {
  gap: 10px;
}

.filter-field span {
  min-width: 90px;
}

.filter-field input,
.filter-field select,
.datetime-control {
  width: 193px;
}

.filter-field input,
.filter-field select {
  height: 32px;
  padding: 0 15px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  font-size: 13px;
}

.data-table-wrap {
  margin: 0 10px;
  border: 0;
}

.data-table th,
.data-table td {
  height: 70px;
  padding: 10px 14px;
  border-right: 1px solid #ebeef5;
  border-bottom: 1px solid #ebeef5;
  font-size: 14px;
}

.data-table th {
  height: 49px;
  background: #f8f8f9;
  color: #606266;
  font-weight: 500;
}

.data-table tbody tr {
  height: 70px;
  background: #fff;
}

.data-table tbody tr:nth-child(even),
.data-table tbody tr:hover {
  background: #fff;
}

.data-table tbody tr:hover {
  background: #f5f7fa;
}

.data-table .row-actions {
  flex-direction: row;
  gap: 12px;
}

.row-action,
.row-action.delete {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  clip-path: none;
  background: transparent;
  color: #409eff;
  font-size: 14px;
  font-weight: 400;
}

.row-action:hover,
.row-action.delete:hover {
  background: transparent;
  color: #66b1ff;
  filter: none;
}

.row-action-icon {
  display: none;
}

.pager {
  justify-content: flex-start;
  margin: 0 10px;
}

.pager button.active {
  border-color: #409eff;
  background: #409eff;
}

.chart-panel {
  border-top-color: #ebeef5;
}

.chart-tooltip {
  border-radius: 2px;
  background: #fff;
  color: #606266;
}

.chart-axis-pointer {
  position: absolute;
  top: var(--chart-top, 10%);
  bottom: var(--chart-bottom, 10%);
  z-index: 7;
  width: 0;
  border-left: 1px dashed #cfd3dc;
  pointer-events: none;
  transform: translateX(-.5px);
}

.chart-axis-pointer[hidden] {
  display: none;
}

.chart-tooltip-title {
  color: #303133;
  font-weight: 400;
}

.chart-tooltip-value strong {
  color: #303133;
  font-weight: 600;
}

@media (max-width: 900px) {
  .workspace-layout {
    grid-template-columns: 246px minmax(0, 1fr);
    grid-template-rows: 180px minmax(0, 1fr);
  }

  .workspace-header {
    grid-column: 1 / -1;
    height: 180px;
  }

  .workspace-title {
    top: 57px;
    left: 40px;
    font-size: 30px;
  }

  .workspace-sidebar {
    grid-column: 1;
    grid-row: 2;
    width: 246px;
  }

  .workspace-main {
    grid-column: 2;
    grid-row: 2;
  }

  .module-page {
    min-width: 762px;
  }
}

/* Final shell geometry overrides. These come last so the fixed reference
   header and navigation positions win over the legacy responsive rules. */
.workspace-user {
  top: 56px;
  right: 55px;
}

.header-nav {
  top: 129px;
  right: 90px;
  bottom: auto;
  width: 440px;
  height: 55px;
  gap: 6px;
  align-items: flex-start;
  padding-top: 20px;
  box-sizing: border-box;
}

.header-nav button {
  width: 100px;
  min-width: 100px;
  height: 20px;
  line-height: 20px;
}

.print-field-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 190px;
}

.print-field-list .print-field-all {
  flex: 0 0 auto;
}

.print-dialog {
  width: min(660px, calc(100% - 28px));
}

.print-option-list {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
}

/* Shared chart layout and sidebar icon tiles. */
.page-content,
.module-page {
  min-width: 0;
}

.module-page {
  width: 100%;
}

.module-page .chart-split {
  min-height: var(--panel-height, 275px);
  grid-template-columns: minmax(0, 1fr) var(--filter-width, 220px);
  align-items: center;
}

/* Chart pages carry their target height on the split card itself.  Keep this
   rule more specific than the shared card skin so the chart and filter stay
   vertically aligned with the published page. */
.module-page .filter-chart-card.chart-split {
  min-height: var(--panel-height, 275px);
}

.module-page .chart-split.chart-right .chart-panel,
.module-page .chart-split .chart-panel {
  height: 210px;
  min-height: 210px;
}

.module-page .chart-split .filter-panel {
  border-left: 0;
}

/* Keep the source icon tiles compact like the published sidebar. */
.menu-group[data-group="management"] .menu-children {
  grid-template-columns: repeat(4, 48px);
}

.menu-group[data-group="resources"] .menu-children,
.menu-group[data-group="history"] .menu-children {
  grid-template-columns: repeat(2, 48px);
}

.menu-card {
  width: 48px;
  min-height: 152px;
}

.menu-card-icon {
  width: 30px;
  height: 30px;
}

@media (max-width: 900px) {
  .module-page .chart-split,
  .module-page .chart-split.chart-right {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .module-page .chart-split .chart-panel,
  .module-page .chart-split.chart-right .chart-panel {
    width: 100%;
    height: 210px;
    min-height: 210px;
  }

  .module-page .chart-split .filter-panel {
    width: 100%;
    border-top: 1px solid #ebeef5;
    padding: 16px 20px;
  }

  .module-page .chart-split .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-page .chart-split .filter-actions {
    grid-column: 1 / -1;
  }

}

@media (max-width: 680px) {
  .module-page .chart-split .filter-form,
  .module-page .filter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .module-page .chart-split .filter-actions {
    grid-column: auto;
  }
}

/* The published workbench opens with four labeled, collapsed menu groups. */
body.workspace-page .menu-title span:first-child {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

body.workspace-page .menu-title {
  justify-content: space-between;
}

body.workspace-page #collapseSide {
  display: block;
  flex: 0 0 35px;
}

body.workspace-page .page-content,
body.workspace-page .page-empty {
  background: #f2f2f2;
}

/* The published export dialog is a compact 660px modal with a fixed footer.
   Flex layout keeps the action buttons visible while the field list scrolls. */
.print-dialog {
  width: min(660px, calc(100% - 28px));
  height: min(560px, calc(100vh - 28px));
  max-height: none;
  display: flex;
  flex-direction: column;
}

.print-dialog .dialog-head {
  flex: 0 0 42px;
  min-height: 42px;
}

.print-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.print-field-list {
  max-height: 180px;
}

.print-dialog .dialog-actions {
  flex: 0 0 58px;
  min-height: 58px;
}

@media (max-width: 560px) {
  .login-page {
    padding: 20px 14px;
  }

  .login-card {
    padding: 32px 22px 26px;
    border-radius: 18px;
  }

  .login-head {
    margin-bottom: 28px;
  }

  .login-box h1 {
    font-size: 24px;
  }

  .login-fields {
    gap: 20px;
  }

  .field,
  .field input {
    height: 64px;
  }

  .field-icon {
    top: 22px;
  }

  .field input {
    padding-top: 24px;
  }

  .field-label {
    top: 21px;
  }

  .field input:focus ~ .field-label,
  .field input:not(:placeholder-shown) ~ .field-label {
    top: 7px;
  }
}

/* The account menu mirrors the vertical quick menu in the published shell. */
body.workspace-page .user-menu {
  top: 10px;
  right: -7px;
  width: 69px;
  padding: 4px;
  border: 1px solid #d5d8df;
  background: #fff;
  box-shadow: 0 2px 6px rgba(60, 74, 112, .2);
}

body.workspace-page .user-menu button {
  min-height: 62px;
  margin: 0 0 4px;
  padding: 8px 4px;
  border-radius: 20px;
  background: #c8d4f7;
  color: #52628f;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

body.workspace-page .user-menu button:first-child,
body.workspace-page .user-menu button:nth-child(2) {
  min-height: 78px;
}

body.workspace-page .user-menu button:last-child {
  margin-bottom: 0;
}

body.workspace-page .user-menu button:hover {
  background: #73bf82;
  color: #fff;
}
