
:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --surface: #ffffff;
  --soft: #f4f6f8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
}
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand { font-weight: 700; color: var(--ink); }
nav { display: flex; gap: 8px; flex: 1; overflow-x: auto; white-space: nowrap; }
nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 6px;
}
nav a.active { color: var(--ink); background: var(--soft); }
.worksheet-tabs {
  flex: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 28px 0;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.worksheet-tabs a {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f8fafc;
  margin-right: 4px;
}
.worksheet-tabs a.active {
  background: white;
}
button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }
button.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}
button.danger {
  background: var(--danger);
}
button.danger:hover {
  background: #8f1d14;
}
.inline-form {
  display: inline;
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.inline-actions button {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 12px;
}
.request-edit {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.request-edit-toggle > summary {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}
.request-edit-toggle[open] > summary {
  margin-bottom: 8px;
}
.request-edit-toggle > summary::-webkit-details-marker {
  display: none;
}
.request-edit-toggle > summary.ghost {
  background: white;
  color: var(--ink);
}
.request-edit input,
.request-edit textarea {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
}
.request-edit textarea {
  resize: vertical;
}
.inline-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.inline-date-fields input {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 6px;
}
.date-update-form {
  min-width: 390px;
}
.date-update-form .inline-date-fields {
  grid-template-columns: repeat(2, minmax(175px, 1fr));
}
.row-updated td {
  background: #fff7d6 !important;
}
.row-note {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}
.inline-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  min-width: 420px;
  margin: 8px 0;
}
.inline-edit-grid label {
  font-size: 12px;
  color: var(--muted);
}
.inline-edit-grid input {
  width: 100%;
  margin-top: 3px;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
.inline-edit-grid button {
  align-self: end;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 9px 13px;
  font-weight: 650;
}
.button-link:hover { background: var(--accent-dark); text-decoration: none; }
.button-link.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.button-link.secondary:hover {
  background: var(--soft);
  text-decoration: none;
}
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-heading p {
  margin: -8px 0 0;
  color: var(--muted);
}
.subtle {
  margin: -10px 0 18px;
  color: var(--muted);
}
h1, h2 { margin: 0 0 18px; letter-spacing: 0; }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metrics div, .split > div, .login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metrics div { padding: 18px; }
.metrics span {
  display: block;
  font-size: 28px;
  font-weight: 750;
}
.metrics label { color: var(--muted); font-size: 13px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: 18px;
}
.split > div { padding: 18px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.num { text-align: right; font-variant-numeric: tabular-nums; }
.has-breakdown {
  cursor: help;
  text-decoration: underline dotted #6b7280;
  text-underline-offset: 3px;
}
.lazy-breakdown-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 16px));
  padding: 8px 10px;
  border: 1px solid #404040;
  background: #ffffe1;
  color: #111;
  box-shadow: 0 3px 8px rgba(0,0,0,0.22);
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  text-align: left;
  pointer-events: none;
}
.wide-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.wide-table table { min-width: 1160px; }
.surcharge-column-controls {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 6px;
}
.surcharge-column-toggle {
  min-width: 152px;
  white-space: nowrap;
}
.surcharge-columns-collapsed .surcharge-detail-column,
.surcharge-columns-collapsed .surcharge-breakout-column {
  display: none !important;
}
.db-admin-page {
  max-width: 1540px;
}
.db-window {
  border: 1px solid #aeb7c2;
  background: #f3f6fb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.db-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: white;
  background: #185abd;
}
.db-titlebar h1 {
  margin-bottom: 4px;
  font-size: 24px;
}
.db-titlebar p {
  margin: 0;
  color: #eaf2ff;
}
.db-ribbon {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #b8c4d6;
  background: #ffffff;
  overflow-x: auto;
}
.db-ribbon-tab {
  min-width: 190px;
  padding: 10px 14px;
  border-right: 1px solid #d7deea;
  color: #1f2933;
}
.db-ribbon-tab:hover {
  background: #eef4ff;
  text-decoration: none;
}
.db-ribbon-tab.active {
  background: #dbeafe;
  box-shadow: inset 0 -3px 0 #185abd;
}
.db-ribbon-tab span {
  display: block;
  margin-top: 2px;
  color: #536579;
  font-size: 12px;
}
.db-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 720px;
}
.db-navpane {
  border-right: 1px solid #b8c4d6;
  background: #eef2f7;
}
.db-pane-heading {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #cbd5e1;
  background: #dfe7f2;
  color: #24364b;
}
.db-table-list {
  max-height: 720px;
  overflow: auto;
  padding: 6px;
}
.db-table-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 4px;
  border: 1px solid transparent;
  padding: 3px;
}
.db-table-item:hover {
  border-color: #b8c4d6;
  background: white;
}
.db-table-item.active {
  border-color: #7aa7e8;
  background: #dbeafe;
}
.db-table-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 6px 7px;
  color: #1f2933;
  min-width: 0;
}
.db-table-item a:hover {
  text-decoration: none;
}
.db-table-item button {
  border: 1px solid #b8c4d6;
  background: #f8fafc;
  color: #24364b;
  padding: 3px 6px;
  font-size: 11px;
}
.db-table-item button:hover {
  background: #e8f0fe;
}
.db-table-item small {
  color: #667085;
}
.db-mainpane {
  display: grid;
  gap: 14px;
  padding: 14px;
}
.db-panel {
  border: 1px solid #b8c4d6;
  background: white;
}
.db-sql-panel {
  border-color: #8aa8d6;
}
.db-panel .section-heading {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #d7deea;
  background: #f8fafc;
}
.db-sql-builder {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(5, auto);
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-bottom: 1px solid #d7deea;
  background: #f8fbff;
}
.db-sql-builder button {
  min-height: 32px;
  white-space: nowrap;
}
.db-toolbar,
.db-sql-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
}
.db-sql-form {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto;
}
.db-sql-form .wide-field {
  grid-column: 1 / -1;
}
.db-sql-form textarea {
  width: 100%;
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}
.db-sql-suggestions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}
.db-sql-suggestions button {
  border: 1px solid #b8c4d6;
  background: #eef4ff;
  color: #1d4e89;
  padding: 4px 8px;
  font-size: 12px;
}
.db-sql-suggestions button[data-kind="keyword"] {
  background: #f5f3ff;
  color: #4c1d95;
}
.db-sql-error {
  margin: 0 12px 12px;
}
.db-datasheet {
  margin: 0 12px 12px;
  border-radius: 0;
}
.db-datasheet th {
  color: #111827;
  background: #e8f0fe;
  border: 1px solid #c8d5ea;
  white-space: nowrap;
}
.db-datasheet td {
  border: 1px solid #dde5f0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  white-space: nowrap;
}
.db-proc-list {
  margin: 0 12px 12px;
  width: calc(100% - 24px);
}
.db-result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
}
.db-result-summary span {
  border: 1px solid #b8c4d6;
  background: #eef4ff;
  padding: 4px 8px;
  color: #24364b;
  font-size: 12px;
  font-weight: 650;
}
.wrap-cell {
  max-width: 340px;
  overflow-wrap: anywhere;
}
.filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(130px, 1fr)) 100px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.profit-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(120px, 1fr)) 100px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.surcharge-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(130px, 1fr)) 100px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.master-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.compact-filter-row {
  grid-template-columns: minmax(150px, 220px) minmax(180px, 1fr) 100px auto;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--ink);
  font-size: 13px;
}
.checkbox-label input {
  width: auto;
  min-height: auto;
}
.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.export-row.compact {
  margin: 12px 0 0;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.date-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-input input {
  flex: 1 1 10rem;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}
.date-input button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.contract-number-pick {
  display: flex;
  gap: 10px;
  align-items: center;
}
.contract-number-pick select {
  max-width: 240px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
  font: inherit;
}
input, select { min-height: 38px; }
textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.4;
}
.request-grid {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}
.request-form {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.compact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contract-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.contract-create-grid .wide-field {
  grid-column: span 2;
}
.surcharge-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}
.surcharge-entry-grid .wide-field {
  grid-column: span 2;
}
.profit-entry-grid,
.reference-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}
.profit-entry-grid .wide-field,
.reference-entry-grid .wide-field {
  grid-column: span 2;
}
.adapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.adapter-card {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.adapter-card:hover {
  background: var(--soft);
  text-decoration: none;
}
.adapter-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.adapter-card strong {
  font-size: 18px;
}
.adapter-card span,
.adapter-card small {
  color: var(--muted);
}
.adapter-card em {
  align-self: end;
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.issue-list {
  display: grid;
  gap: 12px;
}
.issue-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.issue-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.issue-title-row h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}
.status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}
.issue-meta span {
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
.issue-meta span:last-child { border-right: 0; }
.muted {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.issue-details {
  margin: 10px 0 0;
  white-space: pre-wrap;
}
.notice {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-weight: 700;
}
.empty-box {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-align: center;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.maintenance-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.maintenance-card.warning {
  border-left: 4px solid var(--danger);
}
.maintenance-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}
.access-export-dialog {
  width: min(501px, 100%);
  min-height: 217px;
  margin: 28px auto;
  padding: 24px 86px 20px;
  border: 1px solid #9a9a9a;
  background: #f0f0f0;
  color: #111;
}
.access-export-dialog h1 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 500;
}
.access-export-dialog form {
  display: grid;
  gap: 10px;
}
.access-check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.access-check-row input {
  width: auto;
}
.legacy-blue-note {
  margin: 0 0 16px 19px;
  color: #0645bd;
  font-size: 13px;
}
.access-export-dialog button {
  justify-self: center;
  min-width: 90px;
  min-height: 23px;
  padding: 2px 12px;
  border: 1px solid #8a8a8a;
  border-radius: 0;
  background: #f5f5f5;
  color: #111;
  font: inherit;
}
.lower-split {
  margin-top: 18px;
}
.workflow-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.debug-dialog {
  width: min(760px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}
.debug-dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
}
.import-queue-report-dialog h2,
.import-queue-report-dialog h3 {
  margin-top: 0;
}
.queue-report-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.dialog-close-form {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
.nested-panel {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.workflow-wide { grid-column: 1 / -1; }
.workflow-status {
  align-self: center;
  white-space: normal;
  text-transform: none;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-heading h2 { margin: 0; }
.detail-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  font-size: 14px;
}
.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}
.detail-list dd { margin: 0; }
.flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}
.flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.flag.critical {
  background: #fef3f2;
  color: var(--danger);
}
.flag.warning {
  background: #fffaeb;
  color: #b54708;
}
.flag.ok {
  background: #ecfdf3;
  color: #027a48;
}
.check-list {
  display: grid;
  gap: 10px;
}
.check-item {
  border: 1px solid var(--line);
  border-left: 4px solid #b54708;
  border-radius: 8px;
  padding: 10px;
  background: white;
}
.check-item.critical { border-left-color: var(--danger); }
.check-item.ok { border-left-color: var(--accent); }
.check-item strong {
  display: block;
  margin-bottom: 4px;
}
.check-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.plain-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}
.plain-list li { margin: 8px 0; }
.empty { color: var(--muted); text-align: center; padding: 28px; }
.error {
  color: var(--danger);
  font-weight: 650;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-panel {
  width: min(100%, 360px);
  padding: 24px;
}
.login-panel form { display: grid; gap: 14px; }
.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: stretch;
}
.password-field input {
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.password-field .password-toggle {
  min-width: 70px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  padding: 0 12px;
  background: #f7fafc;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  line-height: 1;
}
.password-field .password-toggle:hover {
  background: #edf5f8;
}
.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.login-actions button,
.login-actions .button-link {
  flex: 1 1 145px;
}

/* Access compatibility visual layer.
   The supplied VB designer files use dense Windows Forms controls: MenuStrip,
   TabControl, gray Panels, DataGridView, light-blue command buttons, and
   blue/magenta status labels. These overrides keep the web workflow familiar
   while preserving the web-only review and AI improvements. */
body {
  font-family: "Microsoft Sans Serif", Arial, sans-serif;
  font-size: 13px;
  color: #111;
  background:
    linear-gradient(rgba(212, 208, 200, .76), rgba(212, 208, 200, .76)),
    url("/assets/cargo-ship.jpg") center / cover fixed no-repeat;
  background-color: #d4d0c8;
}
a { color: navy; }
.access-windowbar {
  display: block;
  height: auto;
  min-height: 0;
  padding: 0;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #8b8b8b;
  background: whitesmoke;
}
.access-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 2px 8px 0 10px;
  border-bottom: 1px solid #e8e8e8;
  background: #f7f7f7;
}
.access-window-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-weight: 400;
}
.access-window-title:hover {
  text-decoration: none;
}
.access-titlebar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.access-login-status {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111;
  font-size: 12px;
}
.access-logout-form {
  margin: 0;
}
.access-logout-button {
  min-height: 20px;
  border: 1px solid #8b8b8b;
  border-radius: 0;
  padding: 1px 11px 2px;
  background: #e8e8e8;
  color: #111;
  font-size: 12px;
  line-height: 16px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #9a9a9a;
}
.access-logout-button:hover {
  background: #e7f0ff;
  color: #0000cc;
}
.access-app-icon {
  width: 15px;
  height: 15px;
  border: 1px solid #b5b5b5;
  background:
    linear-gradient(90deg, #ef4444 0 35%, transparent 35% 100%),
    linear-gradient(#facc15 0 45%, #60a5fa 45% 100%);
  box-shadow: inset 0 0 0 2px #fff;
}
.access-window-controls {
  color: #555;
  letter-spacing: 10px;
  white-space: nowrap;
}
.access-form-titlebar {
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 0;
  border-bottom: 1px solid #d6dbe1;
  background: linear-gradient(90deg, #edf7ff 0%, #f6fbff 48%, #ffffff 100%);
  color: #000;
  font: 12px "Microsoft Sans Serif", Arial, sans-serif;
  box-sizing: border-box;
}
.access-form-titlebar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.access-form-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1px solid #8a8a00;
  background: #f3cc37;
  box-shadow: inset 2px 0 #fff58b;
}
.access-form-window-controls {
  font-size: 15px;
  letter-spacing: 12px;
  white-space: nowrap;
}
.access-menu-strip {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 28px;
  overflow: visible;
  white-space: nowrap;
  background: whitesmoke;
}
.access-menu {
  position: relative;
  min-width: 0;
}
.access-menu-link,
.access-menu summary {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 24px 3px 12px;
  border: 1px solid transparent;
  color: #111;
  background: transparent;
  font: inherit;
  list-style: none;
  cursor: pointer;
}
.access-menu-link {
  text-decoration: none;
}
.access-menu summary::-webkit-details-marker {
  display: none;
}
.access-menu-link.active,
.access-menu-link:hover,
.access-menu[open] summary,
.access-menu summary:hover {
  border-color: #8b8b8b #fff #fff #8b8b8b;
  background: #f4f4f4;
  color: #111;
  text-decoration: none;
}
.access-menu-panel {
  position: absolute;
  z-index: 30;
  top: 28px;
  left: 0;
  min-width: 260px;
  border: 1px solid #9a9a9a;
  background: #f7f7f7;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .12);
}
.access-menu-panel a,
.access-menu-panel button,
.access-menu-panel form button {
  display: block;
  width: 100%;
  min-height: 22px;
  border: 0;
  border-bottom: 1px solid #d0d0d0;
  border-radius: 0;
  padding: 5px 12px;
  color: #111;
  background: #f7f7f7;
  text-align: left;
  font: inherit;
}
.access-menu-panel a:hover,
.access-menu-panel button:hover {
  background: #e7f0ff;
  color: #0000cc;
  text-decoration: none;
}
.access-menu-panel form {
  margin: 0;
}
.access-demo-home {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 83px);
  padding: 40px 24px;
  border: 1px solid #9a9a9a;
  border-top: 0;
  background: linear-gradient(180deg, #f6fbff 0%, #d9f0f8 46%, #86cce3 100%);
  color: #000;
  text-align: center;
  box-sizing: border-box;
}
.access-demo-cover {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(860px, 100%);
}
.access-demo-logo {
  width: min(620px, 86vw);
  height: auto;
  border: 1px solid #c8d5dc;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 38, 70, .14);
}
.access-demo-system-title {
  color: #003063;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 1.3;
}
.access-confirm-dialog {
  min-width: 356px;
  border: 1px solid #777;
  border-radius: 0;
  padding: 0;
  background: #fff;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .18);
}
.access-confirm-dialog h2 {
  margin: 0;
  padding: 11px 12px;
  color: #111;
  font-size: 15px;
  font-weight: 400;
}
.access-confirm-dialog p {
  margin: 22px 14px;
  color: #111;
  font-weight: 700;
}
.access-dialog-close {
  position: absolute;
  top: 7px;
  right: 8px;
  margin: 0;
}
.access-dialog-close button {
  min-height: 18px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #111;
}
.access-confirm-dialog form[data-access-confirm-form] {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 12px;
  background: #f0f0f0;
}
.access-confirm-dialog form[data-access-confirm-form] button {
  width: 92px;
  min-height: 26px;
  border: 1px solid #adadad;
  border-radius: 0;
  padding: 3px 8px;
  background: #e9e9e9;
  color: #111;
}
.access-confirm-dialog .access-dialog-yes {
  border-color: #0078d7 !important;
  box-shadow: inset 0 0 0 1px #0078d7;
}
.topbar {
  min-height: 28px;
  height: auto;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #8b8b8b;
  background: whitesmoke;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-right: 8px;
  border-right: 1px solid #aaa;
}
.brand {
  color: #111;
  font-weight: 700;
}
.brand-block span {
  color: darkmagenta;
  font-size: 12px;
  font-weight: 700;
}
nav.menu-strip {
  gap: 0;
  align-items: stretch;
}
nav.menu-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 3px 8px;
  color: #111;
  background: transparent;
}
nav.menu-strip a:hover,
nav.menu-strip a.active {
  border-color: #8b8b8b #fff #fff #8b8b8b;
  background: #e9e9e9;
  text-decoration: none;
}
.access-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  padding: 3px 8px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #8b8b8b;
  background: #f5f5f5;
  color: #333;
  font-size: 12px;
}
.worksheet-tabs {
  max-width: none;
  padding: 8px 12px 0;
  background: #d4d0c8;
  border-bottom: 1px solid #888;
}
.worksheet-tabs a {
  min-height: 26px;
  border: 1px solid #8b8b8b;
  border-bottom: 0;
  border-radius: 0;
  margin-right: 2px;
  padding: 5px 12px;
  background: #e8e8e8;
  color: #111;
}
.worksheet-tabs a.active {
  position: relative;
  top: 1px;
  background: #fff;
  color: navy;
  font-weight: 700;
}
.page {
  max-width: 1720px;
  padding: 12px;
}
.page-heading {
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 8px;
  border: 1px solid #9a9a9a;
  background: #f0f0f0;
}
.page-heading h1 {
  margin: 0 0 3px;
  color: darkmagenta;
  font-size: 20px;
}
.page-heading p,
.subtle {
  color: navy;
}
h1 { font-size: 20px; }
h2 { font-size: 15px; color: #111; }
h3 { color: navy; }
button,
.button-link {
  min-height: 26px;
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: lightblue;
  color: navy;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #8b8b8b;
}
button:hover,
.button-link:hover {
  background: #b7ddea;
  color: navy;
}
button.ghost,
.button-link.secondary {
  border-color: #9a9a9a;
  background: beige;
  color: #111;
}
button.danger {
  border-color: #b42318;
  background: yellow;
  color: #b42318;
}
input,
select,
textarea {
  min-height: 22px;
  border: 1px solid #7f9db9;
  border-radius: 0;
  padding: 3px 5px;
  color: navy;
  background: white;
  font-size: 12px;
}
select {
  background-color: buttonface;
}
textarea {
  min-height: 45px;
  line-height: 1.25;
}
.date-input input {
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}
.date-input button {
  margin-bottom: 0;
}
label {
  gap: 3px;
  color: #111;
  font-size: 12px;
  font-weight: 400;
}
.admin-partner-form {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1.2fr) minmax(180px, .9fr) minmax(190px, .9fr) minmax(140px, .7fr);
  gap: 8px;
  align-items: end;
}
.admin-partner-form label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-partner-form input,
.admin-partner-form select,
.admin-partner-form textarea {
  width: 100%;
}
.admin-partner-form .wide-field {
  grid-column: 1 / -1;
}
.admin-partner-form button {
  justify-self: start;
}
.admin-action-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
}
.admin-action-list > div {
  display: grid;
  grid-template-columns: minmax(260px, max-content) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid #9a9a9a;
  background: #fff;
}
.admin-action-list p {
  margin: 0;
  color: navy;
}
.filters,
.profit-filters,
.surcharge-filters,
.master-filters,
.request-form,
.workflow-panel,
.maintenance-card,
.metrics div,
.split > div,
.login-panel,
.nested-panel {
  border: 1px solid #9a9a9a;
  border-radius: 0;
  background: #f0f0f0;
  box-shadow: inset 1px 1px 0 #fff;
}
.filters,
.profit-filters,
.surcharge-filters,
.master-filters {
  gap: 8px;
  padding: 8px;
}
.workflow-grid,
.maintenance-grid {
  gap: 8px;
}
.workflow-panel,
.maintenance-card {
  padding: 8px;
}
.nested-panel {
  background: #e8e8e8;
}
.section-heading {
  min-height: 24px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #c4c4c4;
}
.status {
  border: 1px solid #9a9a9a;
  border-radius: 0;
  background: beige;
  color: navy;
  padding: 2px 6px;
  font-size: 12px;
}
.notice {
  color: navy;
}
.error {
  color: #b42318;
}
.wide-table {
  border: 1px solid #8b8b8b;
  border-radius: 0;
  background: #fff;
}
table {
  font-size: 12px;
}
th,
td {
  border: 1px solid #c4c4c4;
  padding: 4px 6px;
}
th {
  background: #e8e8e8;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}
tbody tr:nth-child(even) td {
  background: #fafafa;
}
tbody tr:hover td {
  background: #e7f2ff;
}
.adapter-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 6px;
}
.adapter-card {
  min-height: 74px;
  border-radius: 0;
  background: #f8f8f8;
  padding: 8px;
}
.adapter-card.active {
  border-color: darkmagenta;
  box-shadow: inset 0 0 0 1px darkmagenta;
}
.adapter-card strong {
  color: darkmagenta;
  font-size: 15px;
}
.adapter-card span,
.adapter-card small {
  color: #333;
}
.adapter-card em {
  color: navy;
}
.check-item,
.issue-card {
  border-radius: 0;
  background: #fff;
}
.flag {
  border-radius: 0;
}
.access-step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}
.access-step-box {
  min-height: 54px;
  border: 1px solid #9a9a9a;
  background: #f0f0f0;
  padding: 6px 8px;
  box-shadow: inset 1px 1px 0 #fff;
}
.access-step-box strong {
  display: block;
  color: navy;
  font-size: 13px;
}
.access-step-box span {
  display: block;
  margin-top: 3px;
  color: #333;
  font-size: 12px;
  line-height: 1.25;
}
.access-step-box.active {
  background: #fff8dc;
}

