/* css/reset.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}
ul,
ol {
  list-style: none;
}
body {
  min-height: 100vh;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}
img,
picture {
  max-width: 100%;
  display: block;
}
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}
textarea:not([rows]) {
  min-height: 10em;
}
:target {
  scroll-margin-block: 5ex;
}

/* css/base.css */
@font-face {
  font-family: "Roboto";
  src: url("../../roboto/Roboto-Regular.8a36205bd9b8.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto";
  src: url("../../roboto/Roboto-Medium.68ea4734cf86.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
html {
  font-family: "Roboto", sans-serif;
  font-size: var(--typo-default-size);
  font-weight: var(--typo-default-weight);
  color: var(--color-gray-2);
}
body {
  background-color: var(--color-white);
  margin: 0;
}
nav > ul {
  padding: 0;
  margin: 0;
}
body > .nav_menu {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 100%;
  &.open {
    left: 0;
  }
  transition: left 0.6s ease-in-out;
  background: var(--color-white);
  > div:first-child {
    height: 60px;
    background: var(--color-gray-4);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
    > img {
      cursor: pointer;
    }
  }
  a {
    display: flex;
    padding: 16px;
    align-items: center;
    gap: 16px;
    font-size: var(--typo-heading-size);
    font-weight: var(--typo-heading-weight);
    color: var(--color-gray-1);
    border-bottom: 1px solid var(--color-gray-5);
    img {
      width: 24px;
      height: 24px;
    }
  }
}
body > .page {
  --menubar-height: 56px;
  --breadcrumb-height: 48px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content var(--menubar-height) var(--breadcrumb-height) 1fr min-content;
  grid-template-areas: "opt-banner-top" "menubar" "breadcrumb" "content" "opt-banner-bottom";
}
.page > .page-menubar {
  grid-area: menubar;
  background: var(--color-black);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  > .menu > *,
  > .actions > * {
    width: 24px;
    height: 24px;
  }
  > .menu {
    display: flex;
    align-items: center;
    gap: 16px;
    > :first-child {
      cursor: pointer;
    }
    > .logo {
      width: 35px;
      height: 35px;
    }
  }
  > .actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}
.page > .page-breadcrumbs {
  grid-area: breadcrumb;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: var(--typo-title-size);
  font-weight: var(--typo-title-weight);
  line-height: var(--typo-title-size);
  display: flex;
  align-items: center;
  padding: 14px 16px;
  .back {
    margin-right: 16px;
  }
}
.page > .page-content {
  grid-area: content;
  background: var(--color-gray-5);
}
.page > .adv-banner.top {
  grid-area: opt-banner-top;
}
.page > .adv-banner.bottom {
  grid-area: opt-banner-bottom;
}
.page.warn {
  font-size: 1.3em;
  text-align: center;
  > .page-content {
    padding: 32px;
  }
}
.adv-banner {
  background: var(--color-gray-5);
  width: 100%;
  > a {
    display: flex;
    justify-content: center;
  }
}

/* css/cards.css */
.page-content {
  .cards-list {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    > .card {
      width: 100%;
    }
    > .card-link {
      cursor: pointer;
    }
    > .card {
      background: var(--color-white);
      border: 1px solid var(--color-white);
      border-radius: 4px;
      padding: 16px 16px 16px 13px;
      .label {
        color: var(--color-black);
        font-size: var(--typo-heading-size);
        font-weight: var(--typo-heading-weight);
      }
      .pill {
        background: var(--color-gray-3);
        color: var(--color-white);
        border-radius: 12px;
        padding: 2px 20px;
        font-size: var(--typo-small-size);
        font-weight: var(--typo-small-weight);
      }
    }
  }
}

/* css/mainpage.css */
body .mainpage-links {
  --link-size: 168px;
  --icon-size: 64px;
  --gap: 24px;
  @media (width < 400px) {
    --link-size: 148px;
  }
  > nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
    padding: 16px;
    margin: 0;
    > li > a {
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      align-items: center;
      border: 1px solid var(--color-gray-4);
      border-radius: 4px;
      background: var(--color-white);
      color: var(--color-gray-2);
      font-size: var(--typo-title-size);
      font-weight: var(--typo-title-weight);
      width: var(--link-size);
      height: var(--link-size);
      > img,
      > svg {
        width: var(--icon-size);
        height: var(--icon-size);
      }
    }
  }
}

/* css/visitor_exhibitors.css */
.page-content .exhibitors-page {
  .search-panel {
    > form {
      > div {
        grid-column: span 2;
      }
    }
  }
  .exhibitor-card {
    height: 96px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    > div:first-child {
      font-size: var(--typo-small-size);
      font-weight: var(--typo-small-weight);
      text-transform: uppercase;
    }
  }
}

/* css/visitor_exhibitor.css */
.page-content {
  .exhibitor-page {
    padding: 16px;
    > .bottom-actions {
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
    }
  }
  .exhibitor-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    > .header {
      > .label {
        color: var(--color-black);
        font-size: var(--typo-heading-size);
        font-weight: var(--typo-heading-weight);
      }
    }
  }
}

/* css/visitor_venue_map.css */
.page-content .venue-map {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
  a {
    text-align: center;
  }
}

/* css/exhibitor_product.css */
.page-content .exhibitor-product-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  > .actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }
  > .image {
    background: var(--color-gray-4);
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    > * {
      height: 100%;
    }
    > .product-photo {
      object-fit: contain;
      width: 100%;
    }
  }
  .details {
    > .price {
      color: var(--color-black);
      display: flex;
      justify-content: center;
      gap: 8px;
      font-size: 2em;
      margin-bottom: 40px;
    }
  }
}

