@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

.messages--error {
    display: none;
}


.page-wrapper *:focus {
  outline: none;
  box-shadow: none;
}

body {
    font-family: 'Varela Round', sans-serif;
}

/* for presentation */
.messages-list {
    /* display:  none; */
}

.content-header {
  overflow: visible;
}

body.user-logged-in .page-content {
  /*margin-top: -3rem;*/
}

body.user-logged-in.path-magnet-pdf .page-content,
body.user-logged-in.path-archived .page-content,
body.user-logged-in.archive-product .page-content {
  margin-top: 0rem;
}

header img {
    width:  60px;
}

#block-mapvr-site-branding {
  text-align: center;
  margin-right: 20px;
}


.region-header {
    display: flex;
    align-items: center;
}

.site-name a {
    text-decoration: none;
    text-transform: uppercase;
    font-family:  Arial Black;
    color: #000;
}

#block-mapvr-mainnavigation ul li.sf-depth-1:first-child {
  text-indent: -1000px;
  border-radius: 0;
  background: none;
  background-image: url(/themes/mapvr/img/dashboard-icon.png);
  display: block;
  width: 32px;
  padding: 0;
  background-size: contain;
}




/* search results */
/* ======================================================= */




.Packaging.finished {
}

#show-finished-products {
    width:  100%;
    margin-top:  12px;
}

#finished-inside {
    width:  fit-content;
    background: orange;
    color: #fff;
    display: block;
    border-radius: 100px;
    padding: 4px 20px;
    cursor: pointer;
}

#block-magnetcomingsoon {

    width:  fit-content;
    min-width: 100%;
}

/* comments */

.field--name-field-state-permissions .field__items {
    display: flex;
    gap:  12px;
    flex-wrap: wrap;
}

.field--name-field-state-permissions .field__item {
    border-radius: 100px;
    padding: 3px 10px;
    color:  #333;
    width:  fit-content;
    flex-grow: 0;
    flex-shrink: 0;
    text-transform: uppercase;
    font-size: 13px;
    background-color: #ccc;
    color: #fff;
    font-weight: bold;
}

.field--name-field-state-permissions .field__item a {
    text-decoration: none;
    color:  #fff;
}

.field__item.drawing {
    background-color: rgb(255, 153, 51);
}

.field__item.dimpleing {
    background-color: rgb(85, 255, 51);
}

.field__item.shaping {
    background-color: rgb(51, 255, 255);
}

.field__item.tunings-and-heat-treatments {
    background-color: rgb(168, 102, 255);
}

.field__item.gluing {
    background-color: rgb(255, 221, 51);
}

.field__item.fine-tuning {
    background-color: rgb(85, 255, 51);
}

.field__item.flexing {
    background-color: rgb(61, 51, 255);
}

.field__item.nanoing {
    background-color: rgb(51, 167, 255);
}

.field__item.last-check {
    background-color: rgb(51, 255, 61);
}

.field__item.packaging {
    background-color: rgb(255, 51, 51);
}

.region-footer {
  padding-top: 50px;
  margin-top: 30px;
  border-top: 1px solid #ccc;
}

.pdf-feed.views-data-export-feed .feed-icon {
  width: auto;
  display: initial;
  padding-left: 50px;
  text-decoration: none;
  background-position-x: 0%;
  background-position-y: 50%;
}

#state-change-report-per-products #opener {

}

.view-report-kolos caption {
  font-size: 24px;
}

.view-duplicate-of-report-kolos.view-display-id-page_1 .views-field-title,
.view-report-kolos.view-display-id-page_1 .views-field-title {
  max-width: 100px;
}

.view-report-kolos.view-display-id-page_1 .late,
.view-duplicate-of-report-kolos.view-display-id-page_1 .late {
  background: red;
  border-radius: 30px;
  padding: 6px 13px;
  margin-left: -13px;
  color: #fff;
  font-weight: bold;
}

