/*
 * Refined enterprise cloud console.
 * Final visual layer for legacy cloud, DCIM cloud and server detail pages.
 * Business markup, IDs, data attributes and events remain in the tpl files.
 */

.mc-console-refined {
  --mcr-primary: #2468f2;
  --mcr-primary-hover: #1555d8;
  --mcr-primary-soft: #edf4ff;
  --mcr-text: #1f2329;
  --mcr-text-secondary: #646a73;
  --mcr-text-tertiary: #8a9099;
  --mcr-border: #e5e9f0;
  --mcr-border-strong: #d7dde7;
  --mcr-surface: #ffffff;
  --mcr-surface-soft: #f8fafc;
  --mcr-success: #159957;
  --mcr-warning: #d97706;
  --mcr-danger: #d94b4b;
}

.mc-console-refined .mc-cloud-detail {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 !important;
  color: var(--mcr-text);
}

/* Instance overview */
.mc-console-refined .mc-cloud-detail .server_header_box {
  display: flex;
  min-height: 116px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 !important;
  padding: 20px 22px !important;
  overflow: visible;
  background: var(--mcr-surface) !important;
  background-image: none !important;
  border: 1px solid var(--mcr-border) !important;
  border-left: 3px solid var(--mcr-primary) !important;
  border-top: 1px solid var(--mcr-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .04);
  color: var(--mcr-text) !important;
  position: relative;
  z-index: 30;
}

.mc-console-refined .mc-cloud-detail > .row:first-child {
  position: relative;
  z-index: 30;
}

.mc-console-refined .mc-cloud-detail > .bottom-box {
  position: relative;
  z-index: 1;
}

