body {
  padding-inline: 0;
}

body.shipment-page.shipment-loading main {
  opacity: 0;
  pointer-events: none;
}

body.shipment-page.shipment-ready main {
  opacity: 1;
}

body.shipment-page main {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.shipment-planner-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: clamp(18px, 2.8vw, 30px);
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(51, 223, 157, 0.12), transparent 36%),
    linear-gradient(160deg, rgba(17, 39, 75, 0.86), rgba(7, 18, 38, 0.94));
  border: 1px solid rgba(72, 229, 213, 0.22);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.shipment-planner-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: inherit;
  box-shadow: inset 0 0 38px rgba(72, 229, 213, 0.045);
  pointer-events: none;
}

.shipment-planner-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.shipment-planner-hero-copy {
  min-width: 0;
}

.shipment-planner-hero-desc {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.shipment-planner-kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 0.32rem 0.58rem;
  color: var(--brand);
  background: rgba(72, 229, 213, 0.12);
  border: 1px solid rgba(72, 229, 213, 0.24);
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.shipment-planner-hero h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 1.55rem + 2.2vw, 4.2rem);
  font-weight: 800;
  line-height: 0.96;
}

.shipment-planner-hero-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(86px, 12vw, 140px);
  aspect-ratio: 1;
  color: color-mix(in srgb, var(--mint), white 30%);
  font-size: clamp(3rem, 5.8vw, 5.6rem);
}

.shipment-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shipment-flow-card {
  --flow-accent: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 22px 20px 20px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1.18),
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.shipment-flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--flow-accent), transparent 72%);
  border-radius: inherit;
  opacity: 0.54;
  z-index: 2;
  pointer-events: none;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.24s ease;
}

.shipment-flow-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--flow-accent), transparent 40%),
    0 0 32px color-mix(in srgb, var(--flow-accent), transparent 62%),
    inset 0 0 22px color-mix(in srgb, var(--flow-accent), transparent 76%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.shipment-flow-card:hover {
  border-color: color-mix(in srgb, var(--flow-accent), white 10%);
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-8px) scale(1.018);
}

.shipment-flow-card:hover::before {
  border-color: color-mix(in srgb, var(--flow-accent), transparent 30%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 26px color-mix(in srgb, var(--flow-accent), transparent 86%);
  opacity: 1;
}

.shipment-flow-card:hover::after {
  opacity: 1;
}

.shipment-flow-card--clinic {
  --flow-accent: var(--blue);
}

.shipment-flow-card--date {
  --flow-accent: var(--amber);
}

.shipment-flow-card--result {
  --flow-accent: var(--mint);
}

.shipment-flow-card--result.is-invalid-state {
  --flow-accent: var(--red);
  border-color: rgba(255, 107, 122, 0.46);
  box-shadow:
    0 0 0 2px rgba(255, 107, 122, 0.18),
    0 22px 54px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.shipment-flow-card--result.is-invalid-state::before {
  border-color: rgba(255, 107, 122, 0.4);
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 26px rgba(255, 107, 122, 0.12);
}

.shipment-flow-card--result.is-invalid-state::after {
  opacity: 0.45;
}

.shipment-flow-card.is-inactive {
  opacity: 0.38;
  pointer-events: none;
  filter: blur(1.5px) grayscale(0.5) saturate(0.4);
  transform: none !important;
}

.shipment-flow-card.is-inactive::after {
  display: none;
}

.shipment-flow-card.is-highlighted {
  border-color: color-mix(in srgb, var(--flow-accent), white 18%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--flow-accent), transparent 52%),
    0 22px 54px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.shipment-flow-card.is-highlighted::before {
  border-color: color-mix(in srgb, var(--flow-accent), transparent 28%);
  opacity: 1;
}

.shipment-flow-card.is-highlighted::after {
  opacity: 0.55;
}

.shipment-flow-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.shipment-flow-icon {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--flow-accent), white 28%);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
}

