:root {
  --navy: #052b55;
  --navy-2: #063b70;
  --gold: #efaa22;
  --paper: #f5f7fb;
  --line: #d9e1ec;
  --text: #17243a;
  --muted: #66758a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
}

.topbar {
  min-height: 72px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 4px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--gold);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  font-size: 13px;
  color: #cdd8e8;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}

h1, h2, h3 {
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: 0;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

.load-grid, .field-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 220px auto;
  gap: 14px;
  align-items: end;
}

.field-grid {
  grid-template-columns: 1fr 1fr 190px;
  align-items: start;
}

label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font-size: 14px;
}

button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: var(--gold);
  color: #1d2430;
}

.secondary {
  background: var(--navy);
  color: #fff;
}

.ghost {
  background: #eef3f8;
  color: var(--navy);
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-panel p {
  margin: -8px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edit-surface {
  opacity: 0.92;
}

.edit-surface:not(.is-editing) input {
  pointer-events: none;
  background: #f8fafc;
}

.totals {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.totals div {
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  padding: 12px 16px;
  min-width: 190px;
}

.totals span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.totals strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  color: var(--navy);
}

.table-block {
  margin-top: 22px;
}

.service-table {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) 160px minmax(220px, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-table > * {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-table > *:nth-child(3n) {
  border-right: 0;
}

.service-table .head {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.messages {
  margin-bottom: 16px;
}

.message {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.message.success {
  background: #eaf8ee;
  color: #1f7a3f;
}

.message.error {
  background: #fff0ef;
  color: #a42b25;
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty h2 {
  color: var(--navy);
}

@media (max-width: 860px) {
  .load-grid, .field-grid, .service-table {
    grid-template-columns: 1fr;
  }

  .service-table .head {
    display: none;
  }

  .hero-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
