:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  color-scheme: dark;
  background: #0c1020;
  color: #edf0fa;
  --muted:#a1abc3;
  --line:#2b324c;
  --panel:#151c30;
  --accent:#a995ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
a {
  color: var(--accent);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #bba9ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #101528;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 750;
  text-decoration: none;
  color: #f0f1ff;
  letter-spacing: -1px;
}
.mark {
  margin-right: 9px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      #9158df,
      #516cde);
  font-size: 24px;
}
.os {
  color: #b89dff;
}
.badge {
  font-size: 10px;
  letter-spacing: .3px;
  border: 1px solid #3e3654;
  background: #241f36;
  padding: 6px 10px;
  border-radius: 20px;
  color: #c9bbeb;
}
#account-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.ghost,
.secondary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1c243c;
  color: #dce0ef;
  padding: 9px 14px;
  font-size: 12px;
}
.primary {
  background:
    linear-gradient(
      105deg,
      #8152d4,
      #506bd4);
  color: white;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.primary:hover {
  filter: brightness(1.13);
}
.danger {
  color: #ffb9bc;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--accent);
  margin: 0 0 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  letter-spacing: -1px;
}
h2 {
  font-size: 22px;
  letter-spacing: -.5px;
}
h3 {
  font-size: 15px;
}
.muted,
.subtle {
  color: var(--muted);
  line-height: 1.6;
}
.muted {
  font-size: 13px;
}
.subtle {
  font-size: 11px;
}
.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
}
.login-layout {
  max-width: 1100px;
  margin: 65px auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  padding: 25px;
}
.login-layout h1 {
  font-size: 51px;
  line-height: 1.12;
  margin: 25px 0;
}
.login-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 26px;
}
.login-card h2 {
  margin-top: 16px;
}
.login-card .primary {
  width: 100%;
  margin: 16px 0 22px;
}
.intro-list {
  margin: 32px 0;
}
.intro-list p {
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.intro-list span {
  color: var(--accent);
  font-size: 11px;
  margin-right: 14px;
}
label {
  display: block;
  font-size: 12px;
  color: #cdd3e5;
  margin: 16px 0 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #37405c;
  color: #eef0fc;
  background: #0f1629;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 7px;
  font-size: 13px;
  min-height: 40px;
}
textarea {
  min-height: 82px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #7d88a6;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-check input {
  width: auto;
  min-height: auto;
  margin: 0;
}
#workspace {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 120px);
}
aside {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #11172a;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8995b6;
}
#company-select {
  font-weight: 600;
  margin: 0;
}
#company-status {
  margin: 11px 0 24px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav button {
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #b3bdd5;
  padding: 12px;
  font-size: 12px;
}
nav button span {
  display: inline-block;
  width: 23px;
  color: #9e9dbb;
}
nav button.active {
  background: #2d2748;
  color: #ded1ff;
}
nav button.active span {
  color: #c1a8ff;
}
.sidebar-footer {
  margin-top: 60px;
  padding: 20px 8px;
  font-size: 10px;
  line-height: 1.8;
  color: #7f8ba9;
}
.sidebar-footer strong {
  font-weight: 500;
  color: #b1b9d0;
}
.content {
  padding: 32px 38px;
  min-width: 0;
  max-width: 1500px;
  width: 100%;
  margin: auto;
  align-self: start;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading h1 {
  font-size: 29px;
  margin-bottom: 0;
}
.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-form input {
  margin: 0;
  min-width: 170px;
  width: 260px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 24px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  background: var(--panel);
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 12px;
}
.stat strong {
  font-size: 23px;
  letter-spacing: -.6px;
}
.stat .subtle {
  margin-top: 9px;
  margin-bottom: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: #9da9c4;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  background: #11192b;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td .ghost {
  font-size: 10px;
  padding: 7px 9px;
}
td:first-child {
  font-weight: 550;
}
td.right,
th.right {
  text-align: right;
}
.pill {
  display: inline-block;
  border: 1px solid #403956;
  background: #29243f;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 10px;
  color: #cbb8fa;
  white-space: nowrap;
}
.pill.approved {
  color: #a9dec4;
  border-color: #315e50;
  background: #18382f;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.notice {
  padding: 16px 18px;
  border: 1px solid #3d3654;
  background: #221f36;
  border-radius: 10px;
  color: #c5badc;
  line-height: 1.7;
  font-size: 12px;
  margin: 18px 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 12px;
}
.section-heading h3 {
  margin: 0;
}
.period-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.period-form label {
  margin: 0;
  min-width: 160px;
}
.period-form button {
  height: 40px;
}
.quote-lines input {
  min-width: 80px;
  width: 100%;
  font-size: 12px;
  padding: 8px;
  margin: 0;
}
.quote-lines td {
  padding: 9px 5px;
}
.quote-lines .line-name {
  min-width: 180px;
}
.quote-lines .line-unit {
  min-width: 55px;
  max-width: 75px;
}
.quote-lines th {
  padding: 10px 5px;
}
.quote-lines .line-num {
  min-width: 90px;
  width: 105px;
}
.quote-totals {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.quote-totals div {
  font-size: 11px;
  color: var(--muted);
}
.quote-totals strong {
  display: block;
  font-size: 20px;
  color: #e4e9fb;
  margin-top: 7px;
}
.quote-totals .profit strong {
  color: #b9e6d1;
}
.history {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
#global-message:not(:empty) {
  background: #28233a;
  border: 1px solid #544367;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
}
#login-error,
#dialog-error {
  font-size: 12px;
  color: #ffc1c5;
  line-height: 1.7;
}
dialog {
  background: var(--panel);
  color: #edf0fa;
  border: 1px solid #424966;
  border-radius: 16px;
  padding: 27px;
  max-width: 550px;
  width: calc(100% - 30px);
  max-height: 90vh;
}
dialog::backdrop {
  background: #030713b8;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dialog-heading h2 {
  margin: 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 17px 32px;
  color: #7e8aa7;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.catalog-picker {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}
.catalog-picker label {
  flex: 1;
  margin: 0;
  min-width: 160px;
}
.catalog-picker select {
  min-width: 170px;
}
.paper {
  background: white;
  color: #1a2030;
  max-width: 920px;
  margin: 30px auto;
  padding: 45px;
  font-family: Arial, sans-serif;
}
.paper header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 3px solid #6d50c5;
  padding-bottom: 22px;
}
.paper h1 {
  font-size: 29px;
  margin: 10px 0;
}
.paper h2 {
  font-size: 18px;
}
.paper p {
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.paper-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #7051ac;
}
.paper-meta {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 28px 0;
}
.paper-meta small {
  font-size: 9px;
  color: #6b7280;
}
.paper-meta h2 {
  margin: 8px 0;
}
.paper th {
  background: #f3f2f7;
  color: #575164;
}
.paper td,
.paper th {
  border-color: #dcdce3;
}
.paper table {
  font-size: 11px;
}
.paper tr {
  break-inside: avoid;
}
.paper-total {
  margin: 24px 0 24px auto;
  max-width: 300px;
  break-inside: avoid;
}
.paper-total p,
.paper-total h2 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.paper-total h2 {
  border-top: 2px solid #6d50c5;
  padding-top: 13px;
}
.paper-terms {
  break-inside: avoid;
  margin-top: 20px;
}
.paper-terms h3 {
  font-size: 12px;
}
.paper footer {
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 13px;
  font-size: 9px;
  color: #777;
}
.print-toolbar {
  max-width: 920px;
  margin: 25px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.print-toolbar button {
  padding: 11px 15px;
  border-radius: 8px;
  background: #6d50c5;
  color: white;
  border: 0;
}
.print-toolbar p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
@page {
  size: A4;
  margin: 15mm;
}
@media print {
  body {
    background: white;
    color: black;
  }
  body > *:not(#document-page) {
    display: none !important;
  }
  #document-page {
    display: block !important;
  }
  .print-toolbar {
    display: none !important;
  }
  .paper {
    padding: 0;
    margin: 0;
    max-width: none;
  }
  .paper table {
    width: 100%;
  }
  .paper thead {
    display: table-header-group;
  }
  body:not(.printing) > #document-page {
    display: none !important;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 26px 23px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  #workspace {
    grid-template-columns: 205px 1fr;
  }
  .login-layout {
    gap: 45px;
  }
  .login-layout h1 {
    font-size: 43px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 18px;
    gap: 12px;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  #account-bar {
    font-size: 10px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    margin: 25px auto;
    gap: 20px;
    max-width: 500px;
  }
  .login-layout h1 {
    font-size: 36px;
  }
  .intro-list {
    display: none;
  }
  #workspace {
    display: block;
  }
  aside {
    padding: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  nav button span,
  .sidebar-footer,
  .sidebar-label {
    display: none;
  }
  #company-select {
    max-width: 320px;
  }
  #company-status {
    margin: 8px 0 12px;
  }
  .content {
    padding: 23px 17px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 19px;
  }
  .panel {
    padding: 17px;
  }
  .search-form input {
    width: 180px;
  }
  .paper {
    padding: 22px;
    margin: 15px;
  }
  .paper-meta {
    display: block;
  }
  .print-toolbar {
    margin: 15px;
  }
  .site-footer span {
    display: none;
  }
}
.login-layout {
  align-items: start;
  gap: 72px;
}
.login-card {
  padding: 30px;
  box-shadow: 0 20px 70px #03071555;
  min-width: 0;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #0c1224;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 28px;
}
.auth-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.auth-tabs button[aria-pressed=true] {
  background: #302847;
  color: #ede4ff;
  box-shadow: 0 2px 8px #0003;
}
.login-card h2 {
  font-size: 27px;
  margin: 0 0 10px;
}
.auth-description {
  min-height: 42px;
  margin-bottom: 24px;
}
.login-card input {
  margin-top: 0;
  min-height: 46px;
}
.login-card label {
  margin: 18px 0 8px;
}
.password-control {
  display: flex;
  align-items: center;
  border: 1px solid #37405c;
  border-radius: 8px;
  background: #0f1629;
}
.password-control input {
  border: 0;
  background: transparent;
  min-width: 0;
}
.password-control button {
  border: 0;
  background: none;
  color: #c4b3f5;
  font-size: 11px;
  padding: 12px;
}
.auth-links {
  text-align: right;
  margin-top: 10px;
}
.text-button {
  border: 0;
  background: none;
  color: #c3b0f4;
  padding: 4px 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-card .auth-submit {
  margin: 16px 0 0;
  min-height: 46px;
  font-size: 14px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.google-button {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid #45506c;
  border-radius: 8px;
  background: #202940;
  color: #f1f3fa;
  font-size: 14px;
  font-weight: 600;
}
.google-button:hover {
  background: #2a3450;
}
.auth-note,
.auth-footnote {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}
.auth-footnote {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.auth-resend {
  display: block;
  margin: 18px auto 0;
}
.auth-back {
  display: block;
  margin: 20px auto 0;
}
#auth-error:empty,
#auth-message:empty {
  display: none;
}
#auth-error,
#auth-message {
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}
#auth-error {
  background: #412335;
  color: #ffc3cf;
  border: 1px solid #694053;
}
#auth-message {
  background: #1b3440;
  color: #b9e5e5;
  border: 1px solid #345663;
}
@media (max-width: 760px) {
  .login-layout {
    gap: 28px;
    margin: 20px auto;
    padding: 20px;
  }
  .login-card {
    padding: 24px;
  }
  .login-layout h1 {
    font-size: 36px;
  }
  .login-layout .intro-list {
    display: none;
  }
  .login-layout .lead {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .login-layout > section:first-child {
    display: none;
  }
  .login-layout {
    margin: 10px auto;
  }
}
.branding-panel {
  margin-top: 24px;
}
.branding-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.model-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.model-choice {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
}
.model-choice:has(input:checked) {
  border-color: #ac91ff;
  background: #29213f;
}
.model-choice input {
  width: auto;
  min-height: auto;
  margin: 0 6px 8px 0;
}
.model-choice strong,
.model-choice small {
  display: block;
}
.model-choice small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.model-thumb {
  height: 80px;
  background: white;
  padding: 12px;
  display: block;
  margin-bottom: 10px;
  border-radius: 4px;
}
.model-thumb i {
  display: block;
  height: 5px;
  background: #ddd;
  margin: 7px 0;
}
.model-thumb i:first-child {
  height: 10px;
  background: #a28bcf;
}
.thumb-classic {
  border-bottom: 3px solid #a28bcf;
}
.thumb-modern {
  border-top: 9px solid #a28bcf;
}
.thumb-minimal i:first-child {
  width: 30%;
  background: #222;
}
.image-upload {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  margin: 16px 0;
}
.image-upload img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #f7f7f7;
  border-radius: 6px;
}
.branding-panel input[type=color] {
  max-width: 110px;
  padding: 3px;
  height: 44px;
}
.branding-panel input[type=file] {
  font-size: 11px;
}
#brand-message {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
}
.paper {
  position: relative;
  isolation: isolate;
  --brand-color:#6d50c5;
  --brand-tint:#6d50c512;
  color: #000 !important;
}
.paper * {
  color: #000 !important;
}
.paper > header,
.paper > .paper-meta,
.paper > h2,
.paper > table,
.paper > .paper-total,
.paper > .paper-terms,
.paper > footer {
  position: relative;
  z-index: 1;
}
.paper header {
  border-color: var(--brand-color);
}
.paper .paper-label {
  color: #000;
}
.paper .paper-identity {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.paper .paper-identity > div {
  min-width: 0;
}
.paper h1,
.paper h2,
.paper td {
  overflow-wrap: anywhere;
}
.paper-logo {
  width: 105px;
  height: 80px;
  object-fit: contain;
  flex: none;
}
.paper th {
  background: var(--brand-tint);
}
.paper-total h2 {
  border-color: var(--brand-color);
}
.paper-watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  max-height: 650px;
}
.wm-opacity-5 {
  opacity: .05;
}
.wm-opacity-10 {
  opacity: .1;
}
.wm-opacity-15 {
  opacity: .15;
}
.wm-opacity-20 {
  opacity: .2;
}
.wm-size-40 {
  width: 40%;
}
.wm-size-60 {
  width: 60%;
}
.wm-size-80 {
  width: 80%;
}
.paper-watermark.wm-bottom {
  top: auto;
  bottom: 8%;
  transform: translateX(-50%);
}
.paper.model-modern {
  border-top: 12px solid var(--brand-color);
}
.model-modern .paper-total {
  padding: 18px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-color);
  border-radius: 8px;
}
.model-modern header {
  border-bottom: 1px solid #ddd;
}
.model-modern .paper-meta {
  padding: 16px;
  border-left: 5px solid var(--brand-color);
  background: var(--brand-tint);
}
.model-minimal header {
  border-bottom: 1px solid #ddd;
}
.model-minimal th {
  background: transparent;
  border-bottom: 2px solid var(--brand-color);
}
.model-minimal .paper-total h2 {
  border-top: 1px solid #111;
}
.model-minimal .paper-label {
  letter-spacing: 3px;
}
.model-minimal .paper-meta {
  margin-top: 38px;
}
.paper tbody tr {
  background: transparent;
}
.paper footer {
  border-color: var(--brand-color);
}
@media (max-width: 760px) {
  .model-choices {
    grid-template-columns: 1fr;
  }
  .model-thumb {
    height: 55px;
  }
  .paper-logo {
    width: 70px;
    height: 60px;
  }
  .paper .paper-identity {
    gap: 10px;
  }
  .paper header {
    flex-wrap: wrap;
  }
}
@media print {
  .paper {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #000;
  }
  .paper-watermark {
    position: fixed;
    max-height: 80vh;
  }
  .paper.model-modern {
    border-top-width: 8px;
  }
  .paper header {
    break-inside: avoid;
  }
  .paper .paper-logo {
    max-width: 105px;
  }
  .paper-terms {
    break-inside: auto;
  }
  .paper-terms h3 {
    break-after: avoid;
  }
  .paper td {
    overflow-wrap: anywhere;
  }
  .paper {
    padding: 0;
    margin: 0;
  }
  .paper-meta {
    display: flex;
  }
  .paper-identity {
    display: flex;
  }
}
@media print {
  html {
    background: #fff !important;
    color-scheme: light;
  }
  body {
    background: #fff !important;
  }
}
@page {
  background: #fff;
  color: #000;
  color-scheme: light;
}
.billing-history {
  margin-top: 24px;
}
.billing-history a {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}
nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
}
nav button .nav-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: inherit;
}
nav button .nav-label {
  display: block;
  width: auto;
  color: inherit;
}
.master-contact {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.master-section {
  margin-top: 24px;
}
.master-chart {
  margin-top: 24px;
}
.master-chart svg {
  display: block;
  width: 100%;
  max-height: 260px;
}
.master-chart-data {
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.master-chart-data summary {
  cursor: pointer;
}
.plan-bars {
  display: grid;
  gap: 18px;
  margin: 20px 0;
}
.plan-bars span {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.plan-bars progress {
  width: 100%;
  accent-color: #aa8aef;
  height: 12px;
}
#master-dialog {
  max-width: 720px;
}
#master-detail h3 {
  margin-bottom: 0;
}
#master-detail .history strong {
  color: #d5c5ff;
}
@media (max-width: 760px) {
  nav button .nav-icon,
  nav button .nav-label {
    display: block;
  }
  nav button .nav-label {
    width: auto;
  }
}
:root {
  --surface:#101528;
  --input:#10172a;
  --text:#edf0fa;
  --soft:#211d38;
}
html {
  color: var(--text);
}
.topbar,
aside {
  background: var(--surface);
}
input,
textarea,
select {
  background: var(--input);
  color: var(--text);
}
.panel,
dialog,
.login-card {
  background: var(--panel);
  color: var(--text);
}
.brand {
  color: var(--text);
}
.theme-control {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.theme-control select {
  width: auto;
  min-width: 100px;
  padding: 7px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.plan-card,
.entry-card {
  border: 1px solid var(--line);
  background: var(--input);
  padding: 20px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  color: var(--text);
}
.plan-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-card input {
  width: auto;
  align-self: start;
}
.plan-card strong,
.entry-card strong {
  font-size: 17px;
}
.plan-card small,
.entry-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.entry-card {
  transition: transform .15s, border-color .15s;
}
.app-dialog {
  width: min(640px, 94vw);
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 100px #0008;
}
.app-dialog::backdrop {
  background: #060915bc;
  backdrop-filter: blur(5px);
}
.dialog-copy {
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 10px 0 24px;
}
.contract-copy {
  max-height: 48vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input);
  font-size: 13px;
}
.inline-check input {
  width: auto;
  flex: none;
}
.welcome-panel {
  max-width: 1000px;
  margin: 20px auto;
}
#plan-and-billing {
  margin-top: 28px;
}
details > summary {
  cursor: pointer;
  color: var(--accent);
  padding: 12px 0;
  font-weight: 600;
}
.app-dialog .file-error {
  color: #e97183;
}
.theme-control + div {
  margin-left: 0;
}
html[data-theme=light] {
  color-scheme: light;
  background: #f4f6fc;
  color: #192039;
  --text:#192039;
  --muted:#59657d;
  --line:#d9dfed;
  --panel:#fff;
  --surface:#fff;
  --input:#f5f7fc;
  --accent:#6840cf;
  --soft:#eee8fc;
}
[data-theme=light] .topbar,
[data-theme=light] aside,
[data-theme=light] .login-card,
[data-theme=light] .panel,
[data-theme=light] dialog,
[data-theme=light] .stat {
  background: var(--panel);
  color: var(--text);
}
[data-theme=light] nav button,
[data-theme=light] .ghost,
[data-theme=light] .secondary,
[data-theme=light] .google-button,
[data-theme=light] .auth-tabs button {
  color: var(--text);
  background: var(--input);
}
[data-theme=light] nav button.active,
[data-theme=light] .auth-tabs button[aria-pressed=true] {
  background: var(--soft);
  color: #5b2ab8;
}
[data-theme=light] .notice,
[data-theme=light] .badge,
[data-theme=light] .pill,
[data-theme=light] .toolbar {
  background: var(--soft);
  color: #45267b;
}
[data-theme=light] .muted,
[data-theme=light] .subtle,
[data-theme=light] .lead,
[data-theme=light] .site-footer,
[data-theme=light] .sidebar-label {
  color: var(--muted);
}
[data-theme=light] th {
  color: #4c5873;
  background: #f3f5fb;
}
[data-theme=light] td {
  color: var(--text);
}
[data-theme=light] .mark,
[data-theme=light] .primary {
  color: #fff;
}
[data-theme=light] .os,
[data-theme=light] .eyebrow {
  color: #6840cf;
}
[data-theme=light] .stat strong,
[data-theme=light] h1,
[data-theme=light] h2,
[data-theme=light] h3 {
  color: var(--text);
}
@media (max-width: 760px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }
  .theme-control {
    margin-left: 0;
  }
  .topbar #account-bar {
    margin-left: auto;
  }
  .app-dialog {
    padding: 20px;
  }
  .theme-control select {
    min-width: 90px;
  }
  .badge {
    font-size: 9px;
  }
}
[data-theme=light] label,
[data-theme=light] .sidebar-footer,
[data-theme=light] .sidebar-footer strong {
  color: var(--muted);
}
[data-theme=light] #global-message:not(:empty) {
  background: var(--soft);
  border-color: #d1c2ee;
  color: #45267b;
}
[data-theme=light] .model-choice:has(input:checked) {
  background: var(--soft);
  border-color: var(--accent);
}
[data-theme=light] .model-choice strong {
  color: var(--text);
}
#theme-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
}
#theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 3px 14px #0002;
}
#theme-toggle:hover,
#theme-toggle[aria-expanded=true] {
  color: var(--accent);
  border-color: var(--accent);
}
#theme-toggle svg {
  width: 18px;
  height: 18px;
}
#theme-menu {
  position: absolute;
  bottom: 46px;
  left: 0;
  width: 160px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px #0003;
}
#theme-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 7px;
  text-align: left;
  font-size: 12px;
}
#theme-menu button:hover,
#theme-menu button:focus-visible {
  background: var(--soft);
}
#theme-menu button[aria-checked=true] {
  color: var(--accent);
  font-weight: 650;
}
#theme-menu button[aria-checked=true]::after {
  content: "\2713";
}
.topbar #account-bar {
  margin-left: auto;
}
@media print {
  #theme-widget {
    display: none !important;
  }
}
@media (max-width: 760px) {
  #theme-widget {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
.contract-editor {
  min-height: 420px;
  font-family: ui-monospace, monospace;
  line-height: 1.7;
  font-size: 13px;
}
.legal-banner {
  margin-bottom: 24px;
}
.legal-banner p {
  line-height: 1.7;
}
.legal-banner .actions {
  flex-wrap: wrap;
}
.legal-banner button {
  white-space: normal;
}
.legal-banner #export-progress:empty {
  display: none;
}
#notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 8px;
  border-radius: 50%;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--line);
}
#notification-bell svg {
  width: 19px;
  height: 19px;
}
.notification-count {
  position: absolute;
  right: -5px;
  top: -5px;
  background: #7652d7;
  color: #fff;
  font-size: 9px;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
}
#support-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 11px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #7551ce,
      #4f63d8);
  border: 1px solid #a28ae6;
  box-shadow: 0 5px 20px #0003;
}
#support-launcher svg {
  width: 23px;
  height: 23px;
}
#support-launcher:hover {
  filter: brightness(1.12);
}
body:has(dialog[open]) #support-launcher {
  visibility: hidden;
}
.comms-dialog {
  width: min(760px, 94vw);
  max-height: 90vh;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 30px 100px #0008;
}
.comms-dialog::backdrop {
  background: #060915b5;
  backdrop-filter: blur(4px);
}
.comms-dialog .dialog-heading {
  position: sticky;
  top: -26px;
  z-index: 1;
  background: var(--panel);
  padding: 14px 0;
}
.comms-error {
  color: #e58191;
  font-size: 13px;
  white-space: pre-wrap;
}
.notification-item,
.announcement-history {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.notification-item.unread {
  border-left: 3px solid var(--accent);
  background: var(--input);
}
.notification-item time,
.support-message time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 6px 0;
}
.notification-item p,
.announcement-history p,
.support-message p {
  white-space: pre-wrap;
  line-height: 1.7;
}
.announcement-history small {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.terms-item {
  background: var(--soft);
}
.ticket-list-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: 15px;
  margin: 9px 0;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ticket-list-item span {
  font-size: 11px;
  color: var(--muted);
}
.support-message {
  background: var(--input);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.support-message.from-support {
  border-left: 3px solid var(--accent);
}
.support-message strong {
  font-size: 12px;
}
.quick-help,
.new-ticket {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 15px 0;
}
.quick-help p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.comms-dialog textarea,
#comms-announcement textarea {
  min-height: 120px;
}
.comms-dialog .pagination {
  flex-wrap: wrap;
  gap: 8px;
}
.comms-dialog .dialog-heading h2 {
  font-size: 21px;
}
.comms-dialog .comms-content {
  overflow-wrap: anywhere;
}
.ticket-title strong {
  font-size: 18px;
}
.comms-dialog button {
  max-width: 100%;
}
@media (max-width: 760px) {
  .comms-dialog {
    padding: 18px;
  }
  .comms-dialog .dialog-heading {
    top: -18px;
  }
  .comms-dialog .dialog-heading h2 {
    font-size: 18px;
  }
  #support-launcher {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 43px;
    height: 43px;
  }
  .topbar #account-email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media print {
  #notification-bell,
  #support-launcher,
  .comms-dialog {
    display: none !important;
  }
}
body:has(dialog.comms-dialog[open]) {
  overflow: hidden;
}
[data-theme=light] .comms-error {
  color: #b62d4b;
}
#quote-form {
  max-width: 980px;
  margin-inline: auto;
}
#quote-form .editor-intro {
  margin-top: 0;
}
#quote-form .editor-options {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0;
}
#quote-form summary {
  cursor: pointer;
  font-weight: 600;
}
#quote-form details[open] > summary {
  margin-bottom: 14px;
}
#quote-form .line-details {
  margin-top: 8px;
  font-size: 12px;
}
#quote-form .line-details summary {
  color: var(--muted);
  font-weight: 400;
}
#quote-form .line-details input {
  min-width: 0;
  width: 100%;
}
#quote-form .quote-lines {
  min-width: 0;
  width: 100%;
}
#quote-form .quote-lines td:first-child {
  width: 65%;
}
#quote-form .quote-lines td {
  vertical-align: top;
}
#quote-form .quote-lines input {
  min-width: 0;
  width: 100%;
}
#quote-form .quote-lines .line-num {
  max-width: 130px;
}
#quote-form .quote-totals {
  padding: 16px 0;
}
.inbox-clickable {
  cursor: pointer;
}
.inbox-clickable:hover {
  border-color: var(--accent);
}
.inbox-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  #quote-form .quote-lines th,
  #quote-form .quote-lines td {
    padding: 7px 3px;
  }
  #quote-form .line-details .grid2 {
    grid-template-columns: 1fr;
  }
  #quote-form .quote-lines td:first-child {
    width: 52%;
  }
}
.compact-inbox {
  width: min(420px, calc(100vw - 24px));
  max-height: min(600px, 80dvh);
  padding: 18px;
}
.compact-inbox .dialog-heading h2 {
  font-size: 18px;
}
.compact-inbox .notification-item {
  padding: 12px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.compact-inbox .notification-item strong {
  font-size: 14px;
}
.compact-inbox .notification-item p {
  font-size: 13px;
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.compact-inbox time {
  font-size: 11px;
}
.compact-inbox .notification-item.unread {
  border-left: 3px solid var(--accent);
}
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin: 20px 0;
}
.supplier-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.supplier-card h3,
.supplier-card p {
  margin: 0;
}
.supplier-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.supplier-card button:first-of-type {
  margin-top: auto;
}
.supplier-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background:
    linear-gradient(
      140deg,
      #7651d2,
      #4266c1);
  color: white;
  font-size: 20px;
  font-weight: 750;
}
.supplier-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.supplier-hero h2 {
  margin: 6px 0 12px;
}
.supplier-hero p,
.supplier-lead p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.supplier-price {
  font-size: 25px;
}
.supplier-price small {
  font-size: 13px;
}
.supplier-product-card,
.supplier-admin,
.supplier-lead,
.supplier-add {
  padding: 18px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.supplier-product-card summary,
.supplier-admin summary,
.supplier-add summary {
  cursor: pointer;
  font-weight: 600;
}
.supplier-product-card[open] summary,
.supplier-admin[open] summary,
.supplier-add[open] summary {
  margin-bottom: 18px;
}
.supplier-lead small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.supplier-request-dialog {
  width: min(540px, 94vw);
  max-height: 85dvh;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--panel);
  color: var(--text);
}
.supplier-request-dialog textarea {
  min-height: 140px;
}
.supplier-request-dialog::backdrop {
  background: #060915a8;
}
.request-error {
  color: #e58191;
}
#affiliate-dialog {
  width: min(850px, 94vw);
  max-height: 85dvh;
  overflow: auto;
}
#affiliate-dialog > .form-actions {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 20px;
}
.comms-dialog .dialog-heading {
  position: static;
  padding-top: 0;
}
.comms-dialog > .form-actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.comms-dialog .dialog-heading h2 {
  margin-top: 0;
}
@media (max-width: 600px) {
  .supplier-hero {
    flex-direction: column;
  }
  .supplier-card {
    padding: 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
}
.affiliate-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 200px;
}
.affiliate-actions button {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 9px;
}
.affiliate-actions .danger {
  border-color: #b94f6855;
  color: #e58191;
}
.affiliate-actions .danger:hover {
  background: #b94f6818;
}
:root[data-theme=light] .affiliate-actions .danger {
  color: #a52c45;
}
#referral-link {
  font-size: 13px;
}
#affiliate-dialog input,
#affiliate-dialog select {
  max-width: 100%;
}
.growth-chart svg {
  display: block;
  width: 100%;
  max-height: 320px;
  color: var(--muted);
}
.growth-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}
.growth-legend span:nth-child(1) {
  color: #7e92f8;
}
.growth-legend span:nth-child(2) {
  color: #b080e9;
}
.growth-legend span:nth-child(3) {
  color: #41b79d;
}
.backup-preview {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
#ops-restore input {
  max-width: 520px;
}
#supplier-code-mode {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.period-form select {
  max-width: 280px;
}
.measure-item,
.line-measure {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.line-measure {
  padding: 10px;
  margin: 8px 0;
}
.line-measure label {
  font-size: 12px;
}
.line-measure .grid3 {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
.line-measure input,
.line-measure select {
  width: 100%;
  min-width: 0;
}
.line-measure small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.quote-lines td:first-child {
  min-width: 260px;
}
.stock-low {
  color: var(--text);
  background: rgba(229, 168, 60, .16);
}
.pricing-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.price-offer {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.price-offer label span {
  display: block;
}
.price-offer button {
  margin-top: 12px;
}
[hidden] {
  display: none !important;
}
html[data-theme=light] .quote-totals strong {
  color: var(--text);
}
html[data-theme=light] .quote-totals .profit strong {
  color: #126b50;
}
.stock-table td:first-child {
  min-width: 150px;
}
#stock-detail .panel {
  scroll-margin-top: 85px;
}
.app-dialog .dialog-copy {
  overflow-wrap: anywhere;
}
.gateway-panel .plan-card input:disabled {
  cursor: not-allowed;
}
.danger-zone {
  border-color: color-mix(in srgb, #e85b78 42%, var(--border,#39415b));
  margin-top: 24px;
}
.deletion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border,#39415b);
}
.deletion-dialog {
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
}
.deletion-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.deletion-error {
  color: #e85b78;
  white-space: pre-wrap;
}
.danger-button {
  background: #b92748;
  color: white;
  border: 1px solid #b92748;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
}
.danger-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.deletion-dialog input:not([type=checkbox]) {
  width: 100%;
}
@media (max-width: 560px) {
  .deletion-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .deletion-dialog .form-actions {
    flex-direction: column;
  }
  .deletion-dialog .form-actions button {
    width: 100%;
  }
}
.catalogue-cover {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--panel) 84%, #8055dc),
      var(--panel) 72%);
  margin: 18px 0 24px;
}
.catalogue-cover:after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  top: -140px;
  border: 35px solid #8272e81a;
  border-radius: 50%;
}
.catalogue-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.catalogue-location,
.catalogue-segment {
  color: var(--muted);
  font-size: 13px;
}
.catalogue-segment {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.catalogue-identity {
  display: flex;
  gap: 20px;
  align-items: center;
}
.catalogue-avatar {
  width: 74px;
  height: 74px;
  font-size: 27px;
  border-radius: 22px;
  box-shadow: 0 9px 25px #0002;
}
.catalogue-identity h2 {
  font-size: clamp(25px, 4vw, 36px);
  margin: 4px 0 10px;
  letter-spacing: -.035em;
}
.catalogue-identity p {
  max-width: 720px;
  white-space: pre-wrap;
  margin: 0;
  color: var(--muted);
}
.catalogue-identity .eyebrow {
  font-size: 10px;
  letter-spacing: .14em;
}
.catalogue-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.catalogue-contact p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
}
.catalogue-contact small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.whatsapp-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 11px;
  background: #126c4c;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid #ffffff12;
  transition: background .15s, transform .15s;
}
.whatsapp-button:hover {
  background: #0c5b3e;
  transform: translateY(-1px);
}
.whatsapp-button:focus-visible {
  outline: 3px solid #72cfa8;
  outline-offset: 3px;
}
.whatsapp-button[aria-disabled=true] {
  opacity: .5;
  pointer-events: none;
}
.whatsapp-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.catalogue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  padding: 22px;
}
.catalogue-toolbar h2 {
  margin: 0 0 7px;
  font-size: 19px;
}
.catalogue-toolbar p {
  margin: 0;
  font-size: 13px;
}
.catalogue-toolbar form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}
.catalogue-toolbar input {
  min-width: 0;
  max-width: 100%;
}
.catalogue-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.catalogue-product {
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.catalogue-product:hover {
  border-color: #8272b3;
  box-shadow: 0 8px 28px #0001;
}
.catalogue-product-art {
  height: 126px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(
      130deg,
      color-mix(in srgb, var(--panel) 85%, #7854cf),
      color-mix(in srgb, var(--panel) 94%, #4266c1));
}
.catalogue-product-art > svg {
  width: 58px;
  height: 58px;
  color: var(--muted);
  opacity: .65;
}
.catalogue-price-state {
  position: absolute;
  left: 14px;
  top: 13px;
  font-size: 10px;
  letter-spacing: .025em;
  background: var(--panel);
  padding: 5px 9px;
  border-radius: 15px;
}
.catalogue-price-state.fresh {
  color: var(--text);
}
.catalogue-price-state.fresh:before {
  content: "";
  display: inline-block;
  background: #30a57c;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.catalogue-price-state.stale {
  color: var(--text);
  border: 1px solid #bd823b;
}
.catalogue-product-content {
  padding: 21px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}
.catalogue-code {
  color: var(--muted);
  font-family: monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.catalogue-product h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.catalogue-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.catalogue-value strong {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -.045em;
  color: var(--text);
}
.catalogue-value span,
.catalogue-date {
  font-size: 12px;
  color: var(--muted);
}
.catalogue-quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.catalogue-quantity > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.catalogue-quantity input {
  width: 94px;
  margin: 0;
  padding: 8px 10px;
  color: var(--text);
}
.catalogue-secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.catalogue-secondary-actions button {
  font-size: 12px;
  padding: 8px 5px;
}
.catalogue-note {
  margin-top: 22px;
  line-height: 1.7;
}
.catalogue-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
}
.supplier-contact-preview {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.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;
}
@media (max-width: 680px) {
  .catalogue-cover {
    padding: 22px;
  }
  .catalogue-identity {
    align-items: flex-start;
    gap: 14px;
  }
  .catalogue-avatar {
    height: 54px;
    width: 54px;
    font-size: 21px;
    border-radius: 16px;
  }
  .catalogue-contact,
  .catalogue-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .catalogue-toolbar form {
    min-width: 0;
    width: 100%;
  }
  .catalogue-cover-top {
    align-items: flex-start;
  }
  .catalogue-products {
    gap: 16px;
  }
  .catalogue-contact .whatsapp-button {
    width: 100%;
  }
  .catalogue-product-art {
    height: 112px;
  }
}
.supplier-product-card summary {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.supplier-edit-title {
  flex: 1;
  min-width: 140px;
  font-size: 16px;
}
.supplier-edit-title small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}
.supplier-edit-price {
  font-size: 21px;
  letter-spacing: -.025em;
}
.supplier-edit-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
#global-message:empty,
#terms-status:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.content {
  padding-top: 24px;
}
.page-heading {
  margin-bottom: 18px;
}
.welcome-panel {
  margin: 0 auto;
}
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.role-cards .entry-card.selected {
  border-color: var(--accent);
  background: var(--soft,var(--input));
}
.role-symbol {
  font-size: 28px;
  color: var(--accent);
}
.trial-promise {
  line-height: 1.7;
}
.product-report {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 10px 0;
  text-align: left;
  cursor: pointer;
}
.product-report:hover {
  color: var(--text);
  text-decoration: underline;
}
.moderation-card {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.moderation-card p {
  margin: 7px 0;
}
.moderation-card small {
  color: var(--muted);
}
.deletion-dialog strong {
  overflow-wrap: anywhere;
}
.deletion-dialog > p {
  line-height: 1.6;
}
.plan-grid {
  align-items: stretch;
}
.sidebar-label:empty {
  display: none;
}
@media (max-width: 680px) {
  .content {
    padding-top: 16px;
  }
  .role-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .role-cards .entry-card {
    padding: 15px;
  }
  .moderation-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .moderation-card .actions {
    width: 100%;
  }
  .trial-promise {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .role-cards {
    grid-template-columns: 1fr;
  }
}
.content {
  margin: 0 auto;
  align-self: start;
}
#view > .panel:first-child {
  margin-top: 0;
}
.page-heading .eyebrow {
  margin-top: 0;
}
.role-symbol svg {
  width: 28px;
  height: 28px;
}
.product-report:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.catalogue-products .catalogue-product-content > small:first-child {
  color: var(--muted);
}
.card-fields {
  border: 1px solid var(--border,#34405a);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
  margin: 18px 0;
  max-width: 650px;
}
.card-fields legend {
  font-weight: 700;
  padding: 0 8px;
}
.card-fields[hidden] {
  display: none;
}
.card-fields input {
  font-size: 16px;
}
.gateway-panel details {
  margin-top: 16px;
}
.gateway-panel summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.gateway-panel .payment-error {
  color: var(--danger,#dc5276);
}
.stock-heading,
.queue-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.stock-dialog {
  width: min(520px, calc(100vw - 32px));
}
.stock-dialog form {
  display: grid;
  gap: 16px;
}
.stock-dialog details {
  padding: 10px 0;
}
.stock-event {
  padding: 14px 0;
  border-bottom: 1px solid var(--border,#7a829344);
}
.order-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.order-column {
  background: var(--panel,#8080800d);
  padding: 14px;
  border-radius: 16px;
  min-width: 0;
}
.order-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-card {
  border: 1px solid #828b9f55;
  border-left: 5px solid #7d8599;
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  background: var(--card,#8080800b);
  overflow-wrap: anywhere;
}
.order-card h4 {
  font-size: 17px;
  margin: 8px 0;
}
.order-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.order-controls[hidden] {
  display: none;
}
.order-card.on-time {
  border-left-color: #4a8cf0;
}
.order-card.due-soon {
  border-left-color: #d7ac18;
  background: #d7ac1810;
}
.order-card.late-low {
  border-left-color: #ed8d25;
  background: #ed8d2512;
}
.order-card.late-high {
  border-left-color: #e44b67;
  background: #e44b6715;
}
.order-card.done {
  border-left-color: #36a379;
}
.order-clock {
  font-weight: 700;
}
.queue-summary {
  margin-bottom: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 1000px) {
  .order-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .order-board {
    grid-template-columns: 1fr;
  }
  .stock-heading .actions {
    width: 100%;
  }
  .stock-heading .actions button {
    flex: 1;
  }
}
