:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202e3e;
  background: #f4f6f8;
  font-synthesis: none;
  --navy: #182333;
  --muted: #6c7785;
  --line: #e0e5ea;
  --accent: #e47c47;
  --blue: #315e8d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
}
button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 10px 15px;
  color: inherit;
  font-weight: 600;
  font-size: 13px;
}
button:hover {
  background: #f4f6f8;
}
.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.primary:hover {
  background: #304156;
}
.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.danger {
  color: #a33030;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.loading {
  padding: 70px;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #d5deea;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 750;
  letter-spacing: 2px;
  font-size: 18px;
  color: #fff;
}
.brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  letter-spacing: 3px;
  font-size: 9px;
  color: #a3b0c2;
  margin-top: 5px;
  font-weight: 500;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8291a6;
  margin: 48px 12px 14px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #acbbce;
  text-align: left;
  border: 0;
  background: none;
  font-weight: 500;
  padding: 13px 14px;
}
.nav button.active {
  background: #2b384b;
  color: white;
}
.nav button:hover {
  background: #263449;
}
.nav-icon {
  font-size: 17px;
  min-width: 22px;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #334052;
  padding-top: 20px;
  font-size: 11px;
  line-height: 1.8;
  color: #9bacc3;
}
.sidebar-foot strong {
  display: block;
  color: #e2e8f0;
  font-weight: 500;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
  color: var(--muted);
}
.account {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0f3;
  color: #526275;
  font-size: 10px;
  font-weight: 700;
}
.main {
  padding: 36px 40px 48px;
  max-width: 1650px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 0 0 9px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 0 0 14px;
}
p {
  line-height: 1.6;
  margin: 8px 0;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #a26641;
  margin-bottom: 10px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 20px 22px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.stat-number {
  font-size: 30px;
  font-weight: 600;
  margin: 10px 0 5px;
  letter-spacing: -1px;
}
.stat-note {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  min-width: 230px;
  max-width: 400px;
  flex: 1;
}
.search input {
  width: 100%;
  background: #f9fafb;
}
.toolbar select {
  width: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  color: #7b8693;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  background: #fafbfc;
  padding: 13px 20px;
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  border-top: 1px solid #edf0f3;
  font-size: 12px;
  vertical-align: middle;
}
tr:hover td {
  background: #fbfcfd;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.model-button {
  border: 0;
  padding: 0;
  background: none;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  color: #253c54;
}
.model-button:hover {
  background: none;
  color: #a65c33;
}
.subline {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 360px;
  line-height: 1.5;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: #edf0f4;
  color: #68778a;
}
.chip.current {
  background: #e9f3ef;
  color: #3c7864;
}
.chip.expired {
  background: #fff2df;
  color: #96692d;
}
.chip.review,
.chip.incomplete {
  background: #f9eeea;
  color: #a45b3f;
}
.chip:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.7;
}
.notice {
  border: 1px solid #eedcc3;
  background: #fff9ef;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 12px;
  color: #876743;
  line-height: 1.6;
  margin-bottom: 22px;
}
.notice a {
  color: inherit;
}
.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.product {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.server-icon {
  width: 49px;
  height: 49px;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  background: #f4f6f8;
  display: grid;
  place-items: center;
  color: #75869a;
  font-size: 24px;
}
.product h3 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.product p {
  font-size: 12px;
  color: var(--muted);
  min-height: 39px;
}
.product-price {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 23px;
  font-weight: 600;
}
.product-price small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.product-footer {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--navy);
  padding: 65px;
  display: flex;
  flex-direction: column;
  color: white;
}
.login-story h1 {
  font-size: 50px;
  max-width: 480px;
  line-height: 1.13;
  margin-top: auto;
  letter-spacing: -2px;
}
.login-story p {
  color: #a7b6c8;
  max-width: 370px;
  font-size: 14px;
  margin-bottom: auto;
}
.login-note {
  color: #8294ad;
  font-size: 11px;
  margin-top: 60px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 340px;
}
.login-form h2 {
  font-size: 27px;
}
.login-form p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 28px;
}
.login-form button {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #617084;
  margin-bottom: 7px;
}
input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  color: #273647;
  background: white;
  max-width: 100%;
  font-size: 12px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9eb8ce;
  border-color: #9eb8ce;
}
textarea {
  resize: vertical;
  min-height: 75px;
  line-height: 1.6;
}
.field {
  margin-bottom: 17px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.error {
  background: #faeae7;
  border: 1px solid #e5bbb0;
  color: #a34532;
  font-size: 12px;
  padding: 12px;
  border-radius: 6px;
  margin: 15px 0;
}
.error:empty {
  display: none;
}
dialog {
  width: min(1120px, calc(100% - 32px));
  max-height: 92vh;
  padding: 0;
  border: 1px solid #dce2e9;
  border-radius: 12px;
  box-shadow: 0 24px 100px #132c4e35;
  color: inherit;
}
dialog::backdrop {
  background: #17283e70;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.dialog-body {
  padding: 25px 28px;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 18px;
}
.wide {
  grid-column: 1/-1;
}
.split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
.pricing-box {
  background: #f3f6f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 85px;
}
.price-pair {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 12px 0;
}
.price-pair.total {
  font-size: 20px;
  font-weight: 650;
  padding-top: 16px;
  border-top: 1px solid #dce2e8;
}
.bom td,
.bom th {
  padding: 11px 8px;
}
.bom input {
  width: 95px;
  padding: 8px;
}
.bom select {
  width: 100%;
  max-width: 340px;
  padding: 8px;
}
.bom .qty {
  width: 58px;
}
.bom .line-label {
  width: 100%;
  max-width: 340px;
}
.bom small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.bom .check-label {
  font-size: 10px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0 0;
}
.bom input[type="checkbox"] {
  width: auto;
}
.bom .remove {
  padding: 5px 9px;
}
.line-tools {
  margin: 15px 0 24px;
  display: flex;
  gap: 8px;
}
.issues {
  padding: 15px 18px;
  border-radius: 8px;
  background: #fff5e9;
  margin: 20px 0;
  font-size: 12px;
  color: #865f34;
}
.issues label {
  display: flex;
  gap: 9px;
  line-height: 1.6;
  font-weight: 400;
  color: inherit;
  margin: 8px 0;
}
.issues input {
  flex-shrink: 0;
  margin-top: 4px;
}
.preview-breakdown {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
.compact-list {
  font-size: 12px;
  line-height: 1.7;
  padding-left: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #243748;
  color: #fff;
  border-radius: 8px;
  padding: 13px 20px;
  box-shadow: 0 4px 25px #0002;
  font-size: 13px;
  z-index: 10;
  display: none;
}
.csv-preview {
  max-height: 300px;
  overflow: auto;
  margin: 20px 0;
}
.status-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.history-row {
  padding: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.history-row strong {
  font-size: 15px;
}
code {
  font-size: 11px;
  background: #edf1f5;
  padding: 3px 5px;
  border-radius: 3px;
}
.mobile-brand {
  display: none;
}
.switch {
  font-weight: 500;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .main {
    padding-top: 46px;
  }
}
@media (max-width: 1100px) {
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .sidebar {
    width: 200px;
  }
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .pricing-box {
    position: static;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  td,
  th {
    padding: 14px;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }
  .sidebar .brand {
    font-size: 15px;
  }
  .sidebar-label,
  .sidebar-foot {
    display: none;
  }
  .nav {
    flex-direction: row;
    margin-top: 18px;
    overflow: auto;
    gap: 2px;
  }
  .nav button {
    padding: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    height: 58px;
    padding: 0 20px;
  }
  .main {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 27px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-number {
    font-size: 26px;
  }
  .toolbar {
    padding: 14px;
  }
  .search {
    min-width: 100%;
    max-width: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-head,
  .dialog-body,
  .dialog-footer {
    padding: 18px;
  }
  .dialog-head h2 {
    font-size: 17px;
    overflow-wrap: anywhere;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 28px;
  }
  .login-story h1,
  .login-story p,
  .login-note {
    display: none;
  }
  .login-form-wrap {
    padding: 50px 25px;
  }
  .account {
    gap: 7px;
  }
  .avatar {
    display: none;
  }
  .bom {
    min-width: 650px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .footnote {
    font-size: 10px;
  }
}
.small {
  white-space: nowrap;
}
.cards {
  padding-top: 20px;
}
.product {
  display: flex;
  flex-direction: column;
}
.product-price {
  margin-top: auto;
}
.product > p {
  margin-bottom: 20px;
}
.unstyled {
  border: 0;
  padding: 0;
  margin: 0;
}
.catalogue-section {
  margin-top: 28px;
}
.catalogue-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.catalogue-section-heading .muted {
  font-size: 11px;
}
.catalogue-table {
  min-width: 940px;
  width: 100%;
  table-layout: fixed;
}
.catalogue-table td:first-child {
  width: auto;
}
.catalogue-table .empty {
  padding: 24px;
}
.catalogue-section .empty {
  padding: 26px;
  text-align: left;
}
.catalogue-title { font-size: 20px; letter-spacing: -.4px; color: var(--navy); margin: 0; }
.catalogue-toolbar { padding: 0; justify-content: space-between; }
.catalogue-search { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.catalogue-search button { display: inline-flex; align-items: center; gap: 8px; }
.catalogue-search .search { width: 320px; flex: none; }
.catalogue-search [hidden] { display: none; }
.catalogue-section { margin-top: 24px; }
.catalogue-section h2 { font-size: 18px; }
.catalogue-table th { font-size: 10px; padding: 13px 10px; }
.catalogue-table td { padding: 20px 10px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.catalogue-table th:first-child { width: 16%; }
.catalogue-table th:nth-child(2) { width: 5%; }
.catalogue-table th:nth-child(3) { width: 14%; }
.catalogue-table th:nth-child(4) { width: 10%; }
.catalogue-table th:nth-child(5) { width: 10%; }
.catalogue-table th:nth-child(6) { width: 9%; }
.catalogue-table th:nth-child(7) { width: 12%; }
.catalogue-table th:nth-child(8) { width: 11%; }
.catalogue-table th:last-child { width: 13%; }
.catalogue-table th:first-child, .catalogue-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 3px 0 7px #00000008; }
.catalogue-table th:first-child { background: #f8f9fb; }
.product-row:hover td:first-child, .product-row:focus-within td:first-child { background: #f2f5f8; }
.catalogue-table .catalogue-code { font-size: 15px; font-weight: 750; text-align: left; line-height: 1.45; }
.product-row { cursor: pointer; }
.product-row:hover, .product-row:focus-within { background: #f2f5f8; }
.catalogue-price { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.catalogue-price strong { font-size: 14px; }
.price-validity { position: relative; flex-shrink: 0; display: inline-flex; justify-content: center; align-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 12px; font-weight: 750; cursor: help; text-align: left; white-space: normal; }
.price-validity.valid { color: #287052; background: #e8f3ec; }
.price-validity.invalid { color: #946422; background: #fbf0df; }
.validity-tooltip { display: none; position: fixed; width: 240px; pointer-events: none; padding: 12px; color: #fff; background: var(--navy); border-radius: 7px; font-size: 11px; line-height: 1.6; font-weight: 400; z-index: 10; box-shadow: 0 4px 12px #0002; }
.price-validity:hover .validity-tooltip, .price-validity:focus .validity-tooltip { display: block; }
.product-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
.product-sell { text-align: right; }
.product-sell > strong { font-size: 25px; margin-right: 10px; }
.product-sell p { margin: 7px 0 0; }
dialog:has(.product-details) { max-width: 760px; }
.product-details { margin: 0; }
.product-details > div { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.product-details dt { color: var(--muted); font-size: 13px; }
.product-details dd { margin: 0; font-size: 14px; font-weight: 550; }
@media (max-width: 700px) {
  .catalogue-topbar { height: auto; padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  .catalogue-title { font-size: 17px; width: 100%; }
  .catalogue-topbar .account { width: 100%; justify-content: flex-end; min-width: 0; }
  .catalogue-topbar [data-action="account"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .catalogue-search .search { width: min(320px, 75vw); }
  .product-intro { align-items: flex-start; flex-direction: column; }
  .product-sell { text-align: left; }
  .product-details > div { grid-template-columns: 110px 1fr; gap: 15px; }
}

.mfa-qr { width: 220px; max-width: 100%; display: block; background: white; margin: 20px auto; }
.secret-key { display: block; overflow-wrap: anywhere; padding: 12px; }
.login-form form { display: grid; gap: 12px; }
.login-form details { margin: 12px 0; }
.login-form pre { font-size: 14px; line-height: 1.7; }
.login-form .notice { margin: 16px 0; }
