@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");

html,
body {
  --primary: #4abea5;
  --secondary: #072751;
  font-family: sofia-pro, sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1 {
  color: #fff;
}
@media only screen and (max-width: 960px) {
  h1 {
    font-size: 24px;
  }
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: var(--primary);
}
.hidden {
  display: none;
}
.bold {
  font-family: sofia-pro, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.primary {
  color: var(--primary);
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

button {
  background: var(--primary);
  padding: 4px 12px;
  color: #fff;
  border-radius: 4px;
  border: none;
}

button.cancel {
  background: transparent;
  padding: 4px 12px;
  color: #dc3545;
  border: none;
}
button.cancel:focus {
  outline: 0;
}
button.disabled,
button:disabled,
button[disabled] {
  background: #ccc;
  color: #666;
}
nav a {
  display: inline-block;
  color: #ffff;
  font-size: 26px;
}
nav a:hover {
  color: var(--primary);
}
nav .active {
  display: none;
}

nav {
  position: fixed;
  top: 26px;
  right: 18px;
  z-index: 99;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: all 0.4s;
}

a.menu-item {
  font-size: 24px;
  color: var(--primary);
}
a.menu-item:hover {
  color: #fff;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

.disabled {
  cursor: not-allowed;
  opacity: 60%;
  pointer-events: none;
}

/* // header ////////////////////////////////////////////////////////////////// */
header {
  background: var(--secondary);
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 93px;
}

header img {
  max-height: 86px;
  width: 100%;
}

@media only screen and (max-width: 960px) {
  header.reports {
    height: 125px;
  }
  header.supervisors {
    height: 142px;
  }
}

/* // footer ////////////////////////////////////////////////////////////////// */

footer {
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

/* // Intro - home page ////////////////////////////////////////////////////////////////// */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 60px);
  padding-top: 60px;
}
.intro a {
  margin: 8px;
  height: 280px;
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  background: var(--primary);
  color: white;
  text-transform: uppercase;
  font-weight: 700;
}
@media only screen and (max-width: 480px) {
  .intro {
    flex-direction: column;
  }
  .intro a {
    height: 160px;
    width: 180px;
  }
}

/* // tabs ////////////////////////////////////////////////////////////////// */
.tabs {
  position: fixed;
  top: 92px;
  background: #eee;
  padding-top: 6px;
  height: calc(100% - 124px);
}
.tabs .tab {
  padding: 12px 8px;
  min-width: 120px;
  max-width: 172px;
  background: #eee;
}
.tabs .tab.tab-active {
  background: #fff;
}
.tabs .tab-content {
  max-height: calc(100vh - 260px);
  overflow: scroll;
}
@media only screen and (min-width: 480px) {
  .tabs .tab-content {
    max-height: calc(100vh - 270px);
  }
}
@media only screen and (min-width: 1240px) {
  .tabs .tab-content {
    max-height: calc(100vh - 220px);
  }
}

/* // error ////////////////////////////////////////////////////////////////// */
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJ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jMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

/* // tables ////////////////////////////////////////////////////////////////// */

.table-wrap {
  padding: 18px;
}
.table-wrap h2 {
  padding-left: 8px;
}

/* // option filters ////////////////////////////////////////////////////////////////// */
.map-container {
  display: flex;
  flex-direction: row;
}

.sidebar .options {
  display: flex !important;
  flex-direction: column !important;
  top: 92px !important;
  right: 0 !important;
  z-index: 5;
  height: calc(100vh - 162px);
  width: 300px;
}

.sidebar .options .mud-select {
  flex-grow: 0.04;
}

.options {
  position: fixed;
  display: inline-flex;
  gap: 8px;
  top: 26px;
  right: 48px;
  z-index: 5;
}

.options button.reloadbtn {
  padding: 0;
}

select {
  border: 4px solid #fff;
  margin-right: 8px !important;
  padding: 6px 8px;
  border-radius: 2px;
  box-shadow: rgb(0 0 0 / 30%) 0px 1px 4px -1px;
  max-width: 172px;
}
.options select:disabled {
  background: #ccc;
  border: 4px solid #ccc;
}
.options.hide-True {
  display: none;
}
.supervisors + main .options {
  display: flex;
  background-color: #fff;
  padding: 4px;
  border-radius: 4px;
}
.supervisors + main .options select {
  border-bottom: 1px solid #ccc;
  margin-right: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  width: 176px;
}
.supervisors + main .options .mud-select {
  width: 240px;
  margin: 0 8px;
}
div.mud-list-item-icon {
  min-width: 34px;
}
.search-id-address {
  min-width: 110px;
  margin: 0 16px;
}
@media only screen and (max-width: 960px) {
  .options {
    top: 3px;
    display: flex;
    flex-direction: column;
    min-height: 88px;
    justify-content: center;
  }
  .options select {
    width: 150px;
    margin-top: 4px;
    margin-right: 0;
    padding: 0 8px;
    border: 2px solid #fff;
    font-size: 14px;
    margin-right: 0;
    height: 24px;
  }
  .reports + main .options {
    height: 120px;
    justify-content: center;
  }
  .supervisors + main .options {
    width: auto;
    top: 6px;
    padding: 0 8px;
  }
  .supervisors + main .options select {
    width: 172px;
  }
  .supervisors + main .options .mud-select {
    margin: 0;
    width: 172px;
  }
  .mud-input-control
    > .mud-input-control-input-container
    > div.mud-input.mud-input-text {
    margin-top: 0 !important;
  }
  .mud-input-label {
    display: none !important;
  }
  .search-id-address {
    display: none;
  }
}

/* // map ////////////////////////////////////////////////////////////////// */
.map.hide-True {
  display: none;
}
#map1 {
  height: calc(100% - 256px) !important;
  position: fixed !important;
  width: 100%;
  top: 142px;
  left: 0;
}

/* // reports  */
header.reports + main #map1 {
  top: 125px;
  height: calc(100% - 188px) !important;
}
@media only screen and (min-width: 960px) {
  header.reports + main #map1 {
    top: 93px;
    height: calc(100% - 162px) !important;
  }
}
/* // Supervisors */
header.supervisors + main #map1 {
  top: 142px;
  height: calc(100% - 306px) !important;
}
@media only screen and (min-width: 960px) {
  header.supervisors + main #map1 {
    top: 93px;
    height: calc(100% - 191px) !important;
  }
}
@media only screen and (min-width: 1240px) {
  .trade-view-False #map1 {
    height: calc(100% - 160px) !important;
  }
  #map1 {
    height: calc(100% - 212px) !important;
  }
}
/* // AllocateIt  */
header.allocate-it + main #map1 {
  top: 93px;
  height: calc(100% - 155px) !important;
}

