.hamburger {
  display: none;
}

@media (min-width: 768px) {
  #changelist-filter {
    position: absolute;
    top: 160px;
    right: -40px;
    z-index: 1000;
    min-height: calc(100vh - 160px - 70px) /* fallback */;
    min-height: calc(100vh - 160px - var(--topbar-height));
  }
  .popup #changelist-filter {
    top: 25px;
    min-height: calc(100vh - 25px - 70px) /* fallback */;
    min-height: calc(100vh - 25px - var(--topbar-height));
  }

  #changelist-filter h2 {
    background: transparent;
    color: #999;
    font-size: 0.9em;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  #changelist .actions {
    position: absolute;
    top: 0;
    z-index: 1500;

    display: block;
    /*float: right;*/
    /*clear: right;*/
    padding: 0;
    margin-bottom: 15px;
    background: #f8f8f8;

    width: 240px;
    right: -40px;
    /* narrow */
    /*right: -30px;*/
    /*width: 190px;*/
  }

  #changelist .actions label {
    height: 60px;
    line-height: 40px;
    padding: 20px 15px 0 15px;

    box-sizing: border-box;
    display: block;
    /*height: 29px;*/
    /*padding: 5px 15px;*/

    /*background-color: #417690 [> fallback <];*/
    /*background-color: var(--theme-color);*/
    /*background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)) [> fallback <];*/
    /*background-image: var(--bg-lighten-25);*/
    background: #eee;
    color: #666;

    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /*line-height: normal;*/
    vertical-align: none;
  }

  #changelist .actions select {
    display: block;
    float: left;
    /*width: 75%;*/
    margin: 15px 0 10px 0;
    background-color: white;

    /* narrow */
    width: 100%;
  }

  #changelist .actions .button {
    display: inline-block;
    float: right;
    margin: 15px 15px 0 0;

    /* narrow */
    float: none;
    margin: 0 0 5px 15px;
    width: 210px;
  }

  #changelist .actions span.action-counter {
    display: block;
    clear: both;
    margin: 0 15px 0;
    float: right;
  }

  .change-list .results, .change-list .paginator,
  .change-list .filtered .results, .change-list .filtered .paginator {
    margin-right: 235px;
  }

  .filtered .actions {
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  body:not(.popup):not(.login) #container {
    padding-left: 0;
  }

  body:not(.login) #header {
    left: auto;
    right: 100%;
    height: 100%;
  }

  body:not(.popup) #title {
    position: absolute;
    left: 0;
  }

  .object-tools {
    position: absolute;
  }
  /*body.change-list #content {*/
    /*padding-top: 0;*/
  /*}*/

  #content,
  body.dashboard #content,
  body.changelist #content,
  body.popup #content {
    padding-top: 30px;
  }

  .hamburger {
    display: block;
  }

  #changelist #toolbar,
  body.popup #changelist #toolbar {
    margin-top: -30px;
  }

  #header,
  #title,
  #messages,
  #content-main,
  #footer {
    transition: transform 200ms /* fallback */;
    transition: var(--sidebar-transition);
  }

  html.is-sidebarOpen #header,
  html.is-sidebarOpen #title,
  html.is-sidebarOpen #messages,
  html.is-sidebarOpen #content-main,
  html.is-sidebarOpen #footer {
    transform: translateX(250px) /* fallback */;
    transform: translateX(var(--sidebar-width));
  }

  #changelist #toolbar {
    margin-left: -35px;
    margin-right: -30px;
  }

  #changelist .actions {
    width: 200px;
    right: -30px;
  }

  #changelist .actions .button {
    width: 170px;
    margin: 0 0 5px 15px;
  }

  #changelist-filter {
    right: -30px;
  }

  .change-list .results, .change-list .paginator,
  .change-list .filtered .results, .change-list .filtered .paginator {
    margin-right: 205px;
  }

  body.popup.change-list .filtered .results,
  body.popup.change-list .filtered .paginator {
    margin-right: 195px;
  }
}

@media (max-width: 767px) {
  #changelist-filter {
    right: -30px;
  }

  #content,
  body.dashboard #content,
  body.changelist #content,
  body.popup #content {
    padding-top: 20px;
  }

  #changelist #toolbar {
    margin-left: -35px;
    margin-right: -15px;
    margin-bottom: 15px;
    padding: 16px 15px 16px 10px;
  }

  #changelist #toolbar,
  body.popup #changelist #toolbar {
    margin-top: -20px;
  }

  #changelist-search > div {
    max-width: 767px;
  }

  #changelist-search label {
    opacity: 0;
  }

  .login #container {
    box-sizing: border-box;
    min-width: 0;
    width: calc(100% - 30px);
    margin: 30px auto;
  }

  .login .submit-row {
    padding-left: 0;
  }

  #changelist .actions {
    width: auto;
    margin-right: 0;
    /*width: 200px;*/
    /*right: -30px;*/
    padding: 0 0 15px 0;
  }

  #changelist .actions label {
    display: flex;
    background-color: transparent;
  }

  #changelist .actions select {
    display: inline;
    width: auto;
  }

  #changelist .actions .button {
    display: inline;
    width: auto;
  }

  #changelist .actions span.action-counter {
    text-align: right;
    display: block;
  }

  #changelist-filter h2 {
    background: none;
    background-color: #417690 /* fallback */;
    background-color: var(--theme-color);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)) /* fallback */;
    background-image: var(--bg-lighten-25);
    color: white;
    line-height: 29px;
    padding: 0 15px;
  }

  .change-list .results, .change-list .paginator,
  .change-list .filtered .results, .change-list .filtered .paginator {
    margin-right: 0;
  }

  .change-list .filtered {
    margin-bottom: 0;
  }

  .object-tools {
    right: 20px;
  }
}

@media (min-width: 439px) {
}

@media (max-width: 438px) {
  .object-tools {
    position: static;
    float: none;
    transform: none;
    margin-bottom: 15px;
    margin-top: -10px;
  }

  .object-tools::after {
    content: "";
    display: block;
    clear: both;
  }

  #changelist #toolbar,
  body.popup #changelist #toolbar {
    margin-top: 0;
  }
}
