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

#app {
  visibility: hidden;
}

#app.ready {
  visibility: visible;
}

body.account-list-page {
  background: #f5f7fa;
  color: #172033;
}

body.account-list-page #app {
  min-height: 100vh;
  background: #f5f7fa;
}

.account-list-page *,
.account-list-page *::before,
.account-list-page *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.account-shell {
  width: 100%;
  max-width: 760px;
  min-height: calc(100vh - var(--h5-app-navbar, 68px));
  margin: 0 auto;
  padding: calc(var(--h5-app-topbar, 56px) + 14px) 14px calc(var(--h5-app-navbar, 68px) + 22px);
}

.account-hero {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 14px;
}

.account-hero div {
  min-width: 0;
}

.account-hero p {
  margin: 0 0 5px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.account-hero h1 {
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 24px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-hero span {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.account-icon-button,
.account-primary-link,
.account-page-button,
.account-card-action,
.account-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.account-icon-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #172033;
  font-size: 20px;
}

.account-icon-button.loading i {
  animation: account-spin 800ms linear infinite;
}

.account-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  margin-bottom: 12px;
}

.account-filter .el-input__inner {
  height: 44px;
  border-radius: 8px;
}

.account-filter button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2f5bd3;
  color: #fff;
  font-size: 18px;
}

.account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.account-toolbar strong {
  color: #172033;
  font-size: 14px;
}

.account-primary-link {
  min-height: 38px;
  padding: 0 12px;
  background: #20a978;
  color: #fff !important;
  font-size: 12px;
}

.account-list {
  display: grid;
  gap: 9px;
}

.account-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.account-card-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.account-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e8eefc;
  color: #2f5bd3;
  font-size: 20px;
}

.account-card-icon.green {
  background: #e7f8f1;
  color: #20a978;
}

.account-card-icon.indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.account-card-icon.slate {
  background: #f1f5f9;
  color: #334155;
}

.account-card-title {
  min-width: 0;
}

.account-card-title strong,
.account-card-title span,
.account-card-copy {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card-title strong {
  color: #172033;
  font-size: 14px;
}

.account-card-title span {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

.account-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.account-meta-item {
  min-width: 0;
  padding: 9px;
  border-radius: 7px;
  background: #f8fafc;
}

.account-meta-item span,
.account-meta-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta-item span {
  color: #667085;
  font-size: 11px;
}

.account-meta-item strong {
  margin-top: 3px;
  color: #172033;
  font-size: 13px;
}

.account-card-copy {
  margin-top: 10px;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.account-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.account-card-actions.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-card-action {
  min-height: 38px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054 !important;
  font-size: 12px;
}

.account-card-action.primary {
  border-color: #b9c9ff;
  background: #eef4ff;
  color: #2f5bd3 !important;
}

.account-card-action.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318 !important;
}

.account-empty,
.account-error,
.account-loading {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #667085;
  text-align: center;
}

.account-empty i,
.account-error i {
  font-size: 34px;
}

.account-empty p,
.account-error p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.account-error h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
}

.account-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20a978;
  animation: account-pulse 900ms ease-in-out infinite alternate;
}

.account-loading span:nth-child(2) {
  animation-delay: 150ms;
}

.account-loading span:nth-child(3) {
  animation-delay: 300ms;
}

.account-pagination {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.account-page-button {
  min-height: 40px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #172033;
  font-size: 12px;
}

.account-page-button:disabled {
  color: #98a2b3;
  background: #f8fafc;
}

.account-pagination span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

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

.account-list-page .v-modal {
  z-index: 3400 !important;
}

.account-list-page .el-dialog__wrapper {
  z-index: 3500 !important;
}

.account-edit-dialog {
  width: calc(100vw - 28px) !important;
  max-width: 520px;
  margin: calc(var(--h5-app-topbar, 56px) + 16px) auto 0 !important;
  border-radius: 8px;
}

.account-edit-dialog .el-dialog__body {
  padding: 12px 18px;
}

.account-edit-dialog .el-dialog__footer {
  padding: 10px 18px 16px;
}

.account-dialog-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.account-dialog-form input,
.account-dialog-form textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #172033;
  font: inherit;
  font-size: 13px;
}

.account-dialog-form input {
  height: 42px;
  padding: 0 11px;
}

.account-dialog-form textarea {
  min-height: 110px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.5;
}

.account-text-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #2f5bd3;
  font-size: 13px;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes account-pulse {
  from {
    opacity: 0.28;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 374px) {
  .account-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .account-card-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-loading span,
  .account-icon-button.loading i {
    animation: none;
  }
}