.shipment-flow-icon svg {
  width: clamp(1.6rem, 2.6vw, 2.4rem);
  height: clamp(1.6rem, 2.6vw, 2.4rem);
  stroke: currentColor;
}

.shipment-flow-step {
  display: inline-flex;
}

.shipment-flow-card .form-label {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 0.58rem;
  color: rgba(234, 242, 255, 0.82) !important;
  font-size: 0.8rem;
  font-weight: 800;
}

.shipment-flow-card .form-label > i,
.shipment-flow-card .form-label > svg {
  display: none;
}

.shipment-select-wrap,
.shipment-result-wrap {
  position: relative;
}

.shipment-input-with-lock {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipment-input-with-lock .glass-input {
  flex: 1 1 auto;
  min-width: 0;
}

.shipment-flow-card .choices,
.shipment-flow-card .glass-input,
.shipment-flow-card .glass-output {
  position: relative;
  z-index: 2;
}

.shipment-flow-card .choices__inner,
.shipment-flow-card .glass-input,
.shipment-flow-card #shipDateResult {
  min-height: 50px !important;
  border-color: color-mix(
    in srgb,
    var(--flow-accent),
    transparent 70%
  ) !important;
  background: rgba(4, 12, 28, 0.7) !important;
}

.shipment-flow-card .choices__inner:focus-within,
.shipment-flow-card .glass-input:focus {
  border-color: color-mix(in srgb, var(--flow-accent), white 12%) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-accent), transparent 86%) !important;
}

.shipment-action-dock {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 4px 0;
}

.shipment-action-dock .glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 46px;
  gap: 8px;
}

.shipment-action-dock .glass-button i {
  font-size: 0.95rem;
}

.glass-iframe {
  margin-top: 18px;
  overflow: hidden;
  background: rgba(4, 12, 28, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.glass-iframe iframe {
  display: block;
  width: 100%;
  min-height: min(68vh, 720px);
  border: 0;
}

.glass-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: no-preference) {
  .glass-wrapper,
  .shipment-planner-shell {
    animation: tool-panel-enter 0.58s ease both;
  }

  .shipment-flow-card {
    animation: card-enter 0.54s ease both;
  }

  .shipment-flow-card:nth-child(2) {
    animation-delay: 0.06s;
  }

  .shipment-flow-card:nth-child(3) {
    animation-delay: 0.12s;
  }
}

.top-input-row {
  padding: 0;
}

.form-label,
.text-white,
.modal-title,
.modal-body {
  color: var(--ink) !important;
}

.form-label i,
.form-label svg {
  color: var(--brand);
  stroke: var(--brand);
}

.glass-output,
#shipDateResult {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.62rem 0.75rem;
  color: var(--ink);
  background: rgba(4, 12, 28, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

#shipDateResult.empty::before {
  content: attr(data-placeholder);
  color: rgba(234, 242, 255, 0.48);
}

#shipDateResult.empty {
  color: var(--muted);
  background: var(--surface-soft);
}

#shipDateResult.valid {
  color: #b4ffe5;
  background: rgba(51, 223, 157, 0.12);
  border-color: rgba(51, 223, 157, 0.36);
}

#shipDateResult.invalid {
  color: #ffc4cb;
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.36);
}

.text-center.my-4 {
  justify-content: center !important;
  margin: 22px 0 0 !important;
}

.glass-button-green {
  color: var(--mint);
  background: rgba(51, 223, 157, 0.1);
  border-color: rgba(51, 223, 157, 0.28);
  box-shadow: none;
}

.glass-button-green:hover {
  color: #fff;
  background: rgba(51, 223, 157, 0.22);
  border-color: rgba(51, 223, 157, 0.52);
  box-shadow: 0 8px 20px rgba(51, 223, 157, 0.12);
}

