:root {
  --xy-plugin-primary: var(--xy-console-primary, var(--color-primary, #1677ff));
  --xy-plugin-primary-dark: var(--xy-console-primary-dark, #0b63f6);
  --xy-plugin-bg: var(--xy-console-bg, #f3f6fb);
  --xy-plugin-panel: var(--xy-console-panel, #ffffff);
  --xy-plugin-soft: var(--xy-console-soft, #f8fafc);
  --xy-plugin-line: var(--xy-console-line, #e5eaf3);
  --xy-plugin-soft-line: var(--xy-console-line-soft, #edf2f7);
  --xy-plugin-text: var(--xy-console-text, #1f2a44);
  --xy-plugin-muted: var(--xy-console-muted, #667085);
}

body .template,
body .template * {
  box-sizing: border-box;
}

body .template {
  color: var(--xy-plugin-text);
  background: var(--xy-plugin-bg);
}

body .template img {
  max-width: 100%;
}

@media (min-width: 769px) {
  body .template > .el-container > .el-container > .el-main {
    min-height: 100vh;
    padding: 8px 8px 20px 0 !important;
    background: var(--xy-plugin-bg) !important;
    overflow-x: hidden;
  }

  body .template > .el-container > .el-container {
    min-width: 0;
  }

  body .template > .el-container .top-back,
  body .template > .el-container .back-img {
    display: none !important;
  }

  body .template > .el-container .main-card,
  body .template > .el-container .el-main > .el-tabs,
  body .template > .el-container .el-main > .info-first,
  body .template > .el-container .el-main > .content-box,
  body .template > .el-container .el-main > .page-box,
  body .template > .el-container .el-main > .box {
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px !important;
    color: var(--xy-plugin-text);
    background: var(--xy-plugin-panel) !important;
    border: 1px solid var(--xy-plugin-line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15, 35, 80, 0.04);
    overflow: hidden;
  }

  body .template > .el-container .main-card {
    padding: 0 !important;
  }

  body .template > .el-container .main-card-title,
  body .template > .el-container .main-card > h2,
  body .template > .el-container .main-card > header,
  body .template > .el-container .page-title,
  body .template > .el-container .title-box,
  body .template > .el-container .title-name {
    min-height: 56px;
    margin: 0 !important;
    padding: 0 22px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--xy-plugin-text) !important;
    background: var(--xy-plugin-panel);
    border-bottom: 1px solid var(--xy-plugin-line);
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  body .template > .el-container .main-card > :not(.main-card-title):not(h2):not(header),
  body .template > .el-container .main-card .content-box,
  body .template > .el-container .main-card .table-box,
  body .template > .el-container .main-card .form-box,
  body .template > .el-container .main-card .msg-box,
  body .template > .el-container .main-card .list-box {
    max-width: 100%;
  }

  body .template > .el-container .main-card > .el-tabs,
  body .template > .el-container .main-card > .searchbar,
  body .template > .el-container .main-card > .com-search,
  body .template > .el-container .main-card > .content,
  body .template > .el-container .main-card > .content-box,
  body .template > .el-container .main-card > .table-box,
  body .template > .el-container .main-card > .form-box,
  body .template > .el-container .main-card > .msg-box,
  body .template > .el-container .main-card > .list-box {
    padding: 20px 22px 24px !important;
  }

  body .template > .el-container .el-main > .el-tabs {
    padding: 18px 22px 24px;
  }

  body .template > .el-container .el-main > .info-first {
    padding: 20px 22px;
  }

  body .template > .el-container .searchbar,
  body .template > .el-container .com-search,
  body .template > .el-container .top-search,
  body .template > .el-container .list-top {
    margin: 0 0 18px !important;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--xy-plugin-soft-line);
  }

  body .template > .el-container .el-tabs__header {
    margin: 0 0 18px;
  }

  body .template > .el-container .el-tabs__nav-wrap::after {
    height: 1px;
    background: var(--xy-plugin-line);
  }

  body .template > .el-container .el-tabs__active-bar {
    background: var(--xy-plugin-primary);
  }

  body .template > .el-container .el-tabs__item.is-active,
  body .template > .el-container .el-tabs__item:hover,
  body .template > .el-container .base-color,
  body .template > .el-container .hover:hover,
  body .template > .el-container a:hover {
    color: var(--xy-plugin-primary) !important;
  }

  body .template > .el-container .el-button--primary,
  body .template > .el-container .default-btn,
  body .template > .el-container .primary-btn {
    background: var(--xy-plugin-primary) !important;
    border-color: var(--xy-plugin-primary) !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 600;
  }

  body .template > .el-container .el-button--primary:hover,
  body .template > .el-container .default-btn:hover,
  body .template > .el-container .primary-btn:hover {
    background: var(--xy-plugin-primary-dark) !important;
    border-color: var(--xy-plugin-primary-dark) !important;
  }

  body .template > .el-container .el-button:not(.el-button--primary) {
    border-color: var(--xy-plugin-line);
    color: var(--xy-plugin-text);
  }

  body .template > .el-container .el-button:not(.el-button--primary):hover {
    border-color: var(--xy-plugin-primary);
    color: var(--xy-plugin-primary);
    background: #f2f7ff;
  }

  body .template > .el-container .el-input__inner,
  body .template > .el-container .el-textarea__inner,
  body .template > .el-container .el-select .el-input__inner {
    border-color: var(--xy-plugin-line);
    border-radius: 4px;
  }

  body .template > .el-container .el-input__inner:focus,
  body .template > .el-container .el-textarea__inner:focus {
    border-color: var(--xy-plugin-primary);
  }

  body .template > .el-container .el-table {
    color: var(--xy-plugin-text);
  }

  body .template > .el-container .el-table th {
    color: var(--xy-plugin-text);
    background: var(--xy-plugin-soft) !important;
    font-weight: 600;
  }

  body .template > .el-container .el-table td,
  body .template > .el-container .el-table th.is-leaf {
    border-bottom-color: var(--xy-plugin-soft-line);
  }

  body .template > .el-container .el-table::before,
  body .template > .el-container .el-table__fixed::before,
  body .template > .el-container .el-table__fixed-right::before {
    background: var(--xy-plugin-soft-line);
  }

  body .template > .el-container .tag,
  body .template > .el-container .status,
  body .template > .el-container .el-tag {
    border-radius: 999px;
  }

  body .template > .el-container .el-pagination {
    margin-top: 18px;
    text-align: right;
  }
}

@media (max-width: 768px) {
  body .template {
    overflow-x: hidden;
  }

  body .template > .el-container > .el-container > .el-main {
    width: 100%;
    padding: 10px !important;
    overflow-x: hidden;
    background: var(--xy-plugin-bg) !important;
  }

  body .template > .el-container .main-card,
  body .template > .el-container .el-main > .el-tabs,
  body .template > .el-container .el-main > .info-first,
  body .template > .el-container .el-main > .content-box,
  body .template > .el-container .el-main > .page-box,
  body .template > .el-container .el-main > .box {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px !important;
    background: #ffffff;
    border: 1px solid var(--xy-plugin-line);
    border-radius: 8px;
    overflow: hidden;
  }

  body .template > .el-container .main-card-title,
  body .template > .el-container .main-card > h2,
  body .template > .el-container .main-card > header,
  body .template > .el-container .page-title,
  body .template > .el-container .title-box,
  body .template > .el-container .title-name {
    min-height: 50px;
    padding: 0 14px !important;
    font-size: 16px !important;
  }

  body .template > .el-container .main-card > .el-tabs,
  body .template > .el-container .main-card > .searchbar,
  body .template > .el-container .main-card > .com-search,
  body .template > .el-container .main-card > .content,
  body .template > .el-container .main-card > .content-box,
  body .template > .el-container .main-card > .table-box,
  body .template > .el-container .main-card > .form-box,
  body .template > .el-container .main-card > .msg-box,
  body .template > .el-container .main-card > .list-box,
  body .template > .el-container .el-main > .el-tabs,
  body .template > .el-container .el-main > .info-first {
    padding: 14px !important;
  }

  body .template > .el-container .searchbar,
  body .template > .el-container .com-search,
  body .template > .el-container .top-search,
  body .template > .el-container .list-top,
  body .template > .el-container .list-top .right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body .template > .el-container .el-table,
  body .template > .el-container .el-table__body-wrapper,
  body .template > .el-container .el-table__header-wrapper {
    max-width: 100%;
  }
}
