﻿.page-title {
  display: block;
  border-bottom: solid 1px black;
  padding: 15px 0 15px 15px;
}

.u-grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.u-position-relative {
  position: relative;
}

.u-button-bottom {
  position: absolute;
  bottom: 0;
  right: 5px;
}

.u-button-bottom-5px {
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.u-checkbox-bottom {
  position: absolute;
  bottom: 13px;
}

.u-max-height-50 {
  max-height: 50vh;
}

.u-padding-5px {
  padding: 5px;
}

.u-text-align-center {
  text-align: center;
}

.u-margin-top-50 {
  margin-top: 50px;
}

.u-margin-bottom-25 {
  margin-bottom: 25px;
}

@media (min-width: 900px) {
  .u-margin-sides {
    margin-left: 10%;
    margin-right: 10%;
  }
}
@media (min-width: 1200px) {
  .u-margin-sides {
    margin-left: 20%;
    margin-right: 20%;
  }
}
.u-background-trans {
  background: transparent;
}

.modal-popup {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
  /*opacity: 0;
  visibility: hidden;
  transition: all .3s;*/
  /*&:focus {
      opacity: 1;
      visibility: visible;
  }

  &:focus &__content {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
  }*/
}
.modal-popup__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  background-color: #fff;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 2.5rem;
  overflow: hidden;
  opacity: 1;
  display: table;
  transition: all 0.4s;
}
.modal-popup__header {
  display: block;
  position: relative;
  border-bottom: 2px solid #777;
}
.modal-popup__header--title {
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}
.modal-popup__header--close {
  display: inline-block;
  color: #777;
  position: absolute;
  top: -1rem;
  right: 0rem;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-popup__header--close:hover {
  color: #444444;
}
.modal-popup__body {
  margin-top: 3rem;
}
.modal-popup__footer {
  display: block;
}

.modalAddLabor {
  display: grid;
  grid-template-columns: repeat(60, 1.66666667%);
}
.modalAddLabor--Employee {
  grid-column: 1/span 30;
  grid-row: 1;
  padding: 5px;
}
.modalAddLabor--CallType {
  grid-column: 31/span 30;
  padding: 5px;
  grid-row: 1;
}
.modalAddLabor--CompletedDate {
  grid-column: 1/span 15;
  padding: 5px;
  grid-row: 2;
}
.modalAddLabor--TimeStart {
  grid-column: 16/span 15;
  padding: 5px;
  grid-row: 2;
}
.modalAddLabor--TimeEnd {
  grid-column: 31/span 15;
  padding: 5px;
  grid-row: 2;
}
.modalAddLabor--Hours {
  grid-column: 46/span 15;
  padding: 5px;
  grid-row: 2;
}
.modalAddLabor--Rate {
  grid-column: 1/span 12;
  padding: 5px;
  grid-row: 3;
}
.modalAddLabor--Discount {
  grid-column: 13/span 12;
  padding: 5px;
  grid-row: 3;
}
.modalAddLabor--DiscountAmt {
  grid-column: 25/span 12;
  padding: 5px;
  grid-row: 3;
}
.modalAddLabor--TaxableAmt {
  grid-column: 37/span 12;
  padding: 5px;
  grid-row: 3;
}
.modalAddLabor--Total {
  grid-column: 49/span 12;
  padding: 5px;
  grid-row: 3;
}
.modalAddLabor--OT {
  grid-column: 1/span 10;
  padding: 5px;
  grid-row: 4;
}
.modalAddLabor--DT {
  grid-column: 11/span 10;
  padding: 5px;
  grid-row: 4;
}
.modalAddLabor--Processed {
  grid-column: 21/span 10;
  padding: 5px;
  grid-row: 4;
}
.modalAddLabor--Print {
  grid-column: 31/span 10;
  padding: 5px;
  grid-row: 4;
}
.modalAddLabor--Taxable {
  grid-column: 41/span 10;
  padding: 5px;
  grid-row: 4;
}
.modalAddLabor--Chrgbl {
  grid-column: 51/span 10;
  padding: 5px;
  grid-row: 4;
}
.modalAddLabor--Equipment {
  padding: 5px;
  grid-column: 1/span 20;
  grid-row: 5;
}
.modalAddLabor--Task {
  padding: 5px;
  grid-column: 21/span 20;
  grid-row: 5;
}
.modalAddLabor--Notes {
  grid-column: 1/span 60;
  padding: 5px;
  grid-row: 6/7;
}

.modalOtherCharge {
  display: grid;
  grid-template-columns: repeat(12, 8.3333333%);
}
.modalOtherCharge--Task {
  grid-column: 1/span 10;
  grid-row: 1;
  padding: 5px;
}
.modalOtherCharge--Date {
  grid-column: 11/span 2;
  grid-row: 1;
  padding: 5px;
}
.modalOtherCharge--Description {
  grid-column: 1/span 12;
  grid-row: 2;
  padding: 5px;
}
.modalOtherCharge--Qty {
  grid-column: 1/span 2;
  grid-row: 3;
  padding: 5px;
}
.modalOtherCharge--UnitCost {
  grid-column: 3/span 2;
  grid-row: 3;
  padding: 5px;
}
.modalOtherCharge--Discount {
  grid-column: 5/span 2;
  grid-row: 3;
  padding: 5px;
}
.modalOtherCharge--DiscTotal {
  grid-column: 7/span 2;
  grid-row: 3;
  padding: 5px;
}
.modalOtherCharge--SalePrice {
  grid-column: 9/span 2;
  grid-row: 3;
  padding: 5px;
}
.modalOtherCharge--Total {
  grid-column: 11/span 2;
  grid-row: 3;
  padding: 5px;
}
.modalOtherCharge--Print {
  grid-column: 9/span 2;
  grid-row: 4;
  padding: 5px;
  margin-top: 27px;
  text-align: center;
}
.modalOtherCharge--Taxable {
  grid-column: 11/span 2;
  grid-row: 4;
  padding: 5px;
  margin-top: 27px;
  text-align: center;
}
.modalOtherCharge--CallType {
  grid-column: 1/span 4;
  grid-row: 4;
  padding: 5px;
}
.modalOtherCharge--Department {
  grid-column: 5/span 4;
  grid-row: 4;
  padding: 5px;
}

.modalSearchMaterial {
  display: grid;
  grid-template-columns: 15% 15% 1fr 8%;
  grid-gap: 15px;
  margin-bottom: 20px;
}

.modalSearchFlatRate {
  display: grid;
  grid-template-columns: 15% 1fr 8%;
  grid-gap: 15px;
  margin-bottom: 20px;
}

.modalAssignTech {
  /*display: grid;
  grid-template-columns: 1fr 1fr 120px 120px 120px 1fr;
  grid-gap: 15px;
  margin-bottom: 20px;*/
}
.modalAssignTech--top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
  margin-bottom: 20px;
}
.modalAssignTech--bottom {
  display: grid;
  grid-template-columns: 210px 210px 1fr;
  grid-gap: 15px;
  margin-bottom: 20px;
}