.glass-button-blue {
  color: var(--blue);
  background: rgba(90, 168, 255, 0.1);
  border-color: rgba(90, 168, 255, 0.28);
  box-shadow: none;
}

.glass-button-blue:hover {
  color: #fff;
  background: rgba(90, 168, 255, 0.22);
  border-color: rgba(90, 168, 255, 0.52);
  box-shadow: 0 8px 20px rgba(90, 168, 255, 0.12);
}

.glass-button-yellow {
  color: var(--amber);
  background: rgba(247, 185, 85, 0.1);
  border-color: rgba(247, 185, 85, 0.28);
  box-shadow: none;
}

.glass-button-yellow:hover {
  color: #fff;
  background: rgba(247, 185, 85, 0.22);
  border-color: rgba(247, 185, 85, 0.52);
  box-shadow: 0 8px 20px rgba(247, 185, 85, 0.12);
}

.glass-button-red,
.glass-button-outline-red {
  color: var(--red);
  background: rgba(255, 107, 122, 0.1);
  border-color: rgba(255, 107, 122, 0.28);
  box-shadow: none;
}

#confirmDeleteBtn {
  color: var(--red);
  background: rgba(255, 107, 122, 0.16);
  border-color: rgba(255, 107, 122, 0.42);
}

#confirmDeleteBtn:hover {
  color: #fff;
  background: rgba(255, 107, 122, 0.28);
  border-color: rgba(255, 107, 122, 0.62);
}

.glass-button-red:hover,
.glass-button-outline-red:hover {
  color: #fff;
  background: rgba(255, 107, 122, 0.22);
  border-color: rgba(255, 107, 122, 0.52);
  box-shadow: 0 8px 20px rgba(255, 107, 122, 0.12);
}

.modal-content,
.glass-modal,
.modal-blur {
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.modal-header,
.modal-footer {
  border-color: var(--line);
}

.modal-header {
  align-items: center;
  padding: 1rem 1.25rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.25rem;
}

.shipment-entry-modal {
  --entry-accent: var(--mint);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(72, 229, 213, 0.1), transparent 34%),
    linear-gradient(160deg, rgba(19, 42, 84, 0.96), rgba(14, 30, 66, 0.98));
  border-color: rgba(72, 229, 213, 0.24);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shipment-entry-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--entry-accent), transparent 72%);
  border-radius: inherit;
  box-shadow: inset 0 0 28px rgba(72, 229, 213, 0.05);
  pointer-events: none;
}

.shipment-entry-header {
  position: relative;
  padding: 1.15rem 1.35rem 0.85rem;
}

.shipment-entry-title-group {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.shipment-entry-icon,
.shipment-entry-section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--entry-accent), white 28%);
}

.shipment-entry-icon {
  width: 52px;
  height: 52px;
  font-size: 1.55rem;
}

.shipment-entry-kicker {
  width: fit-content;
  margin: 0 0 5px;
  padding: 0.25rem 0.48rem;
  color: var(--brand);
  background: rgba(72, 229, 213, 0.1);
  border: 1px solid rgba(72, 229, 213, 0.22);
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.shipment-entry-modal .modal-title {
  margin: 0;
  color: var(--ink-strong) !important;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
}

.shipment-log-modal,
.shipment-confirm-modal {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(72, 229, 213, 0.08), transparent 34%),
    linear-gradient(160deg, rgba(19, 42, 84, 0.96), rgba(14, 30, 66, 0.98));
  border-color: rgba(72, 229, 213, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shipment-log-modal::before,
.shipment-confirm-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

.shipment-log-modal .modal-header,
.shipment-confirm-modal .modal-header {
  background: rgba(4, 12, 28, 0.24);
}

.shipment-log-modal .modal-body,
.shipment-confirm-modal .modal-body {
  color: rgba(234, 242, 255, 0.84);
}

.shipment-log-dialog {
  max-width: min(1480px, calc(100vw - 32px));
  margin-top: clamp(3.5rem, 11vh, 6.5rem);
  margin-bottom: 2rem;
}

.shipment-log-modal .modal-footer,
.shipment-confirm-modal .modal-footer {
  background: rgba(4, 12, 28, 0.2);
}

.shipment-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-strong) !important;
  font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
}

