body.enterprise-control-open {
  overflow: hidden;
}

.enterprise-control-launcher {
  position: fixed;
  z-index: 9000;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d4aa42;
  border-radius: 15px;
  padding: 0 18px;
  background:
    linear-gradient(
      145deg,
      #0c3153,
      #071f36
    );
  color: #f3d36f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 15px 35px
    rgba(4, 24, 42, .28);
}

.enterprise-control-launcher-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background:
    rgba(244, 208, 102, .14);
  color: #f1cc62;
}

.enterprise-control-panel {
  position: fixed;
  z-index: 999999;
  inset: 0;
  direction: rtl;
}

.enterprise-control-panel[hidden] {
  display: none !important;
}

.enterprise-control-overlay {
  position: absolute;
  inset: 0;
  background:
    rgba(4, 20, 35, .76);
  backdrop-filter: blur(7px);
}

.enterprise-control-dialog {
  position: absolute;
  top: 3vh;
  right: 50%;
  width:
    min(
      1320px,
      calc(100% - 30px)
    );
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(50%);
  border:
    1px solid
    rgba(218, 176, 69, .5);
  border-radius: 24px;
  background: #f4f7fa;
  box-shadow:
    0 38px 100px
    rgba(0, 13, 28, .5);
}

.enterprise-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 23px;
  background:
    linear-gradient(
      135deg,
      #082641,
      #104873
    );
  color: #fff;
}

.enterprise-control-header span {
  color: #e2bd59;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
}

.enterprise-control-header h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.enterprise-control-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enterprise-control-head-actions button {
  min-height: 40px;
  border-radius: 11px;
  padding: 0 13px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.enterprise-control-backup-button {
  border: 1px solid #d7ad48;
  background:
    linear-gradient(
      145deg,
      #edc85f,
      #c99225
    );
  color: #183047;
}

.enterprise-control-refresh {
  border:
    1px solid
    rgba(255,255,255,.22);
  background:
    rgba(255,255,255,.09);
  color: #fff;
}

.enterprise-control-close {
  width: 41px;
  padding: 0 !important;
  border:
    1px solid
    rgba(255,255,255,.22);
  background:
    rgba(255,255,255,.08);
  color: #fff;
  font-size: 25px !important;
}

.enterprise-control-body {
  overflow: auto;
  padding: 18px;
}

.enterprise-control-kpis {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 15px;
}

.enterprise-control-kpis article {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dce6ee;
  border-radius: 15px;
  background: #fff;
  box-shadow:
    0 8px 22px
    rgba(12, 48, 76, .07);
}

.enterprise-control-kpis span {
  display: block;
  margin-bottom: 8px;
  color: #728496;
  font-size: 10px;
  font-weight: 800;
}

.enterprise-control-kpis strong {
  color: #123c5d;
  font-size: 24px;
}

.enterprise-control-kpis
.is-warning strong {
  color: #a87412;
}

.enterprise-control-kpis
.is-critical strong {
  color: #b62d39;
}

.enterprise-control-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.enterprise-control-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dae5ed;
  border-radius: 17px;
  background: #fff;
  box-shadow:
    0 9px 25px
    rgba(13, 48, 75, .07);
}

.enterprise-control-wide {
  grid-column: 1 / -1;
}

.enterprise-control-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e7edf2;
  background: #f4f7f9;
}

.enterprise-control-section
> header span {
  color: #8a6a22;
  font-size: 9px;
  font-weight: 900;
}

.enterprise-control-section
> header h3 {
  margin: 4px 0 0;
  color: #173c5b;
  font-size: 14px;
}

.enterprise-control-section
> header > strong {
  color: #123c5d;
  font-size: 20px;
}

.enterprise-open-months-list,
.enterprise-alerts-list,
.enterprise-activity-list,
.enterprise-backups-list {
  padding: 12px;
}

