/*
 * Semantic Admin component styles.
 *
 * Put rules here when they style templates or classes owned by django-semantic-admin.
 * Compatibility fixes for Django admin generated markup belong in unsemantic.css.
 */

@media only screen {
  /* Sidebar Layout */
  #app-main > .pusher > .full.height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    min-height: 100vh;
  }
}

/* Container Layout */
#app-main .container {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0px;
}

/* Fix full-height bottom off by 2px */
#app-main .full.height > .computer-menu > .ui.inverted.menu {
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
}

/* Hide Top Bar */
@media only screen and (min-width: 1145px) {
  #app-main .full.height {
    min-height: 100%;
  }
  #app-main .fixed.main.menu {
    display: none;
  }
}

/* Remove Fixed Sidebar /  Show Top Bar */
@media only screen and (max-width: 1144px) {
  /* Hide Fixed Sidebar */
  #app-main .full.height > .computer-menu {
    display: none;
  }
  #app-main #app-content {
    margin-top: 3em;
  }
}

.pagination-buttons {
  display: inline-flex;
  vertical-align: middle;
}

.logout-button {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
}

.logout-button:hover {
  color: #fff !important;
}

.semantic-admin-content-header {
  align-items: center;
}

.semantic-admin-content-header > .semantic-admin-title-field {
  min-width: 0;
}

@media (max-width: 767px) {
  .semantic-admin-content-header {
    flex-wrap: wrap;
  }

  .semantic-admin-content-header > .semantic-admin-title-field,
  .semantic-admin-content-header > .semantic-admin-object-tool-field {
    flex: 1 1 100% !important;
  }
}

.semantic-help-text {
  margin-top: 0.25rem;
}

.semantic-help-text > .ui.bulleted.list {
  margin-top: 0;
  margin-bottom: 0;
}

.semantic-error-list {
  color: #9f3a38;
}

.ui.error.message > .semantic-error-list {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.password-reset-link {
  margin-bottom: 1em;
}
