:root {
  color-scheme: light;
  --l2-inline-gutter: 6px;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body.orders-lateral-shell {
  --orders-sidebar-width: 216px;
  color: var(--disal-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--dashboard-type-weight-regular);
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #f5f9ff 0%, #edf4fc 100%);
}

body.orders-lateral-shell[data-project-lateral-report="general"] {
  background: #ffffff;
}

button,
a {
  font: inherit;
}

.orders-lateral-app {
  display: grid;
  grid-template-columns: var(--orders-sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.orders-lateral-menu-backdrop {
  display: none;
}

.orders-lateral-sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding:
    max(18px, env(safe-area-inset-top, 0px))
    12px
    max(14px, env(safe-area-inset-bottom, 0px));
  border-right: 1px solid rgba(204, 219, 241, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.orders-lateral-brand {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 0 10px var(--space-8);
}

.orders-lateral-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.orders-lateral-search-dock {
  min-width: 0;
}

.orders-lateral-brand img {
  display: block;
  width: 112px;
  height: auto;
}

.orders-lateral-brand-area,
.orders-lateral-nav-title {
  margin: 0;
  color: #61708a;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-areas-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 9px;
  border: 1px solid rgba(204, 219, 241, 0.92);
  border-radius: 10px;
  color: #174e9b;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(81, 111, 151, 0.08);
  cursor: pointer;
}

.orders-lateral-areas-toggle:hover,
.orders-lateral-areas-toggle:focus-visible,
.orders-lateral-areas-toggle[aria-expanded="true"] {
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
  outline: none;
}

.orders-lateral-areas-lines {
  display: grid;
  place-items: center;
}

.orders-lateral-areas-toggle .orders-lateral-areas-lines > span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 1.5px 0;
  border-radius: 999px;
  background: currentColor;
}

.orders-lateral-areas-icon {
  display: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.orders-lateral-areas-menu {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: 4px;
  right: auto;
  display: grid;
  width: min(244px, calc(100vw - 24px));
  box-sizing: border-box;
  gap: 3px;
  max-height: min(620px, 72vh);
  padding: 10px;
  overflow: visible;
  border: 1px solid rgba(190, 208, 233, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 18px 44px rgba(42, 70, 108, 0.2);
  scrollbar-width: thin;
}

.orders-lateral-areas-menu[hidden] {
  display: none;
}

.orders-lateral-areas-menu-title {
  margin: 0;
  padding: 3px 7px 7px;
  color: #61708a;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-areas-menu-title.is-reports {
  padding: 3px 7px 7px;
}

.orders-lateral-area-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 26px;
  align-items: center;
  min-height: 38px;
  margin-bottom: 2px;
  padding: 0 5px 0 9px;
  border: 1px solid rgba(190, 208, 233, 0.94);
  border-radius: 10px;
  color: #61708a;
  background: #ffffff;
}

.orders-lateral-area-search:focus-within {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.orders-lateral-area-search > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.orders-lateral-area-search > .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.orders-lateral-area-search input {
  min-width: 0;
  height: 36px;
  padding: 0 6px;
  border: 0;
  outline: 0;
  color: #304766;
  background: transparent;
  font: inherit;
  font-size: var(--fs-data-sm);
}

.orders-lateral-area-search input::placeholder {
  color: #8291a6;
}

.orders-lateral-access-status {
  margin: 2px 7px 0;
  color: #9a5a12;
  font-size: var(--fs-micro);
  line-height: 1.35;
}

.orders-lateral-access-retry {
  justify-self: start;
  margin: 2px 7px 4px;
  padding: 0;
  border: 0;
  color: #174e9b;
  background: transparent;
  font: inherit;
  font-size: var(--fs-micro);
  text-decoration: underline;
  cursor: pointer;
}

.orders-lateral-access-retry:hover,
.orders-lateral-access-retry:focus-visible {
  color: #0f3f85;
  outline: none;
}

.orders-lateral-area-search button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #61708a;
  background: transparent;
  cursor: pointer;
}

.orders-lateral-area-search button:hover,
.orders-lateral-area-search button:focus-visible {
  color: #0d4fb5;
  background: #eff6ff;
  outline: none;
}

.orders-lateral-area-search button[hidden],
.orders-lateral-area-list[hidden],
.orders-lateral-area-search-results[hidden],
.orders-lateral-upcoming[hidden] {
  display: none;
}

.orders-lateral-area-search-status {
  margin: 0;
  padding: 0 7px;
  color: #61708a;
  font-size: var(--fs-micro);
}

.orders-lateral-area-search-status:empty {
  display: none;
}

.orders-lateral-area-list,
.orders-lateral-area-search-results,
.orders-lateral-upcoming-list {
  display: grid;
  gap: 3px;
}

.orders-lateral-area-search-results {
  max-height: min(470px, 58vh);
  overflow-y: auto;
  scrollbar-width: thin;
}

.orders-lateral-area-search-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.orders-lateral-area-search-copy strong,
.orders-lateral-area-search-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-lateral-area-search-copy strong {
  color: inherit;
  font-size: var(--fs-data-sm);
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-area-search-copy small {
  color: #7b8ca6;
  font-size: var(--fs-micro);
}

.orders-lateral-area-search-empty {
  margin: 0;
  padding: 14px 8px;
  color: #61708a;
  font-size: var(--fs-data-sm);
  text-align: center;
}

.orders-lateral-upcoming {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid rgba(204, 219, 241, 0.78);
}

.orders-lateral-upcoming summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 4px 7px;
  border-radius: 9px;
  color: #61708a;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
  list-style: none;
  cursor: pointer;
}

.orders-lateral-upcoming summary::-webkit-details-marker {
  display: none;
}

.orders-lateral-upcoming summary:hover,
.orders-lateral-upcoming summary:focus-visible {
  color: #0d4fb5;
  background: #eff6ff;
  outline: none;
}

.orders-lateral-upcoming summary span,
.orders-lateral-area-report-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #61708a;
  background: #edf4ff;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-upcoming-list {
  padding-top: 3px;
}

.orders-lateral-areas-menu-divider {
  display: block;
  height: 1px;
  margin: 7px 4px 3px;
  background: rgba(204, 219, 241, 0.78);
}

.orders-lateral-areas-menu a,
.orders-lateral-area-disabled {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #44546f;
  font-size: var(--fs-data-sm);
  text-decoration: none;
}

.orders-lateral-areas-menu a[data-orders-lateral-area-has-reports] {
  grid-template-columns: 26px minmax(0, 1fr) auto 14px;
}

.orders-lateral-area-chevron {
  color: #6d7f99;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: transform 140ms ease, color 140ms ease;
}

.orders-lateral-areas-menu a[data-orders-lateral-area-has-reports][aria-expanded="true"] .orders-lateral-area-chevron {
  color: #0d4fb5;
  transform: translateX(2px);
}

.orders-lateral-reports-flyout {
  position: absolute;
  z-index: 70;
  top: var(--orders-lateral-reports-flyout-top, 0);
  left: calc(100% + 8px);
  display: grid;
  gap: 3px;
  width: 222px;
  max-height: min(620px, 72vh);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(190, 208, 233, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 18px 44px rgba(42, 70, 108, 0.2);
  scrollbar-width: thin;
  scrollbar-color: rgba(97, 112, 138, 0.72) transparent;
}

.orders-lateral-reports-flyout.is-scrollable:not(.is-scrolled-to-end) {
  box-shadow:
    0 18px 44px rgba(42, 70, 108, 0.2),
    inset 0 -22px 16px -18px rgba(23, 78, 155, 0.72);
}

.orders-lateral-reports-flyout::-webkit-scrollbar {
  width: 8px;
}

.orders-lateral-reports-flyout::-webkit-scrollbar-track {
  background: transparent;
}

.orders-lateral-reports-flyout::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  background: rgba(97, 112, 138, 0.72);
}

.orders-lateral-reports-flyout[hidden] {
  display: none !important;
}

.orders-lateral-reports-flyout::before {
  position: absolute;
  top: 18px;
  right: 100%;
  width: 9px;
  height: 34px;
  content: "";
}

.orders-lateral-areas-menu a:hover,
.orders-lateral-areas-menu a:focus-visible {
  color: #0d4fb5;
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
  outline: none;
}

.orders-lateral-areas-menu a.is-current-area {
  color: #0d4fb5;
  border-color: rgba(37, 99, 235, 0.14);
  background: #e6f0ff;
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-areas-menu a.is-current-report {
  color: #174e9b;
  border-color: rgba(37, 99, 235, 0.14);
  background: #edf4ff;
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-areas-menu a[data-orders-lateral-menu-report][hidden] {
  display: none;
}

.orders-lateral-areas-menu a[data-orders-lateral-menu-report] svg {
  width: 20px;
  height: 20px;
  margin-inline: 2px 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-lateral-area-disabled {
  color: #98a4b6;
  opacity: 0.66;
  cursor: not-allowed;
}

.orders-lateral-area-monogram {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #174e9b;
  background: #edf4ff;
  font-size: 10px;
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-area-disabled .orders-lateral-area-monogram {
  color: #7f8ca1;
  background: #f1f4f8;
}

.orders-lateral-nav {
  min-height: 0;
  overflow-y: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}

.orders-lateral-nav-title {
  padding: 0 12px var(--space-3);
}

.orders-lateral-nav-title.is-section {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(204, 219, 241, 0.72);
}

.orders-lateral-nav a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 3px 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #44546f;
  text-decoration: none;
  font-size: var(--fs-data-sm);
  font-weight: var(--dashboard-type-weight-regular);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.orders-lateral-nav a[data-orders-lateral-report-link] {
  min-height: 34px;
  margin: 2px 0;
  padding-block: 5px;
}

.orders-lateral-nav a[data-orders-lateral-report-link][hidden] {
  display: none;
}

.orders-lateral-product-group {
  display: grid;
  gap: 2px;
  margin: 5px 0 7px;
}

.orders-lateral-product-group-heading {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #44546f;
  background: transparent;
  font-size: var(--fs-data-sm);
  font-weight: var(--dashboard-type-weight-emphasis);
  list-style: none;
  cursor: default;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.orders-lateral-product-group-heading::-webkit-details-marker {
  display: none;
}

.orders-lateral-product-group-heading:hover,
.orders-lateral-product-group-heading:focus-visible {
  color: #0d4fb5;
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(234, 242, 255, 0.78);
  outline: none;
}

.orders-lateral-product-group-heading > svg:first-child {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-lateral-product-group-heading .orders-lateral-product-group-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.orders-lateral-product-group-items {
  display: grid;
  gap: 1px;
  max-height: 0;
  margin-left: 22px;
  padding-left: 14px;
  overflow: hidden;
  border-left: 1px solid rgba(148, 174, 209, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: max-height 200ms ease, opacity 140ms ease, visibility 0s linear 200ms;
}

.orders-lateral-product-group[open] .orders-lateral-product-group-items {
  max-height: 360px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.orders-lateral-product-group[open] .orders-lateral-product-group-chevron {
  transform: rotate(180deg);
}

.orders-lateral-nav a.orders-lateral-product-group-link,
.orders-lateral-product-group-disabled {
  display: block;
  min-height: 31px;
  margin: 1px 0;
  padding: 4px 12px;
  font-size: var(--fs-micro);
}

.orders-lateral-product-group-label {
  margin: 8px 0 3px;
  padding: 0 12px;
  color: #7b899d;
  font-size: 10px;
  font-weight: var(--dashboard-type-weight-emphasis);
  letter-spacing: 0.045em;
  line-height: 1.25;
}

.orders-lateral-product-group-disabled {
  color: #98a4b6;
  cursor: default;
  opacity: 0.7;
}

@media (min-width: 981px) {
  .orders-lateral-nav [data-orders-lateral-desktop-hidden] {
    display: none;
  }
}

@media (max-width: 980px) {
  .orders-lateral-product-group-items {
    max-height: none;
    opacity: 1;
    visibility: visible;
  }

  .orders-lateral-product-group-chevron {
    display: none;
  }
}

.orders-lateral-nav a:hover,
.orders-lateral-nav a:focus-visible {
  color: #0d4fb5;
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(234, 242, 255, 0.78);
  outline: none;
}

.orders-lateral-nav a.is-active {
  color: #0d4fb5;
  border-color: rgba(37, 99, 235, 0.12);
  background: linear-gradient(90deg, rgba(225, 237, 255, 0.98), rgba(239, 246, 255, 0.84));
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-nav a.is-current-report {
  color: #174e9b;
  border-color: rgba(37, 99, 235, 0.1);
  background: rgba(239, 246, 255, 0.62);
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-nav a[data-project-panel-link],
.orders-lateral-nav a[data-project-context-report] {
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  min-height: 31px;
  margin: 1px 0;
  padding: 4px 12px;
  color: #65758d;
  font-size: var(--fs-micro);
}

.orders-lateral-nav a[data-project-panel-link]:hover,
.orders-lateral-nav a[data-project-panel-link]:focus-visible,
.orders-lateral-nav a[data-project-context-report]:hover,
.orders-lateral-nav a[data-project-context-report]:focus-visible {
  background: rgba(234, 242, 255, 0.56);
}

.orders-lateral-nav a[data-project-panel-link].is-active,
.orders-lateral-nav a[data-project-context-report].is-active {
  border-color: transparent;
  background: transparent;
  color: #0d4fb5;
}

.orders-lateral-panel-marker {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 140ms ease, transform 140ms ease;
}

.orders-lateral-nav a[data-project-panel-link].is-active .orders-lateral-panel-marker,
.orders-lateral-nav a[data-project-context-report].is-active .orders-lateral-panel-marker {
  opacity: 1;
  transform: scale(1);
}

.orders-lateral-nav .orders-lateral-disabled {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 3px 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8b98aa;
  font-size: var(--fs-data-sm);
  opacity: 0.68;
  cursor: not-allowed;
}

.orders-lateral-nav .orders-lateral-disabled svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-lateral-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-lateral-sidebar-footer {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) 4px 0;
  border-top: 1px solid rgba(204, 219, 241, 0.72);
}

.orders-lateral-weather {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 6px;
  min-width: 0;
  padding: 4px 7px 3px;
  border: 1px solid rgba(204, 219, 241, 0.92);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.orders-lateral-weather-button {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 3px 0;
  border: 0;
  color: #174e9b;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.orders-lateral-weather-button:hover,
.orders-lateral-weather-button:focus-visible {
  color: #0d4fb5;
  outline: none;
}

.orders-lateral-weather-button:focus-visible .orders-lateral-weather-icon {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.orders-lateral-weather-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.orders-lateral-weather-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #1d5db7;
  background: rgba(219, 234, 254, 0.88);
  font-size: 18px;
  line-height: 1;
}

.orders-lateral-weather[data-state="ready"] .orders-lateral-weather-icon {
  color: #9a5a00;
  background: rgba(254, 243, 199, 0.92);
}

.orders-lateral-weather-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.orders-lateral-weather-copy strong,
.orders-lateral-weather-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-lateral-weather-copy strong {
  color: #173765;
  font-size: var(--fs-data-sm);
  font-weight: var(--dashboard-type-weight-emphasis);
}

.orders-lateral-weather-copy small {
  color: #687892;
  font-size: 10px;
}

.orders-lateral-weather > a {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: end;
  margin-top: -4px;
  color: #7b899d;
  font-size: 8px;
  line-height: 1.2;
  text-decoration: none;
}

.orders-lateral-weather > a:hover,
.orders-lateral-weather > a:focus-visible {
  color: #174e9b;
  text-decoration: underline;
  outline: none;
}

.orders-lateral-sidebar-footer > button[data-orders-lateral-collapse] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(204, 219, 241, 0.92);
  border-radius: 10px;
  color: #44546f;
  background: #ffffff;
  text-decoration: none;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
  cursor: pointer;
}

.orders-lateral-sidebar-footer > button[data-orders-lateral-collapse]:hover,
.orders-lateral-sidebar-footer > button[data-orders-lateral-collapse]:focus-visible {
  color: #0d4fb5;
  border-color: rgba(37, 99, 235, 0.34);
  outline: none;
}

.orders-lateral-menu-button {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid rgba(204, 219, 241, 0.92);
  border-radius: 10px;
  background: #ffffff;
  color: #174e9b;
  box-shadow: 0 6px 18px rgba(81, 111, 151, 0.16);
  cursor: pointer;
}

.orders-lateral-home-button {
  display: none;
}

.orders-lateral-floating-menu-button {
  position: fixed;
  z-index: 45;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  transition: opacity 160ms ease, visibility 160ms ease;
}

.orders-lateral-floating-areas-button {
  position: fixed;
  z-index: 45;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  display: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

body.is-sidebar-revealed .orders-lateral-floating-menu-button,
body.is-sidebar-locked .orders-lateral-floating-menu-button,
body.is-sidebar-revealed .orders-lateral-floating-areas-button,
body.is-sidebar-locked .orders-lateral-floating-areas-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.orders-lateral-menu-button span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 2px 0;
  background: #174e9b;
}

.orders-lateral-topbar {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(204, 219, 241, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(81, 111, 151, 0.035);
}

.orders-lateral-topbar-context,
.orders-lateral-topbar-tools,
.orders-lateral-period-control,
.orders-lateral-topbar-button {
  display: flex;
  align-items: center;
}

.orders-lateral-topbar-context {
  min-width: 0;
  gap: 9px;
  overflow: hidden;
  color: #7b8ca6;
  font-size: var(--fs-data-sm);
  white-space: nowrap;
}

.orders-lateral-topbar-context strong {
  overflow: hidden;
  color: #174e9b;
  font-weight: var(--dashboard-type-weight-emphasis);
  text-overflow: ellipsis;
}

.orders-lateral-topbar-parent {
  overflow: hidden;
  color: #526985;
  font-weight: var(--dashboard-type-weight-emphasis);
  text-decoration: none;
  text-overflow: ellipsis;
}

.orders-lateral-topbar-parent:hover,
.orders-lateral-topbar-parent:focus-visible {
  color: #174e9b;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.orders-lateral-context-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-left: 10px;
  padding: 0 10px;
  border: 1px solid rgba(190, 208, 233, 0.92);
  border-radius: 9px;
  color: #174e9b;
  background: #f8fbff;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
  text-decoration: none;
}

.orders-lateral-context-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-lateral-context-link:hover,
.orders-lateral-context-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eef4ff;
  outline: none;
}

.orders-lateral-topbar-tools {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 8px;
  margin-left: 0;
}

.orders-lateral-alert-host {
  position: relative;
  flex: 0 0 auto;
}

.orders-lateral-alert-button {
  position: relative;
  width: 34px;
  padding: 0;
}

.orders-lateral-alert-button[data-tone="critical"] {
  border-color: rgba(207, 45, 62, 0.42);
  color: #b42332;
  background: #fff5f6;
}

.orders-lateral-alert-button[data-tone="attention"] {
  border-color: rgba(215, 156, 38, 0.42);
  color: #9a6200;
  background: #fff9ec;
}

.orders-lateral-alert-button[data-tone="good"] {
  color: #17765b;
}

.orders-lateral-alert-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #c5283d;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}

.orders-lateral-alert-badge[hidden] {
  display: none;
}

.orders-lateral-alert-button[data-tone="attention"] .orders-lateral-alert-badge {
  background: #c57a00;
}

.orders-lateral-alert-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 9px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(190, 208, 233, 0.94);
  border-radius: 14px;
  color: #263852;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 42px rgba(42, 70, 108, 0.2);
}

.orders-lateral-alert-popover[hidden] {
  display: none;
}

.orders-lateral-alert-popover > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(204, 219, 241, 0.72);
}

.orders-lateral-alert-popover > header div {
  display: grid;
  gap: 2px;
}

.orders-lateral-alert-popover > header small,
.orders-lateral-alert-popover > header span {
  color: #71829b;
  font-size: 10px;
}

.orders-lateral-alert-popover > header strong {
  font-size: var(--fs-data-md);
  font-weight: 500;
}

.orders-lateral-alert-list {
  display: grid;
  gap: 7px;
  max-height: min(390px, calc(100vh - 180px));
  padding: 10px;
  overflow-y: auto;
}

.orders-lateral-alert-list > p {
  margin: 0;
  padding: 12px;
  color: #61718a;
  font-size: var(--fs-data-sm);
}

.orders-lateral-alert-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid rgba(204, 219, 241, 0.76);
  border-left: 3px solid #d59a29;
  border-radius: 10px;
  background: #fbfdff;
  overflow: hidden;
}

.orders-lateral-alert-list article[data-tone="critical"] {
  border-left-color: #cf2d3e;
  background: #fff9fa;
}

.orders-lateral-alert-list article div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.orders-lateral-alert-list article strong,
.orders-lateral-alert-list article span,
.orders-lateral-alert-list article a {
  font-size: var(--fs-data-sm);
}

.orders-lateral-alert-list article strong {
  font-weight: 500;
}

.orders-lateral-alert-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.orders-lateral-alert-list .orders-lateral-alert-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.orders-lateral-alert-list article span {
  color: #61718a;
  line-height: 1.35;
}

.orders-lateral-alert-list article > div > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.orders-lateral-alert-detail-list {
  display: grid;
  gap: 3px;
}

.orders-lateral-alert-detail-row {
  display: block;
}

.orders-lateral-alert-detail-row + .orders-lateral-alert-detail-row {
  padding-top: 3px;
  border-top: 1px solid rgba(204, 219, 241, 0.62);
}

.orders-lateral-alert-list article a,
.orders-lateral-alert-footer {
  color: #174e9b;
  font-weight: 500;
  text-decoration: none;
}

.orders-lateral-alert-list article a:hover,
.orders-lateral-alert-list article a:focus-visible,
.orders-lateral-alert-footer:hover,
.orders-lateral-alert-footer:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.orders-lateral-alert-footer {
  display: block;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(204, 219, 241, 0.72);
  font-size: var(--fs-data-sm);
}

.orders-lateral-currency-host {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

body:is([data-project-lateral-report="teclum"], [data-project-lateral-area="costos"][data-project-lateral-report="totales"]) .orders-lateral-currency-host .disal-compact-segmented {
  flex-wrap: nowrap;
}

body:is([data-project-lateral-report="teclum"], [data-project-lateral-area="costos"][data-project-lateral-report="totales"]) .orders-lateral-period-menu {
  right: 248px;
}

.orders-lateral-period-control {
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(190, 208, 233, 0.92);
  border-radius: 9px;
  color: #304766;
  background: #ffffff;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
  cursor: pointer;
}

.orders-lateral-period-control svg,
.orders-lateral-topbar-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-lateral-period-control strong {
  color: #174e9b;
  font: inherit;
  font-weight: var(--dashboard-type-weight-emphasis);
  white-space: nowrap;
}

.orders-lateral-period-status {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border: 1px solid rgba(215, 156, 38, 0.34);
  border-radius: 8px;
  color: #8a5a00;
  background: #fff8e8;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-lateral-period-status-slot {
  position: static;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  pointer-events: none;
}

.orders-lateral-period-status-slot[hidden] {
  display: none;
}

.orders-lateral-period-chevron {
  width: 14px !important;
  transition: transform 140ms ease;
}

.orders-lateral-period-control[aria-expanded="true"] .orders-lateral-period-chevron {
  transform: rotate(180deg);
}

.orders-lateral-period-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% - 4px);
  right: 142px;
  display: grid;
  width: 280px;
  max-height: min(420px, calc(100vh - 88px));
  gap: 3px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(190, 208, 233, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 16px 36px rgba(42, 70, 108, 0.18);
}

.orders-lateral-period-menu[hidden] {
  display: none;
}

.orders-lateral-period-menu-title {
  margin: 2px 6px 5px;
  color: #71829b;
  font-size: 10px;
  font-weight: var(--dashboard-type-weight-emphasis);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orders-lateral-period-menu-title.is-history {
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(204, 219, 241, 0.72);
}

.orders-lateral-period-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344766;
  background: transparent;
  font: inherit;
  font-size: var(--fs-micro);
  text-align: left;
  cursor: pointer;
}

.orders-lateral-period-menu button small {
  color: #7b8ca6;
  font-size: 10px;
}

.orders-lateral-period-menu button.is-available-unloaded:not(.is-selected) {
  border-color: rgba(190, 208, 233, 0.72);
  color: #71829b;
  background: #f7faff;
}

.orders-lateral-period-menu button.is-available-unloaded:not(.is-selected) small {
  color: #96a5b9;
}

.orders-lateral-period-menu button:hover,
.orders-lateral-period-menu button:focus-visible,
.orders-lateral-period-menu button.is-selected {
  border-color: rgba(37, 99, 235, 0.14);
  color: #0d4fb5;
  background: #eff6ff;
  outline: none;
}

.orders-lateral-period-menu button.is-selected::before {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.orders-lateral-period-menu button.is-selected span {
  margin-right: auto;
}

.orders-lateral-period-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  margin-top: 7px;
  padding: 0 8px;
  border-top: 1px solid rgba(204, 219, 241, 0.72);
  color: #174e9b;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
  cursor: pointer;
}

.orders-lateral-period-picker input {
  width: 106px;
  min-height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #174e9b;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.orders-lateral-period-control:focus-within {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.orders-lateral-topbar-divider {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: rgba(204, 219, 241, 0.88);
}

.orders-lateral-topbar-button {
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(190, 208, 233, 0.92);
  border-radius: 9px;
  color: #174e9b;
  background: #ffffff;
  font-size: var(--fs-micro);
  font-weight: var(--dashboard-type-weight-emphasis);
  cursor: pointer;
}

.orders-lateral-topbar-button.is-compact-action {
  width: 32px;
  min-height: 32px;
  padding: 0;
}

.orders-lateral-topbar-button.is-compact-action svg {
  width: 14px;
  height: 14px;
}

.orders-lateral-topbar-button:not(:disabled):hover,
.orders-lateral-topbar-button:not(:disabled):focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eff6ff;
  outline: none;
}

.orders-lateral-topbar-button:disabled {
  border-color: rgba(204, 219, 241, 0.82);
  color: #9aa8ba;
  background: #f5f8fc;
  cursor: not-allowed;
}

.orders-lateral-topbar-button.is-primary {
  border-color: #2463d7;
  color: #ffffff;
  background: #2463d7;
}

.orders-lateral-topbar-button.is-primary:not(:disabled):hover,
.orders-lateral-topbar-button.is-primary:not(:disabled):focus-visible {
  border-color: #174e9b;
  background: #174e9b;
}

.orders-lateral-task-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.orders-lateral-main {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 6px;
}

.orders-lateral-frame {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.orders-lateral-frame.is-placeholder-source {
  display: none;
}

body[data-project-lateral-report="productos"] .orders-lateral-main {
  display: grid;
  align-items: start;
}

.orders-lateral-placeholder {
  display: grid;
  gap: var(--space-5, 20px);
  width: min(100%, var(--page-width-max, 1687px));
  min-height: 100%;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(204, 219, 241, 0.9);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(83, 115, 154, 0.09);
}

body[data-project-lateral-report="clientes"] .orders-lateral-placeholder {
  border-color: rgba(148, 174, 209, 0.55);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

body[data-project-lateral-report="clientes"] .orders-lateral-placeholder::before {
  content: none;
}

.orders-lateral-placeholder-header {
  display: grid;
  gap: var(--space-2, 8px);
}

body[data-project-lateral-report="clientes"] .orders-lateral-placeholder-header {
  align-content: start;
}

.orders-lateral-placeholder-header h1,
.orders-lateral-placeholder-header p {
  margin: 0;
}

.orders-lateral-placeholder-header h1 {
  color: #123160;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.orders-lateral-placeholder-header p {
  color: #5d6c86;
  font-size: var(--fs-body, 16px);
  line-height: 1.5;
}

body[data-project-lateral-report="clientes"] .orders-lateral-placeholder-header small {
  color: #7b879a;
  font-size: var(--fs-data-sm, 13px);
  line-height: 1.5;
}

.orders-lateral-loading {
  position: absolute;
  inset: 10px 12px 12px;
  z-index: 5;
  display: grid;
  box-sizing: border-box;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid rgba(204, 219, 241, 0.88);
  border-radius: 14px;
  color: #123160;
  background: rgba(235, 243, 253, 0.62);
  text-align: center;
  backdrop-filter: blur(8px) saturate(0.82);
  -webkit-backdrop-filter: blur(8px) saturate(0.82);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.orders-lateral-loading-card {
  display: grid;
  box-sizing: border-box;
  width: min(100%, 420px);
  justify-items: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(204, 219, 241, 0.92);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 54px rgba(38, 73, 122, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.orders-lateral-loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(37, 99, 235, 0.16);
  border-top-color: #2457d6;
  border-radius: 50%;
  animation: orders-lateral-spin 800ms linear infinite;
}

.orders-lateral-loading-title {
  margin: 0;
  color: #123160;
  font-size: var(--fs-title-sm);
  font-weight: 500;
  line-height: 1.1;
}

.orders-lateral-loading-copy {
  max-width: 38ch;
  margin: 0;
  color: #5d6c86;
  font-size: var(--fs-body);
  line-height: 1.45;
}

.orders-lateral-loading-progress {
  position: relative;
  width: min(100%, 280px);
  height: 4px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.58);
}

.orders-lateral-loading-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2457d6, #4f82f4);
  box-shadow: 0 0 14px rgba(47, 102, 238, 0.38);
  animation: orders-lateral-progress 1.35s ease-in-out infinite;
}

.orders-lateral-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body[data-project-lateral-report="pedidos-v2"] .orders-lateral-loading,
body[data-project-lateral-report="presupuesto-v2"] .orders-lateral-loading {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: #f3f8fe;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-project-lateral-report="pedidos-v2"]:not([data-project-lateral-report-ready="true"])
  .orders-lateral-loading.is-hidden,
body[data-project-lateral-report="presupuesto-v2"]:not([data-project-lateral-report-ready="true"])
  .orders-lateral-loading.is-hidden {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.orders-lateral-edge {
  display: none;
}

@keyframes orders-lateral-spin {
  to { transform: rotate(360deg); }
}

@keyframes orders-lateral-progress {
  from { transform: translateX(-115%); }
  to { transform: translateX(395%); }
}

@media (max-width: 1680px) {
  .orders-lateral-app {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .orders-lateral-topbar {
    padding-left: 58px;
  }

  .orders-lateral-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--orders-sidebar-width);
    transform: translateX(calc(-100% - 12px));
    box-shadow: 16px 0 38px rgba(42, 70, 108, 0.2);
  }

  body.is-sidebar-revealed .orders-lateral-sidebar,
  body.is-sidebar-locked .orders-lateral-sidebar {
    transform: translateX(0);
  }

  .orders-lateral-main {
    grid-column: 2;
  }

  .orders-lateral-menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .orders-lateral-edge {
    position: fixed;
    z-index: 25;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 14px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), transparent);
    cursor: e-resize;
    transition: opacity 160ms ease;
  }

  body.is-sidebar-revealed .orders-lateral-edge,
  body.is-sidebar-locked .orders-lateral-edge {
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 1681px) {
  body.is-sidebar-manually-collapsed .orders-lateral-app {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  body.is-sidebar-manually-collapsed .orders-lateral-topbar {
    padding-left: 58px;
  }

  body.is-sidebar-manually-collapsed .orders-lateral-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--orders-sidebar-width);
    transform: translateX(calc(-100% - 12px));
  }

  body.is-sidebar-manually-collapsed.is-sidebar-revealed .orders-lateral-sidebar {
    transform: translateX(0);
    box-shadow: 16px 0 38px rgba(42, 70, 108, 0.2);
  }

  body.is-sidebar-manually-collapsed .orders-lateral-main {
    grid-column: 2;
  }

  body.is-sidebar-manually-collapsed .orders-lateral-menu-button,
  body.is-sidebar-manually-collapsed .orders-lateral-edge {
    display: block;
  }

  body.is-sidebar-manually-collapsed .orders-lateral-edge {
    position: fixed;
    z-index: 25;
    top: 0;
    bottom: 0;
    left: 0;
    width: 14px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), transparent);
    cursor: e-resize;
  }
}

@media (max-width: 980px) {
  body.orders-lateral-shell {
    --orders-sidebar-width: 100vw;
  }

  body.orders-lateral-shell.is-mobile-navigation-open {
    overflow: hidden;
  }

  .orders-lateral-menu-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 31;
    height: max(18px, env(safe-area-inset-top, 0px));
    display: block;
    padding: 0;
    border: 0;
    background: rgba(243, 248, 254, 0.78);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 150ms ease, visibility 0s linear 150ms;
  }

  body.is-mobile-navigation-open .orders-lateral-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 150ms ease, visibility 0s linear 0s;
  }

  body.is-mobile-navigation-open .orders-lateral-menu-backdrop {
    height: calc(env(safe-area-inset-top, 0px) + 64px);
    background: rgba(243, 248, 254, 0.96);
  }

  body.is-mobile-navigation-open .orders-lateral-menu-backdrop::after {
    position: absolute;
    right: 50%;
    bottom: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    color: #174e9b;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(81, 111, 151, 0.1);
    content: "Cerrar";
    font-size: var(--fs-micro);
    font-weight: var(--dashboard-type-weight-emphasis);
    transform: translateX(50%);
  }

  .orders-lateral-sidebar {
    inset: max(18px, env(safe-area-inset-top, 0px)) 0 0;
    width: auto;
    max-width: none;
    padding-top: 8px;
    border-right: 0;
    background: #ffffff;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    overscroll-behavior: contain;
    transition:
      transform 180ms ease,
      opacity 150ms ease,
      visibility 0s linear 180ms;
  }

  body.is-mobile-navigation-open .orders-lateral-sidebar {
    inset: calc(env(safe-area-inset-top, 0px) + 64px) 0 0;
  }

  body.is-sidebar-revealed .orders-lateral-sidebar,
  body.is-sidebar-locked .orders-lateral-sidebar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      transform 180ms ease,
      opacity 150ms ease,
      visibility 0s linear 0s;
  }

  .orders-lateral-edge,
  .orders-lateral-sidebar-footer {
    display: none !important;
  }

  .orders-lateral-main {
    padding: 6px;
  }

  .orders-lateral-topbar {
    min-height: 50px;
    padding: 0 48px;
    cursor: pointer;
  }

  .orders-lateral-topbar-context {
    display: none;
  }

  .orders-lateral-topbar-tools {
    width: 100%;
    gap: 6px;
    justify-content: center;
    margin-left: 0;
  }

  .orders-lateral-topbar-divider,
  .orders-lateral-period-status-slot,
  .orders-lateral-topbar-button {
    display: none;
  }

  .orders-lateral-alert-button {
    display: flex;
  }

  .orders-lateral-task-action {
    display: flex;
  }

  .orders-lateral-alert-popover {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 48px);
    right: 8px;
    left: 8px;
    width: auto;
  }

  .orders-lateral-period-control {
    max-width: 100%;
    gap: 5px;
    padding: 0 10px;
  }

  .orders-lateral-period-control strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:is([data-project-lateral-report="teclum"], [data-project-lateral-area="costos"][data-project-lateral-report="totales"]) .orders-lateral-period-control > span {
    display: none;
  }

  body:is([data-project-lateral-report="teclum"], [data-project-lateral-area="costos"][data-project-lateral-report="totales"]) .orders-lateral-currency-host .disal-compact-segmented {
    flex: 0 0 auto;
    width: max-content;
  }

  body:is([data-project-lateral-report="teclum"], [data-project-lateral-area="costos"][data-project-lateral-report="totales"]) .orders-lateral-currency-host .disal-compact-segmented__button {
    flex: 0 0 auto;
    padding-right: 7px;
    padding-left: 7px;
  }

  .orders-lateral-period-menu {
    right: 8px;
    left: 8px;
    width: auto;
  }

  .orders-lateral-period-picker input {
    width: 104px;
  }

  .orders-lateral-topbar-button {
    width: 34px;
    padding: 0;
  }

  body[data-project-lateral-report="pedidos-v2"] .orders-lateral-main {
    padding-top: 0;
  }

  .orders-lateral-loading {
    inset: 6px;
  }

  .orders-lateral-frame {
    border-radius: 10px;
  }

  body[data-project-lateral-report="pedidos-v2"] .orders-lateral-frame {
    border-top: 0;
    border-radius: 0 0 10px 10px;
  }

  .orders-lateral-floating-areas-button {
    display: grid;
  }

  .orders-lateral-floating-menu-button,
  .orders-lateral-floating-areas-button {
    top: calc(env(safe-area-inset-top, 0px) + 7px);
  }

  .orders-lateral-home-button { display: none !important; }

  body[data-project-lateral-report="pedidos-v2"] .orders-lateral-floating-menu-button {
    top: calc(env(safe-area-inset-top, 0px) + 7px);
    left: calc(max(8px, env(safe-area-inset-left, 0px)) + 17px);
  }

  body[data-project-lateral-report="pedidos-v2"] .orders-lateral-floating-areas-button {
    top: calc(env(safe-area-inset-top, 0px) + 7px);
    right: calc(max(8px, env(safe-area-inset-right, 0px)) + 17px);
  }

  .orders-lateral-areas-toggle .orders-lateral-areas-lines {
    display: none;
  }

  .orders-lateral-areas-toggle .orders-lateral-areas-icon {
    display: block;
  }

  .orders-lateral-areas-menu {
    position: static;
    z-index: auto;
    width: auto;
    gap: 3px;
    max-height: none;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.is-areas-menu-open .orders-lateral-brand {
    gap: var(--space-4);
    padding-bottom: var(--space-4);
  }

  body.is-areas-menu-open .orders-lateral-nav {
    display: none;
  }

  body.is-areas-menu-open .orders-lateral-areas-menu-title {
    padding-inline: 0;
  }

  body.is-areas-menu-open .orders-lateral-areas-menu-divider {
    margin-inline: 0;
  }

  body.is-areas-menu-open .orders-lateral-areas-menu a,
  body.is-areas-menu-open .orders-lateral-area-disabled {
    padding-inline: 7px;
  }

  body.is-areas-menu-open
    .orders-lateral-areas-menu.is-area-reports-open > :not(.orders-lateral-reports-flyout) {
    visibility: hidden;
    pointer-events: none;
  }

  .orders-lateral-reports-flyout {
    position: absolute;
    inset: 0 0 auto;
    width: auto;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  body[data-project-lateral-report="teclum"] .orders-lateral-period-control > svg:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orders-lateral-sidebar,
  .orders-lateral-edge,
  .orders-lateral-menu-backdrop,
  .orders-lateral-loading {
    transition: none;
  }

  .orders-lateral-loading-spinner,
  .orders-lateral-loading-progress::after {
    animation: none;
  }

  .orders-lateral-loading-progress::after {
    transform: translateX(95%);
  }
}

/* Estas hojas ya contienen sus propios paneles y separación interna. */
body[data-project-lateral-area="diseno"][data-project-lateral-report="tarjetas"] .orders-lateral-main,
body[data-project-lateral-area="comercial"][data-project-lateral-report="pedidos-v2"] .orders-lateral-main,
body[data-project-lateral-area="comercial"][data-project-lateral-report="sistema-color"] .orders-lateral-main,
body[data-project-lateral-area="comercial"][data-project-lateral-report="creditos"] .orders-lateral-main,
body[data-project-lateral-area="comercial"][data-project-lateral-report="automotor"] .orders-lateral-main {
  padding: 0;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="herramientas"] {
  background: #ffffff;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="herramientas"] .orders-lateral-main {
  padding: 0 6px;
  background: #ffffff;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="autopolish"] {
  background: #ffffff;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="autopolish"] .orders-lateral-main {
  padding: 10px 6px 12px;
  background: #ffffff;
}

body[data-project-lateral-area="diseno"][data-project-lateral-report="tarjetas"] .orders-lateral-frame,
body[data-project-lateral-area="comercial"][data-project-lateral-report="pedidos-v2"] .orders-lateral-frame,
body[data-project-lateral-area="comercial"][data-project-lateral-report="sistema-color"] .orders-lateral-frame,
body[data-project-lateral-area="comercial"][data-project-lateral-report="creditos"] .orders-lateral-frame,
body[data-project-lateral-area="comercial"][data-project-lateral-report="automotor"] .orders-lateral-frame,
body[data-project-lateral-area="comercial"][data-project-lateral-report="herramientas"] .orders-lateral-frame {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="herramientas"] .orders-lateral-frame {
  background: #ffffff;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="autopolish"] .orders-lateral-frame {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="creditos"] .orders-lateral-frame,
body[data-project-lateral-area="comercial"][data-project-lateral-report="automotor"] .orders-lateral-frame {
  background: #f3f8fe;
  margin: 0;
  padding: 0;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="presupuesto-v2"] .orders-lateral-frame {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="presupuesto-v2"] .orders-lateral-main {
  background: #ffffff;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="pedidos-v2"] .orders-lateral-main {
  padding: 0;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="pedidos-v2"] .orders-lateral-frame {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 981px) {
  body[data-project-lateral-area="comercial"][data-project-lateral-report="presupuesto-v2"] .orders-lateral-main {
    padding-inline: 6px;
  }

  body[data-project-lateral-area="comercial"][data-project-lateral-report="pedidos-v2"] .orders-lateral-main {
    padding-inline: 6px;
  }

  body[data-project-lateral-area="diseno"][data-project-lateral-report="tarjetas"] .orders-lateral-main,
  body[data-project-lateral-area="comercial"][data-project-lateral-report="sistema-color"] .orders-lateral-main,
  body[data-project-lateral-area="comercial"][data-project-lateral-report="creditos"] .orders-lateral-main,
  body[data-project-lateral-area="comercial"][data-project-lateral-report="automotor"] .orders-lateral-main {
    padding-left: 12px;
  }
}

/* Diseño, Control de Gestión y Clientes: el shell aporta el único gutter exterior. */
body.orders-lateral-shell[data-project-lateral-area="diseno"],
body.orders-lateral-shell[data-project-lateral-area="control-gestion"],
body.orders-lateral-shell[data-project-lateral-area="comercial"][data-project-lateral-report="clientes"],
body.orders-lateral-shell[data-project-lateral-model-adopted="true"] {
  background: #ffffff;
}

body.orders-lateral-shell[data-project-lateral-area="diseno"] .orders-lateral-main,
body.orders-lateral-shell[data-project-lateral-area="control-gestion"] .orders-lateral-main,
body.orders-lateral-shell[data-project-lateral-area="comercial"][data-project-lateral-report="clientes"] .orders-lateral-main,
body.orders-lateral-shell[data-project-lateral-model-adopted="true"] .orders-lateral-main {
  padding-left: 6px;
  padding-right: 6px;
  background: #ffffff;
}

body.orders-lateral-shell[data-project-lateral-area="diseno"] .orders-lateral-frame,
body.orders-lateral-shell[data-project-lateral-area="control-gestion"] .orders-lateral-frame,
body.orders-lateral-shell[data-project-lateral-area="comercial"][data-project-lateral-report="clientes"] .orders-lateral-frame,
body.orders-lateral-shell[data-project-lateral-model-adopted="true"] .orders-lateral-frame {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

/* Automotor: fondo neutro y único gutter lateral de 6 px aportado por el shell. */
body[data-project-lateral-area="comercial"][data-project-lateral-report="automotor"] {
  background: #ffffff;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="automotor"] .orders-lateral-main {
  padding-left: 6px;
  background: #ffffff;
}

body[data-project-lateral-area="comercial"][data-project-lateral-report="automotor"] .orders-lateral-frame {
  background: #ffffff;
}

/* Contrato compartido conservado para informes posteriores que lo consumen explícitamente. */
body[data-project-lateral-layout="canonical-report"] .orders-lateral-loading {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: #f3f8fe;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-project-lateral-layout="canonical-report"]:not([data-project-lateral-report-ready="true"])
  .orders-lateral-loading.is-hidden {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body[data-project-lateral-layout="canonical-report"] .orders-lateral-main {
  padding: 0;
}

body[data-project-lateral-layout="canonical-report"] .orders-lateral-frame {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f3f8fe;
  box-shadow: none;
}

@media (max-width: 980px) {
  body[data-project-lateral-layout="canonical-report"] .orders-lateral-main {
    padding-top: 0;
  }

  body[data-project-lateral-layout="canonical-report"] .orders-lateral-frame {
    border-top: 0;
    border-radius: 0 0 10px 10px;
  }
}

@media (min-width: 981px) {
  body[data-project-lateral-layout="canonical-report"] .orders-lateral-main {
    padding-inline: 6px;
  }
}

/* Contrato L2 global: una sola geometría para todos los informes integrados. */
body.orders-lateral-shell .orders-lateral-main {
  padding: 0 var(--l2-inline-gutter) !important;
}

body.orders-lateral-shell .orders-lateral-frame {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Los informes que montan el Modelo conservan una superficie blanca continua:
   este override debe quedar después del contrato L2, que vuelve transparente
   el iframe para el resto de las hojas integradas. */
body.orders-lateral-shell[data-project-lateral-model-adopted="true"] .orders-lateral-frame {
  background: #ffffff !important;
}
