:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #22364b;
  background: #eef2f6;
  font-synthesis: none;
  --ink: #22364b;
  --brand: #285e84;
  --muted: #516478;
  --line: #d5dfe8;
  --tint: #e6f0f7;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.carrier {
  --brand: #494982;
  --ink: #30314f;
  --tint: #ecebf7;
}
.simulation {
  background: #dce8ee;
  color: #365163;
  text-align: center;
  padding: 7px 20px;
  font-size: 12px;
  border-bottom: 1px solid #bcced9;
}
.carrier .simulation {
  background: #e4e2ef;
  color: #494864;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4%;
  background: var(--paper);
  border-bottom: 3px solid var(--brand);
  gap: 20px;
}
.brand {
  color: var(--brand);
  font-size: 23px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.6px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav form {
  margin: 0;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
main {
  max-width: 1320px;
  margin: 30px auto;
  padding: 0 30px 50px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin: 8px 0 12px;
}
h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}
.muted,
small {
  color: var(--muted);
}
.toolbar,
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.toolbar form {
  display: flex;
  gap: 8px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 24px;
  margin: 20px 0;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}
.grid > * {
  min-width: 0;
}
.grid .panel {
  margin-top: 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0;
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.facts dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.balance {
  font:
    600 30px/1.3 "Courier New",
    monospace;
  letter-spacing: -1px;
  color: var(--ink);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f6f8fa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td a {
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 3px;
}
.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  background: var(--tint);
  color: var(--brand);
  font-size: 12px;
  border-radius: 3px;
}
.paid {
  background: #e3f1e9;
  color: #216546;
}
.pending {
  background: #fff0d7;
  color: #855d17;
}
.notice {
  padding: 12px 16px;
  background: var(--tint);
  border-left: 3px solid var(--brand);
  margin: 16px 0;
}
.notice.error {
  background: #f9e7e5;
  border-color: #b43b37;
  color: #88302e;
}
.notice.success {
  background: #e3f1e9;
  border-color: #36805b;
  color: #225b3f;
}
label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 14px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid #aebdcb;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
}
input[readonly] {
  background: #f1f4f7;
  color: var(--muted);
}
button,
.button {
  display: inline-block;
  border: 1px solid var(--brand);
  border-radius: 4px;
  padding: 9px 16px;
  font:
    600 14px/1.5 Arial,
    sans-serif;
  background: var(--brand);
  color: white;
  cursor: pointer;
  text-decoration: none;
}
.secondary {
  background: white;
  color: var(--brand);
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--brand);
  font-weight: 400;
  text-decoration: underline;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.actions form {
  margin: 0;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #bd8312;
  outline-offset: 3px;
}
details {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details[open] summary {
  margin-bottom: 16px;
}
.login {
  width: min(430px, calc(100% - 40px));
  margin: 80px auto;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  padding: 32px;
  border-radius: 5px;
}
.login button {
  width: 100%;
  margin-bottom: 20px;
}
.qr {
  display: block;
  width: min(320px, 100%);
  margin: 20px auto;
}
.ledger {
  padding: 0;
  list-style: none;
}
.ledger li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.ledger time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.intro {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 24px;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.intro-grid .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.intro-grid p {
  flex: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
@media (max-width: 800px) {
  header,
  .heading,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  main {
    padding: 0 16px 30px;
    margin-top: 20px;
  }
  .grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 25px;
  }
  .balance {
    font-size: 26px;
  }
}

#portal-account {
  text-transform: none;
  letter-spacing: 0;
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* SICOR uses the compact record-and-ledger layout of a broker office. */
.erp {
  --brand: #263c55;
  --ink: #243344;
  --muted: #526578;
  --line: #bcc7d2;
  --tint: #e8edf3;
  background: #f4f6f8;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
}
.sicor-header {
  padding: 14px 24px;
  background: #263c55;
  color: #fff;
  border-bottom: 3px solid #8197ad;
}
.sicor-header .brand {
  color: white;
  font-size: 26px;
  letter-spacing: 1px;
}
.sicor-header small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: #d2dce6;
}
.sicor-header .office {
  margin-left: auto;
  text-align: right;
}
.sicor-header form {
  margin: 0;
}
.sicor-header button {
  padding: 5px 14px;
}
.sicor-layout {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  min-height: calc(100vh - 117px);
}
.sicor-nav {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  background: #e7ecf1;
  border-right: 1px solid var(--line);
  padding: 20px 0;
}
.sicor-nav a {
  padding: 12px 18px;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sicor-nav a:hover {
  background: #dbe3eb;
}
.sicor-nav a[aria-current] {
  background: #fff;
  border-left-color: #263c55;
  font-weight: 700;
}
.sicor-nav a:last-child {
  margin-top: 24px;
  font-size: 11px;
}
.sicor-layout main {
  width: 100%;
  max-width: 1600px;
  margin: 0;
  padding: 22px 26px 40px;
  min-width: 0;
}
.sicor-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.sicor-title .eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.8px;
}
.sicor-title h1 {
  font-size: 23px;
  margin: 5px 0 16px;
  letter-spacing: -0.4px;
}
.operator {
  color: var(--muted);
  font-size: 11px;
}
.erp .toolbar {
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.erp .panel {
  border-radius: 2px;
  padding: 18px;
  margin: 16px 0;
}
.erp h2 {
  font-size: 15px;
  margin-bottom: 15px;
}
.erp .table-wrap {
  border-radius: 2px;
}
.erp th {
  background: #e9eef3;
  color: #31465b;
  padding: 9px 12px;
  font-size: 11px;
}
.erp td {
  padding: 10px 12px;
  font-size: 12px;
  vertical-align: top;
}
.erp tr:nth-child(even) {
  background: #fafbfc;
}
.erp tbody tr:hover {
  background: #eef3f8;
}
.erp td strong {
  font-variant-numeric: tabular-nums;
}
.erp input,
.erp select,
.erp textarea {
  padding: 7px 9px;
  font-size: 13px;
  border-radius: 2px;
}
.erp button,
.erp .button {
  padding: 7px 13px;
  font-size: 12px;
  border-radius: 2px;
}
.erp label {
  font-size: 11px;
}
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: #edf1f5;
}
.filter-grid label {
  flex: 1 1 155px;
  margin: 0;
}
.filter-grid button {
  margin-bottom: 0;
}
.grid-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 11px;
}
.grid-footer a {
  margin-left: 14px;
}
.tabs {
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #8194a7;
  margin: 14px 0 20px;
  flex-wrap: wrap;
}
.tabs a {
  padding: 10px 14px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 12px;
}
.tabs a[aria-current] {
  border: 1px solid #8194a7;
  border-bottom-color: #fff;
  background: #fff;
  margin-bottom: -1px;
  font-weight: 700;
}
.erp .facts {
  gap: 16px;
}
.erp .facts dd {
  font-size: 13px;
}
.form-actions,
.wide {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 11px;
  margin: 16px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.erp .empty {
  padding: 32px 20px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .sicor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sicor-header {
    padding: 12px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .sicor-header .office {
    display: none;
  }
  .sicor-header form {
    margin-left: auto;
  }
  .sicor-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0;
  }
  .sicor-nav a {
    padding: 9px 12px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .sicor-nav a[aria-current] {
    border-bottom-color: #263c55;
  }
  .sicor-nav a:last-child {
    margin: 0;
    padding: 11px 12px;
  }
  .sicor-layout main {
    padding: 18px 14px 30px;
  }
  .sicor-title {
    align-items: flex-start;
  }
  .operator {
    display: none;
  }
  .tabs a {
    padding: 8px 10px;
  }
  .erp .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  .simulation,
  .sicor-header,
  .sicor-nav,
  .filter-grid,
  .toolbar,
  .tabs,
  .operator,
  footer {
    display: none !important;
  }
  .sicor-layout {
    display: block;
  }
  .sicor-layout main {
    padding: 0;
    max-width: none;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  table {
    white-space: normal;
  }
  .erp td,
  .erp th {
    font-size: 8px;
    padding: 5px;
  }
  .erp .panel {
    padding: 0;
    border: 0;
  }
  tr {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  thead {
    display: table-header-group;
  }
}

.erp .toolbar form {
  align-items: center;
}
.erp .toolbar button {
  white-space: nowrap;
}
.erp .toolbar input {
  margin-top: 0;
}
