@media screen {
  dialog#sc504Cashdesk[data-cashdesk-window] {
    max-width: 100vw !important;
    max-height: 100dvh;
    border-radius: 10px;
    z-index: 2100;
    box-shadow: 0 20px 58px #17324d35;
  }

  dialog#sc504Cashdesk[data-cashdesk-window][open] {
    display: flex;
  }

  #sc504Cashdesk .dialog-heading {
    gap: 2px;
    padding: 0 8px 0 12px;
    height: 44px;
    min-height: 44px;
  }

  #sc504Cashdesk .dialog-heading button {
    background: transparent;
    color: #fff;
    font-size: 17px;
  }

  #sc504Cashdesk .dialog-heading button:is(:hover,:focus-visible) {
    background: #ffffff26;
  }

  #sc504Cashdesk .dialog-heading [data-close]:hover {
    background: #8d3149;
  }

  #sc504Cashdesk .sc504-body {
    flex: 1 1 auto;
    padding: 10px;
  }

  #sc504Cashdesk .sc504-tools {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(150px,auto) auto;
    gap: 7px;
  }

  #sc504Cashdesk .sc504-tools label {
    min-width: 0;
  }

  #sc504Cashdesk .sc504-tools label:has([data-search]) {
    position: relative;
  }

  #sc504Cashdesk .sc504-tools input:focus-visible,
  #sc504Cashdesk .sc504-tools label:focus-within input[data-search],
  #sc504Cashdesk .sc504-tools select:focus-visible {
    border-color: #326884;
    outline: 0;
  }

  #sc504Cashdesk [data-summary] {
    margin: 8px 0;
    padding: 7px 10px;
    border: 1px solid #d9e4ed;
    border-radius: 7px;
    background: #f2f6fa;
    font-weight: 650;
  }

  #sc504Cashdesk [data-status]:empty {
    display: none;
  }

  #sc504Cashdesk .sc504-row {
    padding: 8px 0;
    gap: 7px;
  }

  #sc504Cashdesk .sc504-row a {
    display: inline-flex;
    align-items: center;
  }

  #sc504Cashdesk .sc504-hint {
    margin: 9px 12px 4px 0;
  }

  #sc504Cashdesk .sales-window-corners > button[data-corner=se]::after {
    opacity: .7;
  }

  @layer cashdeskWindow {
    #sc504Cashdesk .dialog-heading > button {
      background: transparent !important;
      color: #fff !important;
      border: 0 !important;
      box-shadow: none !important;
      font-size: 18px !important;
      font-weight: 500 !important;
      line-height: 1 !important;
    }

    #sc504Cashdesk .dialog-heading > button:is(:hover,:focus-visible) {
      background: #ffffff26 !important;
    }

    #sc504Cashdesk .dialog-heading > button[data-close]:hover {
      background: #8d3149 !important;
    }

    #sc504Cashdesk [data-search] {
      padding-inline-end: 47px !important;
    }

    #sc504Cashdesk button.sn-search-camera504 {
      position: absolute !important;
      inset: auto 1px 1px auto !important;
      width: 43px !important;
      min-width: 43px !important;
      height: 34px !important;
      min-height: 34px !important;
      margin: 0 !important;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
    }
  }

  @media (max-width:700px), (pointer:coarse) {
    #sc504Cashdesk .dialog-heading {
      height: 48px;
      min-height: 48px;
    }
    #sc504Cashdesk .dialog-heading button {
      width: 44px;
      height: 44px;
    }
    #sc504Cashdesk .sc504-tools {
      grid-template-columns: minmax(0,1fr) auto;
    }
    #sc504Cashdesk .sc504-tools label:first-child {
      grid-column: 1/-1;
    }
    #sc504Cashdesk .sc504-row a {
      min-height: 44px;
    }
    @layer cashdeskWindow {
      #sc504Cashdesk button.sn-search-camera504 {
        height: 44px !important;
        min-height: 44px !important;
      }
    }
  }
}