.grid-7-column {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.grid-6-column {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.grid-5-column {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.grid-2-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.activity-indicator-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2147483647;
}

.activity-indicator {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid lightgray;
  border-top: 4px solid blue;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.createEditCustomer {
  display: grid;
  grid-template-rows: auto auto auto;
  /*height: 90vh;*/
}
.createEditCustomer--Header {
  padding: 0 0 10px 25px;
  border-bottom: 1px solid lightgray;
}

@media (min-width: 1500px) {
  .createEditCustomer {
    margin: 0 10% 0 10%;
  }
}
.cbHead, .cbItem {
  display: table;
  width: 100%;
  margin: auto;
}

.cbHead {
  height: 40px;
  font-size: 15px;
  font-weight: 600;
  padding: 0 36px 0 16px;
}

.cbEventID, .cbEmployee, .cbEndDate {
  display: table-cell;
  width: 33.333%;
  vertical-align: middle;
}

.cbEmployee {
  text-align: center;
}

.cbEndDate {
  text-align: end;
}

.companyFileItem {
  display: table;
  width: 100%;
  margin: auto;
}

.cfName, .cfAddress, .cfCity, .cfState {
  display: table-cell;
  width: 25%;
  vertical-align: middle;
}

.cfAddress, .cfCity {
  text-align: center;
}

.cfState {
  text-align: end;
}

.createCallCheckBox {
  padding-top: 30px;
}

.billToRow1, .newCustContainer, .displayFlex {
  /*display: grid;
      grid-template-columns: repeat(auto-fit(minmax(200px, 1fr));
      grid-gap: 10px;*/
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.displayFlex-sm {
  min-width: 18ch;
  max-width: max-content;
}

.displayFlex-md {
  min-width: 35ch;
  max-width: max-content;
}

.displayFlex-lg {
  min-width: 55ch;
  max-width: max-content;
}

.displayFlex-auto {
  min-width: min-content;
  max-width: max-content;
}

.displayFlex-fit {
  min-width: fit-content;
  max-width: fit-content;
}

.displayFlex-min {
  width: min-content;
}

.displayFlex-max {
  width: max-content;
}

.billToRow1 > * {
  flex: 1 1 100px;
}

.newCustContainer > * {
  flex: 1 1 100px;
}

#BTFirstName, #BTLastName, #BTCity, #custFirstName, #custLastName, #custCity {
  min-width: 20ch;
  max-width: 50ch;
}

#BTBillToName, #BTAddress1, #BTAddress2, #custCustName, #custAddress1, #custAddress2, .contactCardNameInput {
  min-width: 25ch;
  max-width: 60ch;
}

#BTZip, #custZip {
  min-width: 10ch;
  max-width: 15ch;
}

#BTCustType, #BTCustPriority, #BTPayType, #BTStatus, #BTAccountingCustID, #BTQBID, #custCustStatus, #custCustPriority, #custCustType, .contactCardTypeSel {
  min-width: 50ch;
  max-width: 70ch;
}