.enterprise-open-month-card {
  display: grid;
  grid-template-columns:
    1.2fr 1.6fr 1fr 1.2fr auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 13px;
  background: #fbfcfd;
}

.enterprise-open-month-card
> div {
  min-width: 0;
}

.enterprise-open-month-card span {
  display: block;
  margin-bottom: 5px;
  color: #748697;
  font-size: 9px;
  font-weight: 800;
}

.enterprise-open-month-card strong {
  display: block;
  overflow: hidden;
  color: #173b59;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-open-month-card.is-warning {
  border-color: #e4bd5c;
  background: #fffaf0;
}

.enterprise-open-month-card.is-critical {
  border-color: #e08088;
  background: #fff4f5;
}

.enterprise-open-month-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 12px;
  background: #123f64;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.enterprise-alert-card {
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #dce6ed;
  border-radius: 12px;
  background: #f9fbfc;
}

.enterprise-alert-card.is-warning {
  border-color: #e5c36d;
  background: #fff9e9;
}

.enterprise-alert-card.is-critical {
  border-color: #e18b92;
  background: #fff2f3;
}

.enterprise-alert-card strong {
  color: #173c5b;
  font-size: 11px;
}

.enterprise-alert-card span {
  margin-right: 7px;
  color: #7d8c98;
  font-size: 10px;
}

.enterprise-alert-card p {
  margin: 7px 0 0;
  color: #526a7e;
  font-size: 10px;
}

.enterprise-activity-row,
.enterprise-backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid #edf1f4;
}

.enterprise-activity-row:last-child,
.enterprise-backup-row:last-child {
  border-bottom: 0;
}

.enterprise-activity-row div,
.enterprise-backup-row div {
  min-width: 0;
}

.enterprise-activity-row strong,
.enterprise-backup-row strong {
  display: block;
  overflow: hidden;
  color: #173a57;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-activity-row span,
.enterprise-backup-row span,
.enterprise-activity-row time,
.enterprise-backup-row time {
  color: #748697;
  font-size: 9px;
  font-weight: 700;
}

.enterprise-backup-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 2fr)
    repeat(3, minmax(60px, .5fr))
    minmax(150px, .8fr);
}

.enterprise-control-empty,
.enterprise-control-success,
.enterprise-control-loading,
.enterprise-control-error {
  margin: 12px;
  padding: 28px 18px;
  border: 1px dashed #cbd8e2;
  border-radius: 14px;
  background: #fff;
  color: #546b7e;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.enterprise-control-empty {
  display: grid;
  gap: 7px;
}

.enterprise-control-empty strong {
  color: #173c5c;
  font-size: 14px;
}

.enterprise-control-success {
  border-color: #95cfb5;
  background: #f2fbf7;
  color: #18704b;
}

.enterprise-control-error {
  border-color: #e1a1a7;
  background: #fff5f5;
  color: #ac2834;
}

.enterprise-control-footer {
  margin-top: 14px;
  color: #788897;
  font-size: 9px;
  text-align: left;
}

@media (max-width: 1000px) {
  .enterprise-control-kpis {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .enterprise-control-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-control-wide {
    grid-column: auto;
  }

  .enterprise-open-month-card {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .enterprise-open-month-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .enterprise-control-dialog {
    top: 1vh;
    width: calc(100% - 10px);
    max-height: 98vh;
  }

  .enterprise-control-header {
    align-items: flex-start;
    padding: 14px;
  }

  .enterprise-control-header h2 {
    font-size: 17px;
  }

  .enterprise-control-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .enterprise-control-backup-button {
    order: 3;
    width: 100%;
  }

  .enterprise-control-kpis {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .enterprise-control-body {
    padding: 8px;
  }

  .enterprise-backup-row {
    grid-template-columns: 1fr 1fr;
  }

  .enterprise-backup-row
  > div:first-child {
    grid-column: 1 / -1;
  }

  .enterprise-control-launcher {
    right: 12px;
    bottom: 12px;
  }
}