.legend-key {
  max-width: 350px;
  max-height: 450px;
  position: fixed !important;
  margin-left: calc(100vw - 350px);
  top: 154px !important;
}

.showFilters {
  border: none;
  background: #fff;
  padding: 8px 16px !important;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  position: relative;
  margin-right: 24px;
}
.showFilters:hover {
  background: #eee;
}
.showFilters span {
  position: absolute;
  top: -10px;
  right: -10px;
  height: 28px;
  width: 28px;
  display: flex;
  padding-top: 1px;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}
.allocate-it-filters > div {
  background: #eee;
  padding: 8px 12px;
}
.allocate-it-filters > div > label {
  font-weight: 700;
  margin-right: 8px;
}
.allocate-it-filters > div > div > label {
  font-weight: 700;
  margin-right: 8px;
}
.allocate-it-filters .btn {
  background: var(--primary);
  color: #fff;
}

.assigned {
  background: rgba(1, 24, 92, 0.1) !important;
}

.unassigned {
  background: rgba(244, 67, 54, 0.25) !important;
}

.provisional {
  background: rgba(255, 235, 59, 0.1) !important;
}

.po-sent {
  background: rgba(64, 204, 60, 0.1) !important;
}

.complete {
  background: rgba(64, 204, 60, 0.25) !important;
}

/* // leaderboard ////////////////////////////////////////////////////////////////// */
.leaderboard-toggle:hover {
  color: var(--primary);
}
.leaderboard-toggle.False .oi-home {
  display: none;
}
.leaderboard-toggle.True .oi-bar-chart {
  display: none;
}
.leaderboard.show-False {
  visibility: hidden;
  opacity: 0;
  z-index: -1;
  transition: all 0.2s;
}
.leaderboard-toggle.True + .trade-view {
  display: none;
}

/* // keys ////////////////////////////////////////////////////////////////// */

.key {
  position: fixed;
  z-index: 99;
  bottom: 33px;
  left: 0;
  width: 100%;
  font-size: 16px;
  background: #fff;
  border-radius: 2px;
  padding: 0 2px 4px 2px;
  display: flex;
  justify-content: center;
}
.key .all {
  display: none;
}
.key.supervisors {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.key.supervisors section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.2;
  padding-top: 4px;
  padding-bottom: 2px;
}
.key.supervisors section .in-construction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
}
.key.supervisors div {
  padding: 0 8px;
}
.key.supervisors span {
  height: 24px;
  width: 24px;
  display: inline-flex;
  font-weight: 700;
  border-radius: 50%;
  margin: 2px;
  justify-content: center;
  background: #eee;
}
@media only screen and (min-width: 960px) {
  .key.supervisors section {
    display: flex;
    border-top: 1px solid #eee;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 2px;
  }
}
@media only screen and (max-width: 1024px) {
  .key.make-safe {
    display: grid;
    grid-template-columns: 50% 50%;
    font-size: 13px;
  }
}
@media only screen and (max-width: 960px) {
  .key.supervisors {
    display: grid;
    grid-template-columns: 55% 45%;
    font-size: 13px;
  }
  .key.supervisors span {
    height: 22px;
    width: 22px;
    padding-top: 2px;
  }
}
.key > div {
  background: transparent !important;
}

.key a {
  text-decoration: none;
  color: #777;
  transition: all 0.2s;
}
.key a:hover {
  color: #333;
}
.key.not-trade-view div {
  margin: 2px;
}

.key img {
  width: 24px;
  padding: 2px 6px 4px !important;
  margin-left: 0;
}

