:root {
  color-scheme: light;
  --ink: #17322f;
  --muted: #62746f;
  --line: #dce5df;
  --accent: #176348;
  --bg: #f5f7f3;
}
#scan-review { margin-top: 28px; }
#source-record-rows pre, #source-commercial-terms pre, #access-review-rows pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 34rem; }
#source-record-rows select { min-width: 12rem; }
.grant-row { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; padding: 12px; }
.grant-row legend { max-width: 100%; overflow-wrap: anywhere; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
}
button:hover {
  background: #edf4ed;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #104e38;
}
input,
select {
  width: 100%;
  border: 1px solid #b8c9bf;
  border-radius: 6px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 42px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
label + label {
  margin-top: 14px;
}
:focus-visible {
  outline: 3px solid #d18b24;
  outline-offset: 3px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 6px 0 12px;
}
h2 {
  font-size: 21px;
  margin: 0;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.brand-mark {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -5px;
}
.brand-mark span {
  color: #dc9a3b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 18px;
}
.brand strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 25px;
}
.login-card {
  width: min(100%, 450px);
  background: white;
  border: 1px solid var(--line);
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 20px 70px #17322f0b;
}
.login-card .primary {
  width: 100%;
  margin-top: 24px;
}
.login-card small {
  display: block;
  font-size: 12px;
}
.workspace {
  display: flex;
  min-height: 100dvh;
}
.workspace[hidden],
[hidden] {
  display: none !important;
}
aside {
  width: 245px;
  flex-shrink: 0;
  padding: 28px 20px;
  background: #fdfefb;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-top: 50px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: none;
  border-color: transparent;
  font-weight: 500;
}
nav button[aria-current="page"] {
  background: #e5eee6;
  color: #14583f;
  font-weight: 700;
}
.sidebar-foot {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-block;
  background: #f1eadc;
  border: 1px solid #ddcba6;
  padding: 3px 9px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.content {
  flex: 1;
  min-width: 0;
}
header {
  padding: 18px 35px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}
header > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
header button {
  padding: 5px 12px;
}
main {
  padding: 32px;
  max-width: 1650px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.heading > button {
  flex-shrink: 0;
}
.product-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}
.product-strip span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 18px;
  flex: 1;
  white-space: nowrap;
  font-weight: 600;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 26px 0 16px;
  flex-wrap: wrap;
}
.toolbar label {
  min-width: 180px;
  margin: 0;
}
.toolbar > label:first-child {
  flex: 1;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
#costs-page th { white-space: normal; }
#costs-page h2 { margin-top: 24px; }
#usage-detail-rows pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 28rem; }
#bill-review table { table-layout: fixed; min-width: 760px; }
#bill-review th:nth-child(1) { width: 26%; }
#bill-review th:nth-child(2) { width: 20%; }
#bill-review th:nth-child(3) { width: 18%; }
#bill-review th, #bill-review td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
#bill-review-rows input, #bill-review-rows button { display: block; margin: 6px 0; }
#monthly-rate-review table { table-layout: fixed; min-width: 760px; }
#monthly-rate-review th, #monthly-rate-review td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
#monthly-rate-review pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#monthly-rate-review-rows input, #monthly-rate-review-rows button { display: block; margin: 6px 0; }
#books-monthly-rate-form textarea { width: 100%; font: inherit; border: 1px solid #b8c9bf; border-radius: 6px; padding: 10px 12px; color: var(--ink); }
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
caption {
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
}
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: #f8faf6;
}
th,
td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
td {
  font-size: 13px;
}
td small {
  display: block;
  font-size: 11px;
}
.empty {
  text-align: center;
  white-space: normal;
  padding: 45px 20px;
  color: var(--muted);
}
.directory {
  margin-top: 18px;
  color: var(--muted);
}
.directory ul {
  padding-left: 20px;
}
#notice:not(:empty) {
  padding: 12px 16px;
  background: #fff7e7;
  border: 1px solid #efdbb3;
  border-radius: 7px;
  margin: 15px 0;
}
#notice.error,
#login-error {
  color: #9a302c;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  width: min(94vw, 540px);
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #122d2859;
}
#allocation-dialog, #monthly-cost-dialog { width: min(94vw, 980px); }
#allocation-plan-dialog { width: min(94vw, 1100px); }
#diagnostics-dialog { width: min(94vw, 1100px); }
#diagnostics-dialog td { overflow-wrap: anywhere; }
#product-command-dialog { width: min(94vw, 850px); }
#crm-suite-register-dialog { width: min(94vw, 900px); }
#crm-suite-register-dialog td { overflow-wrap: anywhere; }
#product-command-dialog td { overflow-wrap: anywhere; }
#product-command-account { overflow-wrap: anywhere; }
#allocation-plan-dialog td { overflow-wrap: anywhere; }
#allocation-plan-dialog select { min-width: 130px; max-width: 260px; }
#allocation-dialog td, #monthly-cost-dialog td { overflow-wrap: anywhere; }
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-heading button {
  font-size: 23px;
  padding: 0 9px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.grid2 label {
  margin: 0;
}
dialog form > .primary {
  margin-top: 20px;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
}
.skip:focus {
  top: 10px;
  background: white;
  z-index: 100;
  padding: 10px;
}
@media (max-width: 850px) {
  aside {
    width: 190px;
    padding: 20px 12px;
  }
  main {
    padding: 24px 18px;
  }
  header {
    padding: 14px 18px;
  }
  .brand {
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .workspace {
    display: block;
  }
  aside {
    width: 100%;
    height: auto;
    position: static;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    font-size: 30px;
  }
  .nav-caption,
  .sidebar-foot p {
    display: none;
  }
  nav {
    display: flex;
    gap: 3px;
    overflow: auto;
    margin-top: 12px;
  }
  nav button {
    font-size: 12px;
    white-space: nowrap;
    padding: 9px;
  }
  .sidebar-foot {
    position: absolute;
    right: 16px;
    top: 20px;
  }
  header {
    font-size: 11px;
  }
  header > span {
    display: none;
  }
  header > div {
    width: 100%;
    justify-content: space-between;
  }
  h1 {
    font-size: 24px;
  }
  .heading {
    align-items: start;
  }
  .product-strip span {
    padding: 9px;
    font-size: 12px;
    flex-basis: 40%;
  }
  .toolbar > button {
    flex: 1;
    font-size: 12px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 25px;
  }
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid > label + label { margin-top: 0; }
#rate-history pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#cost-policy-page th { white-space: normal; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
#product-user-memberships-dialog, #user-directory-dialog { width: min(900px, calc(100vw - 32px)); }

#catalogue-dialog { width: min(94vw, 1100px); }
#catalogue-dialog td { overflow-wrap: anywhere; }
#catalogue-dialog .price-terms { white-space: pre-line; }

#product-command-before, #product-command-after { white-space: pre-line; overflow-wrap: anywhere; }
#product-command-price-fields { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
#catalogue-rows td:last-child button { margin: 4px; }

#connect-observability-dialog { width: min(94vw, 1050px); }
#connect-observability-dialog td { overflow-wrap: anywhere; }
#connect-summary-counts dd { font-size: 1.6rem; margin: 8px 0 18px; font-weight: 700; }

#connect-organizations-dialog { width: min(94vw, 1150px); }
#connect-organizations-dialog table { table-layout: fixed; min-width: 800px; }
#connect-organizations-dialog th, #connect-organizations-dialog td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
#connect-organization-rows button { display: block; margin: 6px 0 0; }

#gst-directory-dialog { width: min(94vw, 1150px); }
#gst-directory-dialog table { table-layout: fixed; min-width: 800px; }
#gst-directory-dialog th, #gst-directory-dialog td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
#gst-directory-rows button { display: block; margin: 6px 0 0; }
#gst-profile-dialog { width: min(94vw, 900px); }
#gst-profile-fields dd { margin: 6px 0 18px; overflow-wrap: anywhere; }
#gst-administrator-review-dialog { width: min(94vw, 900px); }
#gst-administrator-review-fields dd { margin: 6px 0 18px; overflow-wrap: anywhere; }
#gst-administrator-review-dialog th, #gst-administrator-review-dialog td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }

#gst-archived-label { display: flex; flex-direction: row; align-items: center; align-self: center; gap: 8px; }
#gst-archived-label input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: 0 0 16px; }