.shipment-modal-title__icon {
  flex: 0 0 auto;
  font-size: 1rem;
}

.shipment-modal-title__icon--mint {
  color: color-mix(in srgb, var(--mint), white 16%);
}

.shipment-modal-title__icon--amber {
  color: color-mix(in srgb, var(--amber), white 18%);
}

.shipment-modal-title__icon--red {
  color: color-mix(in srgb, var(--red), white 10%);
}

.shipment-entry-modal .modal-body {
  padding: 0.35rem 1.35rem 1.35rem;
}

.shipment-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
}

.shipment-entry-section {
  position: relative;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.shipment-entry-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--section-accent), transparent 76%);
  border-radius: inherit;
  pointer-events: none;
}

.shipment-entry-section--dates {
  --section-accent: var(--blue);
}

.shipment-entry-section--routing {
  --section-accent: var(--mint);
}

.shipment-entry-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(234, 242, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shipment-entry-section-icon {
  width: 32px;
  height: 32px;
  color: color-mix(in srgb, var(--section-accent), white 24%);
}

.shipment-entry-modal .form-label {
  margin-bottom: 0.42rem;
  color: rgba(234, 242, 255, 0.76) !important;
  font-size: 0.78rem;
  font-weight: 750;
}

.shipment-entry-modal .glass-input,
.shipment-entry-modal .form-select,
.shipment-entry-modal .input-group-text {
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.shipment-entry-modal .input-group .glass-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.shipment-entry-modal #notesField {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.shipment-entry-modal .input-group .input-group-text:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.shipment-entry-modal .modal-footer {
  align-items: center;
  margin: 16px -1.35rem -1.35rem;
  padding: 1rem 1.35rem;
  background: rgba(4, 12, 28, 0.34);
  border-top: 1px solid var(--line);
}

.btn-close-white {
  filter: none;
}

#addEntryModal .glass-input:not([disabled]):not([readonly]),
#addEntryModal .glass-input:not([disabled]):not([readonly]):focus {
  color: var(--ink);
  background: rgba(4, 12, 28, 0.72);
}

#addEntryModal .glass-input:not([disabled]):not([readonly])::placeholder {
  color: #8a98a7;
}

#addEntryModal .glass-input[disabled],
#addEntryModal .glass-input[readonly],
#addEntryModal .form-select[disabled],
#addEntryModal .form-select[readonly] {
  user-select: none;
  caret-color: transparent;
}

#addEntryModal #shipDateInput.manual-shipdate-alert,
#addEntryModal #shipDateInput.manual-shipdate-alert:focus {
  border-color: rgba(255, 232, 138, 0.72) !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 240, 166, 0.12),
      rgba(255, 240, 166, 0.04)
    ),
    rgba(4, 12, 28, 0.78) !important;
  box-shadow:
    0 0 0 4px rgba(255, 232, 138, 0.16),
    inset 0 1px 0 rgba(255, 248, 214, 0.2) !important;
}

#addEntryModal #shipDateInput.manual-shipdate-alert:hover,
#addEntryModal #shipDateInput.manual-shipdate-alert:focus {
  cursor: pointer;
}

#appointmentDate,
#shipDateInput,
#apptDateField {
  cursor: pointer;
}

#poDateField:not([disabled]):not([readonly]) {
  cursor: text;
}

#poDateField[disabled],
#poDateField[readonly] {
  cursor: default;
  user-select: none;
  pointer-events: none;
  border-color: transparent !important;
  box-shadow: none !important;
}

.input-group-text {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--line-strong);
  font-weight: 750;
}

