.cr-toolbar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
.cr-metrics {
  grid-template-columns: repeat(4, 1fr);
}
.cr-panel .panel-head {
  align-items: center;
}
.cr-panel .table-wrap {
  overflow: auto;
}
.cr-company strong,
.cr-company small,
.cr-table td small {
  display: block;
}
.cr-company small,
.cr-table td small,
.cr-note {
  color: var(--muted);
}
.cr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cr-tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky);
  font-size: 11px;
  font-weight: 750;
}
.cr-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.cr-empty {
  text-align: center;
  padding: 38px;
  color: var(--muted);
}
.cr-modal {
  width: min(980px, 96vw);
}
.cr-form {
  grid-template-columns: repeat(2, 1fr);
}
.cr-form .full,
.cr-section {
  grid-column: 1/-1;
}
.cr-section {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.cr-section:first-child {
  border: 0;
  padding-top: 0;
}
.cr-section h4 {
  margin: 0;
}
.cr-section p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 12px;
}
.cr-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cr-detail {
  overflow: auto;
  display: grid;
  gap: 14px;
}
.cr-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cr-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.cr-block.full {
  grid-column: 1/-1;
}
.cr-block span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.cr-inactive {
  opacity: 0.62;
}
@media (max-width: 800px) {
  .cr-toolbar,
  .cr-metrics,
  .cr-form,
  .cr-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cr-toolbar .cr-search {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .cr-toolbar,
  .cr-metrics,
  .cr-form,
  .cr-detail-grid {
    grid-template-columns: 1fr;
  }
  .cr-form .full,
  .cr-section,
  .cr-block.full {
    grid-column: auto;
  }
  .cr-form-actions {
    flex-direction: column-reverse;
  }
}
.cr-form-actions {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cr-form-actions .primary-btn {
  min-width: 190px;
  background: linear-gradient(135deg, #8f0f1a, #a8121f);
  color: #fff;
  border: 1px solid #8f0f1a;
  box-shadow: 0 10px 24px rgba(143, 15, 26, 0.25);
}
.cr-form-actions .primary-btn span,
.cr-panel .primary-btn span {
  display: inline;
  width: auto;
  height: auto;
  background: transparent;
  color: #fff !important;
  font-size: 13px;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}
.cr-form-actions .primary-btn svg,
.cr-panel .primary-btn svg {
  color: #fff;
  stroke: currentColor;
}
.cr-form-actions .primary-btn:hover {
  background: #730b15;
  color: #fff;
}
.cr-form-actions .primary-btn:focus-visible,
.cr-panel .primary-btn:focus-visible,
.cr-actions button:focus-visible {
  outline: 3px solid rgba(168, 18, 31, 0.3);
  outline-offset: 3px;
}
.cr-form-actions .primary-btn:disabled {
  background: #775b5e;
  color: #fff;
  opacity: 0.72;
  cursor: wait;
  box-shadow: none;
}
.cr-form input:focus,
.cr-form select:focus,
.cr-form textarea:focus {
  outline: 0;
  border-color: #a8121f;
  box-shadow: 0 0 0 3px rgba(168, 18, 31, 0.14);
}
.cr-form textarea {
  min-height: 82px;
  resize: vertical;
}
.cr-form label > span {
  color: #334d55;
}
.cr-required-note {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
}
.cr-status-error {
  color: var(--danger);
  font-weight: 750;
}
.cr-detail > h3 {
  margin: 0;
}
.cr-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cr-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cr-map-link {
  color: #8f0f1a;
  font-weight: 850;
}
.cr-more {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.cr-actions .action-icon {
  color: #244d56;
  background: #fff;
  border-color: #c9dfe4;
}
.cr-actions .edit-btn {
  color: #7f111c;
  background: #fff6f5;
  border-color: #e6b8b4;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 600px) {
  .cr-form-actions .primary-btn {
    min-width: 0;
  }
  .cr-detail-actions {
    display: grid;
  }
  .cr-detail-actions button {
    width: 100%;
  }
}
.cr-delivery-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cr-address-list {
  display: grid;
  gap: 12px;
}
.cr-address-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid #c9dfe4;
  border-radius: 14px;
  background: #f7fbfc;
}
.cr-address-head {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #173640;
}
.cr-address-head .action-icon { color: #8f2924; border-color: #e6b8b5; background: #fff; }
.cr-detail-addresses { display: grid; gap: 9px; margin-top: 8px; }
.cr-detail-addresses > div { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: #f7fafb; }
.cr-detail-addresses small { color: var(--muted); }
@media (max-width: 600px) {
  .cr-address-card { grid-template-columns: 1fr; }
  .cr-address-card .full, .cr-address-head { grid-column: auto; }
  .cr-delivery-section { align-items: stretch; flex-direction: column; }
}
