/* Miligram overrides */
body {
  font-family: system-ui, -apple-system, "system-ui", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}
.dataTables_wrapper .dataTables_filter input {
  margin-left: initial !important;
}
.top-nav-links,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: futura-pt-bold, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

a {
  color: #1c9fed;
  -webkit-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

a:hover,
a:focus,
a:active {
  -webkit-transition: all 0.2s easeout;
  transition: all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
  color: #000000;
}
th {
  font-weight: normal;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
  color: #1c9fed;
}

/* Utility */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plupload_logo {
  display: none;
}
#uploader .ui-state-default.ui-widget-header.plupload_header {
  font-size: 1rem;
  font-family: inherit;
  display: none;
}

#uploader .ui-widget-content {
  background: transparent;
  color: inherit;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.theme--dark #uploader .ui-widget-content {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

#uploader .ui-widget-header {
  background: transparent;
  color: inherit;
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
  height: auto;
}

.theme--dark #uploader .ui-widget-header {
  background-color: #000;
}

#uploader .plupload_cell {
  padding: 0.75rem;
  border-bottom: 0;
  border-spacing: 0;
}

#uploader .plupload_filelist_header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.theme--dark #uploader .plupload_filelist_header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#uploader .plupload_filelist_footer {
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.theme--dark #uploader .plupload_filelist_footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

#uploader .plupload_file_status,
#uploader .plupload_file_size {
  vertical-align: middle;
}

#uploader .plupload_wrapper {
  font-family: inherit;
}

#uploader #uploader_dropbox {
  top: 2.25rem;
}

#uploader .ui-state-default,
#uploader .ui-widget-content .ui-state-default,
#uploader .ui-widget-header .ui-state-default {
  background: transparent;
  color: inherit;
  font-family: inherit;
  border: none;
}

#uploader .plupload_file {
  padding: 0.25rem;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16) !important;
  font-size: 0.875rem;
}

.theme--dark #uploader .plupload_file {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
}

#uploader .plupload_file:last-child {
  border-bottom: none !important;
}

#uploader .plupload_file .plupload_file_size {
  position: absolute;
  top: 50%;
  right: calc(3rem - 2px);
  text-align: right;
  transform: translateY(-50%);
}

#uploader .plupload_file .plupload_file_action {
  top: 50%;
  transform: translateY(-50%);
  right: 0.25rem;
}

#uploader .plupload_file .plupload_file_status {
  top: 50%;
  right: 130px;
  transform: translateY(-50%);
}

#uploader .plupload_action_icon {
  background-position: 0;
  background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM5 7.25C4.58579 7.25 4.25 7.58579 4.25 8C4.25 8.41421 4.58579 8.75 5 8.75H11C11.4142 8.75 11.75 8.41421 11.75 8C11.75 7.58579 11.4142 7.25 11 7.25H5Z" fill="%2334A5FF" /></svg>');
}

#uploader #uploader_browse {
  background: #1c9fed;
  font-weight: bold;
  font-size: 1rem;
  color: white;
}
#uploader #uploader_start {
  background: rgb(247, 63, 19);
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

#uploader #uploader_start .ui-icon {
  display: none;
}

#uploader #uploader_start .ui-button-text {
  padding-left: 1rem;
}

#uploader #uploader_browse .ui-icon {
  background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM8 4.25C8.41421 4.25 8.75 4.58579 8.75 5V7.25H11C11.4142 7.25 11.75 7.58579 11.75 8C11.75 8.41421 11.4142 8.75 11 8.75H8.75V11C8.75 11.4142 8.41421 11.75 8 11.75C7.58579 11.75 7.25 11.4142 7.25 11V8.75H5C4.58579 8.75 4.25 8.41421 4.25 8C4.25 7.58579 4.58579 7.25 5 7.25H7.25V5C7.25 4.58579 7.58579 4.25 8 4.25Z" fill="white" /></svg>');
  background-position: 0;
}

#uploader .plupload_droptext {
  font-size: 0.875rem;
}

/* Main */
body {
  background: #fefefe;
}
a.button.float-right {
  margin-left: 1rem;
}
button[type="submit"] {
  margin-top: 1rem;
}
.content {
  padding: 2rem;
  padding-left: 0px;
  background: #f6f6f6;
  border-radius: 0.4rem;
  /* Thanks Stripe */
  box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1), 0 3px 6px 0 rgba(0, 0, 0, 0.07);
}
.actions a {
  padding: 0 0.4rem;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #c6e0f0;
  border-radius: 4px;
}
tr:nth-child(2n) {
  /* background: #cccccc44; */
}

th {
  white-space: nowrap;
  background: #c6e0f0;
}

aside {
  border-right: 0.5px solid grey;
}

main {
  border-top: 0.5px solid grey;
  border-bottom: 0.5px solid gray;
}

