/* =========================================================
   KEEYNET CLOUD FABRIC CF2B2
   ========================================================= */

.kc-cloud-fabric-shell {
  margin-top: 14px;
}


/* ---------------------------------------------------------
   TABS
   --------------------------------------------------------- */

.kc-cf-tabs {
  display: flex;
  align-items: center;
  gap: 20px;

  min-height: 38px;

  margin: 0 0 18px;
  padding: 0;

  border-bottom: 1px solid var(--line);

  overflow-x: auto;
}

.kc-cf-tabs button {
  position: relative;

  flex: 0 0 auto;

  min-height: 38px;

  padding: 0 1px;

  border: 0;
  background: transparent;

  color: var(--muted);

  font: inherit;
  font-size: 11px;
  font-weight: 450;

  cursor: pointer;
}

.kc-cf-tabs button:hover {
  color: var(--text);
}

.kc-cf-tabs button.active {
  color: var(--text);
  font-weight: 550;
}

.kc-cf-tabs button.active::after {
  position: absolute;

  right: 0;
  bottom: -1px;
  left: 0;

  height: 2px;

  background: var(--accent);

  content: "";
}


/* ---------------------------------------------------------
   GLOBAL
   --------------------------------------------------------- */

.kc-cf-panel[hidden] {
  display: none !important;
}

.kc-cf-message {
  margin: 0 0 14px;
  padding: 9px 11px;

  border: 1px solid var(--line);
  border-radius: 6px;

  font-size: 11px;

  color: var(--muted);
}

.kc-cf-message.warn {
  color: #a16207;
}

.kc-cf-message.bad {
  color: #b91c1c;
}

.kc-cf-section {
  margin-top: 18px;
  padding-top: 18px;

  border-top: 1px solid var(--line);
}

.kc-cf-section:first-child {
  margin-top: 0;
}

.kc-cf-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;

  margin-bottom: 14px;
}

.kc-cf-section-head h3 {
  margin: 3px 0 2px;

  font-size: 14px;
  font-weight: 560;

  color: var(--text);
}

.kc-cf-section-head p {
  max-width: 700px;

  margin: 4px 0 0;

  font-size: 10.5px;
  line-height: 1.55;

  color: var(--muted);
}

.kc-cf-eyebrow {
  display: block;

  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .08em;

  color: var(--muted);
}

.kc-cf-empty {
  padding: 24px 0;

  font-size: 11px;
  line-height: 1.55;

  color: var(--muted);
}


/* ---------------------------------------------------------
   CAPACITY
   --------------------------------------------------------- */

.kc-cf-capacity {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  column-gap: 28px;
  row-gap: 0;
}

.kc-cf-capacity-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;

  min-height: 38px;

  border-bottom:
    1px solid
    color-mix(
      in srgb,
      var(--line) 70%,
      transparent
    );

  font-size: 10.5px;
}

.kc-cf-capacity-row span {
  color: var(--muted);
}

.kc-cf-capacity-row strong {
  font-size: 10.5px;
  font-weight: 550;

  color: var(--text);
}

.kc-cf-good {
  color: var(--success) !important;
}


/* ---------------------------------------------------------
   ROLES
   --------------------------------------------------------- */

.kc-cf-role-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;
}

.kc-cf-role {
  display: grid;
  gap: 5px;

  padding: 3px 0 11px;

  border-bottom: 1px solid var(--line);
}

.kc-cf-role strong {
  font-size: 11px;
  font-weight: 550;

  color: var(--text);
}

.kc-cf-role span {
  max-width: 310px;

  font-size: 10.5px;
  line-height: 1.5;

  color: var(--muted);
}


/* ---------------------------------------------------------
   TABLES
   --------------------------------------------------------- */

.kc-cf-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.kc-cf-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 10.5px;
}

.kc-cf-table th {
  padding: 8px 10px;

  border-bottom: 1px solid var(--line);

  text-align: left;

  font-size: 9px;
  font-weight: 550;
  letter-spacing: .025em;

  color: var(--muted);
}

.kc-cf-table td {
  padding: 10px;

  border-bottom:
    1px solid
    color-mix(
      in srgb,
      var(--line) 70%,
      transparent
    );

  vertical-align: middle;

  color: var(--text);
}

.kc-cf-table strong {
  font-weight: 520;
}

.kc-cf-table code {
  font-family:
    "Roboto Mono",
    ui-monospace,
    monospace;

  font-size: 9.5px;

  color: var(--text);
}

.kc-cf-footnote {
  margin: 11px 0 0;

  font-size: 9.5px;
  line-height: 1.55;

  color: var(--muted);
}


/* ---------------------------------------------------------
   STATUS
   --------------------------------------------------------- */

.kc-cf-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  font-size: 9.5px;
  font-weight: 520;

  text-transform: capitalize;
}

.kc-cf-status::before {
  width: 6px;
  height: 6px;

  border-radius: 999px;

  background: currentColor;

  content: "";
}

.kc-cf-status.good {
  color: var(--success);
}

.kc-cf-status.warn {
  color: #a16207;
}

.kc-cf-status.bad {
  color: #b91c1c;
}

.kc-cf-status.neutral {
  color: var(--muted);
}


/* ---------------------------------------------------------
   UPGRADE
   --------------------------------------------------------- */