/* // loader ////////////////////////////////////////////////////////////////// */
.loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  z-index: 111;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid var(--primary);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary) transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* // modal ////////////////////////////////////////////////////////////////// */
.blazored-modal {
  padding: 18px;
  margin: 10px;
  max-width: 96%;
  max-height: 96%;
  padding: 15px;
  font-size: 14px;
  overflow-y: auto;
}
@media only screen and (max-width: 480px) {
  .blazored-modal {
    overflow: scroll;
  }
}
.blazored-modal {
  color: var(--secondary);
}
.blazored-modal-header {
  padding-bottom: 8px !important;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.blazored-modal-title {
  font-size: 18px;
}

.blazored-modal-close {
  display: none;
}

.confirm {
  background: #eee;
  padding: 4px 8px;
  color: var(--secondary);
}

div.blazored-toast-container {
  z-index: 1001;
}
div.blazored-toast-container .blazored-toast {
  padding: 0.6rem 1.2rem 1rem;
}
div.blazored-toast-container .blazored-toast-body .blazored-toast-header {
  align-items: center;
}
div.blazored-toast-container .blazored-toast-body .blazored-toast-header h5 {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.best-contact {
  border: 1px solid #eee;
  margin-bottom: 16px;
}
.best-contact h3 {
  font-size: 18px;
  padding: 8px;
  margin: 0;
}
.best-contact p {
  border-top: 1px solid #eee;
  padding: 8px;
  margin: 0;
}

.job-info div {
  padding: 2px 0;
}
.job-info .supervisor-select {
  margin: 6px 0;
}
.job-info select {
  border: 1px solid #eee;
}
/* // PO's in modal ////////////////////////////////////////////////////////////////// */
.pos {
  background: rgba(0, 0, 0, 0.025);
  padding: 2px;
  margin-top: 8px;
}
.pos .message {
  background: var(--secondary);
  color: #fff;
}
.pos .message div {
  display: flex;
  align-items: center;
}
.pos .message p {
  margin: 0;
}
.pos .message button {
  margin-left: 8px;
}

.pos h4 {
  font-size: 18px;
  padding: 4px 0 0 8px;
  margin-bottom: 4px;
}
.pos h5 {
  font-size: 16px;
  padding: 0 0 0 8px;
  margin-bottom: 6px;
  color: #fd7e14;
}
.pos table {
  margin-bottom: 0;
  background: #eee;
}
.pos select {
  border: 1px solid #fd7e14;
  position: relative;
  width: 110px;
}
.pos span.select.False select {
  background: transparent;
}
.pos span.select.False:before {
  display: block;
  position: absolute;
  content: "Select";
  width: 110px;
  height: 24px;
  padding: 0 8px;
  color: #222;
  background-color: #fff;
}
.office {
  position: relative;
  background: #5f6164;
  color: #fff !important;
  padding: 4px;
  height: 24px;
  min-width: 42px;
  font-size: 24px;
  margin-left: 86px;
  font-weight: 700 !important;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.office::before {
  position: absolute;
  display: block;
  content: "";
  left: -5px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 6px solid #5f6164;
}

.linedist {
  position: relative;
  background: #5f6164;
  color: #fff !important;
  padding: 4px;
  height: 20px;
  min-width: 30px;
  font-size: 24px;
  font-weight: 500 !important;
  border-radius: 6px;
  top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linedist::before {
  position: absolute;
  display: block;
  content: "";
}
/* // Allocateit ////////////////////////////////////////////////////////////////// */
.recommended-suppliers {
  border: 1px solid #eee;
}
.recommended-suppliers-header {
  font-size: 16px;
  background: #eee;
  padding: 4px 15px;
}
.recommended-suppliers .mud-list {
  padding: 8px;
}
.allocate-it .mud-list-item {
  padding: 0;
  font-size: 14px;
}
.allocate-it .has-pos .mud-list-item {
  cursor: pointer;
}
.allocate-it .has-pos .mud-list-item:hover section {
  border: 1px solid #333;
}

.legend {
  padding: 0px 6px;
  color: #eeeeee;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  position: relative;
  margin-right: 8px;
}

.supplier-drawer {
  top: 93px;
  bottom: 33px;
  height: auto !important;
}
.supplier-drawer .mud-drawer-content {
  padding: 8px 16px;
}

.supplier-drawer-header {
  padding: 6px 8px 0;
  display: flex;
  align-items: center;
}

.supplier-drawer-header div {
  width: 100%;
  font-weight: 700;
}

.recommended-supplier {
  padding: 4px 8px;
  background-color: #eee;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.recommended-supplier:hover .oi {
  color: var(--primary);
}
.recommended-supplier > div {
  margin: 4px;
  text-align: left;
  width: 100%;
}

.recommended-supplier-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.recommended-supplier-ryt {
  float: left;
}

.recommended-supplier-dist {
  float: right;
  font-size: 14px;
}

.recommended-supplier-item button {
  margin: 0 8px 4px;
}

.allocate-it .job-info {
  padding: 4px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

.po-control {
  padding: 4px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 700;
}
