/*
 * Final resource-list adaptation layer.
 * Loaded after v10-console.css so the page-specific geometry remains stable.
 */
.cross-module-page {
  --resource-reference-bg: #eff2f7;
  --resource-reference-title: #040f43;
  --resource-reference-muted: #8187a1;
  --resource-reference-border: #e1e6f0;
  --resource-reference-primary: #165dff;
  font-family: var(--v10-font-family);
  font-size: 14px;
  line-height: 22px;
  font-synthesis: none;
}

.cross-module-page .el-main {
  /* Overrides the theme-wide workspace declaration loaded with !important. */
  background: var(--resource-reference-bg) !important;
}

.cross-module-page
  .resource-console-page
  > .product-info-strip.product-warm-notice {
  min-height: 104px !important;
  margin: 0 0 12px;
  padding: 10px 20px 12px;
  gap: 0;
  border: 1px solid #d5e7ff;
  color: #002da0;
  background: #d5e7ff;
  font-size: 14px;
  line-height: normal;
}

.cross-module-page
  .resource-console-page
  > .product-info-strip.product-warm-notice
  > .product-warm-notice__icon {
  display: none;
}

.cross-module-page .product-warm-notice__content strong,
.cross-module-page .product-warm-notice__content p,
.cross-module-page .product-warm-notice__action {
  color: #002da0;
  font-size: 14px;
  line-height: normal;
}

.cross-module-page
  .product-warm-notice__content
  > .product-warm-notice__action {
  min-height: 20px;
  margin: 0;
}

.cross-module-page .resource-data-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.cross-module-page .main-card-table {
  background: transparent;
}

.cross-module-page .resource-service-toolbar {
  display: flex;
  min-height: 34px;
  margin: 0 0 12px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border: 0;
  background: transparent;
  gap: 10px;
}

.cross-module-page .resource-service-toolbar .el-button,
.cross-module-page .resource-service-toolbar .el-input__inner,
.cross-module-page .resource-service-toolbar .search-btn {
  height: 34px;
  min-height: 34px;
  border-radius: 1px;
  font-size: 13px;
  line-height: 32px;
}

.cross-module-page .resource-service-toolbar .el-button {
  padding: 0 13px;
}

.cross-module-page .resource-primary-actions {
  position: relative;
  flex: 0 0 auto;
}

.cross-module-page .resource-batch-buttons {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cross-module-page .resource-service-toolbar > .right-search {
  width: min(100%, 360px);
  flex: 0 1 360px;
}

.cross-module-page .resource-batch-buttons .el-button {
  min-width: 58px;
  margin: 0;
}

.cross-module-page .resource-batch-buttons .el-button + .el-button {
  margin-left: 0;
}

.cross-module-page .resource-batch-controller {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.cross-module-page .resource-table-frame {
  width: 100%;
  min-width: 0;
  background: #fff;
  box-shadow: 0 2px 4px rgba(54, 58, 80, 0.26);
}

.cross-module-page .resource-product-tabs {
  height: 45px;
  background: #e7eaef;
  box-shadow: none;
}

.cross-module-page .resource-product-tabs button {
  flex: 0 0 150px;
  min-width: 150px;
  height: 45px;
  color: rgba(0, 0, 0, 0.42);
  font-size: 14px;
  font-weight: 500;
}

.cross-module-page .resource-product-tabs button:hover {
  color: var(--resource-reference-title);
  background: rgba(255, 255, 255, 0.58);
}

.cross-module-page .resource-product-tabs button.is-active {
  color: var(--resource-reference-title);
  background: #fff;
}

.cross-module-page .resource-product-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--resource-reference-primary);
  content: "";
}

.cross-module-page .resource-table-shell {
  min-height: 184px;
  box-shadow: none;
}

