/* ============================================================
 * obs-ribbon-arch.css
 * Recreates the Architecture-tab ribbon look for any ribbon panel.
 * Add class "obs-ribbon-arch" to a <div> and use the markup below.
 * ============================================================ */

.obs-ribbon-arch {
  display: flex;
  align-items: stretch;
  height: 108px;
  background: #1a1d23;
  border-bottom: 1px solid #2a2f3a;
  padding: 4px 8px 0 8px;
  overflow-x: auto;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #d6dae2;
  user-select: none;
}
.obs-ribbon-arch::-webkit-scrollbar { height: 6px; }
.obs-ribbon-arch::-webkit-scrollbar-thumb { background: #2f3644; border-radius: 3px; }

.obs-rb-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 10px;
  position: relative;
  border-right: 1px solid #262b35;
  min-width: 60px;
}
.obs-rb-group:last-child { border-right: 0; }

.obs-rb-group-row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding-top: 2px;
  flex-wrap: wrap;
  max-height: 78px;
  align-content: flex-start;
}

.obs-rb-label {
  font-size: 9px;
  letter-spacing: .08em;
  color: #6b7280;
  text-align: center;
  text-transform: uppercase;
  padding: 2px 0 4px;
}

.obs-rb-btn {
  width: auto;
  min-width: 58px;
  max-width: 96px;
  min-height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 4px 6px 2px;
  color: #cfd4dc;
  font-size: 10px;
  line-height: 1.15;
  cursor: pointer;
  transition: background .08s, border-color .08s, color .08s;
  white-space: nowrap;
}
.obs-rb-btn:hover { background: #22272f; border-color: #2f3644; color: #fff; }
.obs-rb-btn:active { background: #1a1f27; }
.obs-rb-btn.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.obs-rb-btn:disabled { opacity: .35; cursor: default; }

.obs-rb-ico {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a6b0be;
}
.obs-rb-btn:hover .obs-rb-ico,
.obs-rb-btn.is-active .obs-rb-ico { color: #fff; }
.obs-rb-ico svg { width: 22px; height: 22px; display: block; }

.obs-rb-name {
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* For split buttons (like Level input under Architecture > Datum) */
.obs-rb-btn-wide {
  width: 62px;
  flex-direction: column;
}
.obs-rb-btn-wide .obs-rb-name {
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obs-rb-input {
  width: 46px;
  background: #0b0d12;
  border: 1px solid #2f3644;
  color: #e6e8ee;
  font-size: 11px;
  padding: 1px 3px;
  border-radius: 3px;
  text-align: center;
}