/* css/exhibitor_product_card.css */
.page-content {
  .exhibitor-product-card {
    height: 112px;
    overflow: hidden;
    display: flex;
    gap: 16px;
    > .image {
      background: var(--color-gray-4);
      > * {
        width: 100%;
        height: 100%;
      }
      &.stock {
        width: 80px;
        height: 80px;
        padding: 18px 16px;
      }
    }
    > .details {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: space-between;
      > div:first-child {
        display: flex;
        gap: 4px;
      }
      .pill {
        align-self: flex-start;
      }
      .pill.v {
        background: var(--color-pink);
        color: var(--color-white);
      }
      .pill.hidden {
        background: var(--color-red);
        color: var(--color-white);
      }
      .brand {
        font-size: var(--typo-small-size);
        font-weight: var(--typo-small-weight);
        text-transform: uppercase;
      }
    }
  }
  .exhibitor-product-card.empty-product {
    background: var(--color-gray-5);
    > .details {
      justify-content: flex-start;
      p {
        font-size: var(--typo-title-size);
        font-weight: var(--typo-title-weight);
      }
    }
  }
}

/* css/exhibitor_product_edit.css */
.page-content {
  .product-edit {
    padding: 16px;
    > form {
      background: var(--color-white);
      width: 100%;
      padding: 16px;
      .preview {
        img {
          object-fit: contain;
        }
      }
      .image-selector {
        display: flex;
        gap: 16px;
        justify-content: center;
        > div {
          border: 1px solid var(--color-black);
          width: 36px;
          height: 36px;
          line-height: 36px;
          text-align: center;
          cursor: pointer;
          &.selected {
            background: var(--color-yellow);
            color: var(--color-black);
          }
        }
      }
      .product-images {
        display: flex;
        overflow: hidden;
        > * {
          flex: 0 0 100%;
          transition: margin-left 0.3s ease;
        }
      }
    }
  }
}

/* css/exhibitor_products.css */
.page-content .exhibitor-products {
  .search-panel {
    > form {
      > div:first-child,
      > div.actions {
        grid-column: span 2;
      }
      > div:has(> #id_include_sold_out) {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        align-content: center;
        > label,
        > input {
          width: auto;
        }
      }
    }
  }
}

/* css/first_login.css */
.page {
  .page-content p {
    margin-top: 0;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 40em;
  }
}