.kc-cf-upgrade {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;

  padding: 18px 0;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kc-cf-upgrade div {
  display: grid;
  gap: 4px;
}

.kc-cf-upgrade strong {
  font-size: 11px;
  font-weight: 550;
}

.kc-cf-upgrade span {
  font-size: 10.5px;

  color: var(--muted);
}

.kc-cf-upgrade a {
  flex: 0 0 auto;

  font-size: 10.5px;
  font-weight: 550;

  color: var(--accent);

  text-decoration: none;
}

.kc-cf-upgrade a:hover {
  text-decoration: underline;
}

.kc-cf-locked {
  opacity: .58;
}


/* ---------------------------------------------------------
   TOPOLOGY
   --------------------------------------------------------- */

.kc-cf-topology {
  position: relative;

  padding: 12px 0 2px;
}

.kc-cf-core {
  display: grid;
  justify-items: center;

  width: max-content;

  min-width: 160px;

  margin: 0 auto 38px;

  padding: 10px 18px;

  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.kc-cf-core span {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .12em;

  color: var(--accent);
}

.kc-cf-core strong {
  margin-top: 3px;

  font-size: 12px;
  font-weight: 560;
}

.kc-cf-core small {
  margin-top: 2px;

  font-size: 9px;

  color: var(--muted);
}

.kc-cf-site-grid {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(210px, 1fr)
    );

  gap: 18px;
}

.kc-cf-site-grid::before {
  position: absolute;

  top: -20px;
  right: 10%;
  left: 10%;

  height: 1px;

  background: var(--line);

  content: "";
}

.kc-cf-site-node {
  position: relative;

  min-width: 0;

  padding: 12px 0 0;

  border-top: 1px solid var(--line);
}

.kc-cf-site-link {
  position: absolute;

  top: -20px;
  left: 50%;

  width: 1px;
  height: 20px;

  background: var(--line);
}

.kc-cf-site-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 8px;
}

.kc-cf-provider {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .04em;

  color: var(--muted);
}

.kc-cf-site-node > strong {
  display: block;

  margin-bottom: 3px;

  font-size: 11.5px;
  font-weight: 560;

  color: var(--text);
}

.kc-cf-site-node > span {
  display: block;

  font-size: 9.5px;

  color: var(--muted);
}

.kc-cf-site-node dl {
  display: grid;
  gap: 0;

  margin: 10px 0 0;
}

.kc-cf-site-node dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  min-height: 28px;
  align-items: center;

  border-top:
    1px solid
    color-mix(
      in srgb,
      var(--line) 65%,
      transparent
    );
}

.kc-cf-site-node dt,
.kc-cf-site-node dd {
  margin: 0;

  font-size: 9.5px;
}

.kc-cf-site-node dt {
  color: var(--muted);
}

.kc-cf-site-node dd {
  text-align: right;

  color: var(--text);
}


/* ---------------------------------------------------------
   DESIGN EXAMPLES
   --------------------------------------------------------- */

.kc-cf-designs {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 26px;
}

.kc-cf-design {
  min-width: 0;

  padding-top: 10px;

  border-top: 1px solid var(--line);
}

.kc-cf-design > span {
  display: block;

  margin-bottom: 5px;

  font-size: 8px;
  font-weight: 600;

  color: var(--muted);
}

.kc-cf-design strong {
  display: block;

  font-size: 11px;
  font-weight: 550;

  color: var(--text);
}

.kc-cf-design pre {
  overflow-x: auto;

  margin: 10px 0;

  padding: 0;

  background: transparent;
  border: 0;

  font-family:
    "Roboto Mono",
    ui-monospace,
    monospace;

  font-size: 9px;
  line-height: 1.45;

  color: var(--text);
}

.kc-cf-design p {
  margin: 0;

  font-size: 9.5px;
  line-height: 1.5;

  color: var(--muted);
}


/* ---------------------------------------------------------
   DIALOGS
   --------------------------------------------------------- */

.kc-cf-dialog .dialog-card {
  width: min(610px, calc(100vw - 32px));
}

.kc-cf-dialog label {
  display: grid;
  gap: 6px;

  margin-top: 13px;

  font-size: 10px;
  font-weight: 500;

  color: var(--muted);
}

.kc-cf-dialog input,
.kc-cf-dialog select {
  width: 100%;

  min-height: 36px;

  padding: 7px 9px;

  border: 1px solid var(--line);
  border-radius: 6px;

  background: var(--surface);
  color: var(--text);

  font: inherit;
  font-size: 10.5px;
}

.kc-cf-dialog input[readonly] {
  color: var(--muted);
}

.kc-cf-dialog-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.kc-cf-info {
  margin-top: 15px;
  padding-top: 11px;

  border-top: 1px solid var(--line);

  font-size: 9.5px;
  line-height: 1.55;

  color: var(--muted);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {
  .kc-cf-capacity {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .kc-cf-role-grid,
  .kc-cf-designs {
    grid-template-columns:
      1fr;
  }
}

@media (max-width: 700px) {
  .kc-cf-tabs {
    gap: 15px;
  }

  .kc-cf-section-head {
    display: grid;
    gap: 10px;
  }

  .kc-cf-capacity {
    grid-template-columns: 1fr;
  }

  .kc-cf-dialog-grid {
    grid-template-columns: 1fr;
  }

  .kc-cf-upgrade {
    display: grid;
  }

  .kc-cf-site-grid {
    grid-template-columns: 1fr;
  }

  .kc-cf-site-grid::before,
  .kc-cf-site-link {
    display: none;
  }
}