.view-duplicate-of-report-kolos.view-display-id-page_1 .Packaging.finished .late,
.view-duplicate-of-report-kolos.view-display-id-page_1 .Last.check.finished .late {
  background: #445500;
}

.view-report-kolos.view-display-id-page_1 .within-5-days,
.view-duplicate-of-report-kolos.view-display-id-page_1 .within-5-days {
  background: orange;
  border-radius: 30px;
  padding: 6px 13px;
  margin-left: -13px;
  color: #fff;
  font-weight: bold;
}


.pager__link.is-active, .pager__item--current {
  background: #445500;
}

.view-user-skills .views-field-field-state-permissions li {
  list-style-type: none;
  background: #445500;
  color: #fff;
  display: block;
  border-radius: 100px;
  padding: 4px 20px;
  margin-bottom: 4px;
  text-decoration: none;
  display: inline-block;
}

/* Billable short */
.view-duplicate-of-products .views-row {
  border: 1px solid #ccc;
  padding: 6px 12px;
}

.view-duplicate-of-products .views-field .views-label {
  float: left;
  font-weight: bold;
  margin-right: 10px;
  width: 80px;
}
/* Billable short */



#magnet-pdf-export, #magnet-pdf-export-spec, #magnet-pdf-export-generate {
  width: fit-content;
  background: #88aa00;
  color: #fff;
  display: block;
  border-radius: 100px;
  padding: 4px 20px;
  margin: 12px 0;
  cursor: pointer;
}

#block-mapvr-producthistoryraw {
  text-align: right;
}

#block-mapvr-producthistoryraw .form-item {
  margin: 0;
  font-weight: 700;

  a {
    text-decoration: none;
    color: #0071b3;
  }
}

div .collapsiblockTitleCollapsed button {
  background: none;
  h2 {
    margin: 0;
  }
}

/* new comments block */

.block-views-blocknew-comments-block-1 {

  border: 2px solid #445500;
  padding: 6px 6px 0 6px;
  margin: 24px 0;

h2 {
  font-size: 1em;
  margin: -18px 0 0 0;
  background: #fff;
  display: block;
  width: fit-content;
  padding: 0 10px;
}

.view-new-comments {

  table {
    margin: 0;

    tr {
      border: 0px;
    }

    td {
      height: 0px;
      line-height: 0px;
      padding-top: 0;
      padding-bottom: 0;

    a {
      text-decoration: none;
      color: #445500;
      font-weight: bold;
      line-height: 1em;
      p {
        margin: 0;
      }
    }

  }
}
}
}

/* new comments block */

/* products changed for tuners */
.block-views-blockchanges-for-tuners-block-1 {

  border: 2px solid #445500;
  padding: 6px 6px 0 6px;
  margin: 24px 0;

h2 {
  font-size: 1em;
  margin: -18px 0 0 0;
  background: #fff;
  display: block;
  width: fit-content;
  padding: 0 10px;
}

.view-changes-for-tuners {

table {
  margin: 0;

tr {
  border: 0px;
}

td {
  height: 0px;
  padding-bottom: 0;

a {
  text-decoration: none;
  color: #445500;
  font-weight: bold;
}

}
}
}

}

#add-shippping-info a {
  margin: 6px 0;
  width: fit-content;
  text-decoration: none;
  background-color: #f54336;
  display: block;
  border-radius: 100px;
  padding: 3px 10px;
  text-align: center;
  flex-grow: 0;
  flex-shrink: 0;
  text-transform: uppercase;
  font-size: 13px;
  color: #fff;
  font-weight: bold;
}

article.node--type-quality-control {
  position: relative;
}

.view-material-stock {

  .view-header {
    display: flex;
    gap: 12px;
    a {
      cursor: pointer;
      width: fit-content;
      margin-bottom: 4px;
      text-decoration: none;
      background: #0071b3;
      display: inline-block;
      border-radius: 100px;
      padding: 3px 12px;
      color: #fff;
    }
  }

  table tr {
    background: #65ad74;
    cursor: pointer;
  }

  .views-exposed-form {
    display: flex;
    gap: 12px;
    #edit-created-wrapper {
      .fieldset__wrapper {
        display: flex;
        gap: 12px;

        .form-item {
          margin: 0;
        }
      }
    }
  }
}