#BTCustSource, #custCustomerSource {
  min-width: 60ch;
  max-width: 80ch;
}

#BTTax, #BTSalesPerson, #BTAssignedTo, #custSalesPerson, #custAssignedTo {
  min-width: 85ch;
  max-width: 105ch;
}

#BTDaysToPay {
  min-width: 30ch;
  max-width: 50ch;
}

#BTTaxExemptNum, #BTAccountNum, #BTSigOnFile {
  min-width: 30ch;
  max-width: 50ch;
}

#BTCreditLimit, #BTBalanceDue {
  min-width: 20ch;
  max-width: 40ch;
}

#BTOffice {
  min-width: 150ch;
  max-width: 300ch;
}

#custNote {
  min-width: 150ch;
}

.btn-submit {
  width: 100px;
  margin-bottom: 25px;
  margin-top: 10px;
  /*display: flex;
      justify-self: end;
      justify-content: center;*/
}

.contactDetailContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contactDetailContainer > * {
  flex: 1 1 100px;
}

.contactMethodDetail, .contactCheckboxDetail {
  min-width: 30ch;
  max-width: 50ch;
}

.contactCheckboxDetail {
  align-self: end;
  text-align: center;
  padding-bottom: 10px;
}

.contactNoteDetail {
  min-width: 50ch;
  max-width: 80ch;
}

.contactTable {
  min-width: 650px;
  max-width: 50%;
}

@media (min-width: 2000px) {
  .contactTable {
    max-width: 1000px;
  }
}
.createCallHeader {
  display: grid;
  grid-template-columns: 25% 1fr 25%;
}

.createCallDetailRow1 {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
}

.createCallDetailRow2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
  grid-gap: 10px;
}

.createCallDetailRow3 {
  display: grid;
  grid-template-columns: 45% 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
}

.displayFlex > * {
  flex: 1 1 100px;
}

#empSetupAddress, #empSetupEmail, #empSetupSkill1, #empSetupSkill2, #empSetupSkill3 {
  min-width: 30ch;
  max-width: 60ch;
}

#empSetupZip {
  min-width: 10ch;
  max-width: 15ch;
}

#empSetupCompany, #empSetupServiceArea, #empSetupSupervisor, #empSetupVehNum, #empSetupDepartment {
  min-width: 45ch;
  max-width: 65ch;
}

#empSetupBools > * {
  max-width: 133px;
}

.displayFlex > * {
  flex: 1 1 100px;
}

#CustSrcSetupSourceID, #CustSrcSetupExp, #CustSrcSetupBegin, #CustSrcSetupCost {
  min-width: 25ch;
  max-width: 45ch;
}

#CustSrcSetupSourceDesc, #CustSrcSetupSourceType, #CustSrcSetupProvider {
  min-width: 40ch;
  max-width: 60ch;
}

#CustSrcSetupActive {
  min-width: 15ch;
  max-width: 35ch;
  margin-top: 27px;
}
