.exhibition-shell .card-hd {
  align-items: flex-start;
}

.exhibition-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.exhibition-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.exhibition-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  border-bottom: 1px solid var(--border);
  background: #f7fafc;
}

.exhibition-metrics > div {
  min-width: 0;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}

.exhibition-metrics > div:last-child {
  border-right: 0;
}

.exhibition-metrics span {
  display: block;
  color: #183b61;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.exhibition-metrics small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.exhibition-form {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.exhibition-section-title {
  margin: 0 0 12px;
  color: #183b61;
  font-size: 15px;
  font-weight: 700;
}

.exhibition-section-title:not(:first-child) {
  margin-top: 24px;
}

.exhibition-grid {
  display: grid;
  gap: 14px 16px;
}

.exhibition-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.exhibition-grid-wide {
  grid-column: 1 / -1;
}

.exhibition-address-grid {
  grid-template-columns: minmax(130px, .7fr) minmax(130px, .7fr) minmax(260px, 2fr);
  margin-top: 14px;
}

.exhibition-grid label,
.exhibition-products {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.exhibition-grid label b,
.exhibition-products b {
  color: var(--danger);
}

.exhibition-grid input:not([type="checkbox"]),
.exhibition-grid select,
.exhibition-grid textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  border: 1px solid #b8c5d3;
  border-radius: 6px;
  background-color: #fff;
  color: #172b43;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.exhibition-grid input:not([type="checkbox"]),
.exhibition-grid select {
  height: 44px;
  min-height: 44px;
  padding: 9px 12px;
}

.exhibition-grid select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
}

.exhibition-select-field {
  position: relative;
}

.exhibition-select-field::after {
  position: absolute;
  top: 42px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #53677d;
  border-bottom: 2px solid #53677d;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.exhibition-grid input:not([type="checkbox"]):hover,
.exhibition-grid select:hover,
.exhibition-grid textarea:hover {
  border-color: #8297ad;
}

.exhibition-grid input:not([type="checkbox"]):focus,
.exhibition-grid select:focus,
.exhibition-grid textarea:focus {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, .14);
  outline: 0;
}

.exhibition-grid input[readonly] {
  background-color: #f2f5f8;
  color: #53677d;
}

.exhibition-grid textarea {
  min-height: 116px;
  padding: 10px 12px;
  resize: vertical;
}

.exhibition-products {
  margin: 0;
  padding: 0;
  border: 0;
}

.exhibition-products legend {
  margin: 0 0 6px;
  padding: 0;
}

#exhibition-product-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

#exhibition-product-options label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-weight: 400;
  line-height: 1.4;
}

#exhibition-product-options input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.exhibition-match-hint {
  margin-top: 12px;
  padding: 9px 12px;
  border-left: 3px solid #6b829b;
  background: #f3f6f9;
  color: #53677d;
  font-size: 13px;
}

.exhibition-match-hint.is-match {
  border-left-color: #16844c;
  background: #edf8f2;
  color: #116b3d;
}

.exhibition-match-hint.is-warning {
  border-left-color: #c77a0a;
  background: #fff8e8;
  color: #8a5406;
}

.exhibition-form-actions,
.exhibition-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exhibition-form-actions {
  margin-top: 20px;
}

.exhibition-followup-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.exhibition-followup-section.hidden {
  display: none;
}

.exhibition-followup-section .exhibition-section-title {
  margin-top: 0;
}

#exhibition-form-mode {
  color: var(--muted);
  font-size: 13px;
}

.exhibition-list-head {
  padding: 18px 24px 8px;
}

.exhibition-table-wrap {
  padding: 0 24px 24px;
}

.exhibition-sync {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.exhibition-sync.synced {
  background: #e8f6ee;
  color: #12653b;
}

.exhibition-sync.warning {
  background: #fff2d6;
  color: #875000;
}

.exhibition-grade,
.exhibition-followup-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.exhibition-grade.grade-a {
  background: #ede9fe;
  color: #6d28d9;
}

.exhibition-grade.grade-b {
  background: #dbeafe;
  color: #1d4ed8;
}

.exhibition-grade.grade-c {
  background: #f1f5f9;
  color: #475569;
}

.exhibition-followup-status {
  border-left: 3px solid #64748b;
  background: #f1f5f9;
  color: #334155;
}

.exhibition-followup-status.is-active {
  border-left-color: #0284c7;
  background: #e0f2fe;
  color: #075985;
}

.exhibition-followup-status.is-converted {
  border-left-color: #16a34a;
  background: #dcfce7;
  color: #166534;
}

.exhibition-followup-status.is-paused {
  border-left-color: #d97706;
  background: #fef3c7;
  color: #92400e;
}

.exhibition-cell-main {
  color: var(--text);
  font-weight: 700;
}

.exhibition-cell-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.exhibition-update-copy {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .exhibition-grid-3,
  .exhibition-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exhibition-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exhibition-address-grid label:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .exhibition-head,
  .exhibition-form-actions,
  .exhibition-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .exhibition-actions {
    justify-content: flex-start;
  }

  .exhibition-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exhibition-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .exhibition-metrics > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .exhibition-form,
  .exhibition-list-head,
  .exhibition-table-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .exhibition-grid-3,
  .exhibition-grid-2,
  .exhibition-address-grid,
  #exhibition-product-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .exhibition-address-grid label:last-child {
    grid-column: auto;
  }

  .exhibition-form-actions .btn {
    width: 100%;
  }
}
