:root {
  --page-bg: #f3f5f9;
  --text: #172033;
  --surface: #ffffff;
  --surface-alt: #eaf0f8;
  --line: #e6eaf1;
  --line-strong: #cbd3e0;
  --navy: #15243b;
  --blue: #245fb5;
  --blue-soft: #b9d5ff;
  --blue-strong: #477dc2;
  --muted: #657189;
  --warning-bg: #fff7e5;
  --warning-border: #cf9528;
  --error: #a12424;
  --success: #176b45;

  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

* {
  box-sizing: border-box;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

aside ol {
  padding-left: 1.25rem;
  line-height: 1.7;
}

body {
  margin: 0;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

code {
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  background: #f0f3f8;
}

.customerSearch {
    margin-bottom: 0;
}

.customerSearchDropdown {
    position: relative;
    width: 98%;
    margin-top: 0;
    list-style-type: none;
    padding: 5px 0px 5px 0px;
    border: 1px solid var(--line-strong);
    z-index: 100;
    margin-inline: auto;
}

details {
  margin-top: 1rem;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  padding: 0.8rem;
}

fieldset {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 1rem 0 0.5rem;
  border: 0;
  border-top: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h2 {
  margin: 0.2rem 0 1rem;
  font-size: 1.25rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  background: var(--navy);
  color: white;
}

.hidden {
    display: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: white;
  color: inherit;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-strong);
  outline: 3px solid var(--blue-soft);
}

label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 650;
}

legend {
  padding-right: 0.5rem;
  font-weight: 800;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.8fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
  align-items: start;
}

.message {
  font-size: 0.9rem;
}

.message.error {
  color: var(--error);
}

.message.success {
  color: var(--success);
}

.nested {
  padding-top: 0.4rem;
}

.notice {
  margin-top: 1.5rem;
  border-left: 4px solid var(--warning-border);
  border-radius: 6px;
  padding: 1rem;
  background: var(--warning-bg);
  font-size: 0.9rem;
}

.notice p {
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

.panel {
  background: var(--surface);
  border: 1px solid #e0e5ee;
  border-radius: 14px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 5px 20px rgba(23, 32, 51, 0.04);
}

.pill {
  border: 1px solid #8090a8;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

.primary {
  background: var(--blue);
  color: white;
}

.search {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.secondary {
  background: var(--surface-alt);
  color: #203654;
}

summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

textarea {
  resize: vertical;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .two {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
  }
}