#reset-material-stock-filter {
  cursor: pointer;
  display: none;
  background: orange;
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  width: fit-content;
}

/* Borrowed products date overdue */
.view-id-products_by_location.view-display-id-block_1 {
  .view-content table tbody tr {
    background: #e64e53;
    color: #fff;

    a {
      text-decoration: none;
      color: #fff;
    }
  }
}

.open-qc-requests-counter,
.borrowed-handpan-due-date-counter,
.back-to-bf-request-list,
.field--name-field-application .field__item {
  width: fit-content;
  margin-bottom: 4px;
  text-decoration: none;
  background-color: #f54336;
  display: block;
  border-radius: 100px;
  padding: 3px 10px;
  color: #fff;

  &:hover {
    text-decoration: underline;
    color: #fff;
  }
}

.back-to-bf-request-list {
  background: orange;
}

body.reserved {
  #block-pagetitle {
    background: #fce081;
    padding: 14px 14px;
    border-radius: 15px;
  }

  .product-reserved-flag {
    float: right;
    font-weight: bold;
    font-size: 1.4em;
  }
}

.title-suffix {
  line-height: 2em;
  display: flex;
  gap: 6px;
}

.print__wrapper--pdf a,
a.button {
  background: #445500;
  color: #fff;
  display: block;
  border-radius: 100px;
  padding: 4px 20px;
  text-decoration: none;
  width: fit-content;
}

#block-mapvr-exposedformproducts-not-mag-qualitypage-1 {
  h2 {
    display: none;
  }
}

#views-exposed-form-products-not-mag-quality-page-1 {
  display: flex;
  gap: 48px;
}

.last-check-finished-due-date {
  display: inline-block;
  background: red;
  border-radius: 100px;
  padding: 4px 12px;
  color: #fff;
}

.views-exposed-form.views-exposed-form[data-drupal-selector='views-exposed-form-toma-archive-page-1'] {
  display: flex;
  align-items: center;
  gap: 6px;

  .views-exposed-form__item.views-exposed-form__item {
    margin: 20px 0 0 0;
  }

  fieldset {
    border: none;
    box-shadow: none;

    .fieldset__label {
      padding: 0;
    }
  }

  div[data-drupal-selector='edit-changed-wrapper'] {
    fieldset {
      margin: 6px 0 0 0;
      padding: 0;
    }

    .form-datetime-wrapper {
      .form-item {
        display: block;
        margin: 0;
      }
    }

    .fieldset__wrapper {
      display: flex;
      gap: 6px;
      margin: 0;

      .form-item {
        margin: 6px 0 6px 0;
        padding: 0;
      }

    }
  }

  fieldset[data-drupal-selector='edit-field-customer-connect-target-id-wrapper'] {
    .fieldset__wrapper {
      padding: 0;
      margin: 0;

      .form-item{
        margin: 28px 0 0 0;
      }

    }
  }

  #edit-actions {
    margin-top: 42px;
  }
}

.once-upon-a-time-was-test {
  cursor: pointer;
  background: cornflowerblue;
  padding: 1px 12px;
  border-radius: 100px;
  color: #fff;
  display: inline-block;
  width: fit-content;
}

.tsd-product {
  cursor: pointer;
  background: orangered;
  padding: 1px 12px;
  border-radius: 100px;
  color: #fff;
  display: inline-block;
  width: fit-content;
  margin-left: 6px;
}

