@media screen {
 #fp-stage[data-closing-history-window] {
  --sales-heading-height: 44px;
 }
 #fp-stage[data-closing-history-window] > .caja-module-chrome {
  border-color: #855a75;
 }
 #fp-stage[data-closing-history-window] > .caja-module-chrome header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #a96e83;
  background: linear-gradient(103deg, #3b2843, #582f4d 46%, #482941);
 }
 #fp-stage[data-closing-history-window] > .caja-module-chrome header::before,
 #fp-stage[data-closing-history-window] > .caja-module-chrome header::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -86% -37%;
  pointer-events: none;
 }
 #fp-stage[data-closing-history-window] > .caja-module-chrome header::before {
  background: radial-gradient(ellipse 52% 69% at 39% 72%, transparent 55%, #703e63 61%, #a35c75 67%, #e2a587 72%, #ad6682 76%, #61345066 83%, transparent 89%);
  animation: closing-window-wave 6.2s cubic-bezier(.48,.02,.52,.98) infinite alternate;
 }
 #fp-stage[data-closing-history-window] > .caja-module-chrome header::after {
  background: radial-gradient(ellipse 53% 76% at 64% 18%, transparent 59%, #a1638f5c 63%, #d6a7b5ae 67%, #9b658b8c 71%, transparent 79%);
  animation: closing-window-reflection 7.4s cubic-bezier(.43,.06,.57,.94) infinite alternate;
 }
 #fp-stage[data-closing-history-window] > .caja-module-chrome header:has([data-closing-motion][aria-pressed=true])::before,
 #fp-stage[data-closing-history-window] > .caja-module-chrome header:has([data-closing-motion][aria-pressed=true])::after {
  animation-play-state: paused;
 }
 [data-closing-motion]::before {
  content: '';
  width: 8px;
  height: 11px;
  border-inline: 2px solid currentColor;
 }
 [data-closing-motion][aria-pressed=true]::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
 }
 html.fp-enabled #fp-stage[data-closing-decision] {
  pointer-events: auto;
 }
 html[data-closing-host] body > .module-bar,
 html[data-closing-host] #closingsApp .cl-page-head {
  display: none !important;
 }
 html[data-closing-host], html[data-closing-host] body {
  min-height: 100dvh;
  background: var(--cl-bg) !important;
 }
 @media (min-width: 768px) and (pointer: fine) {
  #fp-stage[data-closing-history-window] > .caja-module-chrome header [data-back] {
   display: flex;
   align-items: center;
   gap: 3px;
   flex: 0 0 auto;
   width: auto;
   padding-inline: 4px;
  }
  #fp-stage[data-closing-history-window] [data-back]::after {
   content: 'Volver';
  }
 }
 @media (max-width: 767px), (pointer: coarse) {
  #fp-stage[data-closing-history-window] {
   --sales-heading-height: 48px;
  }
  #fp-stage[data-closing-history-window] > .caja-module-chrome header {
   gap: 1px;
   padding-inline: 4px;
  }
 }
 @media (prefers-reduced-motion: reduce) {
  #fp-stage[data-closing-history-window] > .caja-module-chrome header::before,
  #fp-stage[data-closing-history-window] > .caja-module-chrome header::after {
   animation: none;
  }
  [data-closing-motion] {
   display: none !important;
  }
 }
}

@layer sales-window-grips {
 @media screen {
  #fp-stage[data-closing-history-window] > .caja-module-chrome header button {
   color: white !important;
   background: transparent !important;
   border-color: transparent !important;
   box-shadow: none !important;
  }
  #fp-stage[data-closing-history-window] > .caja-module-chrome header button:hover {
   background: #ffffff25 !important;
  }
  #fp-stage[data-closing-history-window] > .caja-module-chrome header [data-close]:hover {
   background: #a92e3e !important;
  }
 }
}

@layer cierres {
 @media screen {
  html[data-closing-host] #closingsApp:has(#splitHistory[data-from-table]:not([hidden])) :is(.cl-overview, .history-tools, .cl-list-head, #adminSettings) {
   display: none !important;
  }
 }
 @media screen and (max-width: 690px) {
  html[data-closing-host] #closingsApp:has(#splitHistory[data-show-detail]:not([hidden])) :is(.cl-overview, .history-tools, .cl-list-head, #adminSettings) {
   display: none !important;
  }
 }
}

@keyframes closing-window-wave {
 from { transform: translate3d(-13%, 1%, 0) rotate(-8deg); }
 to { transform: translate3d(16%, -9%, 0) rotate(8deg); }
}

@keyframes closing-window-reflection {
 from { transform: translate3d(12%, -9%, 0) rotate(7deg); }
 to { transform: translate3d(-14%, 8%, 0) rotate(-8deg); }
}
