/* SWISO universal Nexus Managed presentation and visual Hub catalogue editor — 0.20.86 revision 37.
   Managed deliberately has no header, rail, navigation or workspace skin: it
   uses the same universal operational template as Nexus. */

.d53-hub-panel-head {
  align-items: center;
}

.d53-hub-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d9e7ed;
  border-radius: 12px;
  background: #f7fbfc;
}

.d53-hub-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f3f7;
  color: #214f67;
  font-size: .78rem;
}

.d53-hub-summary span strong {
  color: #075f83;
  font-size: .9rem;
}

.d53-hub-summary small {
  margin-left: auto;
  color: #5d7484;
}

.d53-hub-catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.d53-product-tile,
.d53-product-add {
  min-height: 300px;
  box-sizing: border-box;
  border: 1px solid #cfdee6;
  border-top: 5px solid var(--hub-accent, #0ba4dc);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(9, 61, 91, .07);
}

.d53-product-tile {
  display: grid;
  grid-template-rows: auto 82px 1fr auto auto;
  gap: 10px;
  padding: 13px;
}

.d53-product-tile.dragging {
  opacity: .52;
  outline: 2px dashed var(--hub-accent);
}

.d53-product-tile.is-hidden {
  opacity: .68;
  background: #f4f6f7;
}

.d53-product-tile.is-embedded {
  border-top-color: #7556d7;
  background: #faf9fe;
}

.d53-product-tile > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.d53-hub-order {
  color: #547083;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.d53-product-tile .d53-hub-drag {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #edf5f8;
  color: #0b6f91;
  cursor: grab;
}

.d53-product-image {
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hub-accent) 9%, white), #fff);
}

.d53-product-image img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.d53-product-copy > span {
  color: var(--hub-accent);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.d53-product-copy h5 {
  margin: 5px 0;
  color: #092f55;
  font-size: 1rem;
}

.d53-product-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #526c7f;
  font-size: .78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.d53-product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.d53-product-flags b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf1f5;
  color: #456174;
  font-size: .68rem;
}

.d53-product-flags b.available {
  background: #ddf5e9;
  color: #08714e;
}

.d53-product-flags b.pending {
  background: #fff1d8;
  color: #845e0b;
}

.d53-product-tile > footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 0;
  border-top: 1px solid #e2ebef;
  background: transparent;
}

.d53-product-tile > footer button {
  min-height: 34px;
  padding: 5px 9px;
  font-size: .72rem;
}

.d53-product-tile > footer nav {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.d53-product-add {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 25px;
  border: 2px dashed #91cdbb;
  border-top-width: 2px;
  background: linear-gradient(145deg, #f5fcf9, #eef9f5);
  color: #0b6557;
  text-align: center;
}

.d53-product-add:hover,
.d53-product-add:focus-visible {
  border-color: #168f74;
  background: #e7f7f0;
}

.d53-product-add > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #168f74;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.d53-product-add strong {
  font-size: 1rem;
}

.d53-product-add small {
  max-width: 230px;
  color: #55766e;
  line-height: 1.45;
}

.d53-hub-editor-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #fff;
  color: #123d59;
  box-shadow: 0 28px 90px rgba(3, 33, 53, .32);
}

.d53-hub-editor-dialog::backdrop {
  background: rgba(5, 31, 49, .45);
  backdrop-filter: blur(2px);
}

.d53-hub-editor-dialog form > header,
.d53-hub-editor-dialog form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  background: #f6fafb;
}

.d53-hub-editor-dialog form > header {
  border-bottom: 1px solid #dbe7ec;
}

.d53-hub-editor-dialog form > header span {
  color: #087da7;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.d53-hub-editor-dialog form > header h3 {
  margin: 4px 0;
}

.d53-hub-editor-dialog form > header p {
  margin: 0;
  color: #5a7182;
}

.d53-hub-editor-dialog form > header > button {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
}

.d53-hub-editor-body {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 20px;
  padding: 20px;
}

.d53-hub-editor-preview {
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 16px;
  border: 1px solid #d4e2e9;
  border-top: 5px solid var(--hub-accent);
  border-radius: 14px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--hub-accent) 9%, white), #fff);
  text-align: center;
}

.d53-hub-editor-preview img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.d53-hub-editor-preview span {
  color: var(--hub-accent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.d53-hub-editor-preview small {
  color: #5a7182;
  line-height: 1.45;
}

.d53-hub-editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.d53-hub-editor-fields label,
.d53-hub-editor-upload {
  display: grid;
  gap: 6px;
  color: #35546d;
  font-size: .78rem;
  font-weight: 800;
}

.d53-hub-editor-fields .wide {
  grid-column: 1 / -1;
}

.d53-hub-editor-fields input,
.d53-hub-editor-fields select,
.d53-hub-editor-fields textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #c7d8e0;
  border-radius: 8px;
  background: #fff;
  color: #173957;
  font: inherit;
}

.d53-hub-editor-fields textarea {
  min-height: 82px;
  resize: vertical;
}

.d53-hub-editor-upload {
  align-content: start;
}

.d53-hub-editor-upload small {
  color: #687f8e;
  font-weight: 500;
}

.d53-hub-editor-dialog form > aside {
  display: flex;
  gap: 10px;
  margin: 0 20px 16px;
  padding: 12px 14px;
  border-left: 4px solid #168f74;
  background: #edf8f4;
  color: #315c54;
}

.d53-hub-editor-dialog form > footer {
  justify-content: flex-end;
  border-top: 1px solid #dbe7ec;
}

@media (max-width: 760px) {
  .d53-hub-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .d53-hub-summary small {
    width: 100%;
    margin-left: 0;
  }
  .d53-hub-editor-body {
    grid-template-columns: 1fr;
  }
  .d53-hub-editor-fields {
    grid-template-columns: 1fr;
  }
  .d53-hub-editor-fields .wide {
    grid-column: auto;
  }
}
