.content {
    max-width: 100% !important;
}

.page-header {
    margin-left: auto;
    margin-right: auto;
}

.page-header,
.page-node {
    max-width: 900px !important;
}

.footer > .page-node {
    max-width: unset !important;
}

.show-api-client-button {
    display: none !important;
}

.request-card-footer {
    display: none !important;
}

.scalar-card-header.scalar-card-header-tabs > div:nth-of-type(2) {
  display: none !important;
}

.light-mode .t-doc__sidebar {
    --scalar-border-color: #e8e8f0;
    --scalar-sidebar-background-1: #F3F5FF;
    --scalar-sidebar-color-1: #2e324b;
    --scalar-sidebar-color-2: #6b7080;
    --scalar-sidebar-border-color: var(--scalar-border-color);

    --scalar-sidebar-item-hover-background: #ffffff;
    --scalar-sidebar-item-hover-color: #2e324b;

    --scalar-sidebar-item-active-background: #ffffff;
    --scalar-sidebar-color-active: #5b5fc7;

    --scalar-sidebar-indent-border: #e8e8f0;
    --scalar-sidebar-indent-border-hover: #d0d4f0;
    --scalar-sidebar-indent-border-active: #5b5fc7;

    --scalar-sidebar-search-background: #ffffff;
    --scalar-sidebar-search-color: #2e324b;
    --scalar-sidebar-search-border-color: #d0d4f0;
}

/* Dark mode: true black page background. Scalar's own dark background is a
   dark grey, so set its background variable and the content wrappers
   explicitly. */
.dark-mode {
    --scalar-background-1: #000000;
}
.dark-mode .page-body,
.dark-mode .page.t-editor,
.dark-mode .content {
  background: #000000 !important;
}

/* Dark mode sidebar. Kept separate from the light block above: when both modes
   shared one rule, the sidebar stayed light in dark mode. Black background, with
   PAR navy (#2F3452) for hover/active/search and a light purple accent. */
.dark-mode .t-doc__sidebar {
    --scalar-border-color: #4d4d4d;
    --scalar-sidebar-background-1: #000000;
    --scalar-sidebar-color-1: #ffffff;
    --scalar-sidebar-color-2: #ffffff;
    --scalar-sidebar-border-color: var(--scalar-border-color);

    --scalar-sidebar-item-hover-background: #2F3452;
    --scalar-sidebar-item-hover-color: #ffffff;

    --scalar-sidebar-item-active-background: #2F3452;
    --scalar-sidebar-color-active: #c7caf7;

    --scalar-sidebar-indent-border: #4d4d4d;
    --scalar-sidebar-indent-border-hover: #808080;
    --scalar-sidebar-indent-border-active: #c7caf7;

    --scalar-sidebar-search-background: #2F3452;
    --scalar-sidebar-search-color: #ffffff;
    --scalar-sidebar-search-border-color: #4d4d4d;
}
.light-mode .t-doc__sidebar button[aria-selected="true"],
.dark-mode .t-doc__sidebar button[aria-selected="true"] {
    font-weight: bold;
}