.mc-console-refined .mc-cloud-detail .server_header_box::after {
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .power_box {
  min-width: 248px;
  max-width: 310px;
  flex: 0 1 270px;
  align-items: center;
  margin: 0 !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .powerimg {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  margin-right: 13px;
  background: var(--mcr-primary-soft) !important;
  border: 1px solid #cfe0ff !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .powerimg .bx {
  color: var(--mcr-primary) !important;
  font-size: 23px;
  text-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .text-white,
.mc-console-refined .mc-cloud-detail .server_header_box h4,
.mc-console-refined .mc-cloud-detail .server_header_box h5 {
  color: var(--mcr-text) !important;
  text-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .text-white-50,
.mc-console-refined .mc-cloud-detail .server_header_box .box_left_wrap > span {
  color: var(--mcr-text-tertiary) !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box h4 {
  max-width: 215px;
  margin-bottom: 0 !important;
  overflow: hidden;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-console-refined .mc-cloud-detail .server_header_box h5 {
  max-width: 100%;
  margin: 6px 0 0 !important;
  overflow: hidden;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-console-refined .mc-cloud-detail .server_header_box .power_box section:last-child span {
  color: var(--mcr-text-secondary) !important;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: normal;
}

.mc-console-refined .mc-cloud-detail .server_header_box .badge {
  padding: 3px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
}

.mc-console-refined .mc-cloud-detail .server_header_box .status-active,
.mc-console-refined .mc-cloud-detail .server_header_box .status-paid {
  background: #e9f8f0 !important;
  border-color: #c6ebd5 !important;
  color: var(--mcr-success) !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .status-suspended,
.mc-console-refined .mc-cloud-detail .server_header_box .status-unpaid,
.mc-console-refined .mc-cloud-detail .server_header_box .status-pending {
  background: #fff7e8 !important;
  border-color: #f4dfb7 !important;
  color: var(--mcr-warning) !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .status-terminated,
.mc-console-refined .mc-cloud-detail .server_header_box .status-cancelled,
.mc-console-refined .mc-cloud-detail .server_header_box .status-fraud {
  background: #fff1f0 !important;
  border-color: #f3cbc7 !important;
  color: var(--mcr-danger) !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .box_left_wrap {
  min-width: 145px;
  min-height: 68px;
  max-width: 205px;
  flex: 0 1 170px;
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 1px solid var(--mcr-border) !important;
  border-radius: 8px !important;
  background: var(--mcr-surface-soft) !important;
  box-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .osbox {
  min-width: 185px;
  max-width: 230px;
  flex-basis: 205px;
}

.mc-console-refined .mc-cloud-detail .server_header_box .left_wrap_btn {
  width: auto !important;
  min-height: 26px;
  margin: 7px 0 0 !important;
  padding: 0 9px;
  background: var(--mcr-primary-soft) !important;
  border: 1px solid #cfe0ff !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  color: var(--mcr-primary) !important;
  font-size: 11px;
  font-weight: 550;
  line-height: 24px;
}

.mc-console-refined .mc-cloud-detail .server_header_box .osbox .restall-btn {
  background: #fff7e8 !important;
  border-color: #f0d3a0 !important;
  color: #a55d00 !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .osbox .restall-btn:hover {
  background: #fff1d6 !important;
  border-color: #e2b76e !important;
  color: #8c4d00 !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end {
  min-width: 150px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.mc-console-refined .mc-cloud-detail .server_header_box .btn-group {
  margin: 0 !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .custom-button,
.mc-console-refined .mc-cloud-detail .server_header_box .btn-primary.custom-button {
  min-height: 35px;
  padding: 0 14px;
  background: var(--mcr-primary) !important;
  border: 1px solid var(--mcr-primary) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
}

.mc-console-refined .mc-cloud-detail .server_header_box .custom-button:hover,
.mc-console-refined .mc-cloud-detail .server_header_box .left_wrap_btn:hover {
  background: var(--mcr-primary-hover) !important;
  border-color: var(--mcr-primary-hover) !important;
  box-shadow: none !important;
  color: #fff !important;
  transform: none !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .btn-group ~ .btn-group .custom-button {
  background: #fff !important;
  border-color: #b8cef7 !important;
  color: var(--mcr-primary) !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .btn-group ~ .btn-group .custom-button:hover {
  background: var(--mcr-primary) !important;
  border-color: var(--mcr-primary) !important;
  color: #fff !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .dropdown-menu {
  min-width: 160px;
  padding: 6px;
  background: #fff !important;
  border: 1px solid var(--mcr-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(31, 35, 41, .12) !important;
  z-index: 3000 !important;
}

.mc-console-refined .mc-cloud-detail button[data-target=".cancelrequire"] {
  display: none !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .dropdown-item {
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--mcr-text-secondary) !important;
  font-size: 12px;
}

.mc-console-refined .mc-cloud-detail .server_header_box .dropdown-item:hover {
  background: #f5f7fa !important;
  color: var(--mcr-text) !important;
}

.mc-console-refined .mc-cloud-detail .server_header_box .cancelBtn {
  min-height: 30px;
  padding: 5px 10px;
  background: #fff !important;
  border: 1px solid var(--mcr-border-strong) !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  color: var(--mcr-text-secondary) !important;
}

/* Resource sidebar and work area */
.mc-console-refined .mc-cloud-detail > .bottom-box {
  display: grid !important;
  grid-template-columns: minmax(286px, 310px) minmax(0, 1fr);
  gap: 18px;
  margin: 0 !important;
}

.mc-console-refined .mc-cloud-detail > .bottom-box > .col-md-3,
.mc-console-refined .mc-cloud-detail > .bottom-box > .col-md-9 {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0 !important;
}

.mc-console-refined .mc-cloud-detail > .bottom-box > .col-md-3 {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  scrollbar-color: #cfd7e3 transparent;
  scrollbar-width: thin;
}

.mc-console-refined .mc-cloud-detail .bottom-box .card {
  overflow: visible;
  background: var(--mcr-surface) !important;
  border: 1px solid var(--mcr-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .04) !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .card-body {
  padding: 18px !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .bg-gray,
.mc-console-refined .mc-cloud-detail .bottom-box .pre-money-box {
  position: relative;
  margin-bottom: 12px;
  background: var(--mcr-surface-soft) !important;
  background-image: none !important;
  border: 1px solid var(--mcr-border) !important;
  border-left: 1px solid var(--mcr-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .bg-gray.card-body,
.mc-console-refined .mc-cloud-detail .bottom-box .pre-money-box.card-body {
  padding: 14px !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .pre-money-box::before {
  display: none !important;
  content: none !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .text-gray {
  color: var(--mcr-text-tertiary) !important;
  font-size: 12px;
}

.mc-console-refined .mc-cloud-detail .bottom-box .dc {
  color: var(--mcr-primary) !important;
  text-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .text-black,
.mc-console-refined .mc-cloud-detail .bottom-box .text-dark {
  color: var(--mcr-text) !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .pre-money-box h3 {
  color: var(--mcr-primary) !important;
  font-size: 22px;
  font-weight: 650;
}

.mc-console-refined .mc-cloud-detail .bottom-box .pre-money-box .custom-switch {
  margin-bottom: 0 !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .pre-money-box .text-gray p {
  margin-bottom: 8px;
}

.mc-console-refined .mc-cloud-detail .bottom-box .pre-money-box .text-gray p:last-child {
  margin-bottom: 0;
}

.mc-console-refined .mc-cloud-detail #renew,
.mc-console-refined .mc-cloud-detail #renewpay,
.mc-console-refined .mc-cloud-detail a[href^="viewbilling"] {
  position: relative;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .configuration_list .bg-gray {
  min-height: 41px;
  margin-bottom: 7px;
  padding: 10px 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f4 !important;
  border-radius: 0 !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .configuration_list p {
  margin-bottom: 0;
  color: var(--mcr-text-secondary) !important;
  font-size: 12px;
}

.mc-console-refined .mc-cloud-detail .configuration-btn-down {
  margin: 2px 0 10px;
  color: var(--mcr-primary) !important;
  font-size: 12px;
  font-weight: 550;
  line-height: 32px;
}

.mc-console-refined .mc-cloud-detail .configuration-btn-down::after {
  border-color: var(--mcr-primary) !important;
  box-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .progress {
  height: 6px;
  overflow: hidden;
  background: #edf0f4 !important;
  border-radius: 999px;
}

.mc-console-refined .mc-cloud-detail .bottom-box .progress-bar {
  background: var(--mcr-primary) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .btn {
  min-height: 34px;
  border-radius: 5px;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 550;
}

.mc-console-refined .mc-cloud-detail .bottom-box .btn-primary,
.mc-console-refined .mc-cloud-detail .bottom-box .btn-success {
  background: var(--mcr-primary) !important;
  background-image: none !important;
  border-color: var(--mcr-primary) !important;
  color: #fff !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .btn-primary:hover,
.mc-console-refined .mc-cloud-detail .bottom-box .btn-success:hover {
  background: var(--mcr-primary-hover) !important;
  border-color: var(--mcr-primary-hover) !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .btn-danger {
  background: #fff !important;
  border-color: #e9a6a0 !important;
  color: var(--mcr-danger) !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .btn-danger:hover {
  background: #fff1f0 !important;
  border-color: var(--mcr-danger) !important;
}

.mc-console-refined .mc-cloud-detail .bottom-box .left_wrap_btn {
  width: auto !important;
  min-height: 30px;
  margin: 0 !important;
  padding: 0 10px;
  background: #fff !important;
  border: 1px solid #b8cef7 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  color: var(--mcr-primary) !important;
  font-size: 11px;
  font-weight: 550;
  line-height: 28px;
}

/* Tabs and content */
.mc-console-refined .mc-cloud-detail > .bottom-box > .col-md-9 > .card > .card-body {
  padding: 0 !important;
  background: #fff !important;
  border-radius: 10px !important;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom {
  display: flex;
  min-height: 54px;
  align-items: stretch;
  margin: 0;
  padding: 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff !important;
  background-image: none !important;
  border-bottom: 1px solid var(--mcr-border) !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  scrollbar-color: #cfd7e3 transparent;
  scrollbar-width: thin;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom::-webkit-scrollbar {
  height: 3px;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom::-webkit-scrollbar-thumb {
  background: #cfd7e3;
  border-radius: 99px;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom .nav-item {
  flex: 0 0 auto;
  margin: 0;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom .nav-link {
  display: flex;
  position: relative;
  height: 54px;
  align-items: center;
  padding: 0 15px;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  color: var(--mcr-text-secondary) !important;
  font-size: 13px;
  font-weight: 500;
  text-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom .nav-link::before {
  display: none !important;
  box-shadow: none !important;
  content: none !important;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom .nav-link:hover {
  background: transparent !important;
  color: var(--mcr-text) !important;
}

.mc-console-refined .mc-cloud-detail .nav-tabs-custom .nav-link.active {
  background: transparent !important;
  border-bottom-color: var(--mcr-primary) !important;
  color: var(--mcr-primary) !important;
  font-weight: 600;
  text-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .tab-content {
  min-height: 0 !important;
  padding: 20px !important;
  background: #fff !important;
  background-image: none !important;
  color: var(--mcr-text-secondary) !important;
}

.mc-console-refined .mc-cloud-detail .form-control {
  width: 100% !important;
  max-width: 100%;
  border-color: var(--mcr-border-strong);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  color: var(--mcr-text);
}

.mc-console-refined .mc-cloud-detail .form-control:focus {
  border-color: #8db4ff;
  box-shadow: 0 0 0 3px rgba(36, 104, 242, .09);
}

/* Monitoring dashboard */
.mc-console-refined .mc-cloud-detail #home1 > .row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
  margin: 0 !important;
}

.mc-console-refined .mc-cloud-detail .chartbox {
  position: relative;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
}

.mc-console-refined .mc-cloud-detail .chartbox::before {
  display: none !important;
  border: 0 !important;
  content: none !important;
}

.mc-console-refined .mc-cloud-detail .module_chart {
  min-height: 82px;
  padding: 15px 16px 0;
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--mcr-border) !important;
  border-bottom: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  box-shadow: none !important;
}

.mc-console-refined .mc-cloud-detail .module_chart h4 {
  color: var(--mcr-text) !important;
  font-size: 14px;
  font-weight: 600;
}

.mc-console-refined .mc-cloud-detail .module_chart > div:first-child {
  display: flex !important;
  height: auto !important;
  min-height: 42px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-console-refined .mc-cloud-detail .module_chart > div:first-child > h4 {
  min-width: 0;
  flex: 1 1 140px;
  float: none !important;
}

.mc-console-refined .mc-cloud-detail .module_chart > div:first-child > div {
  width: auto !important;
  max-width: 100%;
  margin-right: 0 !important;
  float: none !important;
  flex: 0 1 200px;
}

.mc-console-refined .mc-cloud-detail .module_chart > div:first-child > div .bootstrap-select,
.mc-console-refined .mc-cloud-detail .module_chart > div:first-child > div select {
  width: 100% !important;
  max-width: 100%;
}

.mc-console-refined .mc-cloud-detail .module_chart_date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--mcr-text-tertiary);
  font-size: 11px;
}

.mc-console-refined .mc-cloud-detail .module_chart_date .form-control,
.mc-console-refined .mc-cloud-detail .module_chart > div:first-child .form-control {
  width: auto !important;
  min-width: 0;
  min-height: 34px;
  flex: 1 1 155px;
  border: 1px solid var(--mcr-border-strong) !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--mcr-text-secondary) !important;
  font-size: 11px;
}

.mc-console-refined .mc-cloud-detail .module_chart_date .form-control:focus,
.mc-console-refined .mc-cloud-detail .module_chart > div:first-child .form-control:focus {
  border-color: #8db4ff !important;
  box-shadow: 0 0 0 3px rgba(36, 104, 242, .09) !important;
}

.mc-console-refined .mc-cloud-detail .chart_content_box {
  height: 340px !important;
  min-height: 270px;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid var(--mcr-border) !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
}

.mc-console-refined .mc-cloud-detail .tab-content .table-responsive {
  border: 1px solid var(--mcr-border);
  border-radius: 8px;
}

.mc-console-refined .mc-cloud-detail .tab-content .table {
  margin-bottom: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.mc-console-refined .mc-cloud-detail .tab-content .table th {
  background: var(--mcr-surface-soft);
  color: var(--mcr-text-secondary);
  font-weight: 600;
}

.mc-console-refined .mc-cloud-detail #copyIPContent:hover,
.mc-console-refined .mc-cloud-detail #copyOneIp:hover {
  color: var(--mcr-primary) !important;
}

.mc-console-refined .mc-cloud-detail .login-info-icon {
  color: var(--mcr-primary) !important;
}

.mc-console-refined .mc-cloud-detail .xf-bg {
  background: #fff !important;
  border: 1px solid var(--mcr-border) !important;
  box-shadow: 0 8px 22px rgba(31, 35, 41, .12) !important;
}

/* Modals rendered before or after the detail root must ignore old 46% widths. */
.mc-console-refined .modal .form-control,
.mc-console-refined .modal .bootstrap-select,
.mc-console-refined .modal .bootstrap-select > .dropdown-toggle,
.mc-console-refined ~ .modal .form-control,
.mc-console-refined ~ .modal .bootstrap-select,
.mc-console-refined ~ .modal .bootstrap-select > .dropdown-toggle {
  width: 100% !important;
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  .mc-console-refined .mc-cloud-detail #home1 > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end {
    width: 100%;
    justify-content: flex-start !important;
  }
}

@media (max-width: 1439.98px) {
  .mc-console-refined .mc-cloud-detail #home1 > .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .mc-console-refined .mc-cloud-detail > .bottom-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-console-refined .mc-cloud-detail > .bottom-box > .col-md-3 {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 767.98px) {
  .mc-console-refined .mc-cloud-detail .server_header_box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch !important;
    gap: 10px;
    padding: 15px !important;
  }

  .mc-console-refined .mc-cloud-detail .server_header_box .power_box,
  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end {
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
  }

  .mc-console-refined .mc-cloud-detail .server_header_box .box_left_wrap {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 11px 12px !important;
  }

  .mc-console-refined .mc-cloud-detail .server_header_box .box_left_wrap h5 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .mc-console-refined .mc-cloud-detail .server_header_box h4 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .mc-console-refined .mc-cloud-detail .server_header_box .left_wrap_btn,
  .mc-console-refined .mc-cloud-detail .bottom-box .left_wrap_btn {
    min-height: 42px;
    line-height: 40px;
  }

  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end .btn-group,
  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end .btn {
    min-height: 42px;
  }

  .mc-console-refined .mc-cloud-detail .nav-tabs-custom {
    min-height: 50px;
    padding: 0 8px;
  }

  .mc-console-refined .mc-cloud-detail .nav-tabs-custom .nav-link {
    height: 50px;
    padding: 0 12px;
    font-size: 12px;
  }

  .mc-console-refined .mc-cloud-detail .tab-content {
    min-height: 0 !important;
    padding: 12px !important;
  }

  .mc-console-refined .mc-cloud-detail .chart_content_box {
    height: 270px !important;
  }
}

@media (max-width: 479.98px) {
  .mc-console-refined .mc-cloud-detail .server_header_box {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-console-refined .mc-cloud-detail .server_header_box .box_left_wrap,
  .mc-console-refined .mc-cloud-detail .server_header_box .power_box,
  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end {
    grid-column: 1 / -1;
  }

  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end .btn-group,
  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end .btn-group > .btn,
  .mc-console-refined .mc-cloud-detail .server_header_box > .d-flex.justify-content-end > .btn {
    width: 100%;
    margin: 0 !important;
  }

  .mc-console-refined .mc-cloud-detail .module_chart_date .form-control,
  .mc-console-refined .mc-cloud-detail .module_chart > div:first-child .form-control {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-console-refined *,
  .mc-console-refined *::before,
  .mc-console-refined *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