/* css/events.css */
.page-content .events {
  .card {
    > div {
      margin-bottom: 4px;
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

/* css/allauth.css */
.page.auth-entrance .page-content,
.page-content .auth-manage {
  > * {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  a {
    font-weight: var(--typo-title-weight);
    text-decoration: underline;
  }
  h1 {
    margin: 0;
    text-align: center;
  }
  > p {
    margin: 0;
    font-size: var(--typo-title-size);
  }
  form {
    label {
      display: block;
      margin-bottom: 8px;
    }
    input[type=text],
    input[type=email],
    input[type=password] {
      padding: 4px;
      width: 100%;
    }
    .helptext {
      display: block;
      margin-top: 8px;
    }
    label[for=id_remember] {
      display: inline;
    }
  }
  button {
    width: 100%;
  }
  .socialaccounts {
    display: flex;
    flex-direction: column;
    align-items: center;
    img {
      max-height: 40px;
    }
  }
}

/* css/frontend.css */
:root {
  --color-white: #fff;
  --color-gray-5: #f5f5f5;
  --color-gray-4: #dddddd;
  --color-gray-3: #cccccc;
  --color-gray-2: #666666;
  --color-gray-1: #333333;
  --color-black: #000;
  --color-pink: #6200ee;
  --color-red: #ff0000;
  --color-yellow: #eab500;
  --typo-small-size: 12px;
  --typo-small-weight: normal;
  --typo-default-size: 14px;
  --typo-default-weight: normal;
  --typo-title-size: 16px;
  --typo-title-weight: 500;
  --typo-heading-size: 18px;
  --typo-heading-weight: 500;
}
a,
a:visited {
  color: inherit;
  text-decoration: none;
  &[target] {
    text-decoration: underline;
  }
}
a.btn {
  display: inline-block;
}
a.btn,
button.btn-primary,
button.btn-secondary {
  height: 40px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 10px 19px;
  text-decoration: none;
  font-size: var(--typo-title-size);
}
a.btn.btn-primary,
button.btn-primary {
  background: var(--color-yellow);
  color: var(--color-black);
  font-weight: var(--typo-title-weight);
}
*.filler {
  flex: 1;
}
button.transparent {
  background: none;
  padding: 0;
  border: none;
  cursor: pointer;
}
p:first-child {
  margin-top: 0;
}
form {
  margin: 0;
}
form.django {
  display: flex;
  flex-direction: column;
  gap: 16px;
  > div {
    > * {
      display: block;
      width: 100%;
    }
    label {
      color: var(--color-gray-2);
      margin-bottom: 8px;
    }
    > select,
    > input {
      padding: 18px 16px;
      background: var(--color-gray-5);
      border: 1px solid var(--color-gray-4);
      border-radius: 4px;
      color: var(--color-black);
    }
  }
  .errorlist {
    color: var(--color-red);
  }
  div.field-image {
    display: flex;
    flex-direction: column;
    > input[type=file] {
      display: none;
    }
    > div {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 16px;
      background: var(--color-gray-5);
      > .preview {
        height: 250px;
        > * {
          display: block;
          margin: 0 auto;
          height: 100%;
        }
      }
      > .actions {
        display: flex;
        gap: 16px;
        justify-content: center;
      }
    }
  }
  > div.actions {
    display: flex;
    gap: 16px;
    flex-direction: row-reverse;
    > * {
      width: auto;
    }
  }
}
.details-list {
  background: var(--color-white);
  padding: 16px;
  > .appointment {
    margin-top: 16px;
    text-align: right;
  }
  a {
    text-decoration: dotted underline;
  }
  > dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    > dt,
    > dd {
      margin: 0;
      height: 48px;
      display: flex;
      align-items: center;
      border-bottom: 1px dashed var(--color-gray-3);
    }
    > dd {
      color: var(--color-black);
      justify-content: flex-end;
    }
  }
}
.open-toggler {
  cursor: pointer;
}
.search-panel-viewport {
  overflow: hidden;
  > .search-panel {
    margin-top: -100%;
    transition: margin-top 0.6s ease-in-out;
    &.open {
      margin-top: 0;
    }
  }
}
.search-panel {
  background: var(--color-gray-4);
  padding: 16px;
  form.django {
    input,
    select {
      background: var(--color-white);
      &:disabled {
        background: var(--color-gray-3);
      }
    }
    label {
      display: none;
      &:has(+ input[type=checkbox]) {
        display: inline;
        margin: 0;
      }
    }
    input[type=checkbox] {
      width: 20px;
      height: 20px;
    }
  }
  > form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