.t-editor__page-link {
  box-shadow: var(--scalar-shadow-1);
  border-radius: var(--scalar-radius);
  background: var(--scalar-background-2);
  padding: 16px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.light-mode .t-editor__anchor {
  --font-visited: #681da8;
  --font-hover: #681da8;
}

.dark-mode .t-editor__anchor {
  --font-visited: #c58af9;
  --font-hover: #c58af9;
}

.t-editor__anchor {
  --font-color: var(--scalar-color-accent);
  --font-hover: var(--scalar-color-accent);
  --text-decoration: none;
  --text-decoration-hover: underline;
}

.section-column table {
  table-layout: auto !important;
}

.layout-footer {
    padding: 100px 50px;
}

.layout-footer .page-node {
    max-width: unset !important;
}

@media screen and (max-width: 1000px) {
    .layout-footer {
        padding: 10px;
    }
}
.t-doc__sidebar button,
.t-doc__sidebar a {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif !important;
}
.t-doc__sidebar a[href="https://product-docs.partech.com"] {
    font-weight: normal;
    color: #5b5fc7;
    background-color: #ffffff;
    border-radius: 6px;
}

.t-doc__sidebar a[href="https://product-docs.partech.com"] .group\/button-label {
    font-weight: normal;
    color: #5b5fc7;
}

/* Dark mode: the main product link would otherwise stay a white button on the black sidebar */
.dark-mode .t-doc__sidebar a[href="https://product-docs.partech.com"] {
    color: #c7caf7;
    background-color: #2F3452;
}
.dark-mode .t-doc__sidebar a[href="https://product-docs.partech.com"] .group\/button-label {
    color: #c7caf7;
}

.page-nav__container {
  display: none !important;
}
/* Table heading styles */
.t-editor__table thead th {
    background-color: #5b5fc7 !important;
    color:#ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
/* Table font size */
.t-editor__table td {
    font-size: 16px !important;
}
/* callout font size */
.callout-content__text,
.callout-content__text p,
.callout-content__text ul,
.callout-content__text li,
.callout-content__text .t-editor__list {
    font-size: inherit !important;
}
/* divider line above H2s */
h2 {
  border-top: 1px solid #E2E4EA;
  padding-top: 24px;
  margin-top: 16px !important;
}
/* Undo the divider for H2s inside accordion/detail dropdowns */
.t-editor__detail-content h2 {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Accordion: Light mode: light grey background */
.light-mode .t-editor__detail-summary {
  background-color: #FAFAFB;
}

/* Accordion: Dark mode: dark background instead, so text stays readable */
.dark-mode .t-editor__detail-summary {
  background-color: #2A2D3A;
  color: #E5E5EA;
}

/* PAR Intelligence product tag */

:root {
  --pd-label: "PAR Intelligence";
  --pd-accent: #E5481C;
  /* Solid fills (written as flat gradients so they can layer in the background shorthand) */
  --pd-tile: linear-gradient(#FDEDE8, #FDEDE8);
  --pd-rainbow: linear-gradient(#F5B9A6, #F5B9A6);
  --pd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256' fill='%23E5481C'%3E%3Cpath d='M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z'/%3E%3C/svg%3E");
  --pd-text: var(--scalar-color-1);
}

/* Tile stays light in dark mode, matching the home page cards, so the label
   needs an explicit dark colour here. */
.dark-mode {
  --pd-text: #212438;
  --pd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256' fill='%23E5481C'%3E%3Cpath d='M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z'/%3E%3C/svg%3E");
}

.page-body .page-node.t-prose:has(> h1)::before {
  content: var(--pd-label);
  display: block;
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px 13px 4px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  /* Solid tint fill inside (padding-box) with a solid ring (border-box) */
  background: var(--pd-icon) 13px center / 14px 14px no-repeat padding-box,
    var(--pd-tile) padding-box,
    var(--pd-rainbow) border-box;
  color: var(--pd-text);
  font-family: Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

@media print {
  .page-body .page-node.t-prose:has(> h1)::before {
    display: none;
  }
}
/* Larger header logo */
.t-doc__header img,
.scalar-app header img {
  height: 30px !important;
  max-height: none !important;
  width: auto !important;
}

/* Header link colors (light mode only) */
.light-mode .t-header__item,
.light-mode .t-header__item--active {
  color: #5B5FC7 !important;
}

/* Header search bar: centered, longer, rounded */
.search-group {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  width: 560px;
  min-width: 560px;
  max-width: 100%;
}
.search-group .search-wrapper {
  width: 100% !important;
  min-width: 560px !important;
  max-width: none !important;
}
.search-group button.search {
  width: 100% !important;
  border-radius: 999px !important;
}
/* Keyboard shortcut badge inside the search bar (the bordered span wrapping the <kbd>) */
.search-group button.search > span:has(kbd) {
  border-radius: 999px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Main product page in the sidebar (identified by its user icon): always show in the active purple */
.t-doc__sidebar button:has(svg[data-scalar-icon-src*="user-bold"]),
.t-doc__sidebar button:has(svg[data-scalar-icon-src*="user-bold"]):hover {
  color: #5B5FC7 !important;
}
/* Outside-link arrow: Forecasting (PAR Ops Back Office)

   Scalar only draws its trailing arrow for links to a different host. This link is
   same-host in production (only the subpath differs), so we draw the arrow ourselves
   to look identical in every environment. Glyph: Phosphor arrow-up-right (bold).
   Scalar's sidebar anchor is already display:flex with a flex-1 label, so the ::after
   lands at the far right, where the expand/collapse chevron sits on group items. */
.t-doc__sidebar a[href^="https://product-docs.partech.com/docs/par-ops-back-office"]::after,
.t-doc__sidebar a[href^="https://product-docs.partech.com/docs/par-ordering"]::after {
  content: "";
  align-self: flex-start;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: var(--par-outside-link-arrow) center / contain no-repeat;
  mask: var(--par-outside-link-arrow) center / contain no-repeat;
}

/* Suppress Scalar's native arrow where it does render (preview), so exactly one arrow shows. */
.t-doc__sidebar a[href^="https://product-docs.partech.com/docs/par-ops-back-office"] > svg,
.t-doc__sidebar a[href^="https://product-docs.partech.com/docs/par-ordering"] > svg {
  display: none !important;
}

:root {
  --par-outside-link-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E");
}