#papPrefix {
  color: var(--amber);
  background: rgba(247, 185, 85, 0.1);
  border-color: rgba(247, 185, 85, 0.32);
  font-weight: 760;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

#papPrefix:hover {
  background: rgba(247, 185, 85, 0.2);
  border-color: rgba(247, 185, 85, 0.52);
}

#redeyePrefix {
  color: var(--red);
  background: rgba(255, 107, 122, 0.1);
  border-color: rgba(255, 107, 122, 0.32);
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  font-weight: 760;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

#redeyePrefix:hover {
  background: rgba(255, 107, 122, 0.2);
  border-color: rgba(255, 107, 122, 0.52);
}

.choices {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius-sm) !important;
}

.choices__inner {
  display: flex;
  align-items: center;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0.5rem 0.75rem !important;
  color: var(--ink);
  background: rgba(4, 12, 28, 0.72) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
}

.choices__list--single {
  padding: 0 !important;
}

.choices__placeholder {
  color: #8a98a7 !important;
  opacity: 1 !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  color: var(--ink) !important;
  background: var(--surface-solid) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  color: var(--ink) !important;
  background: var(--surface-solid) !important;
  padding: 0.7rem 0.85rem;
}

.choices__item--selectable.is-highlighted {
  color: var(--brand) !important;
  background: rgba(72, 229, 213, 0.1) !important;
}

.choices__heading {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.choices__input,
.choices__input--cloned {
  color: var(--ink) !important;
  background: rgba(4, 12, 28, 0.72) !important;
}

#logTable {
  width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--surface-solid);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

#logTable.is-empty {
  table-layout: auto;
}

#logTable th,
#logTable td {
  padding: 0.68rem 0.72rem;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

#logTable th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #c5d4ea;
  background: rgb(28, 50, 88);
  text-align: left;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

#logTable td {
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: left;
  vertical-align: middle;
}

#logTable th:first-child,
#logTable td:first-child {
  width: 64px;
  padding-inline: 0.5rem;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
}

#logTable th:nth-child(2),
#logTable td:nth-child(2) {
  width: 190px;
  white-space: nowrap;
  overflow-wrap: normal;
}

#logTable th:nth-child(3),
#logTable td:nth-child(3),
#logTable th:nth-child(5),
#logTable td:nth-child(5) {
  width: 104px;
  white-space: nowrap;
  overflow-wrap: normal;
}

#logTable th:nth-child(4),
#logTable td:nth-child(4),
#logTable th:nth-child(8),
#logTable td:nth-child(8),
#logTable th:nth-child(9),
#logTable td:nth-child(9) {
  width: 108px;
}

#logTable th:nth-child(6),
#logTable td:nth-child(6) {
  display: none;
}

#logTable th:nth-child(7),
#logTable td:nth-child(7) {
  width: 116px;
}

#logTable th:nth-child(10),
#logTable td:nth-child(10) {
  width: auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

#logTable tr:hover td {
  background: rgba(72, 229, 213, 0.08);
}

#logTable tbody tr.latest-log td {
  background: rgba(72, 229, 213, 0.12);
}

#logTable tbody tr.editing-log td {
  background:
    linear-gradient(
      180deg,
      rgba(255, 240, 166, 0.24),
      rgba(255, 240, 166, 0.1)
    ),
    rgba(255, 240, 166, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 248, 214, 0.3);
}

#logTable tbody tr.editing-log td:first-child {
  box-shadow:
    inset 4px 0 0 rgba(255, 238, 148, 0.85),
    inset 0 1px 0 rgba(255, 248, 214, 0.3);
}

#logModal .table-responsive {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

#logModal .modal-body {
  padding-top: 0.9rem;
}

#logModal .modal-footer[hidden] {
  display: none !important;
}

#logTable .shipment-log-empty td {
  padding: 2rem 1rem;
  color: rgba(234, 242, 255, 0.62);
  text-align: center;
  vertical-align: middle;
}

