/* cargo.one production component classes — extracted from the design system template.
   Demo-only wrapper classes (.ds-*) are intentionally omitted. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--c1-radius-lg);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s;
}
/* Keep an inline icon vertically centred with the (now smaller, bold) label. */
.btn .bi { line-height: 1; }
.btn:focus { outline: 0; }
/* Keyboard focus ring (not on mouse click) — canon, generalized from process.css. */
.btn:focus-visible { outline: 2px solid var(--c1-cadet); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-sm { padding: 4px 8px; font-size: 14px; border-radius: var(--c1-radius-lg); }
.btn-lg { padding: 12px 12px; border-radius: var(--c1-radius-lg); }
.btn-xlg { padding: 11.5px 20px; font-size: 16px; border-radius: var(--c1-radius-lg); }

/* Solid variants */
.btn-primary { background: var(--c1-red); color: #fff; border-color: var(--c1-red); }
.btn-primary:hover { background: var(--c1-red-d10); border-color: var(--c1-red-d10); }
.btn-secondary { background: var(--c1-blue); color: #fff; border-color: var(--c1-blue); }
.btn-secondary:hover { background: var(--c1-blue-d10); border-color: var(--c1-blue-d10); }
.btn-dark { background: var(--c1-cadet); color: #fff; border-color: var(--c1-cadet); }
.btn-dark:hover { background: var(--c1-cadet-l10); border-color: var(--c1-cadet-l10); }
.btn-success { background: var(--c1-green); color: #fff; border-color: var(--c1-green); }
.btn-success:hover { background: var(--c1-green-d10); border-color: var(--c1-green-d10); }
.btn-white { background: #fff; color: var(--c1-gunmetal); border-color: var(--c1-gunmetal-l70); }
.btn-white:hover { background: var(--c1-gunmetal-l90); border-color: var(--c1-gunmetal-l60); }

/* Outline variants */
.btn-outline-primary { background: #fff; color: var(--c1-red); border-color: var(--c1-red); }
.btn-outline-primary:hover { background: var(--c1-red); color: #fff; border-color: var(--c1-red); }
.btn-outline-secondary { background: #fff; color: var(--c1-blue); border-color: var(--c1-blue); }
.btn-outline-secondary:hover { background: var(--c1-blue); color: #fff; border-color: var(--c1-blue); }
.btn-outline-dark { background: #fff; color: var(--c1-gunmetal); border-color: var(--c1-gunmetal-l70); }
.btn-outline-dark:hover { background: var(--c1-gunmetal); color: #fff; border-color: var(--c1-gunmetal); }

/* Link / Ghost */
.btn-link { background: transparent; border-color: transparent; color: var(--c1-blue); font-weight: 600; padding: 6px 4px; }
.btn-link:hover { color: var(--c1-blue-d10); text-decoration: underline; }

/* Pro gradient */
.btn-pro {
  color: #fff;
  background: rgba(255,255,255,.02);
  border: 1.5px solid transparent;
  background-image:
    linear-gradient(#1B2145, #1B2145),
    linear-gradient(269.77deg, #E7013E -60.51%, #1C6EF2 128.97%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  padding: 7px 14px;
}
.btn-pro:hover {
  background-image:
    linear-gradient(269.77deg, #E7013E -60.51%, #1C6EF2 128.97%),
    linear-gradient(269.77deg, #E7013E -60.51%, #1C6EF2 128.97%);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--c1-radius-lg);
  white-space: nowrap;
}
.badge-pill { border-radius: var(--c1-radius-pill); padding: 4px 12px; }
.badge.sm { font-size: 10px; }

.badge-primary { background: var(--c1-red); color: #fff; }
.badge-primary-inverted { background: var(--c1-red-l50); color: var(--c1-red-d20); }
.badge-secondary { background: var(--c1-blue); color: #fff; }
.badge-secondary-inverted { background: var(--c1-blue-l50); color: var(--c1-blue-d10); }
.badge-success { background: var(--c1-green); color: #fff; }
.badge-success-light { background: var(--c1-green-l60); color: var(--c1-green-d10); }
.badge-warning { background: var(--c1-amber-l50); color: var(--c1-amber-d20); }
.badge-danger { background: var(--c1-red-l50); color: var(--c1-red-d20); }
.badge-info { background: var(--c1-blue-l50); color: var(--c1-blue-d10); }
.badge-neutral { background: var(--c1-purple-badge-bg); color: var(--c1-purple); }
.badge-seaweed { background: var(--c1-seaweed-l60); color: var(--c1-seaweed-d10); }
.badge-gunmetal { background: var(--c1-gunmetal-l80); color: var(--c1-gunmetal); }
.badge-dark { background: var(--c1-cadet); color: #fff; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--c1-gunmetal);
}
label.required:after { content: " *"; color: var(--c1-red); }

.form-control {
  display: block;
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--c1-gunmetal);
  background: var(--c1-gunmetal-l90);
  border: 1px solid var(--c1-gunmetal-l70);
  border-radius: var(--c1-radius-lg);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-control:focus { outline: 0; border-color: #9BC1FB; box-shadow: 0 0 0 3px rgba(28,110,242,.18); }
.form-control::placeholder { color: var(--c1-gunmetal-l40); }
.form-control.is-invalid { border-color: var(--c1-red); }
.form-control.is-valid { border-color: var(--c1-green-l10); }
.form-text { font-size: 14px; color: var(--c1-gunmetal-l30); margin-top: 6px; }
.form-text.is-invalid { color: var(--c1-red); }
.form-text.is-valid { color: var(--c1-green); }

.input-icon { position: relative; }
.input-icon > input { padding-left: 40px; }
.input-icon__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--c1-gunmetal-l40);
  display: flex; align-items: center;
}

.input-addon {
  display: flex;
}
.input-addon__addon {
  background: var(--c1-gunmetal-l80);
  border: 1px solid var(--c1-gunmetal-l70);
  border-right: 0;
  border-radius: var(--c1-radius-lg) 0 0 var(--c1-radius-lg);
  padding: 0 12px;
  display: flex; align-items: center;
  color: var(--c1-gunmetal-l20);
  font-weight: 600;
  font-size: 14px;
}
.input-addon__addon--right {
  border-right: 1px solid var(--c1-gunmetal-l70);
  border-left: 0;
  border-radius: 0 var(--c1-radius-lg) var(--c1-radius-lg) 0;
}
.input-addon > .form-control { border-radius: 0 var(--c1-radius-lg) var(--c1-radius-lg) 0; }
.input-addon > .form-control:only-of-type { border-radius: var(--c1-radius-lg); }
.input-addon > .form-control + .input-addon__addon--right { border-radius: 0 var(--c1-radius-lg) var(--c1-radius-lg) 0; }
.input-addon:has(.input-addon__addon--right) > .form-control { border-radius: var(--c1-radius-lg) 0 0 var(--c1-radius-lg); }

/* Checkbox (custom — matches .form-check pattern) */
.form-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.form-check input[type="checkbox"] { display: none; }
.form-check__box {
  width: 16px; height: 16px;
  border: 1px solid var(--c1-gunmetal-l60);
  border-radius: var(--c1-radius-lg);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-check input:checked + .form-check__box {
  background: var(--c1-blue);
  border-color: var(--c1-blue);
}
.form-check input:checked + .form-check__box::after {
  content: "";
  width: 9px; height: 5px;
  border: 1.8px solid #fff;
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Radio */
.form-radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.form-radio input[type="radio"] { display: none; }
.form-radio__dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--c1-gunmetal-l60);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-radio input:checked + .form-radio__dot {
  border-color: var(--c1-blue);
}
.form-radio input:checked + .form-radio__dot::after {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c1-blue);
}

/* Switch (uses exact dims from _switch-checkbox.scss) */
.switch { position: relative; display: inline-block; width: 33px; height: 20px; vertical-align: middle; }
.switch input { display: none; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--c1-card-border);
  border: 1px solid var(--c1-gunmetal-l70);
  border-radius: 9999px;
  transition: .3s;
  cursor: pointer;
  display: flex; align-items: center; padding: 0 1px;
}
.switch .handle {
  width: 18px; height: 18px;
  background: #fff; border-radius: 9999px;
  box-shadow: 0 1px 5px rgba(27,33,69,.15);
  transition: .3s;
}
.switch input:checked + .slider { background: var(--c1-blue); border-color: var(--c1-blue); }
.switch input:checked + .slider .handle { transform: translateX(13px); }

/* Dropdown */
.dropdown-wrap { position: relative; display: inline-block; }
.dropdown-toggle {
  cursor: pointer;
  background: var(--c1-gunmetal-l90);
  height: 44px;
  border: 1px solid var(--c1-gunmetal-l70);
  border-radius: var(--c1-radius-lg);
  padding: 0 36px 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; color: var(--c1-gunmetal);
  position: relative; min-width: 220px;
}
.dropdown-toggle::after {
  content: "";
  position: absolute; right: 14px; top: 50%; margin-top: -3px;
  width: 10px; height: 6px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="%234A5C7D" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
}
.dropdown-content {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  width: 100%;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--c1-card-border);
  border-radius: var(--c1-radius-lg);
  box-shadow: 0 3px 16px rgba(161,164,185,.28);
  padding: 6px;
  z-index: 20;
}
.dropdown-item {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: var(--c1-radius-lg);
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  color: var(--c1-gunmetal);
}
.dropdown-item:hover { background: var(--c1-offer-bg); }
.dropdown-item.is-selected { background: var(--c1-blue-l60); color: var(--c1-blue-d10); }

/* ---------- Tables (data-table-v2) ---------- */
.data-table {
  width: 100%;
  background: #fff;
  border-spacing: 0;
  border-radius: var(--c1-radius-lg);
  font-size: 14px;
  box-shadow: var(--c1-shadow-card);
  overflow: hidden;
  border-collapse: separate;
}
.data-table th {
  background: var(--c1-gunmetal-l90);
  color: var(--c1-gunmetal-l30);
  font-weight: 600;
  text-align: left;
  padding: 12px;
  border-top: 1px solid var(--c1-gunmetal-l70);
  border-bottom: 1px solid var(--c1-gunmetal-l70);
  white-space: nowrap;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.data-table th:first-child { border-left: 1px solid var(--c1-gunmetal-l70); padding-left: 16px; }
.data-table th:last-child { border-right: 1px solid var(--c1-gunmetal-l70); padding-right: 16px; }
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--c1-gunmetal-l70);
  color: var(--c1-gunmetal-l10);
}
.data-table td:first-child { border-left: 1px solid var(--c1-gunmetal-l70); padding-left: 16px; font-weight: 600; color: var(--c1-cadet); }
.data-table td:last-child { border-right: 1px solid var(--c1-gunmetal-l70); padding-right: 16px; }
.data-table tbody tr:last-child td { border-bottom: 1px solid var(--c1-gunmetal-l70); }
.data-table tbody tr:hover { background: var(--c1-offer-bg); cursor: pointer; }

/* ---------- Progress ---------- */
.progress {
  height: 6px; background: #E5E8EF; border-radius: var(--c1-radius-lg); overflow: hidden;
}
.progress--sm { height: 3px; }
.progress--lg { height: 10px; }
.progress-bar { height: 100%; background: var(--c1-blue); border-radius: var(--c1-radius-lg); transition: width .6s ease; }
.progress-bar--success { background: var(--c1-green-l10); }
.progress-bar--warning { background: var(--c1-amber); }
.progress-bar--danger { background: var(--c1-red); }
.progress-bar--striped {
  background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%, transparent);
  background-size: 12px 12px;
  animation: stripe 1s linear infinite;
}
@keyframes stripe { from { background-position: 12px 0;} to { background-position: 0 0; } }

/* Spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--c1-gunmetal-l80);
  border-top-color: var(--c1-blue);
  border-radius: 50%;
  animation: c1-spin .9s linear infinite;
  display: inline-block;
}
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.spinner.lg { width: 48px; height: 48px; border-width: 5px; }
@keyframes c1-spin { to { transform: rotate(360deg); } }

/* Skeleton */
.skeleton {
  background:
    linear-gradient(100deg, transparent 0%, rgba(255,255,255,.6) 40%, transparent 75%),
    rgba(136,155,188,.18);
  background-repeat: no-repeat;
  background-size: 200px 100%, 100% 100%;
  background-position: -200px 0, 0 0;
  border-radius: var(--c1-radius-lg);
  animation: c1-shine 1.3s infinite linear;
  display: inline-block;
}
@keyframes c1-shine {
  to { background-position: calc(100% + 200px) 0, 0 0; }
}

/* ---------- Alerts / Notifications ---------- */
.alert {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 16px;
  line-height: 1.5;
  align-items: center;
}
.alert__icon {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 0;
  display: flex; align-items: center; justify-content: center;
}
.alert__title { font-weight: 700; margin-bottom: 2px; }
.alert__body { flex: 1; }
.alert-info { background: var(--c1-blue-l60); border-color: var(--c1-blue-l40); color: var(--c1-blue-d20); }
.alert-success { background: var(--c1-green-l60); border-color: var(--c1-green-l50); color: var(--c1-green-d10); }
.alert-warning { background: var(--c1-amber-l50); border-color: var(--c1-amber-l40); color: var(--c1-amber-d20); }
.alert-danger { background: var(--c1-red-l50); border-color: var(--c1-red-l40); color: var(--c1-red-d20); }

/* Toast / Notification (dark-navbar style) */
.notification {
  background: var(--c1-navbar-bg);
  color: #fff;
  box-shadow: 0 3px 8px rgba(36,39,59,.5);
  border-left: 6px solid var(--c1-green-l10);
  width: 360px;
  padding: 16px 20px;
  border-radius: var(--c1-radius-lg);
  display: flex; gap: 12px; align-items: flex-start;
}
.notification--error { border-left-color: var(--c1-red); }
.notification--info { border-left-color: var(--c1-blue); }
.notification__title { font-weight: 700; margin-bottom: 2px; font-size: 14px; }
.notification__msg { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.5; }
.notification__close {
  background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; padding: 0; font-size: 20px; line-height: 1;
}

/* ---------- Tooltip ---------- */
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%; transform: translateX(-50%);
  width: 240px;
  background: #fff;
  border: 1px solid var(--c1-card-border);
  border-radius: var(--c1-radius-lg);
  box-shadow: var(--c1-shadow-dropdown);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c1-gunmetal);
  line-height: 1.5;
  text-align: left;
  z-index: 10;
}
.tooltip__bubble::before,
.tooltip__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 8px solid transparent;
  width: 0; height: 0;
}
.tooltip__bubble::after {
  bottom: -16px; margin-left: -8px;
  border-top-color: #fff;
}
.tooltip__bubble::before {
  bottom: -18px; margin-left: -9px;
  border: 9px solid transparent;
  border-top-color: var(--c1-card-border);
}

/* ---------- Card / Panel ---------- */
.card-c1 {
  background: #fff;
  border: 1px solid var(--c1-card-border);
  border-radius: var(--c1-radius-lg);
  box-shadow: var(--c1-shadow-card);
  padding: 24px 40px;
}

/* ---------- Stepper ---------- */
.stepper { display: flex; flex-direction: column; }
.stepper__item { display: flex; gap: 16px; padding-bottom: 32px; position: relative; }
.stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px; top: 32px; bottom: 12px;
  width: 1px; background: var(--c1-gunmetal-l70);
}
.stepper__num {
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%;
  background: var(--c1-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  z-index: 1;
}
.stepper__num--done { background: var(--c1-green-l10); }
.stepper__num--todo { background: var(--c1-gunmetal-l70); color: var(--c1-gunmetal-l30); }
.stepper__title { font-size: 16px; font-weight: 700; color: var(--c1-cadet); }
.stepper__sub { font-size: 14px; color: var(--c1-gunmetal-l30); margin-top: 2px; line-height: 1.5; }

/* ---------- Tabs / Toggle ---------- */
.tab-nav {
  display: inline-flex;
  border-bottom: 1px solid var(--c1-gunmetal-l70);
  gap: 4px;
}
.tab-nav__tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c1-gunmetal-l30);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}
.tab-nav__tab.is-active { color: var(--c1-blue); border-bottom-color: var(--c1-blue); }
.tab-nav__tab:hover:not(.is-active) { color: var(--c1-gunmetal); }

.toggle {
  display: inline-flex;
  background: var(--c1-gunmetal-l90);
  border: 1px solid var(--c1-gunmetal-l70);
  border-radius: var(--c1-radius-lg);
  padding: 4px;
  height: 40px;
  align-items: center;
}
.toggle__item {
  padding: 0 16px;
  min-width: 115px;
  height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: var(--c1-gunmetal-l20);
  border-radius: var(--c1-radius-lg);
  cursor: pointer;
}
.toggle__item.is-active { background: #fff; color: var(--c1-cadet); box-shadow: var(--c1-shadow-sm); }

/* ---------- Avatar ---------- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c1-blue-l40); color: var(--c1-blue-d20);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }

/* ---------- Chips / Filter pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 12px;
  background: var(--c1-blue-l60);
  border: 1px solid var(--c1-blue-l40);
  color: var(--c1-blue-d20);
  border-radius: 9999px;
  font-size: 13px; font-weight: 600;
}
.chip__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(28,110,242,.12);
  color: var(--c1-blue-d10);
  cursor: pointer;
  font-size: 10px; line-height: 1;
}

/* ---------- Pro banner ---------- */
.pro-banner {
  background: var(--c1-purple-gradient);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.pro-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(231,1,62,.25), transparent 40%),
              radial-gradient(circle at 0% 100%, rgba(28,110,242,.2), transparent 40%);
  pointer-events: none;
}
.pro-banner__body { flex: 1; position: relative; }
.pro-banner__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.pro-banner__title { font-size: 18px; font-weight: 700; }
.pro-banner__sub { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---------- Icon tile ---------- */
.icon-tile {
  aspect-ratio: 1;
  border: 1px solid var(--c1-card-border);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.icon-tile:hover { border-color: var(--c1-blue-l30); box-shadow: var(--c1-shadow-sm); }
.icon-tile img { width: 20px; height: 20px; }
.icon-tile__label { font-family: var(--c1-font-mono); font-size: 10px; color: var(--c1-gunmetal-l30); }

/* Utility */
.row-gap-12 { display: flex; flex-wrap: wrap; gap: 12px; }
.row-gap-16 { display: flex; flex-wrap: wrap; gap: 16px; }
.row-gap-24 { display: flex; flex-wrap: wrap; gap: 24px; align-items: center;}
.col-gap-16 { display: flex; flex-direction: column; gap: 16px; }
.col-gap-20 { display: flex; flex-direction: column; gap: 20px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.text-muted { color: var(--c1-gunmetal-l30); }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }

/* ---------- Environment indicator (Staging = lavender / Production = seaweed) ----------
   Promoted from the design-system guide (.ds-env-*) + the process page's env
   colours, which are the canonical Staging/Production mapping. .env-toggle is
   the segmented source switch; .env-badge--* is a read-only environment pill. */
.env { display: inline-flex; align-items: center; gap: 8px; }
.env__label {
  font-size: var(--c1-fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--c1-gunmetal-l30);
}
.env-toggle {
  display: inline-flex; align-items: stretch; overflow: hidden;
  border: 1px solid var(--c1-card-border); border-radius: var(--c1-radius-lg);
}
.env-toggle__btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 14px; font-size: var(--c1-fs-sm); font-weight: 600; line-height: 1;
  background: #fff; color: var(--c1-gunmetal-l20); border: 0; text-decoration: none;
}
.env-toggle__btn + .env-toggle__btn { border-left: 1px solid var(--c1-card-border); }
.env-toggle__btn:hover { background: var(--c1-cadet-l80); }
.env-toggle__btn:focus-visible { outline: 2px solid var(--c1-cadet); outline-offset: -2px; }
.env-toggle__btn.is-active[data-env="staging"],
.env-toggle__btn.is-active[data-env="staging"]:hover { background: var(--c1-lavender); color: #fff; }
.env-toggle__btn.is-active[data-env="production"],
.env-toggle__btn.is-active[data-env="production"]:hover { background: var(--c1-seaweed); color: #fff; }
.env-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--c1-fs-xs);
  font-weight: 700; padding: 4px 10px; border-radius: var(--c1-radius-pill);
  text-transform: uppercase; letter-spacing: .04em;
}
.env-badge .badge-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.env-badge--staging { background: var(--c1-lavender-l50); color: var(--c1-lavender-d20); }
.env-badge--staging .badge-dot { background: var(--c1-lavender); }
.env-badge--production { background: var(--c1-seaweed-l60); color: var(--c1-seaweed-d10); }
.env-badge--production .badge-dot { background: var(--c1-seaweed); }

/* ---------- Carrier tag (mono pill for airline / carrier codes) ----------
   Consolidated from the bookings + awb_stock page-local copies (now 13px mono). */
.carrier-tag {
  display: inline-block;
  font-family: var(--c1-font-mono);
  font-size: 13px; font-weight: 400; letter-spacing: .04em;
  padding: 2px 8px; border-radius: var(--c1-radius-pill);
  background: var(--c1-gunmetal-l80); color: var(--c1-gunmetal-l10);
}

/* ---------- Copy cell (click-to-copy table value) ----------
   Render as a <button aria-label="Copy …"> for keyboard + screen-reader access;
   the button reset keeps it inline with the cell text. JS toggles .is-copied. */
.copy-cell {
  cursor: pointer; font: inherit; text-align: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1px 4px; margin: -1px -4px;
  border: 0; background: none;
  border-radius: var(--c1-radius-lg);
  color: var(--c1-cadet);
  transition: background .12s;
}
.copy-cell:hover { background: var(--c1-blue-l60); }
.copy-cell:focus-visible { outline: 2px solid var(--c1-cadet); outline-offset: -1px; }
.copy-cell__icon { color: var(--c1-gunmetal-l40); font-size: 13px; transition: color .12s; }
.copy-cell.is-copied { background: var(--c1-green-l60); color: var(--c1-green-d10); }
.copy-cell.is-copied .copy-cell__icon { color: var(--c1-green); }