/* Import screen parity: keep the added web-only upload/AI/review behavior,
   but arrange it like Glenn's Access Rate Sheet screen. */
.worksheet-tabs a[href="/imports"] {
  margin-left: auto;
  min-width: 230px;
  justify-content: center;
  background: #d995d6;
  color: navy;
  font-weight: 700;
}
.worksheet-tabs a[href="/imports"].active {
  background: #d995d6;
  color: navy;
}
.access-import-page {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 24px 12px;
  background: #eeeeee;
}
.access-import-page .page-heading {
  display: none;
}
.access-import-page .page-heading h1 {
  display: none;
}
.access-import-page .page-heading p {
  margin: 0;
  color: navy;
  font-size: 12px;
  font-weight: 700;
}
.access-import-page .workflow-status {
  display: none;
}
.access-import-page .access-step-strip {
  display: none;
}
.access-import-page .access-step-box {
  min-height: 34px;
  padding: 4px 7px;
  background: #eeeeee;
}
.access-import-page .access-step-box strong {
  font-size: 12px;
}
.access-import-page .access-step-box span {
  font-size: 11px;
}
.access-import-page > .notice {
  order: 3;
  margin: 0;
  color: navy;
  font-size: 12px;
  font-weight: 700;
}
.access-import-page > .import-guidance {
  display: none;
}
.access-import-page .workflow-panel.import-carrier-start-panel {
  order: 1;
  max-width: 880px;
  width: min(880px, calc(100% - 48px));
  margin: 22px auto 0;
}
.import-carrier-start-form {
  display: grid;
  gap: 10px;
}
.import-carrier-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px 10px;
}
.import-carrier-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #9a9a9a;
  background: #fff;
  box-shadow: inset 1px 1px 0 #fff;
  color: navy;
}
.import-carrier-option input {
  min-height: 0;
  margin: 0;
}
.import-carrier-start-form button {
  justify-self: start;
  min-width: 210px;
  background: #d995d6;
  color: navy;
  font-weight: 700;
}
.access-import-selection-strip {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 420px);
  gap: 20px;
  align-items: center;
  min-height: 64px;
  padding: 16px 36px 18px;
  background: #eeeeee;
}
.access-region-picker {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
  justify-content: stretch;
  min-width: 0;
}
.access-region-picker label {
  display: contents;
}
.access-region-picker label span {
  color: #111;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.access-region-picker select {
  min-height: 24px;
  width: 100%;
  min-width: 0;
}
.access-region-picker button {
  grid-column: 2;
  min-height: 28px;
  width: 100%;
}
.access-carrier-banner {
  grid-column: auto;
  min-height: 28px;
  display: grid;
  place-items: center;
  background: #ffffe6;
  color: darkmagenta;
  font-size: 18px;
  font-weight: 700;
  padding: 0 18px;
  white-space: nowrap;
}
.access-import-page .import-grid {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.access-import-page .import-upload-panel {
  order: 1;
}
.access-import-page .import-batches-panel {
  order: 2;
}
.access-import-page .import-history-panel {
  order: 3;
}
.access-import-page .import-jobs-panel {
  order: 4;
}
.access-import-page .import-preview-panel {
  order: 4;
}
.access-import-page .import-recent-panel {
  order: 5;
}
.access-import-page .import-adapter-panel {
  order: 6;
}
.access-import-page .import-reset-panel {
  order: 7;
}
.access-import-page > details.technical-toggle {
  order: 8;
}
.access-import-page .workflow-panel,
.access-import-page .nested-panel {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #808080;
  background: #eeeeee;
  box-shadow: none;
}
.access-import-page .nested-panel {
  background: #eeeeee;
}
.access-import-page .section-heading {
  min-height: 22px;
  margin: 0 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid #c4c4c4;
}
.access-import-page .import-queue-position-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.access-import-page .import-queue-skip-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.access-import-page .import-queue-skip-form button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}
.access-import-page h2,
.access-import-page h3,
.access-import-page h4 {
  margin: 0 0 6px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}
