/* [project]/app/globals.css.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .sticky {
    position: sticky;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .table {
    display: table;
  }

  .h-full {
    height: 100%;
  }

  .min-h-full {
    min-height: 100%;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .flex-col {
    flex-direction: column;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

.directory-panel {
  min-width: 0;
}

.directory-table-footer {
  flex-wrap: wrap;
  gap: 12px;
  height: auto;
  min-height: 46px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.directory-table-footer .pagination {
  flex-wrap: wrap;
}

.directory-search {
  justify-content: flex-end;
  margin-left: auto;
  display: flex;
}

.directory-search-label {
  display: block;
}

.directory-search-label .search-box {
  width: 260px;
  max-width: 100%;
}

@media (max-width: 600px) {
  .directory-page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .directory-search {
    width: 100%;
    margin-left: 0;
  }

  .directory-search-label, .directory-search-label .search-box {
    width: 100%;
  }
}

.directory-table {
  min-width: 700px;
}

.directory-documents-table {
  min-width: 940px;
}

.debit-notes-table {
  min-width: 1050px;
}

.debit-notes-table th:last-child, .debit-notes-table td:last-child {
  text-align: right;
}

.debit-notes-table td:nth-child(4), .debit-notes-table td:nth-child(5) {
  overflow-wrap: anywhere;
  max-width: 240px;
}

.debit-note-contract-links {
  overflow-wrap: anywhere;
  max-width: 300px;
  line-height: 1.5;
  display: inline-block;
}

.debit-note-file {
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.debit-note-actions {
  white-space: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.debit-note-actions .button {
  min-width: 82px;
}

.debit-note-generator {
  margin-bottom: 18px;
  padding: 18px 20px 20px;
}

.debit-note-generator-heading h2 {
  color: var(--text);
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.debit-note-generator-heading p {
  color: var(--muted);
  margin: 5px 0 16px;
  font-size: 14px;
}

.debit-note-generator-controls {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  display: flex;
}

.debit-note-generator-controls > .button {
  height: 40px;
}

.debit-note-party-filter {
  flex: 230px;
  min-width: 190px;
  max-width: 340px;
  position: relative;
}

.debit-note-party-filter > label {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
  display: block;
}

.debit-note-party-input {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  align-items: center;
  height: 40px;
  display: flex;
}

.debit-note-party-input:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.debit-note-party-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  color: var(--text);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  padding: 0 10px;
  font-size: 14px;
}

.debit-note-party-input button {
  width: 34px;
  height: 34px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  flex: 0 0 34px;
  font-size: 21px;
}

.debit-note-party-options {
  z-index: 20;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  max-height: 240px;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  overflow: auto;
  box-shadow: 0 12px 26px #11182725;
}

.debit-note-party-options button {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 9px 11px;
  font-size: 14px;
  display: block;
}

.debit-note-party-options button:hover, .debit-note-party-options button[aria-selected="true"] {
  background: var(--soft);
  color: var(--brand);
}

.debit-note-party-options p {
  color: var(--muted);
  margin: 0;
  padding: 10px;
  font-size: 13px;
}

.debit-note-generation-message {
  margin-top: 14px;
}

.debit-note-generation-result {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--soft);
  border-radius: 7px;
  margin-top: 14px;
  padding: 11px 13px;
  font-size: 14px;
}

.debit-note-generation-result p {
  margin: 0;
}

.debit-note-generation-result ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.debit-note-picker-backdrop {
  z-index: 1300;
}

.debit-note-picker {
  width: min(100%, 540px);
  max-height: calc(100dvh - 40px);
  padding: 24px;
  position: relative;
  overflow-y: auto;
}

.debit-note-picker h2 {
  margin: 0 32px 6px 0;
  font-size: 19px;
}

.debit-note-picker p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 14px;
}

.debit-note-picker p.api-error {
  color: #a93737;
  padding: 10px 12px;
}

.dark .debit-note-picker p.api-error {
  color: #ffc3c3;
}

.debit-note-picker-list {
  border: 1px solid var(--line);
  border-radius: 7px;
  gap: 2px;
  max-height: 300px;
  margin: 8px 0 16px;
  display: grid;
  overflow-y: auto;
}

.debit-note-picker-list label, .debit-note-picker-all {
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
}

.debit-note-picker-list label:hover {
  background: var(--soft);
}

.debit-note-picker input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.debit-note-picker-all {
  font-weight: 650;
}

.debit-note-picker-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

@media (max-width: 600px) {
  .debit-note-party-filter {
    flex-basis: 100%;
    max-width: none;
  }

  .debit-note-generator-controls > .button {
    flex: auto;
  }
}

.directory-table td {
  vertical-align: middle;
}

.directory-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.directory-table .directory-address {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 560px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.45;
}

.directory-message {
  color: var(--muted);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 20px;
  display: flex;
}

.directory-contract-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.directory-contract-link:hover {
  text-decoration: underline;
}

.directory-contract-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.directory-party-table th:last-child, .directory-party-table td:last-child {
  text-align: right;
  width: 185px;
}

.related-contract-button {
  cursor: pointer;
  min-width: 154px;
  height: 34px;
  padding: 0 12px;
  text-decoration: none;
}

.related-contract-button svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.related-contract-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.related-contract-button:disabled {
  opacity: .6;
  cursor: wait;
}

.modal-backdrop.lc-reminder-backdrop {
  z-index: 1700;
}

.lc-reminder-dialog {
  background: var(--panel);
  border-radius: 9px;
  width: min(100%, 430px);
  padding: 24px;
  box-shadow: 0 20px 60px #11182735;
}

.lc-reminder-dialog h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.lc-reminder-dialog p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

.lc-reminder-dialog .lc-reminder-contract {
  color: var(--brand);
  overflow-wrap: anywhere;
  margin-bottom: 12px;
  font-weight: 650;
}

.lc-reminder-dialog .lc-reminder-error {
  color: #a93737;
  padding: 9px 11px;
}

.lc-reminder-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}

.lc-reminder-actions .button:disabled {
  opacity: .6;
  cursor: wait;
}

.saved-contracts-panel {
  min-width: 0;
}

.contract-list-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 16px 10px;
  display: flex;
}

.contract-list-heading h2 {
  color: var(--text);
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.contract-list-heading-filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  display: flex;
}

.contract-list-toolbar {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  padding: 0 16px 14px;
  font-size: 14px;
  display: flex;
}

.contract-list-search {
  width: min(100%, 260px);
}

.contract-list-search .search-box {
  width: 100%;
}

.contract-list-date-filter {
  width: 150px;
  color: var(--muted);
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.contract-list-date-filter input {
  border: 1px solid var(--line);
  background: var(--panel);
  width: 100%;
  height: 34px;
  color: var(--text);
  border-radius: 5px;
  padding: 0 9px;
  font-size: 14px;
  font-weight: 400;
}

.contract-list-date-filter input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.dark .contract-list-date-filter input {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

@media (max-width: 600px) {
  .contract-list-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .contract-list-heading-filters {
    justify-content: flex-start;
  }

  .contract-list-search {
    width: 100%;
  }

  .contract-list-date-filter {
    flex: 135px;
    min-width: 0;
  }

  .contract-list-date-filter input {
    min-width: 0;
  }
}

.saved-contracts-panel .table-scroll {
  max-width: 100%;
}

.saved-contracts-panel .table-scroll table {
  table-layout: fixed;
  width: max(100%, 2899px);
  min-width: 2899px;
}

.saved-contracts-panel .table-scroll table.without-creator {
  width: max(100%, 2779px);
  min-width: 2779px;
}

.saved-contracts-panel .table-scroll table.without-actions {
  width: max(100%, 2763px);
  min-width: 2763px;
}

.saved-contracts-panel .table-scroll table.without-creator.without-actions {
  width: max(100%, 2643px);
  min-width: 2643px;
}

.saved-contracts-panel th, .saved-contracts-panel td {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.saved-contracts-panel th:first-child {
  width: 120px;
}

.saved-contracts-panel th:nth-child(2) {
  width: 170px;
}

.saved-contracts-panel th:nth-child(3) {
  width: 235px;
}

.saved-contracts-panel th:nth-child(4) {
  width: 190px;
}

.saved-contracts-panel th:nth-child(5), .saved-contracts-panel th:nth-child(6) {
  width: 195px;
}

.saved-contracts-panel th:nth-child(7) {
  width: 125px;
}

.saved-contracts-panel th:nth-child(8) {
  width: 140px;
}

.saved-contracts-panel th:nth-child(8), .saved-contracts-panel td:nth-child(8) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.saved-contracts-panel th:nth-child(9) {
  width: 90px;
}

.saved-contracts-panel th:nth-child(10) {
  width: 125px;
}

.saved-contracts-panel th:nth-child(11) {
  width: 118px;
}

.saved-contracts-panel th:nth-child(12) {
  width: 190px;
}

.saved-contracts-panel th:nth-child(13), .saved-contracts-panel th:nth-child(15), .saved-contracts-panel th:nth-child(16), .saved-contracts-panel th:nth-child(17) {
  width: 120px;
}

.saved-contracts-panel th:nth-child(14) {
  width: 220px;
}

.saved-contracts-panel th:nth-child(18) {
  width: 170px;
}

.saved-contracts-panel th:nth-child(19) {
  width: 136px;
}

.saved-contracts-panel .without-creator th:nth-child(17) {
  width: 170px;
}

.saved-contracts-panel .without-creator th:nth-child(18) {
  width: 136px;
}

.saved-contracts-panel table:not(.without-actions) thead th:last-child, .saved-contracts-panel table:not(.without-actions) tbody td:last-child {
  position: sticky;
  right: 0;
  box-shadow: -5px 0 10px #27304c14;
}

.saved-contracts-panel table:not(.without-actions) thead th:last-child {
  z-index: 3;
  background: #fafafd;
}

.saved-contracts-panel table:not(.without-actions) tbody td:last-child {
  z-index: 2;
  background: var(--panel);
}

.saved-contracts-panel table:not(.without-actions) tbody tr.is-complete td:last-child {
  background: var(--panel);
}

@supports (color: color-mix(in lab, red, red)) {
  .saved-contracts-panel table:not(.without-actions) tbody tr.is-complete td:last-child {
    background: color-mix(in srgb, var(--panel) 90%, #24a75a 10%);
  }
}

.dark .saved-contracts-panel table:not(.without-actions) thead th:last-child {
  background: var(--panel);
}

.saved-contracts-panel .contract-commission-usd-cell {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.status-text {
  font-weight: 600;
}

.status-text-pending {
  color: #b42318;
}

.status-text-in-progress {
  color: #946200;
}

.status-text-complete {
  color: #067647;
}

.dark .status-text-pending {
  color: #ff9990;
}

.dark .status-text-in-progress {
  color: #facc15;
}

.dark .status-text-complete {
  color: #75d9aa;
}

.contract-count-trigger {
  width: 100%;
  max-width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
  background: none;
  border: 0;
  padding: 2px 0;
  line-height: 1.45;
  display: block;
  overflow: hidden;
}

.contract-count-trigger:hover {
  color: var(--brand);
  text-underline-offset: 3px;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

.contract-count-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

.contract-count-tooltip {
  z-index: 1100;
  border: 1px solid var(--line);
  background: var(--panel);
  width: min(340px, 100vw - 24px);
  max-height: min(50vh, 360px);
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 12px 32px #11182729;
}

.saved-contracts-panel td .button {
  height: 30px;
  font-size: 14px;
  text-decoration: none;
}

.saved-contract-message {
  color: var(--muted);
  margin: 0;
  padding: 18px 16px;
}

.contract-record-page {
  width: min(1440px, 100% - 40px);
  margin: 28px auto 60px;
}

.contract-record-top {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  display: flex;
}

.contract-record-top a {
  text-decoration: none;
}

.contract-record-card {
  margin-bottom: 16px;
  padding: 20px;
}

.contract-record-card h1 {
  overflow-wrap: anywhere;
  margin: 3px 0 14px;
  font-size: 24px;
}

.contract-record-card h2 {
  margin: 0 0 15px;
  font-size: 17px;
}

.contract-record-meta {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  display: flex;
}

.contract-record-meta strong {
  color: var(--text);
}

.contract-record-details {
  padding: 22px;
}

.contract-record-details h2 {
  margin-bottom: 18px;
}

.contract-record-details dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  display: grid;
}

.contract-record-details dl > div:not(.contract-party-pair) {
  border-top: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 78px;
  padding: 12px 10px;
  display: flex;
}

.contract-record-details .contract-party-pair {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.contract-record-details .contract-party {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.contract-record-details .contract-party-field {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 78px;
  padding: 12px 10px;
  display: flex;
}

.contract-record-details .contract-party-field + .contract-party-field {
  border-top: 1px solid var(--line);
}

.contract-record-details dl div[data-field="commodity"] {
  grid-column: span 2;
}

.contract-record-details dt {
  color: var(--table-header-text);
  letter-spacing: .02em;
  font-size: 13px;
  font-weight: 700;
}

.contract-record-details dd {
  color: var(--table-value-text);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.documents-section {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.documents-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.documents-heading h2 {
  margin: 0;
}

.documents-heading p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.documents-heading .debit-note-contract-reference {
  margin-top: 6px;
  font-size: 14px;
}

.debit-note-contract-reference strong {
  color: var(--brand);
  overflow-wrap: anywhere;
  font-weight: 700;
}

.shipment-collapse-heading {
  width: 100%;
}

.shipment-collapse-toggle {
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  display: flex;
}

.shipment-collapse-toggle > span {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.shipment-collapse-toggle svg {
  color: var(--muted);
  flex: none;
  transition: transform .2s;
}

.shipment-collapse-toggle svg.is-expanded {
  transform: rotate(180deg);
}

.shipment-collapse-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 3px;
}

.shipment-collapse-content {
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.shipment-collapse-content[hidden] {
  display: none;
}

.contract-shipments-section .shipment-collapse-heading {
  flex: auto;
  width: auto;
  min-width: 0;
}

.shipment-invoices {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.shipment-invoices h3 {
  color: var(--text);
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  display: flex;
}

.shipment-review-modal.invoice-preview-modal {
  width: min(95vw, 980px);
  height: min(90vh, 850px);
}

.shipment-modal.invoice-review-modal {
  width: min(100%, 900px);
}

.invoice-review-modal .invoice-review-note {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 13px;
}

.invoice-review-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: min(48dvh, 430px);
  overflow: auto;
}

.invoice-review-table {
  border-collapse: collapse;
  width: 100%;
  color: var(--text);
  font-size: 13px;
}

.invoice-review-table th, .invoice-review-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  padding: 11px 12px;
}

.invoice-review-table th:last-child, .invoice-review-table td:last-child {
  text-align: center;
  width: 78px;
}

.invoice-review-table th {
  z-index: 1;
  color: #262a40;
  background: #fafafd;
  font-weight: 650;
  position: sticky;
  top: 0;
}

.invoice-review-table tr:last-child td {
  border-bottom: 0;
}

.invoice-review-table .invoice-review-match {
  color: #143b27;
  background: #e8f7ee;
}

.invoice-review-table .invoice-review-unmatched {
  color: #343847;
  background: #f1f2f5;
}

.invoice-review-table td small {
  color: #6d7284;
  margin-top: 3px;
  display: block;
}

.invoice-review-table input[type="checkbox"] {
  accent-color: #5046e5;
  cursor: pointer;
  width: 17px;
  height: 17px;
}

.invoice-review-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.invoice-review-actions span:first-child {
  color: var(--muted);
  margin-right: auto;
  font-size: 13px;
}

.invoice-review-actions .button {
  min-width: 82px;
}

@media (max-width: 600px) {
  .invoice-review-table {
    min-width: 690px;
  }

  .invoice-review-actions {
    flex-wrap: wrap;
  }

  .invoice-review-actions span:first-child {
    flex-basis: 100%;
  }
}

.invoice-preview-modal iframe {
  background: var(--panel);
  border: 0;
  flex: 1;
  width: 100%;
  min-height: 0;
}

@media (max-width: 600px) {
  .contract-shipments-section .shipment-collapse-heading {
    width: 100%;
  }
}

.documents-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  display: flex;
}

.documents-actions .button {
  height: 32px;
}

.document-count {
  color: var(--brand);
  background: var(--soft);
  border-radius: 999px;
  flex: none;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 650;
}

.document-upload-dropzone {
  border: 1px dashed var(--line);
  min-height: 175px;
  color: var(--text);
  background: var(--soft);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .document-upload-dropzone {
    background: color-mix(in srgb, var(--soft) 45%, var(--panel));
  }
}

.document-upload-dropzone {
  text-align: center;
  transition: border-color .15s, background-color .15s;
}

.document-upload-dropzone.is-dragging {
  border-color: var(--brand);
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .document-upload-dropzone.is-dragging {
    background: color-mix(in srgb, var(--brand) 8%, var(--panel));
  }
}

.document-upload-dropzone > strong {
  font-size: 14px;
}

.document-upload-dropzone > span:not(.document-upload-icon) {
  color: var(--muted);
  font-size: 13px;
}

.document-upload-icon {
  width: 34px;
  height: 34px;
  color: var(--brand);
  background: var(--panel);
  border-radius: 50%;
  place-items: center;
  font-size: 20px;
  display: grid;
}

.document-select-files {
  cursor: pointer;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  margin-top: 4px;
  padding: 0 12px;
  font-size: 14px;
  display: inline-flex;
  position: relative;
}

.document-select-files input {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.document-select-files:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.contract-json-actions {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.contract-raw-json {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  margin: 10px 0 18px;
  padding: 10px;
}

.contract-raw-json summary {
  cursor: pointer;
  font-weight: 600;
}

.contract-raw-json pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  font-size: 13px;
  overflow: auto;
}

@media (max-width: 1100px) {
  .contract-record-details dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .contract-record-page {
    width: min(680px, 100% - 28px);
    margin-top: 16px;
  }

  .contract-record-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .document-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contract-record-page {
    width: calc(100% - 20px);
  }

  .contract-record-card {
    padding: 16px;
  }

  .contract-record-details dl {
    grid-template-columns: 1fr;
  }

  .contract-record-details dl div[data-field="commodity"] {
    grid-column: auto;
  }

  .contract-record-details .contract-party-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contract-record-details .contract-party + .contract-party {
    border-top: 1px solid var(--line);
  }

  .documents-heading {
    align-items: center;
  }

  .document-list li {
    gap: 8px;
  }

  .document-list .button {
    padding: 0 7px;
  }
}

.contract-detail-shell .nav-link {
  text-decoration: none;
}

.contract-detail-shell .sidebar.collapsed ~ .main-column {
  margin-left: 75px;
}

.contract-detail-shell .breadcrumb {
  min-width: 0;
}

.contract-detail-shell .breadcrumb b {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.contract-detail-shell .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.contract-detail-shell .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.contract-detail-shell .profile-dropdown a {
  color: var(--text);
  border-radius: 5px;
  padding: 9px;
  font-size: 13px;
  text-decoration: none;
  display: block;
}

.contract-detail-shell .profile-dropdown a:hover {
  background: var(--soft);
}

.document-upload-modal-backdrop {
  z-index: 1200;
}

.document-upload-modal {
  width: min(100%, 520px);
  max-height: calc(100dvh - 40px);
  padding: 25px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 60px #11182735;
}

.document-upload-modal h2 {
  margin: 4px 0 5px;
  font-size: 19px;
}

.document-upload-modal p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 13px;
}

.document-upload-classification {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
  display: grid;
}

.document-upload-classification label {
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.document-upload-classification select {
  border: 1px solid var(--line);
  min-height: 38px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  border-radius: 5px;
  padding: 7px 8px;
}

.document-upload-modal .document-upload-dropzone {
  padding: 16px;
}

.document-viewer-backdrop {
  z-index: 1500;
}

.document-viewer-modal {
  flex-direction: column;
  width: min(92vw, 1600px);
  height: min(92dvh, 1100px);
  min-height: 320px;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.document-viewer-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  display: flex;
}

.document-viewer-heading h2 {
  color: var(--text);
  margin: 0 0 4px;
  font-size: 19px;
}

.document-viewer-heading p {
  max-width: min(70vw, 850px);
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 13px;
  overflow: hidden;
}

.document-viewer-heading .file-modal-close {
  flex: none;
}

.document-viewer-frame {
  background: #fff;
  border: 0;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: block;
}

.document-viewer-message {
  color: var(--muted);
  text-align: center;
  flex: 1;
  place-items: center;
  padding: 20px;
  display: grid;
}

.document-viewer-loading {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  display: flex;
}

.document-viewer-spinner {
  border: 3px solid #deddf8;
  border-top-color: var(--brand);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: .7s linear infinite access-spin;
}

@media (max-width: 600px) {
  .document-viewer-backdrop {
    padding: 8px;
  }

  .document-viewer-modal {
    height: calc(100dvh - 16px);
  }
}

.shipment-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
}

.table-scroll .shipment-table {
  table-layout: fixed;
  width: max(100%, 1806px);
  min-width: 1806px;
}

.table-scroll .shipment-table.is-readonly {
  width: max(100%, 1654px);
  min-width: 1654px;
}

.shipment-table .shipment-col-date {
  width: 128px;
}

.shipment-table .shipment-col-contract {
  width: 180px;
}

.shipment-table .shipment-col-commodity {
  width: 300px;
}

.shipment-table .shipment-col-packages {
  width: 120px;
}

.shipment-table .shipment-col-container {
  width: 154px;
}

.shipment-table .shipment-col-seal {
  width: 140px;
}

.shipment-table .shipment-col-weight {
  width: 120px;
}

.shipment-table .shipment-col-lot {
  width: 100px;
}

.shipment-table .shipment-col-status {
  width: 110px;
}

.shipment-table .shipment-col-created {
  width: 182px;
}

.shipment-table .shipment-col-actions {
  width: 152px;
}

.shipment-table th, .shipment-table td {
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 11px 12px;
  overflow: hidden;
}

.shipment-table td {
  height: auto;
  color: var(--text);
  vertical-align: middle;
}

.shipment-table .shipment-commodity-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}

.shipment-invoice-button {
  color: #dc2626;
}

.shipment-invoice-button:hover {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #dc2626;
}

.shipment-invoice-button.is-loading:disabled {
  opacity: 1;
  cursor: wait;
}

.shipment-row-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.shipment-row-actions .button {
  white-space: nowrap;
}

.shipment-inline-form {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 9px;
  margin: 18px 0 24px;
  padding: 18px;
  scroll-margin-top: 20px;
}

.shipment-review-backdrop {
  z-index: 1400;
}

.shipment-review-modal {
  flex-direction: column;
  width: min(96vw, 1600px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.shipment-review-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 22px;
  display: flex;
}

.shipment-review-header h2 {
  color: var(--text);
  margin: 3px 0 4px;
  font-size: 20px;
}

.shipment-review-header p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.shipment-review-header .modal-close {
  flex: none;
  padding: 2px 6px;
  position: static;
}

.shipment-review {
  min-width: 0;
}

.shipment-review-modal .shipment-review {
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.shipment-review.has-preview {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.shipment-review .shipment-inline-form {
  min-width: 0;
}

.shipment-review-modal .shipment-inline-form, .shipment-review-modal .shipment-document-preview {
  margin: 0;
}

.shipment-review-modal .shipment-document-preview iframe, .shipment-review-modal .shipment-document-preview img {
  height: min(68dvh, 700px);
}

.shipment-entry-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  display: flex;
}

.shipment-entry-tabs .is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.shipment-document-preview {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  min-width: 0;
  margin: 18px 0 24px;
  padding: 18px;
}

.shipment-document-preview h3 {
  color: var(--text);
  margin: 0 0 4px;
  font-size: 16px;
}

.shipment-document-preview p {
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 0 0 12px;
  font-size: 13px;
}

.shipment-document-preview iframe, .shipment-document-preview img {
  border: 1px solid var(--line);
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  height: 610px;
  display: block;
}

.shipment-modal {
  width: min(100%, 620px);
}

.lc-upload-modal-backdrop {
  z-index: 1200;
}

.lc-upload-modal {
  max-height: calc(100dvh - 40px);
  padding: 26px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 60px #11182735;
}

.lc-upload-modal .eyebrow {
  color: var(--muted);
  margin: 0 34px 8px 0;
  font-size: 12px;
  display: block;
}

.lc-upload-modal h2 {
  color: var(--text);
  margin: 0 34px 8px 0;
  font-size: 20px;
  line-height: 1.3;
}

.lc-upload-modal > p {
  color: var(--muted);
  margin: 0 34px 22px 0;
  font-size: 13px;
  line-height: 1.55;
}

.lc-upload-modal .modal-close {
  cursor: pointer;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  top: 18px;
  right: 18px;
}

.lc-upload-modal .modal-close:hover {
  color: var(--text);
  background: var(--soft);
}

.lc-upload-modal .modal-close:disabled {
  cursor: wait;
  opacity: .5;
}

.lc-upload-dropzone {
  border: 1.5px dashed var(--brand);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 250px;
  padding: 26px 18px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .lc-upload-dropzone {
    border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
  }
}

.lc-upload-dropzone {
  color: var(--text);
  background: var(--soft);
  border-radius: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .lc-upload-dropzone {
    background: color-mix(in srgb, var(--soft) 60%, var(--panel));
  }
}

.lc-upload-dropzone {
  text-align: center;
  transition: border-color .15s, background-color .15s;
}

.lc-upload-dropzone.is-dragging {
  border-color: var(--brand);
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .lc-upload-dropzone.is-dragging {
    background: color-mix(in srgb, var(--brand) 9%, var(--panel));
  }
}

.lc-upload-icon {
  width: 48px;
  height: 48px;
  color: var(--brand);
  background: var(--panel);
  border-radius: 12px;
  place-items: center;
  margin-bottom: 3px;
  font-size: 25px;
  line-height: 1;
  display: grid;
}

.lc-upload-dropzone strong {
  font-size: 15px;
  line-height: 1.4;
}

.lc-upload-dropzone > span:not(.lc-upload-icon) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.lc-select-files {
  cursor: pointer;
  min-height: 36px;
  margin-top: 8px;
  position: relative;
}

.lc-select-files input {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.lc-select-files:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.lc-select-files:has(input:disabled) {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 600px) {
  .lc-upload-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .lc-upload-modal {
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-height: 94dvh;
    padding: 24px 18px 18px;
  }

  .lc-upload-dropzone {
    min-height: 220px;
    padding: 24px 12px;
  }

  .lc-upload-modal .modal-close {
    top: 15px;
    right: 13px;
  }
}

.shipment-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  display: grid;
}

.shipment-goods-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px;
}

.shipment-goods-fieldset legend {
  color: var(--text);
  padding: 0 5px;
  font-size: 14px;
  font-weight: 650;
}

.shipment-goods-fieldset input[readonly] {
  background: var(--soft);
  color: var(--muted);
}

.shipment-form-grid label {
  min-width: 0;
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.shipment-form-grid .shipment-form-wide {
  grid-column: 1 / -1;
}

.shipment-form-grid input, .shipment-form-grid select {
  border: 1px solid var(--line);
  background: var(--panel);
  width: 100%;
  min-height: 38px;
  color: var(--text);
  font: inherit;
  border-radius: 6px;
  padding: 8px 9px;
  font-weight: 400;
}

.shipment-form-grid input:focus, .shipment-form-grid select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.shipment-form-actions {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  display: flex;
}

.contract-detail-shell.dark {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

@media (max-width: 900px) {
  .shipment-review.has-preview {
    grid-template-columns: 1fr;
  }

  .shipment-document-preview {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .shipment-review-backdrop {
    padding: 8px;
  }

  .shipment-review-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .shipment-review-header {
    padding: 14px;
  }

  .shipment-review-modal .shipment-review {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .shipment-form-grid {
    grid-template-columns: 1fr;
  }

  .shipment-form-grid .shipment-form-wide {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .documents-heading {
    flex-direction: column;
  }

  .documents-actions {
    justify-content: space-between;
    width: 100%;
  }

  .contract-detail-shell .topbar {
    padding: 0 14px;
  }

  .contract-detail-shell .profile-meta, .contract-detail-shell .profile-caret {
    display: none;
  }
}

@media (max-width: 950px) {
  .contract-detail-shell .sidebar.collapsed ~ .main-column {
    margin-left: 75px;
  }
}

.live-contract-body.no-source-pdf {
  grid-template-rows: minmax(0, 1fr);
}

.pdf-preview-modal:has(.ai-extraction) {
  width: min(96vw, 1500px);
}

.ai-extraction {
  background: var(--panel);
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.ai-extraction .file-preview-summary {
  margin: 0;
}

.contract-extraction-progress {
  width: min(100%, 560px);
  margin: auto;
  padding: 28px;
}

.contract-extraction-progress-heading {
  color: var(--text);
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  display: flex;
}

.contract-extraction-progress-track {
  background: var(--soft);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.contract-extraction-progress-fill {
  border-radius: inherit;
  background: #16a34a;
  height: 100%;
  transition: width .45s;
}

.contract-extraction-progress p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.ai-layout {
  flex: 1;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  min-height: 0;
  display: grid;
}

.ai-results {
  min-width: 0;
  padding: 20px 24px;
  overflow: auto;
}

.ai-pdf {
  border-left: 1px solid var(--line);
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  display: flex;
}

.ai-pdf h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.ai-pdf iframe {
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 1;
  width: 100%;
  min-height: 400px;
}

.ai-section {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 0 0 20px;
  padding: 15px;
}

.ai-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.ai-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.ai-fields label {
  color: var(--muted);
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  display: flex;
}

.ai-fields input, .ai-pair input, .ai-section textarea {
  border: 1px solid var(--line);
  background: var(--panel);
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: inherit;
  border-radius: 6px;
  padding: 8px 9px;
}

.ai-fields input::placeholder, .ai-section textarea::placeholder {
  color: var(--muted);
}

.ai-fields input:focus, .ai-pair input:focus, .ai-section textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.ai-section textarea {
  resize: vertical;
  min-height: 64px;
  margin: 8px 0;
  display: block;
}

.ai-pairs {
  margin: -5px 0 20px;
  padding: 0 15px;
}

.ai-pairs h4 {
  margin: 0 0 8px;
}

.ai-pair {
  gap: 7px;
  margin: 5px 0;
  display: flex;
}

.ai-json {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 12px;
}

.ai-json summary {
  cursor: pointer;
  font-weight: 600;
}

.ai-json pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 340px;
  font-size: 13px;
  overflow: auto;
}

.ai-section .file-preview-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.ai-section .file-preview-table {
  min-width: 1000px;
}

.ai-section .file-preview-edit-input {
  min-width: 95px;
}

@media (max-width: 900px) {
  .ai-layout {
    flex-direction: column-reverse;
    display: flex;
    overflow: auto;
  }

  .ai-results {
    padding: 16px;
    overflow: visible;
  }

  .ai-pdf {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    min-height: 330px;
  }

  .ai-pdf iframe {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .ai-fields {
    grid-template-columns: 1fr;
  }

  .ai-extraction .file-preview-actions {
    flex-wrap: wrap;
  }
}

:root {
  --brand: #5046e5;
  --brand-dark: #4338ca;
  --text: #202236;
  --muted: #667085;
  --line: #eaebf1;
  --canvas: #f7f8fc;
  --panel: #fff;
  --sidebar: #fff;
  --soft: #f4f5fa;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  background: var(--canvas);
  min-height: 100vh;
  color: var(--text);
  transition: background .18s, color .18s;
}

.sidebar {
  z-index: 20;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  flex-direction: column;
  width: 252px;
  padding: 0 15px;
  transition: width .2s, background .18s, transform .2s;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  height: 72px;
  padding: 0 7px;
  display: flex;
}

.brand-logo {
  object-fit: contain;
  width: 176px;
  height: auto;
  display: block;
}

.brand-mark {
  background: var(--brand);
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 30px;
  height: 30px;
  display: flex;
  transform: rotate(-8deg);
}

.brand-mark span {
  background: #fff;
  border-radius: 3px;
  width: 3px;
  height: 12px;
  transform: skew(-17deg);
}

.brand-mark span:nth-child(2) {
  height: 17px;
}

.brand-mark span:nth-child(3) {
  height: 9px;
}

.brand-name {
  letter-spacing: -1px;
  color: var(--text);
  font-size: 21px;
  font-weight: 750;
}

.brand-dot {
  color: var(--brand);
}

.collapse-btn {
  color: #85899c;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  margin-left: auto;
  padding: 7px;
  display: grid;
}

.collapse-btn:hover, .icon-btn:hover {
  background: var(--soft);
}

.workspace {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 18px 0 16px;
  padding: 10px;
  display: flex;
}

.workspace-icon {
  color: #5349dc;
  background: #e4e0ff;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 31px;
  height: 31px;
  font-weight: 700;
  display: grid;
}

.workspace-text {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.workspace-text b {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

.workspace-text small {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}

.workspace-chevron {
  color: var(--muted);
  margin-left: auto;
  font-size: 18px;
}

.side-nav {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.nav-section {
  color: #a1a4b2;
  letter-spacing: 1px;
  margin: 16px 10px 6px;
  font-size: 13px;
  font-weight: 700;
}

.nav-section:first-child {
  margin-top: 0;
}

.nav-link {
  text-align: left;
  color: #666b7f;
  background: none;
  border: 0;
  border-radius: 7px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  font-size: 14px;
  transition: all .15s;
  display: flex;
}

.nav-link svg {
  color: #8d91a2;
  flex: none;
}

.nav-link:hover {
  color: var(--brand);
  background: var(--soft);
}

.nav-link.active {
  color: var(--brand);
  background: #f0efff;
  font-weight: 650;
}

.nav-link.active svg {
  color: var(--brand);
}

.nav-link em {
  color: #6b60e5;
  text-align: center;
  background: #e4e1ff;
  border-radius: 5px;
  min-width: 21px;
  margin-left: auto;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 19px;
}

.settings-section {
  margin-top: 22px;
}

.sidebar-bottom {
  margin-top: auto;
}

.help-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  margin: 10px 0 11px;
  padding: 11px 9px;
  display: flex;
}

.help-card > svg {
  color: #9295a4;
  margin-left: auto;
}

.help-icon {
  width: 24px;
  height: 24px;
  color: var(--brand);
  background: #e6e3ff;
  border-radius: 50%;
  place-items: center;
  font-weight: 700;
  display: grid;
}

.help-card div:nth-child(2) {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.help-card b {
  font-size: 13px;
}

.help-card small {
  color: var(--muted);
  font-size: 13px;
}

.sign-out {
  border-top: 1px solid var(--line);
  color: #888c9e;
  border-radius: 0;
  padding-top: 11px;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  color: #a6a9b5;
  letter-spacing: .45px;
  justify-content: space-between;
  padding: 14px 9px 17px;
  font-size: 13px;
  display: flex;
}

.sidebar.collapsed {
  width: 75px;
  padding: 0 11px;
}

.sidebar.collapsed .brand-name, .sidebar.collapsed .workspace-text, .sidebar.collapsed .workspace-chevron, .sidebar.collapsed .nav-link span, .sidebar.collapsed .nav-link em, .sidebar.collapsed .nav-section, .sidebar.collapsed .help-card, .sidebar.collapsed .sidebar-footer {
  display: none;
}

.sidebar.collapsed .brand {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .collapse-btn {
  margin-left: 0;
}

.sidebar.collapsed .workspace {
  justify-content: center;
  padding: 7px;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0;
}

.main-column {
  min-height: 100vh;
  margin-left: 252px;
  transition: margin .2s;
}

.sidebar.collapsed ~ .main-column {
  margin-left: 75px;
}

.topbar {
  z-index: 10;
  color: #fff;
  background: #5046e5;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 34px;
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 9px #3027a31a;
}

.topbar-left, .topbar-actions {
  align-items: center;
  display: flex;
}

.breadcrumb {
  color: #d8d5ff;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.breadcrumb svg {
  opacity: .65;
}

.breadcrumb b {
  color: #fff;
  font-weight: 600;
}

.topbar-actions {
  gap: 14px;
  position: relative;
}

.icon-btn {
  color: #fff;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
  position: relative;
}

.icon-btn:hover {
  background: #ffffff1c;
}

.notification-btn i {
  background: #ffbd4a;
  border: 1px solid #5046e5;
  border-radius: 100%;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 5px;
  right: 6px;
}

.topbar-divider {
  background: #ffffff46;
  width: 1px;
  height: 25px;
}

.profile-menu {
  color: #fff;
  text-align: left;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 0;
  display: flex;
}

.avatar {
  color: #925b2d;
  background: #fde2ca;
  border-radius: 50%;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.profile-meta {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.profile-meta b {
  font-size: 13px;
  font-weight: 600;
}

.profile-meta small {
  color: #d8d5ff;
  font-size: 13px;
}

.profile-caret {
  color: #d8d5ff;
  margin-left: 3px;
}

.profile-dropdown {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 150px;
  padding: 5px;
  position: absolute;
  top: 46px;
  right: 0;
  box-shadow: 0 8px 24px #11182722;
}

.profile-dropdown button {
  text-align: left;
  width: 100%;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 9px;
  font-size: 14px;
  display: block;
}

.profile-dropdown button:hover {
  background: var(--soft);
}

.mobile-menu {
  color: #fff;
  background: none;
  border: 0;
  margin-right: 8px;
  padding: 6px;
  display: none;
}

.notification-box {
  background: var(--panel);
  width: min(520px, 100vw - 24px);
  max-height: min(540px, 100vh - 90px);
  color: var(--text);
  border: 1px solid var(--line);
  z-index: 30;
  border-radius: 12px;
  flex-direction: column;
  display: flex;
  position: absolute;
  top: 46px;
  right: 0;
  overflow: hidden;
  box-shadow: 0 14px 40px #11182733;
}

.notification-box-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  display: flex;
}

.notification-box-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.notification-box-toolbar {
  justify-content: flex-end;
  display: flex;
}

.notification-box-mark-all {
  color: var(--brand);
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.notification-box-mark-all:hover:not([aria-disabled="true"]) {
  text-decoration: underline;
}

.notification-box-mark-all:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.notification-box-mark-all[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
}

.notification-box-close, .notification-box-dismiss {
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 22px;
  line-height: 1;
}

.notification-box-close:hover, .notification-box-dismiss:hover {
  background: var(--soft);
  color: var(--text);
}

.notification-box-list {
  overflow-y: auto;
}

.notification-box-item {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
}

.notification-box-item.is-read {
  background: var(--soft);
}

.notification-box-item.is-read .notification-box-item-top strong, .notification-box-item.is-read .notification-box-contract {
  color: var(--muted);
}

.notification-box-read-status {
  color: var(--muted);
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
}

.notification-box-item:last-child {
  border-bottom: 0;
}

.notification-box-item-top, .notification-box-item-actions {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.notification-box-item-top .notification-box-summary {
  scrollbar-width: none;
  white-space: nowrap;
  flex: 1;
  align-items: center;
  min-width: 0;
  margin: 0;
  display: flex;
  overflow-x: auto;
}

.notification-box-summary::-webkit-scrollbar {
  display: none;
}

.notification-box-summary-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.notification-box-summary .notification-box-link {
  white-space: nowrap;
  flex: none;
}

.notification-box-item-top .notification-box-dismiss {
  flex: none;
}

.notification-box-item-top strong {
  color: var(--text);
  font-size: 14px;
}

.notification-box-item p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.notification-box-item .notification-box-contract {
  color: var(--text);
  overflow-wrap: anywhere;
  font-weight: 600;
}

.notification-box-item-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.notification-box-link, .notification-box-read {
  color: #5046e5;
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
}

.notification-box-read {
  color: var(--muted);
}

.notification-box-link:hover, .notification-box-read:hover {
  text-decoration: underline;
}

.notification-box-empty, .notification-box-error {
  color: var(--muted);
  margin: 0;
  padding: 20px 18px;
  font-size: 13px;
}

.notification-box-error {
  color: #d23939;
  padding: 10px 18px 0;
}

.notification-control {
  flex: none;
  position: relative;
}

.notification-btn.is-open {
  background: #ffffff26;
}

.notification-count {
  color: #fff;
  background: #dc2626;
  border: 2px solid #5046e5;
  border-radius: 999px;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  position: absolute;
  top: -7px;
  right: -11px;
}

.notification-control .notification-box {
  max-height: min(540px, 100dvh - 88px);
  top: calc(100% + 20px);
  right: -8px;
}

.notification-box-header {
  gap: 10px;
}

.notification-box-total {
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  font-size: 12px;
}

.notification-box-close {
  flex: none;
}

@media (max-width: 800px) {
  .notification-control .notification-box {
    width: auto;
    max-height: calc(100dvh - 102px);
    position: fixed;
    top: 90px;
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 640px) {
  .app-shell .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar .profile-meta, .topbar .profile-caret {
    display: none;
  }

  .topbar .breadcrumb {
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
  }
}

.page-content {
  max-width: 1530px;
  margin: 0 auto;
  padding: 28px 34px 18px;
}

.page-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
  display: flex;
}

.eyebrow {
  color: #999caf;
  letter-spacing: .7px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}

.eyebrow span {
  color: #c3c5cf;
  padding: 0 3px;
}

.page-heading h1 {
  letter-spacing: -.65px;
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.page-heading p {
  color: #898da0;
  margin: 5px 0 0;
  font-size: 13px;
}

.heading-actions {
  gap: 9px;
  display: flex;
}

.button {
  white-space: nowrap;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, border-color .15s;
  display: inline-flex;
}

.button-outline {
  background: var(--panel);
  border: 1px solid var(--line);
  color: #555a6e;
}

.button-outline:hover {
  color: var(--brand);
  border-color: #c9c7ef;
}

.button-primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  box-shadow: 0 2px 3px #5046e51d;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.down-caret {
  color: #9599a9;
  margin-left: 3px;
  font-size: 16px;
  line-height: 10px;
}

.button-primary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.delete-confirm-backdrop {
  color: var(--text);
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

.delete-confirm-backdrop.dark {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

.delete-confirm-actions .button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.admin-access .row-actions .resend-link-button {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  justify-content: center;
  gap: 7px;
  min-width: 132px;
  height: 34px;
  padding: 0 11px;
  font-weight: 650;
}

.admin-access .resend-link-button svg, .admin-access .resend-link-spinner {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: block;
}

.admin-access .row-actions .resend-link-button:hover:not(:disabled) {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.admin-access .row-actions .resend-link-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.admin-access .row-actions .resend-link-button:disabled {
  opacity: .65;
  cursor: wait;
}

.admin-access .resend-link-spinner {
  border: 2px solid var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .admin-access .resend-link-spinner {
    border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent);
  }
}

.admin-access .resend-link-spinner {
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: .7s linear infinite access-spin;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 15px;
  display: grid;
}

.kpi-card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 2px 5px #27304c05;
}

.kpi-card {
  min-width: 0;
  padding: 14px 15px 12px;
}

.kpi-top {
  color: #777c90;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 550;
  display: flex;
}

.kpi-icon {
  border-radius: 8px;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}

.lavender-bg {
  color: #6358e9;
  background: #f0efff;
}

.blue-bg {
  color: #4881d7;
  background: #eaf3ff;
}

.amber-bg {
  color: #de9c32;
  background: #fff4dc;
}

.green-bg {
  color: #33a578;
  background: #e8f7ef;
}

.dollar-sign {
  font-size: 18px;
  font-weight: 650;
}

.kpi-number {
  letter-spacing: -.65px;
  color: var(--text);
  margin: 10px 0 9px;
  font-size: 22px;
  font-weight: 720;
}

.kpi-number small {
  color: #a0a3b0;
  letter-spacing: 0;
  margin-left: 5px;
  font-size: 13px;
  font-weight: 500;
}

.kpi-foot {
  color: #a0a3b0;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  font-size: 13px;
  display: flex;
}

.trend {
  font-weight: 650;
}

.trend.positive {
  color: #27a674;
}

.trend.negative {
  color: #e19b36;
}

.sparkline {
  letter-spacing: 1px;
  margin-left: auto;
  font-size: 16px;
  line-height: 12px;
}

.purple-line {
  color: #786df1;
}

.blue-line {
  color: #65a0e9;
}

.amber-line {
  color: #e8b856;
}

.green-line {
  color: #51bc8d;
}

.overview-grid {
  grid-template-columns: .95fr 1.55fr;
  gap: 14px;
  margin-bottom: 15px;
  display: grid;
}

.panel {
  min-width: 0;
}

.shipment-panel, .activity-panel {
  height: 226px;
  padding: 15px 17px;
}

.panel-heading {
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
}

.panel-heading h2, .title-with-count h2 {
  letter-spacing: -.15px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.panel-heading p, .table-heading p {
  color: #999cad;
  margin: 4px 0 0;
  font-size: 13px;
}

.more-btn {
  color: #999cad;
  background: none;
  border: 0;
  padding: 2px;
}

.shipment-content {
  justify-content: space-around;
  align-items: center;
  height: 157px;
  display: flex;
}

.donut-wrap {
  justify-content: center;
  width: 125px;
  display: flex;
}

.donut {
  background: conic-gradient(#6257e9 0 37.9%,#5794e2 37.9% 62.2%,#53b98a 62.2% 93.2%,#e2e4eb 93.2% 100%);
  border-radius: 50%;
  place-items: center;
  width: 116px;
  height: 116px;
  display: grid;
  position: relative;
}

.donut:after {
  content: "";
  background: var(--panel);
  border-radius: 50%;
  position: absolute;
  inset: 11px;
}

.donut-center {
  z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  display: flex;
  position: relative;
}

.donut-center b {
  letter-spacing: -.5px;
  font-size: 20px;
}

.donut-center small {
  color: #999cad;
  font-size: 13px;
}

.shipment-legend {
  flex-direction: column;
  flex: 1;
  gap: 11px;
  max-width: 180px;
  display: flex;
}

.shipment-legend > div {
  color: #73788b;
  grid-template-columns: 9px 1fr auto auto;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: grid;
}

.shipment-legend b {
  color: var(--text);
  font-size: 13px;
}

.shipment-legend small {
  text-align: right;
  color: #9da0ad;
  width: 33px;
  font-size: 13px;
}

.legend-dot {
  border-radius: 50%;
  width: 7px;
  height: 7px;
  display: inline-block;
}

.dot-purple {
  background: #6257e9;
}

.dot-blue {
  background: #5794e2;
}

.dot-green {
  background: #53b98a;
}

.dot-gray {
  background: #d3d5df;
}

.activity-panel {
  padding-bottom: 8px;
}

.mini-select {
  color: #757a8d;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  height: 34px;
  padding: 0 7px;
  font-size: 14px;
}

.chart-legend {
  color: #82879a;
  gap: 15px;
  margin: 12px 0 2px;
  font-size: 13px;
  display: flex;
}

.chart-legend span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.chart-dot {
  border-radius: 100%;
  width: 6px;
  height: 6px;
  display: inline-block;
}

.chart-dot.violet {
  background: #5046e5;
}

.chart-dot.pale {
  background: #b7bcfa;
}

.chart-area {
  height: 127px;
  display: flex;
}

.chart-y {
  color: #a1a4b1;
  flex-direction: column;
  justify-content: space-between;
  width: 39px;
  height: 108px;
  padding: 5px 0 0;
  font-size: 13px;
  display: flex;
}

.chart-plot {
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  height: 108px;
  display: flex;
  position: relative;
}

.grid-line {
  background: var(--line);
  width: 100%;
  height: 1px;
}

.chart-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.chart-x {
  color: #a1a4b1;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  display: flex;
  position: absolute;
  top: calc(100% + 5px);
}

.contract-panel {
  overflow: hidden;
}

.table-heading {
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 13px;
  display: flex;
}

.title-with-count {
  align-items: center;
  gap: 7px;
  display: flex;
}

.count-pill {
  color: #7166e8;
  background: #f0efff;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 650;
}

.table-actions {
  gap: 7px;
  display: flex;
}

.search-box {
  background: var(--panel);
  color: #9b9eaa;
  border: 1px solid var(--line);
  border-radius: 5px;
  align-items: center;
  gap: 7px;
  width: 210px;
  height: 34px;
  padding: 0 9px;
  display: flex;
}

.search-box:focus-within {
  border-color: #a8a3f4;
  box-shadow: 0 0 0 2px #5046e511;
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #a6a9b6;
}

.table-actions .button {
  height: 31px;
  font-size: 14px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  width: 100%;
}

thead {
  background: #fafafd;
}

th {
  color: #9699a8;
  letter-spacing: .55px;
  height: 34px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 650;
}

th:first-child, td:first-child {
  padding-left: 16px;
}

th:last-child, td:last-child {
  padding-right: 16px;
}

td {
  border-top: 1px solid var(--line);
  color: #72778a;
  height: 54px;
  padding: 0 11px;
  font-size: 14px;
}

.party {
  align-items: center;
  gap: 8px;
  display: flex;
}

.party-avatar {
  border-radius: 7px;
  place-items: center;
  width: 27px;
  height: 27px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.party-avatar.lavender {
  color: #685fe0;
  background: #efedff;
}

.party-avatar.peach {
  color: #c47644;
  background: #fff0e6;
}

.party-avatar.mint {
  color: #319b72;
  background: #e6f7ef;
}

.party-avatar.blue {
  color: #4a83ce;
  background: #e8f2ff;
}

.party-avatar.rose {
  color: #c76687;
  background: #fff0f4;
}

.party > span:last-child {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.party b {
  color: #3d4154;
  font-size: 13px;
  font-weight: 650;
}

.party small {
  color: #a1a4b1;
  font-size: 13px;
}

.contract-no {
  color: #6b60db;
  font-weight: 550;
}

.money-cell {
  color: #3c4052;
  font-weight: 650;
}

.date-cell {
  color: #85899a;
}

.badge {
  border-radius: 11px;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  font-size: 13px;
  font-weight: 550;
  display: inline-flex;
}

.badge i {
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.badge.purple {
  color: #665cdd;
  background: #efedff;
}

.badge.purple i {
  background: #7065e5;
}

.badge.blue {
  color: #4882ca;
  background: #eaf3ff;
}

.badge.blue i {
  background: #558bd1;
}

.badge.green {
  color: #298b65;
  background: #e7f7ee;
}

.badge.green i {
  background: #35a475;
}

.badge.amber {
  color: #b98023;
  background: #fff5df;
}

.badge.amber i {
  background: #e3a336;
}

.table-footer {
  border-top: 1px solid var(--line);
  color: #989cab;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  font-size: 13px;
  display: flex;
}

.table-footer b {
  color: #656a7d;
  font-weight: 600;
}

.pagination {
  align-items: center;
  gap: 4px;
  display: flex;
}

.pagination button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: #777c8e;
  border-radius: 5px;
  min-width: 32px;
  height: 32px;
  font-size: 14px;
}

.pagination button:disabled {
  color: #c4c6ce;
}

.pagination .current-page {
  color: var(--brand);
  background: #f0efff;
  border-color: #d9d6ff;
}

.pagination span {
  color: #9b9ead;
  padding: 0 3px;
}

.pagination select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: #777c8e;
  border-radius: 5px;
  height: 32px;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 14px;
}

.bottom-note {
  color: #a0a3b0;
  justify-content: space-between;
  padding: 12px 3px 0;
  font-size: 13px;
  display: flex;
}

.bottom-note button {
  color: #777c90;
  background: none;
  border: 0;
  font-size: 14px;
}

.bottom-note button span {
  color: var(--brand);
  padding-left: 4px;
  font-size: 16px;
}

.page-footer {
  border-top: 1px solid var(--line);
  color: #a0a3b0;
  justify-content: space-between;
  margin-top: 29px;
  padding: 14px 1px 2px;
  font-size: 13px;
  display: flex;
}

.page-footer div {
  gap: 19px;
  display: flex;
}

.page-footer a {
  color: #8b8fa0;
  text-decoration: none;
}

.page-footer a:hover {
  color: var(--brand);
}

.placeholder-page {
  min-height: 480px;
  padding: 22px;
}

.profile-cover {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 13px;
  padding: 0 0 20px;
  display: flex;
}

.avatar-large {
  width: 55px;
  height: 55px;
  font-size: 18px;
}

.profile-cover h2 {
  margin: 0;
  font-size: 18px;
}

.profile-cover p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.profile-cover .button {
  margin-left: auto;
}

.profile-form {
  max-width: 780px;
  padding-top: 19px;
}

.profile-form h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 13px 16px;
  margin-bottom: 23px;
  display: grid;
}

.form-grid label {
  color: #666b7d;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.form-grid input {
  background: var(--panel);
  border: 1px solid var(--line);
  height: 35px;
  color: var(--text);
  border-radius: 5px;
  outline: 0;
  padding: 0 10px;
  font-weight: 400;
}

.form-grid input:focus {
  border-color: #a8a3f4;
}

.wide-field {
  grid-column: 1 / -1;
}

.save-btn {
  min-width: 105px;
}

.generic-empty {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 430px;
  display: flex;
}

.empty-icon {
  width: 52px;
  height: 52px;
  color: var(--brand);
  background: #f0efff;
  border-radius: 14px;
  place-items: center;
  display: grid;
}

.generic-empty h2 {
  margin: 17px 0 5px;
  font-size: 19px;
}

.generic-empty p {
  color: #8e92a3;
  margin: 0 0 18px;
  font-size: 13px;
}

.scrim {
  display: none;
}

.dark {
  --text: #e8eaf4;
  --muted: #adb5c8;
  --line: #2b3042;
  --canvas: #171a25;
  --panel: #202432;
  --sidebar: #1c202c;
  --soft: #272c3b;
}

.dark .topbar {
  background: #5046e5;
}

.dark .nav-link {
  color: #a4a8b8;
}

.dark .nav-link.active {
  color: #b3adff;
  background: #302d54;
}

.dark .nav-link.active svg {
  color: #b3adff;
}

.dark .party b, .dark .money-cell {
  color: #e0e3ee;
}

.dark thead {
  background: #252938;
}

.dark .kpi-top, .dark td {
  color: #a1a6b8;
}

.dark .workspace-icon {
  color: #c2bdff;
  background: #393555;
}

.dark .brand-name {
  color: #eceef7;
}

.dark .brand-name .brand-dot {
  color: #a9a2ff;
}

.dark .donut-center small {
  color: #9ca1b3;
}

.dark .chart-y, .dark .chart-x {
  color: #9297a9;
}

.dark .page-heading p, .dark .panel-heading p, .dark .table-heading p {
  color: #9a9eb0;
}

.dark .button-outline, .dark .mini-select, .dark .search-box, .dark .pagination button, .dark .pagination select {
  color: #c2c6d4;
}

.dark .table-footer b {
  color: #d5d8e3;
}

.dark .table-footer, .dark .bottom-note, .dark .page-footer {
  color: #969aac;
}

.dark .badge.purple {
  color: #b7b0ff;
  background: #373251;
}

.dark .badge.blue {
  color: #9fc5f6;
  background: #263a51;
}

.dark .badge.green {
  color: #83d2ad;
  background: #233d36;
}

.dark .badge.amber {
  color: #e9bf6e;
  background: #453a29;
}

.dark .count-pill {
  color: #b7b0ff;
  background: #373251;
}

.dark .donut:after, .dark .profile-dropdown {
  background: var(--panel);
}

.dark .nav-link:hover {
  color: #c5c1ff;
}

.dark .search-box input {
  color: var(--text);
}

@media (max-width: 1200px) {
  .page-content, .topbar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sidebar {
    width: 226px;
  }

  .main-column {
    margin-left: 226px;
  }

  .kpi-card {
    padding: 13px 12px;
  }

  .kpi-number {
    font-size: 19px;
  }

  .overview-grid {
    grid-template-columns: 1fr 1.3fr;
  }
}

@media (max-width: 950px) {
  .sidebar {
    width: 75px;
    padding: 0 11px;
  }

  .sidebar .brand-name, .sidebar .workspace-text, .sidebar .workspace-chevron, .sidebar .nav-link span, .sidebar .nav-link em, .sidebar .nav-section, .sidebar .help-card, .sidebar .sidebar-footer {
    display: none;
  }

  .sidebar .brand {
    justify-content: center;
    padding: 0;
  }

  .sidebar .collapse-btn {
    display: none;
  }

  .sidebar .workspace {
    justify-content: center;
    padding: 7px;
  }

  .sidebar .nav-link {
    justify-content: center;
    padding: 0;
  }

  .main-column {
    margin-left: 75px;
  }

  .sidebar .sign-out {
    display: flex;
  }

  .sidebar .sign-out span {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .shipment-panel, .activity-panel {
    height: 220px;
  }

  .shipment-content {
    justify-content: flex-start;
    gap: 50px;
  }

  .shipment-legend {
    max-width: 250px;
  }

  .table-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .table-actions {
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .table-scroll table {
    min-width: 920px;
  }
}

.table-sort {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.table-sort span {
  color: var(--brand);
  margin-left: 2px;
  font-size: 13px;
}

.user-table-heading {
  padding-bottom: 14px;
}

.row-actions {
  gap: 5px;
  display: flex;
}

.row-actions .button {
  min-height: 32px;
  padding: 0 8px;
  font-size: 14px;
}

.row-actions .button:disabled {
  opacity: .7;
  cursor: default;
}

.auth-wrap {
  background: radial-gradient(at 50% 0, #5046e50b, #0000 55%);
  place-items: center;
  min-height: 500px;
  padding: 25px;
  display: grid;
}

.auth-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  width: min(100%, 390px);
  padding: 28px 30px;
  box-shadow: 0 12px 36px #20243a0b;
}

.auth-mark {
  margin-bottom: 13px;
}

.auth-kicker {
  color: var(--brand);
  letter-spacing: 1.2px;
  font-size: 13px;
  font-weight: 700;
}

.auth-card h2 {
  letter-spacing: -.5px;
  margin: 7px 0 6px;
  font-size: 21px;
}

.auth-card > p {
  color: #9094a4;
  margin: 0 0 21px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-card form {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.auth-card form label {
  color: #62677a;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.auth-card form input {
  width: 100%;
  height: 36px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  padding: 0 10px;
  font-weight: 400;
}

.auth-card form input:focus {
  border-color: #a8a3f4;
}

.auth-submit {
  width: 100%;
  height: 37px;
  margin-top: 3px;
}

.auth-links {
  color: #9296a5;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  display: flex;
}

.auth-links button {
  color: var(--brand);
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
}

.auth-links > span {
  white-space: nowrap;
}

.dark .auth-card form label {
  color: #b2b6c5;
}

.dark .auth-links {
  color: #999eae;
}

.admin-access {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.invite-panel {
  padding: 16px;
}

.invite-panel h2 {
  margin: 0;
  font-size: 15px;
}

.invite-panel p {
  color: var(--muted);
  margin: 5px 0 14px;
  font-size: 13px;
}

.invite-form {
  grid-template-columns: minmax(180px, 1fr) 170px auto;
  align-items: end;
  gap: 10px;
  display: grid;
}

.invite-form label {
  color: #666b7d;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.invite-form input, .invite-form select {
  border: 1px solid var(--line);
  background: var(--panel);
  height: 34px;
  color: var(--text);
  border-radius: 5px;
  outline: 0;
  padding: 0 9px;
}

.invite-form input:focus, .invite-form select:focus {
  border-color: #a8a3f4;
}

.api-message {
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
}

.api-error {
  color: #a93737;
  background: #fff0f0;
  border: 1px solid #f5d3d3;
}

.api-success, .auth-info {
  color: #247553;
  background: #eaf8f0;
  border: 1px solid #ccebd9;
}

.access-table-panel {
  overflow: hidden;
}

.access-table-panel .table-heading {
  padding: 14px 16px;
}

.empty-hint {
  color: #9296a5;
  padding: 12px 16px;
  font-size: 13px;
}

.auth-route {
  background: var(--canvas);
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.auth-route .auth-card {
  width: min(100%, 420px);
  padding: 30px;
}

.auth-brand {
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 16px;
  font-size: 23px;
  font-weight: 750;
  text-decoration: none;
  display: inline-block;
}

.auth-brand span {
  color: var(--brand);
}

.auth-route h1 {
  letter-spacing: -.45px;
  margin: 7px 0 6px;
  font-size: 21px;
}

.auth-route .auth-card > p {
  margin-bottom: 18px;
}

.auth-route-form {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.auth-route-form label {
  color: #62677a;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.auth-route-form input {
  border: 1px solid var(--line);
  background: var(--panel);
  height: 37px;
  color: var(--text);
  border-radius: 5px;
  outline: 0;
  padding: 0 10px;
  font-weight: 400;
}

.auth-route-form input:focus {
  border-color: #a8a3f4;
}

.auth-route-links {
  justify-content: space-between;
  margin-top: 17px;
  font-size: 13px;
  display: flex;
}

.auth-route-links a, .auth-info a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-info {
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.dark .invite-form label, .dark .auth-route-form label {
  color: #b2b6c5;
}

.dark .api-error {
  color: #ffc3c3;
  background: #402b32;
  border-color: #654047;
}

.dark .api-success, .dark .auth-info {
  color: #a2e3c1;
  background: #233d36;
  border-color: #315746;
}

.dark .auth-route-links {
  color: #b0b4c2;
}

@media (max-width: 640px) {
  .invite-form {
    grid-template-columns: 1fr;
  }

  .invite-form button {
    width: 100%;
  }

  .auth-route {
    padding: 14px;
  }

  .auth-route .auth-card {
    padding: 24px 20px;
  }

  .access-table-panel table {
    min-width: 730px;
  }
}

.user-address-cell {
  text-overflow: ellipsis;
  max-width: 180px;
  overflow: hidden;
}

.dashboard-kpis {
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-kpis .kpi-card {
  --kpi-accent: #7067e9;
  border-top: 3px solid var(--kpi-accent);
  border-radius: 10px;
  flex-direction: column;
  min-height: 148px;
  padding: 17px 18px 15px;
  transition: box-shadow .18s, transform .18s;
  display: flex;
  position: relative;
  box-shadow: 0 5px 16px #242a3a08;
}

.dashboard-kpis .kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px #242a3a10;
}

.dashboard-kpis .kpi-shipments, .dashboard-kpis .kpi-contracts {
  --kpi-accent: #4881d7;
}

.dashboard-kpis .kpi-overdue {
  --kpi-accent: #d89531;
}

.dashboard-kpis .kpi-profit {
  --kpi-accent: #33a578;
}

.dashboard-kpis .kpi-top {
  color: var(--kpi-accent);
  letter-spacing: .05px;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-kpis .kpi-icon {
  border-radius: 9px;
  width: 36px;
  height: 36px;
}

.dashboard-kpis .kpi-number {
  color: var(--kpi-accent);
  letter-spacing: -.9px;
  font-variant-numeric: tabular-nums;
  margin: 13px 0 12px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.05;
}

.dashboard-kpis .kpi-number small {
  color: inherit;
  font-size: 13px;
}

.dashboard-kpis .kpi-card .kpi-top > span:first-child, .dashboard-kpis .kpi-card .kpi-number, .dashboard-kpis .kpi-card .kpi-number > span {
  color: var(--kpi-accent);
}

.dashboard-kpis .kpi-foot {
  height: auto;
  min-height: 20px;
  color: var(--muted);
  gap: 7px;
  font-size: 13px;
}

.dashboard-kpis .kpi-foot .trend {
  font-variant-numeric: tabular-nums;
  background: #eaf7f0;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 13px;
}

.dashboard-kpis .kpi-foot .trend.negative {
  color: #a96b14;
  background: #fff4df;
}

.dashboard-kpis .sparkline {
  letter-spacing: 0;
  font-size: 18px;
}

.dashboard-overview-grid {
  grid-template-columns: minmax(340px, .92fr) minmax(0, 1.58fr);
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-overview-grid .dashboard-shipment-panel, .dashboard-overview-grid .dashboard-chart-panel {
  border-radius: 10px;
  height: 282px;
  padding: 19px 20px;
  box-shadow: 0 5px 16px #242a3a08;
}

.dashboard-overview-grid .panel-heading h2 {
  font-size: 15px;
}

.dashboard-overview-grid .panel-heading p {
  margin-top: 5px;
  font-size: 13px;
}

.dashboard-overview-grid .shipment-content {
  justify-content: space-between;
  gap: 15px;
  height: 205px;
}

.dashboard-overview-grid .donut-wrap {
  flex: 0 0 145px;
  width: 145px;
}

.dashboard-overview-grid .donut {
  width: 132px;
  height: 132px;
  box-shadow: 0 4px 15px #5046e514;
}

.dashboard-overview-grid .donut:after {
  inset: 13px;
}

.dashboard-overview-grid .donut-center b {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
}

.dashboard-overview-grid .donut-center small {
  font-size: 13px;
}

.dashboard-overview-grid .shipment-legend {
  gap: 0;
  max-width: 210px;
}

.dashboard-overview-grid .shipment-legend > div {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 10px minmax(0, 1fr) auto 42px;
  gap: 7px;
  min-height: 38px;
  font-size: 13px;
}

.dashboard-overview-grid .shipment-legend > div:last-child {
  border-bottom: 0;
}

.dashboard-overview-grid .shipment-legend b {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.dashboard-overview-grid .shipment-legend small {
  font-variant-numeric: tabular-nums;
  width: auto;
  font-size: 13px;
}

.dashboard-overview-grid .activity-panel {
  padding-bottom: 16px;
}

.dashboard-overview-grid .chart-legend {
  gap: 17px;
  margin: 15px 0 5px;
  font-size: 13px;
}

.dashboard-overview-grid .chart-dot {
  width: 8px;
  height: 8px;
}

.dashboard-overview-grid .chart-area {
  height: 168px;
}

.dashboard-overview-grid .chart-y {
  font-variant-numeric: tabular-nums;
  flex: 0 0 100px;
  width: 100px;
  height: 145px;
  font-size: 13px;
}

.dashboard-overview-grid .chart-plot {
  height: 145px;
}

.dashboard-overview-grid .grid-line {
  background: var(--line);
}

@supports (color: color-mix(in lab, red, red)) {
  .dashboard-overview-grid .grid-line {
    background: color-mix(in srgb, var(--line) 78%, transparent);
  }
}

.dashboard-overview-grid .chart-x {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  top: calc(100% + 9px);
}

.dashboard-overview-grid .chart-svg path:nth-of-type(2) {
  stroke-width: 3.2px;
}

.dashboard-overview-grid .chart-svg path:nth-of-type(3) {
  stroke-width: 2.4px;
}

.chart-endpoint {
  stroke: var(--panel);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.chart-endpoint-value {
  fill: #5046e5;
}

.chart-endpoint-commission {
  fill: #a8aff2;
}

.dark .dashboard-kpis .kpi-foot .trend.positive {
  color: #83d2ad;
  background: #233d36;
}

.dark .dashboard-kpis .kpi-foot .trend.negative {
  color: #efc777;
  background: #453a29;
}

@media (max-width: 1200px) {
  .dashboard-kpis .kpi-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dashboard-kpis .kpi-foot {
    gap: 5px;
  }

  .dashboard-kpis .sparkline {
    display: none;
  }

  .dashboard-overview-grid {
    grid-template-columns: minmax(310px, .95fr) minmax(0, 1.4fr);
  }
}

@media (max-width: 950px) {
  .dashboard-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-overview-grid .dashboard-shipment-panel, .dashboard-overview-grid .dashboard-chart-panel {
    height: auto;
    min-height: 282px;
  }
}

@media (max-width: 640px) {
  .dashboard-kpis {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .dashboard-kpis .kpi-card {
    min-height: 132px;
    padding: 15px 16px 13px;
  }

  .dashboard-kpis .sparkline {
    display: inline;
  }

  .dashboard-overview-grid .dashboard-shipment-panel, .dashboard-overview-grid .dashboard-chart-panel {
    min-height: 0;
    padding: 17px 15px;
  }

  .dashboard-overview-grid .shipment-content {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: auto;
    padding-top: 20px;
  }

  .dashboard-overview-grid .shipment-legend {
    width: 100%;
    max-width: none;
  }

  .dashboard-overview-grid .chart-area {
    height: 155px;
  }

  .dashboard-overview-grid .chart-y {
    height: 130px;
    font-size: 13px;
  }

  .dashboard-overview-grid .chart-plot {
    height: 130px;
  }

  .dashboard-overview-grid .chart-x {
    font-size: 13px;
  }
}

.auth-route {
  background: #f1f2f6;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 100vh;
  padding: 48px 20px;
  display: flex;
}

.auth-brand {
  width: min(100%, 278px);
  margin: 0;
  line-height: 0;
  display: block;
}

.auth-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.auth-route .auth-card {
  border-color: #e5e7ec;
  border-radius: 10px;
  width: min(100%, 520px);
  padding: 38px 42px;
  box-shadow: 0 2px 8px #1b24320b;
}

.auth-kicker {
  margin-bottom: 7px;
  font-size: 13px;
}

.auth-route h1 {
  letter-spacing: -.6px;
  text-align: center;
  margin: 0 0 7px;
  font-size: 27px;
  line-height: 1.25;
}

.auth-route .auth-card > p {
  color: #73798a;
  text-align: center;
  margin: 0 0 27px;
  font-size: 16px;
  line-height: 1.55;
}

.auth-route-form {
  gap: 19px;
}

.auth-route-form label {
  color: #353a48;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.auth-route-form input {
  border-color: #d7dbe4;
  border-radius: 7px;
  height: 48px;
  padding: 0 14px;
  font-size: 17px;
}

.auth-route-form input:focus {
  border-color: #5046e5;
  box-shadow: 0 0 0 3px #5046e51a;
}

.auth-route .auth-submit {
  border-radius: 7px;
  height: 48px;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
}

.auth-route-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 23px;
  font-size: 14px;
}

.auth-route-links a {
  color: #5046e5;
}

.auth-route .api-message, .auth-route .auth-info {
  margin: 0 0 16px;
  font-size: 15px;
}

.auth-mark-image {
  width: 170px;
  height: auto;
  margin: 0 auto 17px;
  display: block;
}

@media (max-width: 640px) {
  .auth-route {
    justify-content: flex-start;
    gap: 20px;
    padding: 32px 14px 24px;
  }

  .auth-brand {
    width: min(70vw, 238px);
  }

  .auth-route .auth-card {
    padding: 28px 22px;
  }

  .auth-route h1 {
    font-size: 23px;
  }

  .auth-route .auth-card > p {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .auth-route-form label {
    font-size: 15px;
  }

  .auth-route-form input {
    height: 46px;
  }
}

.toast-stack {
  z-index: 2100;
  pointer-events: none;
  flex-direction: column;
  gap: 10px;
  width: min(390px, 100vw - 36px);
  display: flex;
  position: fixed;
  top: 18px;
  right: 18px;
}

.toast {
  pointer-events: auto;
  background: #fff;
  border: 1px solid;
  border-radius: 9px;
  grid-template-columns: 30px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 13px;
  animation: .18s ease-out toast-enter;
  display: grid;
  box-shadow: 0 12px 34px #1d24301f;
}

.toast-icon {
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 17px;
  font-weight: 750;
  display: grid;
}

.toast p {
  color: #303647;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.toast button {
  color: #85899c;
  background: none;
  border: 0;
  padding: 3px;
  font-size: 23px;
  line-height: 1;
}

.toast-success {
  border-color: #b9e5ce;
}

.toast-success .toast-icon {
  color: #168353;
  background: #e3f6eb;
}

.toast-error {
  border-color: #f0c1c1;
}

.toast-error .toast-icon {
  color: #bb3838;
  background: #fde8e8;
}

.toast-warning {
  border-color: #f0d69b;
}

.toast-warning .toast-icon {
  color: #9a6400;
  background: #fff2d2;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .toast-stack {
    width: calc(100vw - 24px);
    top: 12px;
    right: 12px;
  }
}

.approval-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  display: flex;
}

.approval-heading h2 {
  margin: 0;
  font-size: 16px;
}

.approval-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.access-control {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  display: flex;
}

.access-select {
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 82px;
  height: 30px;
  color: var(--text);
  border-radius: 5px;
  padding: 0 7px;
  font-size: 14px;
}

.access-select:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #5046e5;
}

.access-select:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.access-select-note {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}

.access-loading {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  display: inline-flex;
}

.access-loading-spinner {
  border: 2px solid #d9d8f8;
  border-top-color: #5046e5;
  border-radius: 50%;
  width: 11px;
  height: 11px;
  animation: .7s linear infinite access-spin;
}

@keyframes access-spin {
  to {
    transform: rotate(360deg);
  }
}

.dark .access-select-note, .dark .access-loading {
  color: #a5a9ba;
}

.modal-backdrop {
  z-index: 1000;
  background: #16182a80;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.invite-modal {
  width: min(100%, 430px);
  max-height: calc(100dvh - 40px);
  padding: 25px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 60px #11182735;
}

.invite-modal h2 {
  margin: 6px 0;
  font-size: 19px;
}

.invite-modal > p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 13px;
}

.modal-close {
  color: #85899c;
  background: none;
  border: 0;
  font-size: 23px;
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 13px;
}

.invite-modal-form {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.invite-modal-form label {
  color: #666b7d;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.invite-modal-form input, .invite-modal-form select {
  border: 1px solid var(--line);
  height: 36px;
  color: var(--text);
  background: var(--panel);
  border-radius: 5px;
  outline: 0;
  padding: 0 10px;
  font-weight: 400;
}

.invite-modal-form input:focus, .invite-modal-form select:focus {
  border-color: #a8a3f4;
}

.dark .approval-heading p, .dark .invite-modal-form label {
  color: #a5a9ba;
}

.profile-settings {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.profile-settings .profile-cover {
  padding: 0 0 18px;
}

.profile-sections {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.profile-section {
  min-width: 0;
  padding: 18px;
}

.profile-section-heading {
  margin-bottom: 14px;
}

.profile-section-heading h3 {
  margin: 0;
  font-size: 16px;
}

.profile-section-heading p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.profile-section .profile-form {
  max-width: none;
  padding-top: 0;
}

.profile-section .form-grid {
  margin-bottom: 15px;
}

.profile-section .password-form .form-grid {
  grid-template-columns: 1fr;
}

.profile-section .save-btn {
  min-width: 125px;
}

.field-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.profile-section input[readonly] {
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}

.profile-section .api-message {
  margin-bottom: 12px;
}

.dark .profile-section-heading p, .dark .field-note {
  color: #a5a9ba;
}

@media (max-width: 950px) {
  .profile-sections {
    grid-template-columns: 1fr;
  }
}

.sidebar.collapsed .brand-logo {
  display: none;
}

@media (max-width: 950px) {
  .sidebar .brand-logo {
    display: none;
  }
}

.file-modal-backdrop {
  z-index: 1200;
  background: #16182a80;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
  overflow: auto;
}

.file-preview-modal {
  flex-direction: column;
  width: min(100%, 1040px);
  max-height: min(850px, 100dvh - 40px);
  padding: 22px;
  display: flex;
  box-shadow: 0 20px 60px #11182735;
}

.file-modal-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 17px;
  display: flex;
}

.file-modal-heading .eyebrow {
  margin-bottom: 5px;
}

.file-modal-heading h2 {
  margin: 0;
  font-size: 19px;
}

.file-modal-heading p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.file-modal-close {
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 6px;
  font-size: 25px;
  line-height: 1;
}

.file-modal-close:hover {
  background: var(--soft);
  color: var(--text);
}

.file-modal-close:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.visually-hidden-file-input {
  clip: rect(0,0,0,0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.file-dropzone {
  min-height: 250px;
  color: var(--text);
  background: var(--soft);
  border: 1px dashed #c8c9dc;
  border-radius: 9px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .file-dropzone {
    background: color-mix(in srgb, var(--soft) 60%, var(--panel));
  }
}

.file-dropzone:hover, .file-dropzone.is-dragging {
  border-color: var(--brand);
  background: #f1f0ff;
}

.file-drop-icon {
  width: 42px;
  height: 42px;
  color: var(--brand);
  background: #eae8ff;
  border-radius: 12px;
  place-items: center;
  margin-bottom: 3px;
  font-size: 26px;
  font-weight: 500;
  display: grid;
}

.file-dropzone strong {
  font-size: 15px;
}

.file-dropzone span:not(.file-drop-icon) {
  color: var(--muted);
  font-size: 13px;
}

.file-dropzone small {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

.file-processing {
  min-height: 250px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.file-processing strong {
  max-width: 90%;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.file-spinner {
  border: 3px solid #deddf8;
  border-top-color: var(--brand);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: .7s linear infinite access-spin;
}

.file-preview-error {
  color: #9b3030;
  background: #fff5f5;
  border: 1px solid #f0c1c1;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
  padding: 11px 12px;
  font-size: 13px;
  display: flex;
}

.file-preview-error button {
  color: var(--brand);
  background: none;
  border: 0;
  flex: none;
  font-size: 14px;
  font-weight: 650;
}

.file-preview-summary {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  display: flex;
}

.file-preview-meta {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.file-preview-meta strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.file-preview-meta span {
  color: var(--muted);
  font-size: 13px;
}

.file-preview-actions {
  flex: none;
  gap: 7px;
  display: flex;
}

.file-preview-actions .button {
  height: 30px;
  font-size: 14px;
}

.file-preview-table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 120px;
  overflow: auto;
}

.pdf-preview-modal {
  width: min(100%, 700px);
}

.pdf-preview-pages {
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  padding: 2px 1px;
  display: flex;
  overflow: auto;
}

.pdf-preview-page {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  padding: 13px 14px;
}

.pdf-preview-page h3 {
  color: #696e81;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.pdf-preview-page p {
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.pdf-preview-edit-input {
  resize: vertical;
  border: 1px solid var(--line);
  width: 100%;
  min-height: 145px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.6;
}

.pdf-preview-edit-input:focus {
  border-color: var(--brand);
  outline: 2px solid #5046e522;
}

.file-preview-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
}

.file-preview-table th, .file-preview-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  max-width: 300px;
  padding: 9px 11px;
}

.file-preview-table th {
  z-index: 1;
  color: #696e81;
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.file-preview-table tr:last-child td {
  border-bottom: 0;
}

.file-preview-table th:last-child, .file-preview-table td:last-child {
  border-right: 0;
}

.file-preview-edit-input {
  border: 1px solid var(--line);
  width: 100%;
  min-width: 110px;
  min-height: 28px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  border-radius: 4px;
  padding: 4px 6px;
}

.file-preview-edit-input:focus {
  border-color: var(--brand);
  outline: 2px solid #5046e522;
}

.file-empty-cell {
  color: #a6a9b5;
}

.file-preview-limit {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 13px;
}

.file-modal-footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  display: flex;
}

.file-modal-footer > span {
  color: var(--muted);
  font-size: 13px;
}

.file-modal-footer .button {
  min-width: 75px;
  height: 30px;
}

.dark .file-dropzone:hover, .dark .file-dropzone.is-dragging {
  background: #29264f;
}

.dark .file-preview-error {
  color: #f3aaaa;
  background: #38272d;
  border-color: #713e46;
}

.dark .file-preview-table th {
  color: #c5c8d2;
}

.pdf-preview-modal {
  border-radius: 15px;
  width: min(100%, 820px);
  max-height: min(900px, 100dvh - 40px);
  padding: 0;
  overflow: hidden;
}

.pdf-document-header {
  color: #fff;
  background: #5046e5;
  flex: none;
  align-items: center;
  padding: 22px 24px 17px;
}

.pdf-document-header .eyebrow {
  color: #d1dfd9;
  letter-spacing: .45px;
  font-size: 13px;
  display: block;
}

.pdf-document-header h2 {
  color: #fff;
  font-size: 19px;
  font-weight: 650;
}

.pdf-document-header p {
  color: #d4e1dc;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(65vw, 600px);
  overflow: hidden;
}

.pdf-document-header .file-modal-close {
  color: #fff;
}

.pdf-document-header .file-modal-close:hover {
  background: #ffffff20;
}

.pdf-document-status {
  color: #e5eee9;
  background: #ffffff21;
  border-radius: 14px;
  flex: none;
  margin-left: auto;
  padding: 5px 9px;
  font-size: 13px;
}

.pdf-preview-modal .file-preview-summary {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  flex: none;
  padding: 12px 24px;
}

.pdf-document-content {
  background: var(--panel);
  flex: auto;
  min-height: 0;
  padding: 20px 24px;
  overflow-y: auto;
}

.pdf-document-section h3 {
  color: var(--text);
  margin: 0 0 11px;
  font-size: 16px;
  font-weight: 700;
}

.pdf-preview-pages {
  gap: 12px;
  padding: 0;
  overflow: visible;
}

.pdf-preview-page {
  border-color: var(--line);
  background: var(--soft);
  border-radius: 10px;
  padding: 14px 16px;
}

@supports (color: color-mix(in lab, red, red)) {
  .pdf-preview-page {
    background: color-mix(in srgb, var(--soft) 25%, var(--panel));
  }
}

.pdf-preview-page h4 {
  color: var(--muted);
  letter-spacing: .35px;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
}

.pdf-preview-page p {
  font-size: 14px;
  line-height: 1.7;
}

.pdf-preview-modal .file-modal-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  flex: none;
  margin-top: 0;
  padding: 13px 24px;
}

.pdf-extraction-issues {
  color: #76550c;
  background: #fff8e8;
  border: 1px solid #ecd7a3;
  border-radius: 7px;
  margin: 0 0 12px;
  padding: 9px 12px;
  font-size: 13px;
}

.pdf-extraction-issues p {
  margin: 0;
  line-height: 1.55;
}

.pdf-extraction-issues p + p {
  margin-top: 4px;
}

.pdf-structured-table-wrap {
  max-height: min(48vh, 420px);
}

.pdf-structured-table {
  min-width: 620px;
}

.pdf-structured-table th:first-child, .pdf-structured-table td:first-child {
  z-index: 2;
  background: var(--panel);
  min-width: 64px;
  position: sticky;
  left: 0;
}

.pdf-structured-table th:first-child {
  background: var(--soft);
}

.pdf-review-badge {
  color: #825900;
  background: #fff0c2;
  border-radius: 12px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
}

.pdf-review-badge.is-high {
  color: #167346;
  background: #e4f5eb;
}

.pdf-review-badge.is-ambiguous {
  color: #9d3434;
  background: #fde9e9;
}

.pdf-no-table {
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 7px;
  margin: 0;
  padding: 15px;
  font-size: 13px;
  line-height: 1.6;
}

.pdf-raw-debug {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  border-radius: 7px;
  margin-top: 14px;
  padding: 11px 12px;
  font-size: 13px;
}

.pdf-raw-debug summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
}

.pdf-raw-debug section {
  margin-top: 10px;
}

.pdf-raw-debug h4 {
  color: var(--text);
  margin: 0 0 5px;
  font-size: 13px;
}

.pdf-raw-debug pre {
  max-height: 240px;
  color: var(--text);
  background: var(--soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 5px;
  margin: 0;
  padding: 9px;
  font: 13px / 1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: auto;
}

.pdf-raw-debug details {
  margin-top: 10px;
}

.pdf-raw-debug details pre {
  white-space: pre;
  max-height: 360px;
}

.dark .pdf-document-header {
  background: #123b32;
}

.dark .pdf-extraction-issues {
  color: #e5cc83;
  background: #383323;
  border-color: #66562d;
}

.dark .pdf-preview-page {
  background: var(--soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .dark .pdf-preview-page {
    background: color-mix(in srgb, var(--soft) 65%, var(--panel));
  }
}

@media (max-width: 640px) {
  .file-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .file-preview-modal {
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-height: 94dvh;
    padding: 17px 14px 12px;
  }

  .file-dropzone, .file-processing {
    min-height: 205px;
  }

  .file-preview-table th, .file-preview-table td {
    max-width: 190px;
    padding: 8px;
  }

  .file-preview-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .file-modal-footer {
    align-items: flex-start;
  }

  .pdf-preview-modal {
    border-radius: 12px 12px 0 0;
    max-height: 94dvh;
    padding: 0;
  }

  .pdf-document-header {
    padding: 18px 18px 15px;
  }

  .pdf-document-header h2 {
    font-size: 18px;
  }

  .pdf-document-header p {
    max-width: 58vw;
    font-size: 13px;
  }

  .pdf-document-content {
    padding: 17px 18px;
  }

  .pdf-preview-modal .file-preview-summary, .pdf-preview-modal .file-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pdf-document-status {
    padding: 4px 6px;
    font-size: 13px;
  }

  .pdf-structured-table-wrap {
    max-height: 42vh;
  }
}

.contract-no-button {
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
}

.contract-no-button:hover {
  color: var(--brand);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.contract-no-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.contract-row-actions {
  align-items: center;
  gap: 7px;
  display: flex;
}

.contract-row-actions .button {
  white-space: nowrap;
}

.contract-debit-note-placeholder {
  width: 36px;
  height: 36px;
  color: var(--muted);
  flex: none;
  place-items: center;
  font-size: 18px;
  display: inline-grid;
}

.contract-view-button {
  border: 1px solid var(--line);
  width: 32px;
  height: 31px;
  color: var(--muted);
  background: var(--panel);
  border-radius: 5px;
  flex: none;
  place-items: center;
  text-decoration: none;
  display: inline-grid;
}

.contract-view-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--soft);
}

.contract-view-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.contract-view-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6px;
  width: 16px;
  height: 16px;
}

.action-icon-button {
  border: 1px solid var(--line);
  width: 32px;
  height: 32px;
  color: var(--brand);
  background: var(--panel);
  cursor: pointer;
  border-radius: 6px;
  flex: none;
  place-items: center;
  padding: 0;
  display: inline-grid;
}

.action-icon-button svg {
  width: 17px;
  height: 17px;
}

.action-icon-button:hover {
  border-color: var(--brand);
  background: var(--soft);
}

.action-icon-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.action-icon-button:disabled {
  opacity: .55;
  cursor: wait;
}

.action-icon-button.is-deleting:disabled {
  opacity: 1;
}

.delete-button-spinner {
  border: 2px solid var(--brand);
  width: 17px;
  height: 17px;
  display: block;
}

@supports (color: color-mix(in lab, red, red)) {
  .delete-button-spinner {
    border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent);
  }
}

.delete-button-spinner {
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: .7s linear infinite access-spin;
}

.document-delete-error {
  margin: 0;
  padding: 9px 12px;
  font-size: 13px;
}

.action-icon-delete {
  color: var(--brand);
  border-color: var(--line);
}

.action-icon-delete:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--soft);
}

.contract-details-backdrop {
  z-index: 1300;
}

.contract-details-backdrop.dark, .file-modal-backdrop.dark {
  color: var(--text);
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

.contract-discard-overlay {
  z-index: 1;
  box-sizing: border-box;
  background: #16182ab3;
  place-items: center;
  padding: 20px;
  display: grid;
  position: absolute;
  inset: 0;
}

.contract-discard-dialog {
  box-sizing: border-box;
  width: min(100%, 430px);
  max-height: calc(100dvh - 40px);
  color: var(--text);
  background: var(--panel);
  border-radius: 9px;
  padding: 24px;
  overflow-y: auto;
  box-shadow: 0 20px 60px #11182759;
}

.contract-discard-dialog h2 {
  margin: 0 0 9px;
  font-size: 19px;
  font-weight: 700;
}

.contract-discard-dialog p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
}

.contract-discard-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}

.contract-discard-button {
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
}

.contract-discard-button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.contract-discard-actions .button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.contract-details-modal {
  width: min(100%, 900px);
  max-height: calc(100dvh - 40px);
}

.contract-details-modal > p {
  margin-bottom: 16px;
}

.contract-detail-sections {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

.contract-detail-section {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .contract-detail-section {
    background: color-mix(in srgb, var(--soft) 35%, var(--panel));
  }
}

.contract-detail-section h3 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.contract-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.contract-detail-field {
  color: #666b7d;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.contract-detail-field > strong, .contract-detail-field > input {
  border: 1px solid var(--line);
  min-width: 0;
  min-height: 40px;
  color: var(--text);
  background: var(--panel);
  overflow-wrap: anywhere;
  border-radius: 5px;
  align-items: center;
  padding: 7px 9px;
  font-size: 14px;
  font-weight: 450;
  display: flex;
}

.contract-detail-field > strong {
  line-height: 1.4;
}

.contract-detail-field > input {
  outline: 0;
  width: 100%;
}

.contract-detail-field > input:focus {
  border-color: #a8a3f4;
  box-shadow: 0 0 0 2px #5046e511;
}

.contract-details-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
  padding-top: 13px;
  display: flex;
}

.dark .contract-detail-section {
  background: var(--soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .dark .contract-detail-section {
    background: color-mix(in srgb, var(--soft) 65%, var(--panel));
  }
}

.dark .contract-detail-field {
  color: #a5a9ba;
}

@media (max-width: 700px) {
  .contract-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .contract-details-backdrop {
    align-items: end;
    padding: 0;
  }

  .contract-details-modal {
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-height: 94dvh;
    padding: 22px 16px 16px;
  }

  .contract-detail-grid {
    grid-template-columns: 1fr;
  }
}

.live-contract-modal {
  border-radius: 14px;
  flex-direction: column;
  width: min(96vw, 1500px);
  height: min(92dvh, 1000px);
  max-height: 92dvh;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.live-contract-header {
  color: #fff;
  background: #5046e5;
  flex: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 24px;
  display: flex;
}

.live-contract-kicker {
  color: #d1dfd9;
  letter-spacing: .55px;
  font-size: 13px;
}

.live-contract-header h2 {
  color: #fff;
  margin: 4px 0 10px;
  font-size: 19px;
}

.live-contract-meta {
  color: #d1dfd9;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  display: flex;
}

.live-contract-meta strong {
  color: #fff;
  padding-left: 4px;
  font-size: 13px;
}

.live-contract-close {
  color: #fff;
  background: #ffffff18;
  border: 0;
  border-radius: 6px;
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 23px;
  line-height: 1;
}

.live-contract-body {
  background: var(--soft);
  flex: auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 14px;
  min-height: 0;
  padding: 14px;
  display: grid;
}

.live-contract-body.no-source-pdf {
  grid-template-columns: minmax(0, 1fr);
}

.live-contract-preview, .live-contract-form {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.live-contract-panel-heading {
  border-bottom: 1px solid var(--line);
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  display: flex;
}

.live-contract-panel-heading h3 {
  color: var(--text);
  margin: 0;
  font-size: 16px;
}

.live-contract-panel-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.live-contract-panel-heading .button {
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
}

.live-contract-panel-heading .is-disabled {
  pointer-events: none;
  opacity: .55;
}

.live-contract-pdf {
  background: #e8ebe9;
  flex: auto;
  min-height: 0;
  position: relative;
}

.live-contract-pdf iframe {
  background: #e8ebe9;
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.live-contract-loading {
  height: 100%;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  display: flex;
}

.live-contract-sections {
  flex: auto;
  min-height: 0;
  padding: 10px;
  overflow-y: auto;
}

.live-contract-section {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  margin-bottom: 8px;
}

.live-contract-section summary {
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 700;
  list-style-position: inside;
  position: sticky;
  top: 0;
}

.live-contract-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 2px 11px 12px;
  display: grid;
}

.live-contract-party-row {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.live-contract-party {
  align-content: start;
  gap: 9px;
  min-width: 0;
  display: grid;
}

.live-contract-commission-row {
  flex-direction: column;
  grid-column: 1 / -1;
  gap: 9px;
  display: flex;
}

.live-contract-commission-line {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.live-contract-field {
  min-width: 0;
  color: var(--muted);
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.live-contract-field.is-wide {
  grid-column: 1 / -1;
}

.live-contract-field small {
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}

.live-contract-field input, .live-contract-field textarea, .live-contract-field select {
  border: 1px solid var(--line);
  width: 100%;
  min-height: 38px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  border-radius: 5px;
  padding: 7px 8px;
  font-size: 14px;
  font-weight: 400;
}

.live-contract-field textarea {
  resize: vertical;
  min-height: 66px;
  line-height: 1.45;
}

.live-contract-field input:focus, .live-contract-field textarea:focus, .live-contract-field select:focus {
  border-color: var(--brand);
  outline: 2px solid #5046e51c;
}

.live-contract-field input[type="date"] {
  cursor: pointer;
}

.live-contract-field input[readonly] {
  color: #168353;
  background: var(--soft);
}

.live-contract-financial {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  padding: 12px;
}

.live-contract-financial h4 {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 15px;
}

.live-contract-financial div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  display: flex;
}

.live-contract-financial div span {
  color: var(--muted);
}

.live-contract-financial div strong {
  color: var(--text);
  text-align: right;
}

.live-contract-financial div:nth-of-type(2) strong {
  color: #138a4e;
  font-size: 14px;
}

.live-contract-financial p {
  color: var(--muted);
  margin: 9px 0 0;
  font-size: 13px;
}

.live-contract-feedback {
  flex: none;
  margin: 0 14px;
  padding: 9px 12px;
  font-size: 13px;
}

.live-contract-feedback.is-error {
  color: #9b3030;
  background: #fff2f2;
}

.live-contract-feedback.is-success {
  color: #167346;
  background: #eaf7ef;
}

.live-contract-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  display: flex;
}

.live-contract-footer > span {
  color: var(--muted);
  font-size: 13px;
}

.live-contract-footer > div {
  gap: 8px;
  display: flex;
}

.live-contract-footer .button {
  min-width: 90px;
  height: 32px;
  font-size: 14px;
}

.dark .live-contract-body, .dark .live-contract-pdf, .dark .live-contract-pdf iframe {
  background: #1c1f2b;
}

.dark .live-contract-feedback.is-error {
  color: #f3aaaa;
  background: #38272d;
}

.dark .live-contract-feedback.is-success {
  color: #9be0b8;
  background: #20372d;
}

@media (max-width: 800px) {
  .live-contract-modal {
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: 96dvh;
    max-height: 96dvh;
  }

  .live-contract-body {
    grid-template-rows: minmax(280px, 1.1fr) minmax(260px, .9fr);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .live-contract-preview, .live-contract-form {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .live-contract-header {
    padding: 15px;
  }

  .live-contract-body {
    grid-template-rows: minmax(330px, 1.2fr) minmax(240px, .8fr);
    gap: 9px;
    padding: 9px;
  }

  .live-contract-fields, .live-contract-party-row {
    grid-template-columns: 1fr;
  }

  .live-contract-field.is-wide {
    grid-column: auto;
  }

  .live-contract-footer {
    padding: 10px 12px;
  }

  .live-contract-footer .button {
    min-width: 76px;
    padding: 0 8px;
  }
}

.document-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.document-list li {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  display: flex;
}

.document-list .action-icon-button {
  flex: 0 0 32px;
}

.document-file-icon {
  width: 36px;
  height: 38px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 6px;
  flex: none;
  place-items: center;
  font-size: 13px;
  font-weight: 750;
  display: grid;
}

.document-file-info {
  flex-direction: column;
  flex: 1;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.document-file-info strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.document-file-info small {
  color: var(--muted);
  font-size: 13px;
}

.document-list .button {
  flex: none;
  min-height: 30px;
  padding: 0 9px;
  font-size: 14px;
}

.document-empty {
  color: var(--muted);
  background: var(--soft);
  border-radius: 6px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .document-list {
    grid-template-columns: 1fr;
  }
}

:root {
  --table-header-text: #111827;
  --table-value-text: #303448;
}

.dark {
  --table-header-text: #f1f3fa;
  --table-value-text: #e5e9f3;
}

table th, .file-preview-table th {
  color: var(--table-header-text);
  font-weight: 700;
}

table td, table td.contract-no, table td.money-cell, table td.contract-commission-usd-cell, table td .party b {
  color: var(--table-value-text);
}

.dark table th, .dark .file-preview-table th {
  color: var(--table-header-text);
}

.dark table td, .dark table td.contract-no, .dark table td.money-cell, .dark table td.contract-commission-usd-cell, .dark table td .party b {
  color: var(--table-value-text);
}

.contract-clickable-row {
  cursor: pointer;
}

.topbar {
  border-radius: 14px;
  height: 70px;
  margin: 12px 18px 0;
  top: 12px;
  box-shadow: 0 8px 18px #3930ab24;
}

.topbar-left, .topbar .breadcrumb {
  min-width: 0;
}

.topbar .breadcrumb {
  font-size: 14px;
}

.topbar .breadcrumb-part {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: inline-flex;
}

.topbar .breadcrumb b {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.topbar-page-actions {
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: 6px;
  display: flex;
}

.topbar .theme-toggle, .topbar .notification-btn {
  border-radius: 10px;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.topbar .notification-count {
  top: -5px;
  right: -7px;
}

.page-content.contracts-page-content {
  max-width: 1850px;
  padding: 20px 24px 24px;
}

.contracts-dashboard-card {
  border-color: #e8e6fa;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 10px 28px #35349b10;
}

.contracts-dashboard-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 26px 26px 16px;
  display: grid;
}

.contracts-dashboard-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.contracts-dashboard-title h1 {
  color: #11145d;
  letter-spacing: -.55px;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.contracts-dashboard-heading .contract-list-heading-filters {
  justify-content: flex-end;
  gap: 16px;
}

.contracts-dashboard-heading .contract-list-date-filter {
  color: #61658a;
  gap: 6px;
  width: clamp(150px, 13vw, 205px);
  font-size: 14px;
}

.contracts-dashboard-heading .contract-list-date-filter input {
  color: #11145d;
  border-color: #d9d9f3;
  border-radius: 8px;
  height: 42px;
  padding: 0 12px;
  font-size: 15px;
}

.contracts-dashboard-heading .contracts-add-button {
  border-radius: 7px;
  min-width: 165px;
  height: 42px;
  padding: 0 17px;
  font-size: 15px;
  box-shadow: 0 3px 8px #5046e526;
}

.contracts-dashboard-search {
  background: #f4f3ff;
  border: 0;
  border-radius: 10px 10px 0 0;
  justify-content: flex-end;
  align-items: center;
  min-height: 59px;
  margin: 0 8px;
  padding: 7px 12px;
  display: flex;
}

.contracts-dashboard-search .search-box {
  color: #24268b;
  background: var(--panel);
  border-color: #d8d8f2;
  border-radius: 8px;
  gap: 11px;
  width: min(100%, 390px);
  height: 42px;
  padding: 0 14px;
}

.contracts-dashboard-search .search-box input {
  font-size: 14px;
}

.contracts-dashboard-search .search-box input::placeholder {
  color: #8589a9;
}

.contracts-dashboard-card .table-scroll {
  margin: 0 8px;
}

.contracts-dashboard-card thead {
  background: #fafafd;
}

.contracts-dashboard-card th {
  color: #10145f;
  letter-spacing: .15px;
  height: 50px;
  font-size: 14px;
}

.contracts-dashboard-card td {
  color: #181b5b;
  border-top-color: #e4e3f4;
  height: 72px;
  font-size: 14px;
}

.contracts-dashboard-card td.contract-no {
  color: #11145d;
  font-weight: 700;
}

.contracts-dashboard-card table:not(.without-actions) thead th:last-child {
  background: #fafafd;
}

.contracts-dashboard-card .table-footer {
  color: #3638cc;
  border-color: #deddfa;
  height: auto;
  min-height: 58px;
  margin: 0 8px 8px;
  padding: 8px 16px;
  font-size: 14px;
}

.contracts-dashboard-card .pagination {
  gap: 10px;
}

.contracts-dashboard-card .pagination span {
  color: #11145d;
}

.contracts-dashboard-card .pagination button {
  color: #3434ae;
  border-color: #d9d8f2;
  border-radius: 7px;
  min-width: 36px;
  height: 36px;
}

.contracts-dashboard-card .pagination button:disabled {
  color: #aaaeca;
}

.contracts-dashboard-card .action-icon-button {
  border-color: #deddfa;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}

.dark .contracts-dashboard-card {
  border-color: var(--line);
}

.dark .contracts-dashboard-title h1, .dark .contracts-dashboard-card td, .dark .contracts-dashboard-card td.contract-no, .dark .contracts-dashboard-card .pagination span {
  color: var(--text);
}

.dark .contracts-dashboard-heading .contract-list-date-filter {
  color: var(--muted);
}

.dark .contracts-dashboard-heading .contract-list-date-filter input {
  color: var(--text);
  border-color: var(--line);
}

.dark .contracts-dashboard-search, .dark .contracts-dashboard-card thead, .dark .contracts-dashboard-card table:not(.without-actions) thead th:last-child {
  background: #2b2948;
}

.dark .contracts-dashboard-search, .dark .contracts-dashboard-card .table-scroll, .dark .contracts-dashboard-card .table-footer {
  border-color: var(--line);
}

.dark .contracts-dashboard-card th {
  color: #e1dfff;
}

.dark .contracts-dashboard-card td {
  border-top-color: var(--line);
}

.dark .contracts-dashboard-card .table-footer {
  color: #b9b2ff;
}

@media (max-width: 1250px) {
  .contracts-dashboard-heading {
    gap: 18px;
  }

  .contracts-dashboard-heading .contract-list-date-filter {
    width: 150px;
  }
}

@media (max-width: 700px) {
  .topbar {
    border-radius: 11px;
    height: 62px;
    margin: 8px 8px 0;
    top: 8px;
  }

  .notification-control .notification-box {
    max-height: calc(100dvh - 90px);
    top: 78px;
  }

  .topbar:has(.topbar-page-actions) {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 62px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar:has(.topbar-page-actions) .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
  }

  .topbar:has(.topbar-page-actions) .topbar-page-actions {
    flex-wrap: wrap;
    margin-right: auto;
  }

  .page-content.contracts-page-content {
    padding: 14px 12px 20px;
  }

  .contracts-dashboard-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .contracts-dashboard-title {
    gap: 12px;
  }

  .contracts-dashboard-heading .contract-list-heading-filters {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
  }

  .contracts-dashboard-heading .contract-list-date-filter {
    flex: 140px;
    width: auto;
  }

  .contracts-dashboard-search, .contracts-dashboard-card .table-scroll {
    margin: 0 8px;
  }

  .contracts-dashboard-search .search-box {
    width: 100%;
  }

  .contracts-dashboard-card .table-footer {
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 8px 8px;
  }
}

@media (max-width: 640px) {
  .topbar .theme-toggle, .topbar .notification-btn {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .topbar .theme-toggle svg, .topbar .notification-btn svg {
    width: 22px;
    height: 22px;
  }

  .app-shell .sidebar {
    width: min(252px, 82vw);
    padding: 0 15px;
    transform: translateX(-100%);
  }

  .app-shell .sidebar.mobile-open {
    transform: translateX(0);
  }

  .app-shell .sidebar .brand {
    justify-content: flex-start;
    padding: 0 7px;
  }

  .app-shell .sidebar .brand-logo {
    display: block;
  }

  .app-shell .sidebar .workspace {
    justify-content: flex-start;
    padding: 10px;
  }

  .app-shell .sidebar .workspace-text {
    display: flex;
  }

  .app-shell .sidebar .nav-section {
    display: block;
  }

  .app-shell .sidebar .nav-link {
    justify-content: flex-start;
    padding: 0 10px;
  }

  .app-shell .sidebar .nav-link span, .app-shell .sidebar .sign-out span {
    display: inline;
  }

  .app-shell .main-column, .app-shell .sidebar.collapsed ~ .main-column, .contract-detail-shell .sidebar.collapsed ~ .main-column {
    margin-left: 0;
  }

  .app-shell .mobile-menu {
    flex: none;
    place-items: center;
    display: grid;
  }

  .app-shell .scrim {
    z-index: 19;
    background: #11182780;
    border: 0;
    width: 100%;
    display: block;
    position: fixed;
    inset: 0;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=app_globals_css_20o3uo5wggppq.css.map*/