.cross-module-page .cross-module-table {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

.cross-module-page .cross-module-table .el-table {
  min-width: 1000px;
  color: var(--resource-reference-title);
  background: #f7f8fa;
  font-size: 14px;
}

.cross-module-page .cross-module-table .el-table th.el-table__cell {
  height: 47px;
  /* v10-console.css applies an important 8px table-head padding globally. */
  padding: 0 !important;
  color: var(--resource-reference-title);
  background: #fff !important;
  font-size: 13px;
  font-weight: 500;
}

.cross-module-page .cross-module-table .el-table td.el-table__cell {
  height: 63px;
  padding: 0 !important;
  border-color: var(--resource-reference-border);
  background: #fff;
}

.cross-module-page .cross-module-table .el-table__body tr:nth-child(odd) > td.el-table__cell {
  background: #f5f6f8;
}

.cross-module-page .cross-module-table .el-table__body tr:nth-child(even) > td.el-table__cell {
  background: #fff;
}

.cross-module-page .cross-module-table .el-table .cell {
  padding: 0 9px;
  line-height: 20px;
}

.cross-module-page .cross-module-table .el-table__body tr:hover > td.el-table__cell {
  background: #f2f6ff;
}

.cross-module-page .resource-due-heading,
.cross-module-page .resource-os-cell {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.cross-module-page .resource-due-heading i {
  color: #4e5969;
  font-size: 15px;
}

.cross-module-page .resource-os-cell img {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  object-fit: contain;
}

.cross-module-page .resource-os-cell span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cross-module-page .resource-note-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--resource-reference-title);
  cursor: pointer;
  font: inherit;
  text-align: left;
  gap: 6px;
}

.cross-module-page .resource-note-trigger span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cross-module-page .resource-note-trigger i {
  color: var(--resource-reference-primary);
  flex: 0 0 auto;
}

.cross-module-page .resource-note-editor {
  display: grid;
  align-items: center;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 22px 22px;
  gap: 3px;
}

.cross-module-page .resource-note-editor .el-input {
  min-width: 0;
}

.cross-module-page .resource-note-editor .el-input__inner {
  height: 28px;
  padding: 0 7px;
  line-height: 28px;
}

.cross-module-page .resource-note-editor > button {
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--resource-reference-primary);
  cursor: pointer;
}

.cross-module-page .resource-note-editor > button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.cross-module-page .cloud-name {
  gap: 1px;
}

.cross-module-page .cloud-name .packge-name {
  color: var(--resource-reference-title);
  font-size: 14px;
  font-weight: 500;
}

.cross-module-page .cloud-name .name {
  color: var(--resource-reference-muted);
  font-size: 12px;
  line-height: 18px;
}