.access-import-page .import-mapping-panel h3 {
  color: navy;
}
.access-import-page .subtle {
  margin: 0 0 6px;
  color: navy;
  font-size: 12px;
  line-height: 1.25;
}
.access-import-page .import-upload-panel .subtle,
.access-import-page .import-adapter-panel .subtle,
.access-import-page .import-history-panel > .subtle {
  display: none;
}
.access-import-page .contract-create-grid {
  grid-template-columns: minmax(420px, 720px) 230px;
  gap: 6px 10px;
  align-items: end;
  justify-content: start;
}
.access-import-page .contract-create-grid .wide-field {
  grid-column: auto;
}
.access-import-page .contract-create-grid label {
  min-width: 0;
}
.access-import-page .contract-create-grid select {
  min-height: 32px;
  width: 100%;
}
.access-import-page .import-upload-panel .date-input button {
  display: none;
}
.access-import-page .import-upload-panel .date-input input {
  flex: 1 1 auto;
  width: 100%;
}
.access-import-page .contract-create-grid button[type="submit"] {
  min-width: 210px;
  background: #d995d6;
  color: navy;
  font-weight: 700;
}
.access-import-page .import-worksheet-working {
  color: #8b0000;
  font-size: 15px;
  font-weight: 700;
  animation: import-working-blink 0.85s steps(2, start) infinite;
}
.access-import-page .import-worksheet-form:not(.is-reading) .import-worksheet-working {
  display: none;
}
.access-import-page .import-queue-working {
  color: #8b0000;
  font-size: 15px;
  font-weight: 700;
  animation: import-working-blink 0.85s steps(2, start) infinite;
}
.access-import-page .import-queue-start-form:not(.is-starting) .import-queue-working {
  display: none;
}
.access-import-page .import-carrier-start-working {
  color: #8b0000;
  font-size: 15px;
  font-weight: 700;
  animation: import-working-blink 0.85s steps(2, start) infinite;
}
.access-import-page .import-carrier-start-form:not(.is-opening) .import-carrier-start-working {
  display: none;
}
.access-import-page .review-actions {
  margin: 6px 0;
}
.access-import-page .review-actions button {
  background: #d995d6;
  color: navy;
  font-weight: 700;
}
.access-import-page .review-actions button:disabled {
  color: #666;
  background: #dddddd;
}
.access-import-page .import-save-working {
  color: #8b0000;
  font-size: 15px;
  font-weight: 700;
  animation: import-working-blink 0.85s steps(2, start) infinite;
}
.access-import-page .import-save-form:not(.is-saving) .import-save-working {
  display: none;
}
.access-import-page .import-rate-filter-panel {
  margin: 6px 0 8px;
  padding: 8px 10px;
  border: 1px solid #808080;
  background: #eeeeee;
}
.access-import-page .import-rate-filter-form {
  display: grid;
  grid-template-columns: max-content 136px 136px 136px 180px 180px;
  gap: 4px 8px;
  align-items: end;
  width: max-content;
  max-width: 100%;
}
.access-import-page .import-filter-caption {
  grid-row: 2;
  align-self: center;
  color: #111;
  font-size: 12px;
}
.access-import-page .import-rate-filter-form label {
  display: grid;
  gap: 2px;
  color: #111;
  text-align: center;
}
.access-import-page .import-rate-filter-form label span {
  font-size: 12px;
}
.access-import-page .import-rate-filter-form input,
.access-import-page .import-rate-filter-form select {
  width: 100%;
  min-height: 24px;
}
.access-import-page .import-rate-filter-form button,
.access-import-page .import-rate-filter-form .button-link {
  grid-row: 2;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5dc;
  color: #111;
  font-weight: 400;
}
.access-import-page .import-rate-filter-form button:disabled {
  color: #666;
  background: #dddddd;
}
.access-import-page .import-filter-working {
  grid-column: 1 / -1;
  align-self: center;
  color: #8b0000;
  font-size: 15px;
  font-weight: 700;
  animation: import-working-blink 0.85s steps(2, start) infinite;
}
.access-import-page .import-rate-filter-form:not(.is-working) .import-filter-working {
  display: none;
}
.access-import-page .import-filter-count {
  grid-column: 1 / -1;
  color: blue;
  font-size: 15px;
}
body.working-cursor,
body.working-cursor * {
  cursor: wait !important;
}
@keyframes import-working-blink {
  50% {
    opacity: 0.2;
  }
}
.access-import-page .import-attention-button {
  display: inline-block;
  margin: 4px 0 8px;
}
.access-import-page .import-attention-dialog {
  max-width: 640px;
  padding: 12px 14px;
  border: 2px solid #808080;
  background: #eeeeee;
  color: #111;
}
.access-import-page .import-attention-dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}
.access-import-page .import-attention-dialog p {
  margin: 0 0 8px;
}
.access-import-page .dialog-close {
  float: right;
  margin: -4px -4px 4px 10px;
}
.access-import-page .dialog-close button {
  min-width: 28px;
  padding: 2px 7px;
}
.access-import-page .button-link.secondary,
.access-import-page button.ghost {
  background: #f5f5dc;
}
.access-import-page .wide-table {
  border: 1px solid #808080;
}
.access-import-page .wide-table table {
  min-width: 1180px;
}
.access-import-page .rate-samples-scroll {
  max-height: min(64vh, 520px);
  overflow: auto;
}
.access-import-page .import-rate-sample-surcharge-controls {
  justify-content: flex-start;
  margin: 2px 0 6px;
}
.access-import-page th {
  background: #ffa500;
  color: #111;
  font-weight: 400;
}
.access-import-page .rate-samples-scroll th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.access-import-page td {
  background: #fff;
}
.access-import-page tbody tr:nth-child(even) td {
  background: #f7f7f7;
}
.access-import-page .import-mapping-panel th {
  background: #e8e8e8;
  font-weight: 700;
}
.access-import-page .adapter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.access-import-page .adapter-card {
  display: inline-grid;
  grid-template-columns: 50px minmax(120px, 1fr);
  gap: 2px 6px;
  width: 210px;
  min-height: 36px;
  padding: 4px 6px;
  border-color: #9a9a9a;
  background: #e8e8e8;
}
.access-import-page .adapter-card strong {
  grid-row: span 2;
  align-self: center;
  font-size: 13px;
}
.access-import-page .adapter-card small {
  display: none;
}
.access-import-page .adapter-card em {
  font-size: 11px;
}
.access-import-page .date-update-form {
  min-width: 320px;
}
.access-import-page .date-update-form .inline-date-fields {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}
.technical-toggle {
  margin: 6px 0;
}
.technical-toggle > summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #9a9a9a;
  background: #f5f5dc;
  color: navy;
  padding: 3px 8px;
  cursor: pointer;
}
.technical-toggle[open] > summary {
  margin-bottom: 6px;
}
.access-master-page,
.access-carrier-rate-page,
.access-surcharge-page,
.access-contracts-page,
.access-profit-page,
.access-system-update-page {
  max-width: none;
  background: #eeeeee;
}
.access-master-page .metrics,
.access-carrier-rate-page .metrics,
.access-surcharge-page .metrics,
.access-system-update-page .metrics {
  display: none;
}
.access-master-page .page-heading,
.access-carrier-rate-page .page-heading,
.access-surcharge-page .page-heading,
.access-contracts-page .page-heading,
.access-profit-page .page-heading,
.access-system-update-page .page-heading {
  border: 1px solid #808080;
  background: #eeeeee;
}
.access-master-page .master-filters {
  grid-template-columns: 150px 260px repeat(3, 150px) 130px 150px 150px 170px 120px minmax(220px, 1fr) 150px 120px;
  align-items: end;
}
.access-master-tabs {
  display: grid;
  grid-template-columns: 240px 300px 320px 1fr;
  gap: 4px;
  align-items: stretch;
  margin: 6px 0 0;
}
.access-master-tabs span,
.access-master-tabs a {
  min-height: 28px;
  border: 1px solid #808080;
  border-bottom: 0;
  background: #e8e8e8;
  color: #111;
  display: grid;
  place-items: center;
  padding: 4px 8px;
}
.access-master-tabs span {
  background: #ffc0cb;
}
.access-master-tabs a {
  background: #e8e8e8;
}
.access-master-page .access-export-row {
  justify-content: flex-end;
  margin-top: 0;
}
.access-master-page th,
.access-carrier-rate-page th,
.access-surcharge-page th,
.access-contracts-page th {
  background: #ffa500;
  color: #111;
  font-weight: 400;
}
.access-master-page .workflow-panel,
.access-carrier-rate-page .workflow-panel,
.access-surcharge-page .workflow-panel,
.access-contracts-page .workflow-panel,
.access-profit-page .workflow-panel,
.access-system-update-page .workflow-panel {
  border-color: #808080;
  background: #eeeeee;
  box-shadow: none;
}
.access-master-page {
  --access-master-scale: 1;
  width: 100%;
  max-width: 100vw;
  min-height: calc(100vh - 27px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #eeeeee;
  font: 13px "Microsoft Sans Serif", Arial, sans-serif;
  box-sizing: border-box;
}
.access-master-page .error,
.access-master-page .notice {
  margin: 4px 10px;
}
.access-master-window-form {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: calc(100vh - 27px);
  padding-top: 8px;
  background: #eeeeee;
  box-sizing: border-box;
}
.access-rate-toolbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 14px;
  min-height: 92px;
  height: auto;
  margin: 0 12px 4px;
  padding: 26px 10px 10px 40px;
  border: 1px solid #808080;
  background: #eeeeee;
  box-sizing: border-box;
}
.access-rate-toolbar .access-field {
  position: static;
  display: block;
  margin: 0;
}
.access-rate-toolbar .access-field label {
  display: block;
  margin: 0 0 5px;
  color: #000;
  font-size: 13px;
  font-weight: 400;
}
.access-rate-toolbar select,
.access-rate-toolbar input {
  height: 21px;
  border: 1px solid #8f8f8f;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 13px "Microsoft Sans Serif", Arial, sans-serif;
  box-sizing: border-box;
}
.access-rate-toolbar .scac-field {
  flex: 0 0 96px;
}
.access-rate-toolbar .scac-field select {
  width: 89px;
}
.access-rate-toolbar .region-field {
  flex: 0 0 205px;
}
.access-rate-toolbar .region-field select {
  width: 197px;
}
.access-rate-toolbar .clear-all-button {
  position: static;
  flex: 0 0 130px;
  width: 130px;
  min-height: 30px;
  border: 1px solid #9a9a9a;
  border-radius: 0;
  padding: 6px 12px;
  background: #add8e6;
  color: #000;
  font-weight: 400;
  text-align: center;
}
.access-rate-toolbar .expired-note {
  display: none;
}
.access-update-fields {
  position: static;
  flex: 1 1 330px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
  gap: 8px 12px;
  min-width: 300px;
}
.access-update-fields label {
  display: grid;
  grid-template-columns: 160px 132px;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #000;
  font-weight: 400;
}
.access-update-fields input {
  width: 132px;
  height: 20px;
}
.access-rate-toolbar .session-id {
  position: absolute;
  top: 5px;
  right: 12px;
  color: #000;
  font-weight: 400;
}
.access-rate-toolbar .refresh-action-stack {
  position: static;
  flex: 0 0 129px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}