#logTable.is-empty th,
#logTable.is-empty td {
  width: auto !important;
}

.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--brand);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.edit-btn svg,
#deleteEntryBtn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.shipment-toast {
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  color: var(--ink-strong);
  background:
    linear-gradient(135deg, rgba(72, 229, 213, 0.1), transparent 40%),
    linear-gradient(160deg, rgba(20, 44, 82, 0.96), rgba(9, 22, 46, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.shipment-toast--success {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(51, 223, 157, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shipment-toast--danger {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 107, 122, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shipment-toast--warning {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 232, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shipment-toast .d-flex {
  align-items: center;
}

.shipment-toast__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.95rem 0.95rem 0.95rem 1rem;
}

.shipment-toast__icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}

.shipment-toast--success .shipment-toast__icon {
  color: color-mix(in srgb, var(--mint), white 14%);
}

.shipment-toast--danger .shipment-toast__icon {
  color: color-mix(in srgb, var(--red), white 10%);
}

.shipment-toast--warning .shipment-toast__icon {
  color: color-mix(in srgb, var(--amber), white 16%);
}

.shipment-toast__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shipment-toast__title {
  color: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.shipment-toast__message {
  margin-top: 2px;
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.shipment-toast .btn-close {
  opacity: 0.7;
}

.is-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px rgba(217, 72, 72, 0.14) !important;
}

.calendar-collapsed,
.hidden {
  display: none !important;
}

.vis-hidden {
  visibility: hidden;
}

.locked-input,
.no-pointer {
  pointer-events: none;
}

.opacity-half {
  opacity: 0.6;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-14 {
  width: 14px;
  height: 14px;
}

.mr-6px {
  margin-right: 6px;
}

.mr-8px {
  margin-right: 8px;
}

.lock-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  color: color-mix(in srgb, var(--amber), white 24%);
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.lock-toggle.is-unlocked {
  color: rgba(234, 242, 255, 0.5);
}

.lock-toggle:hover {
  color: color-mix(in srgb, var(--amber), white 42%);
  transform: translateY(-1px);
}

.lock-toggle.is-unlocked:hover {
  color: rgba(234, 242, 255, 0.72);
}

.lock-toggle:focus-visible {
  outline: none;
  color: #fff;
}

.lock-toggle i {
  font-size: 0.95rem;
  line-height: 1;
}

.modal-footer-spaced {
  margin-top: 12px;
}

.toast-z {
  z-index: 9999;
}

.monospace {
  font-family: "SFMono-Regular", Consolas, monospace !important;
}

.rounded-left-12 {
  border-top-left-radius: var(--radius-sm) !important;
  border-bottom-left-radius: var(--radius-sm) !important;
}

.rounded-right-12 {
  border-top-right-radius: var(--radius-sm) !important;
  border-bottom-right-radius: var(--radius-sm) !important;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 18px;
  }

  body.shipment-page main {
    width: min(100% - 24px, var(--content));
  }

  .shipment-planner-shell {
    padding: 18px;
  }

  .shipment-planner-hero {
    align-items: flex-start;
  }

  .shipment-planner-hero-icon {
    width: 72px;
    font-size: 2.5rem;
  }

  .shipment-planner-hero-desc {
    font-size: 0.92rem;
  }

  .shipment-flow-grid {
    grid-template-columns: 1fr;
  }

  .shipment-action-dock {
    flex-direction: column;
  }

  .shipment-action-dock .glass-button {
    width: 100%;
  }

  .text-center.my-4 {
    flex-direction: column;
    align-items: center;
  }

  .modal-footer .right-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .shipment-entry-grid {
    grid-template-columns: 1fr;
  }

  .shipment-entry-header,
  .shipment-entry-modal .modal-body {
    padding-inline: 1rem;
  }

  .shipment-entry-modal .modal-footer {
    margin-inline: -1rem;
    margin-bottom: -1.35rem;
    padding-inline: 1rem;
  }
}