/* Nav bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 192rem;
  padding: 2rem 3rem;
  margin: 0 auto;
}
.top-nav-title a {
  font-size: 1.8rem;
  color: #d33c43;
}
.top-nav-title span {
  color: #404041;
}
.top-nav-links a {
  margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
  font-weight: bold;
}

.side-nav-item {
  display: block;
  padding: 0.5rem 0;
}

.side-nav ul li {
  list-style: none;
  margin-bottom: 0rem;
  padding-left: 1rem;
}

.side-nav ul li.active {
  background: #e9e9e9;
}

/* View action */
.view.content .text {
  margin-top: 1.2rem;
}
.related {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Flash messages */
.message {
  padding: 1rem;

  background: #eff8ff;
  color: #2779bd;

  border-color: #6cb2eb;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.message.hidden {
  display: none;
}
.message.success {
  background: #e3fcec;
  color: #1f9d55;
  border-color: #51d88a;
}
.message.warning {
  background: #fffabc;
  color: #8d7b00;
  border-color: #d3b800;
}
.message.error {
  background: #fcebea;
  color: #cc1f1a;
  border-color: #ef5753;
}

/* Forms */
.input.radio,
.input.checkbox {
  margin-bottom: 2rem;
}
.input.radio input,
.input.checkbox input {
  margin: 0;
}
.input.radio label,
.input.checkbox label {
  margin: 0;
  display: flex;
  align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
  margin-right: 1rem;
}
.input.radio label:first-of-type {
  margin-bottom: 2rem;
}

/* Paginator */
.paginator {
  text-align: right;
}
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.pagination li {
  margin: 0 0.5rem;
}
.pagination li.active {
  font-weight: bold;
}
.prev.disabled a,
.next.disabled a {
  cursor: not-allowed;
  color: #606c76;
}
.asc:after {
  content: " \2193";
}
.desc:after {
  content: " \2191";
}

label,
legend {
  display: initial;
  font-size: initial;
  font-weight: normal;
  margin-bottom: 2rem;
}

legend {
  font-size: 2rem;
}

/* Error */
.error-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
}

@media screen and (max-width: 640px) {
  .top-nav {
    margin: 0 auto;
  }
  .side-nav {
    margin-bottom: 1rem;
  }
  .heading {
    margin-bottom: 1rem;
  }
  .side-nav-item {
    display: inline;
    margin: 0 1.5rem 0 0;
  }
  .asc:after {
    content: " \2192";
  }
  .desc:after {
    content: " \2190";
  }
}
.pill {
  background-color: lightgrey;
  padding: 0 0.5rem;
  border-radius: 8px;
  margin-right: 0.5rem;
  width: 28px;
  display: inline-block;
  text-align: center;
}
.pill.good {
  background-color: #e6e6e6;
}
.pill.bad {
  background-color: #e67777;
}
.center {
  text-align: center;
}
table.multitable tr td table tr td {
  border-bottom: none;
}
table.multitable tr td {
  border-bottom: none;
}
table.mediaedittable {
  border: 1px solid grey;
}
table.mediaedittable tr td label {
  margin-bottom: 0;
}
tr.problematic {
  /*        background-color: #ffdfdf;*/
}
tr.mediarow td table tr:first-child td {
  /* border-top: 2px solid black; */
}
tr.mediarow td table tr td {
  /* padding-left: 5px; */
}
tr.problematic td.required input:placeholder-shown {
  border-color: red;
}
div.uptd {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  font-weight: bold;
  /* background-color: red; */
}
label.uptd {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  font-weight: bold;
  padding-left: 1rem;
}
label.uptd input,
label.uptd textarea {
  margin-left: 1rem;
}
label.uptd textarea {
  flex-grow: 1;
}

td.thumbnail-holder {
  min-width: 100px;
}
input.multiselect__input {
  border: initial;
}
.multiselect__tag {
  background: #1c9fed !important;
}

input[type="checkbox"] {
  accent-color: #1c9fed;
  scale: 1.3;
  margin-left: 5px;
  margin-right: 5px;
}

.mediarow {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1rem;
}

@media screen and (max-width: 639px) {
  .mediarow {
    flex-direction: column;
  }

  .mediarow > td {
    width: 100%;
  }
}

.mediarow:not(:first-child) {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.mediarow > td:first-child {
  width: 40%;
}

.mediarow > td > table > tbody {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

.mediarow > td > table > tbody > tr:first-child {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: normal;
}

.mediarow .pleasadd + td > br {
  display: none;
}

.mediarow .pleasadd + td > span {
  font-weight: bold;
}

.mediarow > td > table > tbody > tr:not(:first-child) {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.mediarow > td > table > tbody > tr:not(:first-child) > td:not([colspan]) {
  width: 50%;
}

.mediarow > td > table > tbody > tr:not(:first-child) > td[colspan] {
  width: 100%;
}

.mediarow .uptd {
  width: 100%;
  position: relative;
}

.mediarow .uptd + div {
  line-height: 1;
  padding-top: 0.25rem;
}

.mediarow .uptd a {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM4.42385 4.51986C4.68903 4.20165 5.16195 4.15866 5.48016 4.42383L8.00002 6.52372L10.5199 4.42383C10.8381 4.15866 11.311 4.20165 11.5762 4.51986C11.8414 4.83807 11.7984 5.31099 11.4802 5.57617L8.48016 8.07617C8.20202 8.30795 7.79802 8.30795 7.51988 8.07617L4.51988 5.57617C4.20167 5.31099 4.15868 4.83807 4.42385 4.51986ZM4.42383 8.51984C4.68901 8.20164 5.16193 8.15864 5.48014 8.42382L8 10.5237L10.5199 8.42382C10.8381 8.15864 11.311 8.20164 11.5762 8.51984C11.8413 8.83805 11.7983 9.31097 11.4801 9.57615L8.48014 12.0761C8.202 12.3079 7.798 12.3079 7.51986 12.0761L4.51986 9.57615C4.20165 9.31097 4.15866 8.83805 4.42383 8.51984Z" fill="%2334A5FF" /></svg>');
  overflow: hidden;
  text-indent: 100%;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.mediarow .uptd input[dir="rtl"] + a {
  left: 0.5rem;
  right: initial;
}

.mediarow .uptd input {
  padding-right: 2rem;
}

.mediarow .uptd input::placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.mediarow .uptd input[dir="rtl"] {
  padding-left: 2rem;
  padding-right: 1rem;
}

.mediarow .uptd:hover a {
  opacity: 1;
  pointer-events: auto;
}
