/* Styles AdminJS components for the centro-ui theme. */

/* CUSTOM FONTS */

@font-face {
  font-family: "DIalternateBold";
  src: url("/fonts/DINalternateBold.ttf") format("truetype");
}
@font-face {
  font-family: "GothamBold";
  src: url("/fonts/Gotham-Bold.otf") format("opentype");
}
@font-face {
  font-family: "GothamBlack";
  src: url("/fonts/Gotham-Black.otf") format("opentype");
}
@font-face {
  font-family: "GothamMedium";
  src: url("/fonts/Gotham-Medium.otf") format("opentype");
}
@font-face {
  font-family: "GothamLight";
  src: url("/fonts/Gotham-Light.otf") format("opentype");
}
@font-face {
  font-family: "HelveticaNeueMedium";
  src: url("/fonts/HelveticaNeueMedium.ttf") format("truetype");
}
@font-face {
  font-family: "HelveticaNeueRegular";
  src: url("/fonts/HelveticaNeueRegular.ttf") format("truetype");
}

#app * {
  font-family: "GothamMedium";
}

/* GENERAL DESIGN  */

::-webkit-scrollbar {
    display: none;
}

#app {
  padding-bottom: 40px !important; /** Add padding to account for footer */
}

#app .adminjs_H1 {
  font-family: "GothamBold";
}

#app .ActionHeader__subhead {
  font-family: "GothamLight";
}

#app .adminjs_Button {
  font-family: "HelveticaNeueRegular";
  line-height: 43px;
  padding-top: 0;
  padding-bottom: 0;
}

#app .diemsDashboard__title {
  font-family: "GothamBold";
}

#app .property__status {
  font-family: "GothamBold";
}

/* remove gray frame in the main section  */

#app > section > section > section {
  padding: 0;
}

#app > section > section > section > section {
  padding-left: 5%;
  padding-right: 5%;
}

#app > section > section > section > form:not(.adminjs_Drawer) {
  padding-left: calc(5% - 32px);
  padding-right: calc(5% - 32px);
}

#app > section > section > section.adminjs_Resources > section {
  padding-left: 0;
  padding-right: 0;
}

/* LIST ACTION TABLE  */
table.adminjs_Table {
  border: 1px solid #7070707c !important;
  border-collapse: unset !important;
}

table.adminjs_Table > thead {
  background: #f2f2f2 !important;
  height: 113px;
}

table.adminjs_Table > thead > tr > td {
  font-size: 17px !important;
  font: normal;
  letter-spacing: 0px;
  color: #000000 !important;
}

table.adminjs_Table > thead > tr > td > a {
  font-size: 17px !important;
  font: normal;
  letter-spacing: 0px;
  color: #000000 !important;
}

table.adminjs_Table > tbody > tr {
  border-bottom: 1px solid #707070 !important;
}

table.adminjs_Table > thead {
  font-weight: bold;
}

/* round up table thick box */
table.adminjs_Table > thead > tr > td:nth-child(1) > span > a {
  border-radius: 4px !important;
  left: 20px;
}

table.adminjs_Table > tbody > tr > td > span > a {
  border-radius: 4px !important;
  left: 20px;
}

/* dropdown with 3 dots icon  */
.adminjs_ButtonGroupItem a {
  border: none;
  color: #454655;
  background: none;
}

.adminjs_ButtonGroupItem a:hover {
  border: none;
  background: none;
  cursor: pointer !important;
}

.adminjs_ButtonGroupItem a .adminjs_Icon svg {
  fill: #D3D3D3 !important;
  height: 36px;
  width: 36px;
}

/* element visible on hover action  */
.adminjs_DropDownMenu {
  margin-right: 5px;
  width: 233px;
  box-shadow: 0px 0px 20px #00000029;
}

.adminjs_DropDownMenu::after {
  content: '';
  position: absolute;
  right: 0;
  top: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
}

.adminjs_DropDownMenu > section:hover {
  border-color: #f6f7fb; /* grey20 */
}

/* Reset icons in dropdown menu from the styling above. */
.adminjs_DropDownMenu a .adminjs_Icon svg {
  fill: currentColor !important;
  height: 16px;
  width: 16px;
}

/* LIST ACTION HEADER  */

.adminjs_ActionHeader .adminjs_ButtonGroupItem {
  height: 43px;
  font-size: 19px;
  text-transform: uppercase;
  line-height: 43px;
  font-weight: 400;
  color: #fff;
  background: #00A887;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0px;
  padding: 0 25px 0 25px;
}

.adminjs_ActionHeader .adminjs_ButtonGroupItem:hover {
  background: #00CCA3;
}



.adminjs_ActionHeader .adminjs_ButtonGroupItem .adminjs_Icon svg {
  fill: #fff;
}

.adminjs_DatePicker {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
}

/* Scheduler select button  */
.scheduleSelect {
  width: 300px;
}

.scheduleSelect .adminjs_Select > div {
  border-radius: 4px;
}

/** BUTTONS */

.adminjs_Button {
  font-size: 20px !important;
  text-transform: uppercase;

  border-radius: 4px;
}

.genericFooterButtons {
  padding-left: 16px;
  padding-right: 16px;
}

/** FORM CONTROLS */

.adminjs_Label {
  margin-bottom: 17px !important;
  font-size: 20px !important;
}

/** Restore the original margin on labels next to checkboxes */
.adminjs_Checkbox + .adminjs_Label {
  margin-bottom: 4px !important;
}

section[data-css="CollectionItem-filter-drawer-content"] label {
  font-size: 16px !important;
}

.adminjs_Input {
  border-radius: 4px;
}

.adminjs_Select > div {
  border-radius: 4px;
}

.adminjs_TableCell .Display-list-preview img {
  max-width: 170px;
}

/** HEADERS */

.adminjs_H3 {
  text-transform: capitalize;
  font-size: 30px !important;
  font-weight: 900 !important;
}

/** MODALS */

/* Adjust z position of modals so that they actually appear on top of other elements. */
[class*="modal-wrapper__Wrapper"] {
  z-index: 100;
}