.view-handpan-case-stock, .view-handpan-stand-stock {
  .view-grouping-header {
    display: none;
  }

  .view-header {
    a {
      padding: 6px 24px;
      background: dodgerblue;
      border-radius: 100px;
      margin-right: 6px;
      text-decoration: none;
      color: #fff;
    }

    a.add-case {
      background: forestgreen;
    }

    a.sell-case {
      background: orange;
    }
  }

  table {
    caption, thead {
      display: none;
    }

    tbody {
      tr {

        &:last-child {
          border-bottom: 5px solid #ddd;
        }

        td {
          width: 25%;
        }

        td.views-field-field-amount {
          text-align: right;
          width: 5%;
        }

        td.views-field-parent-target-id {
          color:rgba(0,0,0,0);
        }

        td.views-field-view {
          .view {
            display: none;
          }
        }

        &:first-child {
          td.views-field-parent-target-id {
            color: black;
          }
        }

        &:last-child {
          td.views-field-view {
            .view {
              display: block;

              table {
                margin-block: unset;
                tr {
                  border: none;
                }
                td {
                  height: 0;
                  background: orange;
                  text-align: right;
                  text-wrap: nowrap;
                  &:before {
                    content: "Sum: ";
                  }
                }
              }
            }
          }
        }
      }


    }
  }
}

/* products changed for tuners */

/* 720 x 1440 */

@media only screen and (max-width: 1000px) {

    .layout-container {
        margin-right: 8px !important;
        margin-left: 8px !important;
    }

    .region-header {
        display: block;
    }

    #block-mapvr-views-block-serial-quick-search-block-1 .bef-exposed-form {
      float: none;
    }

    #block-mapvr-views-block-serial-quick-search-block-1 .views-exposed-form__item--preceding-actions.views-exposed-form__item--preceding-actions {
      width: 100%;
    }

    #block-mapvr-views-block-serial-quick-search-block-1 .form-item--title input {
      width: 80%;
    }

    nav.menu--main ul.menu,
    nav.menu--account ul.menu {
      flex-wrap: wrap;
      padding: 0;
      margin-top: 20px;
      list-style: none;
      display: flex;
      gap: 12px;
      padding-left: 30px;
    }

    #block-mapvr-mainnavigation.block-superfishmain {
      display: none;
    }


    nav ul.menu li {
      padding: 10px 20px;
      width:  100%;
    }

    #block-mapvr-account-menu {
      margin-top: 11px;
    }

    #block-mapvr-main-menu ul.menu,
    #block-mapvr-account-menu ul {
        margin:  0;
        padding: 0;
    }

    #block-mapvr-main-menu {
        margin-bottom: 20px;
    }

    #block-searchform {
        margin: 20px 0 0 0;
        padding: 0 0 15px;
    }

    .search-block-form .form-item {
        width: 100%;
    }

    .view-products .views-table thead th,
    .view-products .views-table thead th.views-field-field-serial,
    .view-search-product .views-table thead th,
    .view-search-product .views-table thead th.views-field-field-serial {
        top:  37px;
    }

    .block-views-exposed-filter-blocksw-search-page-1,
    .search-block-form {
        margin: 16px 0 16px 0!important;
    }

    #views-exposed-form-sw-search-page-1,
    #views-exposed-form-sw-search-page-1 input {
        width:  100%;
    }

    #finished-inside {
        width: 100%;
        box-sizing: border-box;
    }

  .view-new-comments {

    table {
      margin: 0;

      td {
        line-height: 1em;
      }
    }
  }

  #inventory-status-wrapper {
    #inventory-status {
      span {
        display: block;
        color: #f54336;
      }

    }
  }

  .goto-button {
    margin-top: 80px;
  }
}

@media screen and (max-width: 1200px) {
  #block-mapvr-views-block-who-s-online-who-s-online-block {
    background-color: red;
  }
}

@media screen and (max-width: 1000px) {
  #block-mapvr-views-block-who-s-online-who-s-online-block {
    background-color: green;
  }
}

@media screen and (max-width: 800px) {
  #block-mapvr-views-block-who-s-online-who-s-online-block {
    background-color: blue;
  }
}