.access-rate-toolbar .refresh-button {
  position: static;
  width: 129px;
  min-height: 29px;
  border: 2px solid #d488d8;
  border-radius: 0;
  background: #ee82ee;
  color: #000;
  font-weight: 700;
}
.access-rate-toolbar .refresh-import-warning {
  display: block;
  width: 129px;
  color: #a00000;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}
.access-master-tabbar {
  display: flex;
  align-items: flex-end;
  height: 24px;
  margin: 4px 18px 0;
  gap: 0;
}
.access-master-tabbar a {
  display: grid;
  place-items: center;
  min-height: 24px;
  border: 1px solid #d4d4d4;
  border-bottom: 0;
  border-radius: 0;
  padding: 0 34px;
  background: #eeeeee;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}
.access-master-tabbar a.active {
  position: relative;
  top: 1px;
  background: #fff;
}
.access-master-sheet,
.access-summary-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 436px;
  height: calc(100vh - 186px);
  margin: 0 12px;
  border: 1px solid #e1e1e1;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}
.access-row-count {
	position: absolute;
	left: 7px;
	top: 9px;
	color: #000;
	font-size: 13px;
}
.access-master-filter-row {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px 8px;
  min-height: 76px;
  height: auto;
  margin: 0;
  padding: 8px 8px 8px 138px;
  box-sizing: border-box;
}
.access-master-filter-row > span {
	position: static;
	align-self: center;
	flex: 0 0 auto;
	color: #000;
	font-size: 13px;
}
.access-master-filter-row label {
  position: static;
  display: block;
	margin: 0;
	color: #000;
	font-size: 13px;
	font-weight: 400;
}
.access-master-filter-row .origin-filter {
  flex: 0 0 130px;
}
.access-master-filter-row .pol-filter {
  flex: 0 0 130px;
}
.access-master-filter-row .pod-filter {
  flex: 0 0 130px;
}
.access-master-filter-row input,
.access-master-filter-row select {
  height: 23px;
  border: 1px solid #8f8f8f;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 13px "Microsoft Sans Serif", Arial, sans-serif;
  box-sizing: border-box;
}
.access-master-filter-row label input,
.access-master-filter-row label select {
  display: block;
  width: 121px;
  margin-top: 3px;
}
.access-master-filter-row .cream-button {
  position: static;
  flex: 0 0 130px;
  width: 130px;
  min-height: 30px;
  border: 1px solid #b7b7a0;
  border-radius: 0;
  background: #f5f5dc;
  color: #000;
  font-weight: 400;
}
.access-master-filter-row .date-filter-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ff0000;
  white-space: nowrap;
}
.access-master-filter-row .date-filter-label select {
  width: 152px;
  color: #0000ff;
}
.access-master-filter-row .date-box {
  position: static;
  flex: 0 0 97px;
  width: 97px;
}
.access-master-filter-row .to-label {
  position: static;
	align-self: center;
	flex: 0 0 auto;
	color: #ff0000;
	font-size: 13px;
}
.access-master-filter-row .export-xlsx-button {
  position: static;
  flex: 0 0 141px;
  display: grid;
  place-items: center;
  width: 141px;
  min-height: 29px;
  border: 1px solid #b7b7b7;
  border-radius: 0;
  padding: 0;
  background: #f4f4f4;
  color: #ff0000;
  font: 700 13px "Microsoft Sans Serif", Arial, sans-serif;
  text-decoration: none;
}
.access-master-page .access-grid-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  max-width: calc(100vw - 42px);
  margin: 0 10px 8px 7px;
  overflow: auto;
  border: 1px solid #000;
  background: #a9a9a9;
}
.access-master-page .access-master-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font: 11px "Microsoft Sans Serif", Arial, sans-serif;
}
.access-master-grid .col-selector { width: 40px; }
.access-master-grid .col-origin { width: 150px; }
.access-master-grid .col-pol { width: 150px; }
.access-master-grid .col-ts { width: 80px; }
.access-master-grid .col-pod { width: 150px; }
.access-master-grid .col-money { width: 80px; }
.access-master-grid .col-surcharge-total { width: 126px; }
.access-master-grid .col-carrier { width: 80px; }
.access-master-grid .col-third-party { width: 200px; }
.access-master-grid .col-commodity { width: 200px; }
.access-master-grid .col-date { width: 110px; }
.access-master-grid .col-datetime { width: 132px; }
.access-master-grid .col-rate-source { width: 120px; }
.access-master-grid .col-quote { width: 120px; }
.access-master-page .access-master-grid th,
.access-master-page .access-master-grid td {
  height: 18px;
  border-right: 1px solid #111;
  border-bottom: 0;
  padding: 1px 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  box-sizing: border-box;
}
.access-master-page .access-master-grid th {
  background: #ffa500;
  color: #000;
  font-weight: 400;
  text-align: left;
}
.access-master-page .access-master-grid th.num,
.access-master-page .access-master-grid td.num {
  text-align: center;
}
.access-master-page .access-master-grid tbody td {
  background: #fff;
  color: #000;
}
.access-master-page .access-grid-shell .access-master-grid tbody tr:first-child td {
  background: #fff;
  color: #000;
}
.access-master-page .access-master-grid tbody tr.current-rate td,
.access-master-page .access-summary-grid tbody tr.current-rate td {
  color: #000;
}
.access-master-page .access-master-grid tbody tr.expired-rate td,
.access-master-page .access-summary-grid tbody tr.expired-rate td {
  color: #ff0000;
}
.access-master-page .access-master-grid tbody tr.upcoming-rate td,
.access-master-page .access-summary-grid tbody tr.upcoming-rate td {
  color: #0000ff;
}
.rate-samples-scroll tbody tr.current-rate td,
.wide-table[data-surcharge-column-grid] tbody tr.current-rate td {
  color: #000;
}
.rate-samples-scroll tbody tr.expired-rate td,
.wide-table[data-surcharge-column-grid] tbody tr.expired-rate td {
  color: #ff0000;
}
.rate-samples-scroll tbody tr.upcoming-rate td,
.wide-table[data-surcharge-column-grid] tbody tr.upcoming-rate td {
  color: #0000ff;
}
.access-master-page .access-master-grid .empty-grid-cell,
.access-master-page .access-master-grid tbody tr:first-child .empty-grid-cell {
  height: calc(100vh - 235px);
  min-height: 310px;
  background: #a9a9a9;
  color: #a9a9a9;
}
.access-carrier-rate-page {
  max-width: none;
  padding: 12px 14px 52px;
  font-family: "Microsoft Sans Serif", Arial, sans-serif;
  color: #111;
}
.access-rate-sheet-workspace {
  min-height: calc(100vh - 126px);
  border: 1px solid #b5b5b5;
  background: #eeeeee;
  padding: 10px;
}
.access-carrier-rate-header {
  display: grid;
  grid-template-columns: 76px 280px 94px 150px 230px;
  gap: 10px;
  align-items: end;
  width: max-content;
  margin-bottom: 8px;
}
.access-carrier-rate-header .carrier-label {
  color: #000080;
  font-weight: 700;
  align-self: center;
}
.access-carrier-rate-header label,
.access-rate-filter-panel label {
  display: grid;
  gap: 2px;
  color: #000080;
  font-size: 12px;
}
.access-carrier-rate-header input,
.access-rate-filter-panel input,
.access-rate-date-panel input {
  min-height: 24px;
  border: 1px solid #7f9db9;
  background: #fff;
  font: inherit;
  padding: 2px 4px;
}
.access-master-filter-row .surcharge-master-toggle {
  position: static;
  flex: 0 0 141px;
  display: grid;
  place-items: center;
  width: 141px;
  min-height: 28px;
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 13px "Microsoft Sans Serif", Arial, sans-serif;
  padding: 2px 4px;
  text-decoration: none;
  white-space: normal;
}
.access-carrier-rate-header .access-button,
.access-rate-filter-panel .access-button,
.light-blue-button,
.access-rate-filter-panel button,
.access-rate-date-panel button {
  min-height: 26px;
  border: 1px solid #808080;
  background: #f5f5dc;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 12px;
  text-decoration: none;
}
.light-blue-button {
  background: #add8e6;
}
.access-rate-sheet-body {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.access-rate-date-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #9a9a9a;
  background: #eeeeee;
  padding: 10px;
  font-size: 12px;
}
.access-rate-date-panel strong {
  color: #000080;
}
.access-rate-date-panel button:disabled,
.access-rate-date-panel input:disabled {
  color: #777;
  background: #e2e2e2;
}
.currently-saved-label {
  margin: 2px 0 4px;
  color: #000080;
  font-weight: 700;
  font-size: 12px;
}
.access-rate-filter-panel {
  display: grid;
  grid-template-columns: 148px 170px 170px 170px 92px 96px 150px;
  gap: 8px;
  align-items: end;
  width: max-content;
  margin-bottom: 8px;
}
.access-rate-filter-panel > span,
.access-rate-filter-panel strong {
  color: #000080;
  font-size: 12px;
  align-self: center;
}
.access-carrier-rate-grid {
  max-height: calc(100vh - 255px);
  overflow: auto;
  border: 1px solid #808080;
  background: #fff;
}
.access-carrier-rate-grid table {
  min-width: 1280px;
  border-collapse: collapse;
}
.access-carrier-rate-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.access-carrier-rate-grid th,
.access-carrier-rate-grid td {
  border: 1px solid #c5c5c5;
  padding: 3px 5px;
  font-size: 12px;
  white-space: nowrap;
}
.access-carrier-rate-grid td {
  background: #fff;
}
.access-carrier-rate-grid tbody tr:nth-child(even) td {
  background: #f7f7f7;
}
.access-surcharge-page .surcharge-filters {
  grid-template-columns: 220px 240px 220px 240px 90px 90px;
}
.access-surcharge-page .workflow-grid {
  grid-template-columns: minmax(0, 1fr);
}
.legacy-surcharge-screen {
  padding: 20px 22px 64px;
  font-family: "Microsoft Sans Serif", Arial, sans-serif;
  color: #000;
}
.legacy-surcharge-screen .notice,
.legacy-surcharge-screen .error {
  max-width: 980px;
  margin: 8px 0;
}
.legacy-surcharge-screen .surcharge-filter-strip {
  display: grid;
  grid-template-columns: 120px 260px 120px 220px 90px;
  gap: 8px;
  align-items: end;
  width: max-content;
  margin: 10px 0 14px;
  font-size: 11px;
}
.legacy-surcharge-screen .surcharge-filter-strip label {
  color: #000080;
}
.legacy-surcharge-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(520px, 760px);
  grid-template-rows: auto 320px;
  gap: 26px 28px;
  align-items: start;
}
.access-instruction {
  min-height: 22px;
  margin: 0 0 4px;
  color: #000080;
  font-size: 12px;
}
.access-instruction span {
  color: #ff0000;
}
.legacy-panel {
  position: relative;
  border: 1px solid #6f6f6f;
  background: #eeeeee;
  padding: 20px 16px 12px;
}
.legacy-panel-title {
  position: absolute;
  top: 8px;
  left: 16px;
  color: #000080;
  font-weight: 700;
  font-size: 12px;
}
.legacy-panel-title span {
  margin-left: 220px;
  color: #0000ff;
  font-weight: 400;
}
.access-grid-shell {
  overflow: auto;
  border: 1px solid #000;
  background: #fff;
}
.access-grid-shell table {
  min-width: 100%;
  border-collapse: collapse;
  font-family: "Microsoft Sans Serif", Arial, sans-serif;
  font-size: 11px;
}
.access-grid-shell th,
.access-grid-shell td {
  border-right: 1px solid #d0d0d0;
  border-bottom: 0;
  padding: 3px 5px;
  height: 20px;
  white-space: nowrap;
}
.access-grid-shell th {
  background: #ffa500;
  color: #000;
  font-weight: 400;
  text-transform: none;
}
.access-grid-shell tbody tr:first-child td,
.access-grid-shell .app-owned-row:first-child td,
.access-grid-shell .selected-record-row td {
  background: #0078d7;
  color: #fff;
}
.surcharge-record-grid [data-surcharge-record-row] {
  cursor: pointer;
}
.surcharge-record-grid [data-surcharge-record-row]:focus-visible td {
  outline: 1px dotted #000;
  outline-offset: -2px;
}
.surcharge-record-grid .selected-record-row td,
.surcharge-record-grid tbody tr.selected-record-row:first-child td {
  background: #ffff00;
  color: #0000ff;
}
.record-select-link {
  color: inherit;
  text-decoration: none;
  display: block;
  text-align: center;
}
.access-grid-shell .app-owned-row td {
  background: #e8f3ff;
}
.surcharge-record-grid {
  height: 472px;
}
.refresh-sc-form {
  margin: 10px 0 0;
}
.legacy-current-record .legacy-panel {
  min-height: 472px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.legacy-current-form {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 9px 10px;
  align-items: center;
  padding-top: 8px;
  font-size: 11px;
  min-width: 0;
}
.legacy-current-form label {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}
.legacy-current-form input,
.legacy-current-form select,
.legacy-current-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 21px;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #f5f5dc;
  color: #000080;
  padding: 2px 4px;
  font: inherit;
}
.legacy-current-form input[readonly],
.legacy-current-form textarea[readonly],
.legacy-current-form select:disabled {
  background: #d3d3d3;
  color: #555;
}
.legacy-current-form textarea {
  height: 58px;
  resize: vertical;
}
.legacy-current-form .record-id {
  grid-column: 1 / -1;
  justify-self: end;
}
.legacy-current-form .record-id input {
  width: 58px;
  margin-left: 6px;
  text-align: right;
}
.legacy-current-form .region-line {
  grid-column: 1 / -1;
}
.legacy-current-form .region-line input,
.legacy-current-form .region-line select {
  width: 100%;
}
.legacy-current-form .port-help {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 270px);
  gap: 12px;
  color: #b00000;
}
.legacy-current-form .port-help p {
  margin: 8px 0 2px;
}
.legacy-current-form mark {
  background: #ffa500;
  color: #000;
  padding: 1px 3px;
}
.legacy-current-form .saved-port-groups {
  grid-column: 1 / -1;
}
.legacy-current-form .saved-port-groups select {
  width: 100%;
}
.legacy-current-form .blue-help {
  grid-column: 1 / -1;
  margin: 2px 0;
  color: #0000ff;
}
.legacy-current-form .code-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 6px;
  min-width: 0;
}
.legacy-current-form .legacy-date-input {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legacy-current-form .legacy-date-input input[type="checkbox"] {
  width: 13px;
  min-height: 13px;
}
.legacy-current-form .legacy-date-input input[type="date"] {
  flex: 1;
  min-width: 0;
}
.legacy-current-form .notes-row {
  grid-column: 1 / -1;
}
.legacy-current-form .notes-row textarea {
  grid-column: auto;
}
.access-button {
  min-height: 24px;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #add8e6;
  color: #0000ff;
  padding: 3px 12px;
  font: 11px "Microsoft Sans Serif", Arial, sans-serif;
  font-weight: 400;
}
.access-button:hover {
  background: #9ed0df;
}
.access-button:disabled {
  color: #ff0000;
  opacity: .75;
  cursor: default;
}
.danger-text {
  color: #ff0000;
}
.remove-surcharge-button {
  grid-column: 2;
  width: 150px;
  justify-self: end;
}
.clear-new-button {
  grid-column: 2;
  width: 150px;
  justify-self: start;
}
.edit-record-button,
.save-record-button {
  grid-column: 2;
  width: 150px;
  justify-self: end;
}
.legacy-port-maintenance {
  grid-column: 1;
  width: 410px;
  justify-self: center;
  min-height: 320px;
}
.legacy-group-list {
  grid-column: 2;
  width: 492px;
  min-height: 320px;
}
.purple-help {
  margin: 34px auto 30px;
  width: 270px;
  color: #b000b0;
  font-size: 11px;
}
.port-maint-form {
  display: grid;
  grid-template-columns: 120px 180px;
  gap: 8px 10px;
  justify-content: center;
  font-size: 11px;
}
.port-maint-form label {
  display: contents;
}
.port-maint-form input {
  border: 1px solid #888;
  border-radius: 0;
  min-height: 22px;
  padding: 2px 4px;
  font: inherit;
}
.port-maint-form button {
  margin-top: 18px;
  width: 75px;
}
.group-list-grid {
  height: 256px;
  margin-top: 26px;
}
.group-list-grid table {
  min-width: 100%;
}
.delete-port-group-form {
  margin-top: 10px;
  text-align: center;
}
.legacy-advanced-surcharge {
  margin-top: 28px;
  max-width: 1280px;
}
.legacy-advanced-surcharge > summary {
  cursor: pointer;
  color: #000080;
  font-weight: 700;
  margin-bottom: 10px;
}
.access-contracts-page {
  padding: 0 34px 72px;
  font-family: "Microsoft Sans Serif", Arial, sans-serif;
  color: #000;
  min-width: 1100px;
}
.access-contracts-page .access-screen-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.access-contracts-page > .notice,
.access-contracts-page > .error {
  margin: 8px 0;
}
.legacy-contract-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 738px) minmax(520px, 720px);
  gap: 18px;
  align-items: start;
  margin-top: 36px;
}
.legacy-contract-grid-frame {
  min-height: 306px;
  border: 2px solid #333;
  background: #eeeeee;
  overflow: auto;
}
.legacy-contract-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.legacy-contract-table th,
.legacy-contract-table td {
  height: 28px;
  padding: 3px 5px;
  border: 1px solid #b8b8b8;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legacy-contract-table th {
  height: 20px;
  background: #ffa500;
  color: #000;
  font-weight: 400;
}
.legacy-contract-selector-col {
  width: 50px;
}
.legacy-contract-carrier-col {
  width: 170px;
}
.legacy-contract-region-col,
.legacy-contract-number-col {
  width: 170px;
}
.legacy-contract-commodity-col {
  width: auto;
}
.legacy-contract-table tr[data-legacy-contract-row] {
  cursor: default;
}
.legacy-contract-table tr[data-legacy-contract-row]:focus {
  outline: 1px dotted #000;
  outline-offset: -3px;
}
.legacy-contract-table tr.selected td {
  background: #0877d6;
  color: #fff;
}
.legacy-contract-table tr.selected .selector-col {
  background: #0877d6;
}
.legacy-contract-table .selector-col {
  color: #fff;
  text-align: left;
  font-size: 16px;
  line-height: 1;
}
.legacy-contract-editor {
  min-height: 318px;
  border: 1px solid #666;
  background: #eeeeee;
  padding: 12px 92px 24px 24px;
}
.legacy-contract-instruction {
  margin: 0 0 84px;
  color: #000080;
  font-size: 12px;
}
.legacy-contract-fields {
  display: grid;
  grid-template-columns: 146px minmax(320px, 1fr);
  gap: 12px 10px;
  align-items: start;
}
.legacy-contract-fields label {
  margin-top: 4px;
  text-align: right;
  font-size: 12px;
  font-weight: 400;
}
.legacy-contract-fields input,
.legacy-contract-fields textarea {
  width: 100%;
  min-height: 24px;
  border: 1px solid #c7c7c7;
  background: #fff;
  color: #000;
  font: 12px "Microsoft Sans Serif", Arial, sans-serif;
  padding: 3px 5px;
  box-shadow: none;
}
.legacy-contract-fields textarea {
  min-height: 68px;
  resize: vertical;
}
.legacy-contract-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 42px 0 0 150px;
}
.legacy-contract-actions button {
  min-height: 34px;
  min-width: 88px;
  border: 2px solid #b8b8b8;
  background: #c7e7f5;
  color: #004467;
  font: 12px "Microsoft Sans Serif", Arial, sans-serif;
  font-weight: 400;
  padding: 4px 18px;
  box-shadow: inset 1px 1px 0 #eef9ff;
}
.legacy-contract-actions button:disabled {
  color: #777;
  cursor: default;
  opacity: 0.7;
}
.legacy-contract-actions .legacy-delete-button {
  color: #ff0000;
}
.legacy-contract-tools {
  margin-top: 24px;
  border: 1px solid #808080;
  background: #eeeeee;
  padding: 8px 10px 12px;
}
.legacy-contract-tools > summary {
  cursor: pointer;
  color: #000080;
  font-weight: 700;
  min-height: 26px;
}
.legacy-contract-tools .workflow-panel {
  margin-top: 10px;
}
.access-contracts-page .contract-create-grid {
  grid-template-columns: 150px minmax(220px, 1fr);
  align-items: end;
}
.access-contracts-page .contract-create-grid label,
.access-contracts-page .contract-create-grid .wide-field {
  grid-column: 1 / -1;
}
.access-contracts-page .contract-number-pick {
  display: grid;
  grid-template-columns: 1fr;
}
.access-contracts-page .contract-number-pick select {
  max-width: none;
}
.access-profit-page {
  padding: 0 24px 28px;
  font-family: "Microsoft Sans Serif", Arial, sans-serif;
  color: #000;
}
.legacy-rate-header {
  min-width: 1280px;
  margin: 10px 0 8px;
  border: 1px solid #777;
  background: #eeeeee;
  padding: 16px 22px 12px;
  font-size: 12px;
}
.legacy-header-row {
  display: grid;
  grid-template-columns: 145px 250px 150px 1fr 190px 110px 110px 200px;
  gap: 14px;
  align-items: center;
}
.legacy-header-row label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}
.legacy-header-row select,
.legacy-header-row input {
  height: 24px;
  border: 1px solid #999;
  background: #fff;
}
.legacy-session {
  justify-self: center;
  align-self: start;
  font-weight: 600;
}
.legacy-profit-contract {
  grid-template-columns: max-content 54px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.legacy-refresh-profit {
  grid-template-columns: max-content 54px;
  align-items: center;
  gap: 6px;
}
.legacy-refresh-button {
  min-height: 30px;
  border: 3px solid #d488d8;
  background: #ff56df;
  font-weight: 700;
}
.process-button {
  color: #008000;
  font-weight: 700;
}
.header-clear {
  min-height: 30px;
}
.legacy-check {
  display: inline-flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.legacy-profit-tabs {
  min-width: 900px;
  display: grid;
  grid-template-columns: 230px 310px 310px;
  gap: 0;
  align-items: end;
  margin: 0;
}
.legacy-profit-tabs span,
.legacy-profit-tabs strong {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #999;
  border-bottom: 0;
  background: #eeeeee;
  font-size: 13px;
  font-weight: 400;
}
.legacy-profit-tabs strong {
  background: #ffb6c1;
}
.legacy-profit-shell {
  min-width: 1280px;
  min-height: 650px;
  overflow-x: auto;
  border: 2px inset #ddd;
  background: #fff;
  padding: 24px 26px 28px;
}
.legacy-profit-top {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.legacy-profit-form {
  position: relative;
  width: 1122px;
  height: 222px;
  border: 1px solid #777;
  background: #fff;
  font-size: 15px;
}
.legacy-profit-form .field {
  position: absolute;
  display: grid;
  grid-template-columns: 100px max-content;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.legacy-profit-form select,
.legacy-profit-form input {
  height: 25px;
  border: 1px solid #999;
  border-radius: 0;
  background: #fff;
  padding: 2px 4px;
  font: 14px "Microsoft Sans Serif", Arial, sans-serif;
}
.legacy-profit-form input[name="origin"],
.legacy-profit-form input[name="destination"] {
  text-transform: uppercase;
}
.customer-field { left: 16px; top: 14px; }
.customer-field select { width: 360px; }
.scac-field { left: 16px; top: 50px; }
.scac-field select { width: 112px; }
.origin-field { left: 16px; top: 86px; }
.origin-field input { width: 275px; }
.destination-field { left: 16px; top: 190px; }
.destination-field input { width: 175px; }
.profit20-field { left: 443px; top: 50px; grid-template-columns: 96px 70px; }
.profit40-field { left: 443px; top: 80px; grid-template-columns: 96px 70px; }
.profit40hc-field { left: 443px; top: 110px; grid-template-columns: 96px 70px; }
.profit20-field input,
.profit40-field input,
.profit40hc-field input { width: 70px; }
.effective-field { left: 310px; top: 190px; grid-template-columns: 70px 135px; }
.effective-field input { width: 135px; }
.legacy-required {
  position: absolute;
  color: #ff0000;
  font-size: 22px;
}
.customer-required { left: 482px; top: 20px; }
.scac-required { left: 232px; top: 56px; }
.legacy-help {
  position: absolute;
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}
.origin-help { left: 16px; top: 118px; color: #0000ff; }
.except-title { left: 16px; top: 151px; color: #a52a2a; }
.except-example { left: 16px; top: 178px; color: #a52a2a; }
.routing-help { left: 16px; top: 208px; color: #0000ff; }
.profit-help {
  left: 520px;
  top: 4px;
  width: 470px;
  color: #ff0000;
  font-size: 14px;
}
.clear-profit-button { position: absolute; left: 720px; top: 86px; width: 142px; color: #008000; background: #eeeeee; }
.delete-profit-button { position: absolute; left: 915px; top: 86px; width: 142px; background: #d0d0d0; }
.add-profit-button { position: absolute; left: 720px; top: 136px; width: 142px; background: #eeeeee; }
.update-profit-button { position: absolute; left: 915px; top: 136px; width: 142px; background: #d0d0d0; }
.legacy-add-customer fieldset {
  width: 420px;
  height: 185px;
  border: 1px solid #ddd;
  padding: 18px;
  font-size: 15px;
}
.legacy-add-customer legend {
  padding: 0 8px;
}
.legacy-add-customer label {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}
.legacy-add-customer input {
  height: 25px;
  border: 1px solid #999;
  text-transform: uppercase;
}
.legacy-add-customer button {
  display: block;
  margin: 6px auto 0;
  background: #eeeeee;
  color: #000;
}
.legacy-grid-help {
  width: 640px;
  margin: 8px 0 8px 330px;
  color: #0000ff;
  font-size: 15px;
}
.legacy-profit-grid {
  width: 1280px;
  height: 390px;
  overflow: auto;
  border: 2px solid #222;
  background: #a9a9a9;
}
.legacy-profit-grid table {
  width: 1052px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 16px;
}
.legacy-profit-grid th,
.legacy-profit-grid td {
  border: 1px solid #b8b8b8;
  height: 27px;
  padding: 2px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legacy-profit-grid th {
  background: #fff;
  font-weight: 400;
  text-align: left;
}
.legacy-profit-grid .selector-col {
  width: 32px;
  text-align: center;
  padding: 0;
}
.legacy-profit-grid th:nth-child(2),
.legacy-profit-grid td:nth-child(2),
.legacy-profit-grid th:nth-child(3),
.legacy-profit-grid td:nth-child(3),
.legacy-profit-grid th:nth-child(4),
.legacy-profit-grid td:nth-child(4),
.legacy-profit-grid th:nth-child(5),
.legacy-profit-grid td:nth-child(5),
.legacy-profit-grid th:nth-child(6),
.legacy-profit-grid td:nth-child(6),
.legacy-profit-grid th:nth-child(7),
.legacy-profit-grid td:nth-child(7),
.legacy-profit-grid th:nth-child(8),
.legacy-profit-grid td:nth-child(8) {
  width: 126px;
}
.legacy-profit-grid th:nth-child(9),
.legacy-profit-grid td:nth-child(9) {
  width: 124px;
}
.legacy-profit-grid td.num,
.legacy-profit-grid th.num {
  text-align: center;
}
.legacy-profit-grid tr.selected td:nth-child(1),
.legacy-profit-grid tr.selected td:nth-child(2) {
  background: #0078d7;
  color: #fff;
}
.access-system-update-page .workflow-grid {
  grid-template-columns: minmax(0, 1fr);
}
.login-marketing-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(90deg, rgba(3, 17, 35, 0.86) 0%, rgba(3, 17, 35, 0.68) 42%, rgba(3, 17, 35, 0.2) 100%),
    url("/assets/cargo-ship.jpg") center / cover no-repeat;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.login-marketing-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(216, 227, 235, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 48px rgba(9, 34, 63, .12);
  backdrop-filter: blur(16px);
}
.login-marketing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(128px, 14vw, 168px);
  height: 56px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.login-marketing-brand:hover,
.login-marketing-nav a:hover,
.login-marketing-cta:hover,
.login-panel .button-link:hover {
  text-decoration: none;
}
.login-marketing-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-marketing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  overflow: visible;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}
.login-marketing-nav a {
  padding: 0;
  border-radius: 0;
  color: #34506c;
}
.login-marketing-nav a:hover {
  color: #057886;
}
.login-marketing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  background: #09223f;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.login-marketing-main {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 86px 24px 72px;
}
.login-marketing-page .login-panel {
  width: min(100%, 410px);
  padding: 28px;
  border: 1px solid rgba(216, 227, 235, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(9, 34, 63, .24);
  color: #09223f;
}
.login-marketing-kicker {
  margin: 0 0 9px;
  color: #0a9eab;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.login-marketing-page .login-panel h1 {
  margin: 0 0 20px;
  color: #09223f;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}
.login-marketing-page .login-panel form {
  display: grid;
  gap: 14px;
}
.login-marketing-page .login-panel label {
  color: #10233d;
  font-size: 13px;
  font-weight: 750;
}
.login-marketing-page .login-panel input[type="text"],
.login-marketing-page .login-panel input[type="password"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b8c7d4;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: #10233d;
  font: inherit;
  box-shadow: none;
}
.login-marketing-page .login-panel input:focus {
  border-color: #0a9eab;
  outline: 3px solid rgba(10, 158, 171, .2);
}
.login-marketing-page .password-field {
  grid-template-columns: minmax(0, 1fr) 70px;
}
.login-marketing-page .password-field input[type="text"],
.login-marketing-page .password-field input[type="password"] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.login-marketing-page .password-field .password-toggle {
  min-height: 42px;
  border-color: #b8c7d4;
  border-left: 0;
  background: #f7fafc;
  color: #09223f;
  font-size: 13px;
  font-weight: 800;
}
.login-marketing-page .password-field .password-toggle:hover {
  background: #edf5f8;
}
.login-marketing-page .login-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}
.login-marketing-page .login-actions button,
.login-marketing-page .login-actions .button-link {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.login-marketing-page .login-actions button {
  background: #0a9eab;
  color: #fff;
}
.login-marketing-page .login-actions button:hover {
  background: #057886;
}
.login-marketing-page .login-actions .login-reset-button {
  border-color: #c8d6df;
  background: #f7fafc;
  color: #09223f;
}
.login-marketing-page .login-actions .login-reset-button:hover {
  background: #edf5f8;
}
.login-marketing-page .error {
  margin: 0;
  color: #b42318;
  font-weight: 750;
}
.login-marketing-footer {
  padding: 0 24px 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 800px) {
  .login-marketing-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 20px);
    min-height: 64px;
    margin-top: 10px;
    padding: 8px 10px;
    gap: 10px;
  }
  .login-marketing-brand {
    width: min(34vw, 142px);
    height: 46px;
  }
  .login-marketing-nav {
    display: none;
  }
  .login-marketing-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .login-marketing-main {
    padding: 48px 20px 46px;
  }
  .login-marketing-page .login-panel {
    padding: 22px;
  }
  .login-marketing-page .login-actions {
    grid-template-columns: 1fr;
  }
  .topbar { padding: 0 14px; gap: 10px; }
  nav { gap: 2px; }
  .page { padding: 18px; }
  .metrics, .split, .filters, .profit-filters, .surcharge-filters, .master-filters, .request-grid, .compact-fields, .contract-create-grid, .surcharge-entry-grid, .profit-entry-grid, .reference-entry-grid, .admin-partner-form, .workflow-grid, .maintenance-grid { grid-template-columns: 1fr; }
  .contract-create-grid .wide-field, .surcharge-entry-grid .wide-field, .profit-entry-grid .wide-field, .reference-entry-grid .wide-field, .admin-partner-form .wide-field { grid-column: auto; }
  .admin-action-list > div { grid-template-columns: 1fr; }
  .workflow-wide { grid-column: auto; }
  .page-heading { display: grid; align-items: start; }
  .access-step-strip { grid-template-columns: 1fr; }
  .access-statusbar { display: grid; }
  .access-import-selection-strip,
  .access-import-page .contract-create-grid,
  .access-contracts-page,
  .legacy-contract-workspace,
  .access-master-page .master-filters,
  .access-master-tabs,
  .access-surcharge-page .surcharge-filters,
  .access-profit-page .profit-entry-grid,
  .access-profit-page .profit-filters,
  .db-workbench,
  .db-sql-builder,
  .db-toolbar,
  .db-sql-form {
    grid-template-columns: 1fr;
  }
  .db-sql-form .wide-field { grid-column: auto; }
  .db-navpane { border-right: 0; border-bottom: 1px solid #b8c4d6; }
  .access-import-selection-strip {
    padding: 12px;
  }
  .access-region-picker {
    grid-template-columns: max-content minmax(0, 1fr);
  }
  .access-contracts-page {
    min-width: 0;
    padding: 12px;
  }
  .legacy-contract-editor {
    padding-right: 24px;
  }
  .legacy-contract-fields {
    grid-template-columns: 1fr;
  }
  .legacy-contract-fields label {
    text-align: left;
  }
  .legacy-contract-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 1250px) {
  .legacy-surcharge-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .legacy-current-record,
  .legacy-port-maintenance,
  .legacy-group-list {
    grid-column: 1;
    width: auto;
    justify-self: stretch;
  }
}