.cross-module-page .status {
  position: relative;
  min-width: 58px;
  height: 30px;
  padding: 0 10px 0 15px;
  border: 1px solid var(--resource-status-color, #52c41a);
  border-radius: 1px;
  color: var(--resource-status-color, #52c41a);
  background: #fff;
  font-size: 12px;
  line-height: 28px;
  overflow: visible;
}

.cross-module-page .status::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--resource-status-color, #52c41a);
  content: "";
  transform: translate(-50%, -50%);
}

.cross-module-page .cross-module-table td.resource-status-cell .cell {
  display: flex;
  min-height: 61px;
  align-items: center;
  overflow: visible;
}

.cross-module-page .resource-col-fee .cell {
  color: var(--resource-reference-title);
  font-variant-numeric: tabular-nums;
}

.cross-module-page .resource-fee-cell {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  color: var(--resource-reference-title);
  line-height: 19px;
}

.cross-module-page .resource-fee-cell small {
  color: #86909c;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

.cross-module-page .table-link {
  color: var(--resource-reference-primary);
}

.cross-module-page .table-link:hover {
  color: #0e42d2;
}

.cross-module-page .page {
  min-height: 69px;
  padding: 12px 20px;
  border-top: 1px solid var(--resource-reference-border);
  background: #fff;
  font-size: 12px;
}

.cross-module-page .cross-module-state {
  min-height: 184px;
  color: var(--resource-reference-muted);
  background: #fff;
}

@media (max-width: 1100px) {
  .cross-module-page .resource-service-toolbar > .right-search {
    width: min(100%, 420px);
    flex-basis: 420px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .cross-module-page .resource-product-tabs {
    display: grid;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .cross-module-page .resource-product-tabs button {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-right: 1px solid var(--resource-reference-border);
    border-bottom: 1px solid var(--resource-reference-border);
    flex-basis: auto;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .cross-module-page
    .resource-console-page
    > .product-info-strip.product-warm-notice {
    min-height: 48px !important;
    padding: 10px 12px;
    font-size: 13px;
  }

  .cross-module-page .resource-service-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0;
  }

  .cross-module-page .resource-primary-actions {
    display: block;
    width: 100%;
    justify-self: stretch;
  }

  .cross-module-page .resource-primary-actions > * {
    width: 100% !important;
    min-width: 0;
  }

  .cross-module-page .resource-batch-buttons {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    justify-self: stretch;
  }

  .cross-module-page .resource-batch-buttons .el-button {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
  }

  .cross-module-page .right-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    width: 100%;
    gap: 10px;
    grid-column: auto;
    justify-self: stretch;
  }

  .cross-module-page .right-search > * {
    width: 100% !important;
    min-width: 0;
  }

  .cross-module-page .resource-table-frame {
    background: transparent;
    box-shadow: none;
  }

  .cross-module-page .resource-product-tabs {
    display: grid;
    height: auto;
    margin-bottom: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    background: transparent;
  }

  .cross-module-page .resource-product-tabs button {
    width: 100% !important;
    height: 38px;
    padding: 0 20px;
    border: 1px solid var(--resource-reference-border);
    background: #fff;
    flex-basis: auto;
    justify-content: flex-start;
  }

  .cross-module-page .resource-product-tabs button.is-active {
    color: var(--resource-reference-primary);
    background: #e7eaef;
  }

  .cross-module-page .resource-product-tabs button.is-active::after {
    display: none;
  }

  .cross-module-page .cross-module-mobile-list {
    padding: 0;
    gap: 20px;
    background: var(--resource-reference-bg);
  }

  .cross-module-page .cross-module-resource {
    padding: 0;
    border: 1px solid var(--resource-reference-border);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .cross-module-page .cross-module-resource .resource-card-header {
    display: block;
    margin: 20px 20px 0;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--resource-reference-border);
  }

  .cross-module-page .resource-card-heading {
    min-width: 0;
  }

  .cross-module-page .resource-card-heading > button {
    display: block;
    max-width: 100%;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    color: var(--resource-reference-title);
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .cross-module-page .resource-card-subtitle {
    display: flex;
    min-width: 0;
    color: #999;
    font-size: 14px;
    line-height: 22px;
    flex-wrap: wrap;
    gap: 0 6px;
    overflow-wrap: anywhere;
  }

  .cross-module-page .resource-card-subtitle em {
    color: var(--resource-status-color, var(--resource-reference-muted));
    font-style: normal;
  }

  .cross-module-page .cross-module-resource .resource-card-details {
    display: flex;
    margin: 0;
    padding: 10px 20px 4px;
    flex-direction: column;
    gap: 0;
  }

  .cross-module-page .cross-module-resource .resource-card-details > div {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 10px 0;
    border: 0;
    align-items: flex-start;
    gap: 20px;
  }

  .cross-module-page .cross-module-resource .resource-card-details dt {
    width: 70px;
    min-width: 70px;
    color: #999;
    font-weight: 400;
    line-height: 22px;
  }

  .cross-module-page .cross-module-resource .resource-card-details dd {
    display: flex;
    min-width: 0;
    margin: 0;
    color: var(--resource-reference-title);
    line-height: 22px;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    overflow-wrap: anywhere;
  }

  .cross-module-page .resource-card-copy {
    display: inline-grid;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    color: var(--resource-reference-primary);
    background: transparent;
    cursor: pointer;
    place-items: center;
  }

  .cross-module-page .cross-module-resource .resource-card-footer {
    display: flex;
    min-height: 54px;
    margin: 0 20px;
    padding: 8px 0 14px;
    border-top: 1px solid var(--resource-reference-border);
    align-items: center;
    justify-content: space-between;
  }

  .cross-module-page .resource-card-footer > span {
    color: #999;
  }

  .cross-module-page .resource-card-footer .el-button {
    min-width: 92px;
    height: 34px;
    border-radius: 1px;
  }

  .cross-module-page .page {
    margin-top: 10px;
    padding: 12px;
    background: #fff;
  }
}
