:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

:root { 
  --background-color: #fafafa; /* Background color for the entire website, including individual sections */
  --default-color: #212529; /* Default color used for the majority of the text content across the entire website */
  --header-back: #16212D; 
  --header-color: #fafafa;
  --accent-color: #929df9; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --orange-color: #C0A75D;
}
:root {
  scroll-behavior: smooth;
}
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  margin: 0;
  padding: 0;
  height: auto;
}
html {
  margin: 0;
  padding: 0;
  height: auto;
}
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}
.center {
  text-align: center;
}
.single {
  display: flex;
  width: 100%;
  min-height: 450px;
  margin-top: 50px;
}
.home {
  display: flex;
  flex-direction: column;
  color: var(--default-color);
  background-color: var(--surface-color);
  padding: 32px 32px 24px 32px;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}
.welcome {
  margin: auto;
}
.welcome img {
  display: block;
  margin: 0 auto;
  width: 350px;
}
.container {
  display: flex;
  flex-wrap: wrap;
  height: calc(100vh - 48px); /* Full viewport height */
  align-content: stretch;
  /* width: 100%;
  min-height: 750px; */
  /* margin-top: 50px; */
}
.child {
  flex: 1;
  /* padding: 10px; */
  width: 40%;
  max-width: 680px;
  min-height: 750px;
  max-height: 906px;
}
.child:first-child {
  margin-right: 10px;
}
#header {
  display: flex;
}
#header_m {
  display: none;
  border-radius: 0 !important;
  border: 0 !important;
}
.logo {   
  /* margin: 0 auto; */
  width: 150px !important;
  padding: 0 0 0 0;
}
.logo_m {   
  width: 150px !important;
  padding: 0 0 0 0;
}
.header_bar {
  display: flex;
  flex-direction: row;
  column-gap: 40px; /* Space between columns */
  /* Draws a vertical line precisely in the center of the gap */
  column-rule: 2px solid #ccc; 
  align-items: center;
  background-color: var(--header-back) !important;
  color: var(--header-color) !important;
}
.hidden { 
  visibility: hidden;
}
.nomin { 
  min-width: unset !important;
}
.title {
  font-size: 2em;
  letter-spacing: .25em;
}
.document {
  margin: 0 0 0 auto;
  /* max-height: 750px; */
}
.details {
  margin: 0 auto 0 0;
}
/* .details img {
  display: block;
  margin: 0 auto;
  width: 350px;
} */
section,
.section {
/*   display: flex;
  flex-direction: column; */
  color: var(--default-color);
  background-color: var(--surface-color);
  padding: 24px 32px 24px 32px;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
  min-height: 750px;
}
.section div {
  margin-top: 5px;
}
.section > div:first-of-type {
  margin-top: 0px;
}
.section_details {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 818px; /* 906px */
  padding: 10px 12px 10px 12px;
}
.order {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.card {
  width: unset !important;
  min-width: 240px !important;
} 
/* .order div:first-child {
  flex-basis: 25%;
}
.order div:nth-child(2) {
  flex-basis: 75%;
} */

.initial {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: 1fr 20px;
  min-height: 100px;
}
.initial div:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.initial .cell-1 {
  grid-column: 2;
  grid-row: 1;
}
.initial .cell-2 {
  grid-column: 2;
  grid-row: 2;
}
.inital_box {
  border: solid 2px black;
  background-color: #F3F7FB !important;
  height: 80px;
 /*  width: 80px; */
  padding: 2px;
  align-content: center;
  box-shadow: 0 1px 3px 0 #d4d4d5 !important; /* ,0 0 0 1px #C0A75D */
  border: dashed 1px #979797 !important;
 /*  text-align: center;
  -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0); 
  box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0); */
}
.inital_box img {  
   border: 1px solid #ddd; 
   max-width: 72px;
}
.signature {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: 1fr 20px;
  min-height: 100px;
}
.signature > div:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-right: 5px;
}
.signature .cell-1 {
  grid-column: 2;
  grid-row: 1;
}
.signature .cell-2 {
  grid-column: 2;
  grid-row: 2;
}
.signature_box {
  border: solid 2px black;
  background-color: #F3F7FB !important;
  height: 80px;
/*   width: 300px; */
  padding: 2px;
  align-content: center;
  box-shadow: 0 1px 3px 0 #d4d4d5 !important; /* ,0 0 0 1px #C0A75D */
  border: dashed 1px #979797 !important;
/*   text-align: center;
  -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0); 
  box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0); */
}
.signature_box img {
   border: 1px solid #ddd; 
   max-width: 292px;
}
#sig-canvas {
   height: 200px; 
}
.sign_detail {
  /* text-align: center;  */
  margin: 0 0 0 50px;
  align-content: center;
}
.hint_text {
  display: block;
  color: black;
  font-weight: bold;
}
.actions {
  margin: auto 0 0 0 !important; 
  /* display: grid;
  grid-template-rows: 42px 1fr 40px; */
}
.options {
  display: grid;
  grid-template-columns: 5fr 4fr 4fr;
  column-gap: 10px;
  margin: 20px 0 !important; 
  /* justify-content: flex-end; */
}
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto !important; 
  /* justify-content: flex-end; */
}
.poweredBy {
  display: flex;
  font-size: 12px;
  vertical-align: baseline;
  margin-right: 0;
  justify-content: flex-end;
}
.poweredBy img {
  margin: 0px 20px 0px 10px;
  vertical-align: baseline;
  width: 93px;
  height: unset;
  padding: unset;
}
.thankyou {
  margin-top: 30px !important;
  flex-grow: 1;
}
.error {
  margin: auto !important;
} 
.ui.modal>.header {
  background: #efefef;
}
.ui.modal>.content {
  background: #efefef;
}
.ui.modal>.actions {
  background: #efefef;
}
.step-active {
  display: grid;
}
.step-inactive {
  display: grid;
}
/* backwards to not show next on desktop */
.button-mobile-hide {
  display: block !important;
}
.button-mobile-show {
  display: none !important;
}
#buttonApprove {
  padding-left: 1em !important;
}
#textApprove {
  margin: 0 !important;
  padding-left: 5px !important;
  text-align: left;
}
#textApprove::before {
  font-size: 16px;
  font-weight: 600;
  content: "Approve Quote";
}
#textApprove::after {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5em;
  content: "\a Looks good, proceed to production";
  white-space: pre-wrap;
}
#buttonRevision {
  padding-left: 1em !important;
}
#textRevision {
  margin: 0 !important;
  padding-left: 5px !important;
  text-align: left;
}
#textRevision::before {
  font-size: 16px;
  font-weight: 600;
  content: "Request Revision";
}
#textRevision::after {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5em;
  color: #555555;
  content: "\a I'd like some changes";
  white-space: pre-wrap;
}
#buttonReject {
  background-color: #fcadad50;
  padding-left: 1em !important;
}
#textReject {
  margin: 0 !important;
  padding-left: 5px !important;
  text-align: left;
}
#textReject::before {
  font-size: 16px;
  font-weight: 600;
  content: "Reject Quote";
}
#textReject::after {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5em;
  color: #555555;
  content: "\a Do not proceed";
  white-space: pre-wrap;
}
.your_approval {
  max-width: unset !important;
}
.icon_card {
  align-content: center; 
  padding-left: 10px;
}
.customer_card {
  width: unset !important; 
  width: 270px !important;
  background-color: aliceblue !important;
}
.customer_card>.content {
  padding: 0.5em; 
  align-content: center;
}
.order_card {
  width: unset !important; 
  min-width: 160px !important;
  background-color: aliceblue !important;
}
.order_card>.content {
  padding: 0.5em; 
  align-content: center;
}
.event_card {
   width: unset !important; 
   min-width: 195px !important;
   background-color: #F9E8C6 !important;
   box-shadow: 0 1px 3px 0 #d4d4d5 !important; /* ,0 0 0 1px #C0A75D */
   border: solid 1px var(--orange-color) !important;
}
.event_card>.content {
  padding: 0.5em; 
  align-content: center;
}
.approval_text {
  width: 130px !important;
  font-size: 11px !important; 
  font-weight: 600 !important;
  line-height: normal;
  color: red !important;
   /* text-align: right; 
   width: 100%; 
   margin-top: 0px; 
   padding-top: 5px; 
   padding-right: 5px; 
   font-weight: 700; 
   color: red; */
}
.sign_divider {
   margin: 1.5rem 0 1rem 0 !important;
}
.sig_card_content {
  padding: 0 !important;
}
.sig_card_icon {
   align-content: center; 
   text-align:center; 
   width: 80px;
}
.ui.three.cards>.card:first-of-type{
  margin-left: 1em !important;
  margin-right: 0.5em !important;
}
.ui.three.cards>.card {
  margin-left: 0.5em !important;
  margin-right: 0.5em !important;
}
@media (max-width: 1023px) {
  section,
  .section {
    color: var(--default-color);
    background-color: var(--surface-color);
    padding: 0px 0px 0px 0px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    min-height: unset !important;
  }
  .section_details {
    height: 275px !important;
  }
  .section_detail {
    margin: unset !important;
  }
  .section div {
    margin-top: 5px;
  }
  .section > div:first-of-type {
    margin-top: 4px;
  } 
  #header {
    display: none;
  }
  #header_m {
    display: flex;
  }
  /* .logo_m { display: block; }
  .logo {display: none;} */
  .container {
    display: block;
    width: 100%;
    height: calc(100vh - 87px);  /* 90%;  */
    margin-top: unset !important;
  }
  .child {
    padding: 5px;
    width: 100%;
    max-height: calc(100vh - 375px);
    min-height: unset;
  }
  .child:first-child {
    margin-right: unset !important;
  }
  .order {
    margin-top: 5px !important;
  }
  #sign_doc { 
    height: calc(100vh - 375px);
    width: 100%;
  }
  .signature_box {
    max-width: 250px;
  }
  .signature_box img {
    /* max-width: 242px; */
    max-width: 185px;
  }
  #sig-canvas {
    height: 100px; 
  }
  .options {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 5px;
    margin: unset !important;
  }
  .footer {
    grid-template-columns: 2fr 3fr;
    margin-top: 0px !important;
  }
  .step-active {
    display: grid;
  }
  .step-inactive {
    display: none;
  }
  .button-mobile-hide {
    display: none !important;
  } 
  .button-mobile-show {
    display: block !important;
  }
  #textApprove::before {
    font-size: 16px;
    font-weight: 600;
    content: "Approve";
  }
  #textApprove::after {
    display: none;
  }
  #buttonNext {
    font-size: 16px;
    font-weight: 600;
  }
  #textRevision::before {
    font-size: 16px;
    font-weight: 600;
    content: "Revision";
  }
  #textRevision::after {
    display: none;
  }
  #textReject::before {
    font-size: 16px;
    font-weight: 600;
    content: "Reject";
  }
  #textReject::after {
    display: none;
  }
  .your_approval {
    display: none !important;
  }
  .customer_card {
    display: none !important;
  }
  .icon_card {
    display: none;
  }
  .order_card {
    min-width: 145px !important;
    margin-right: unset !important;
  }   
  .ui.three.cards>.card {
    margin-left: 1.25em !important;
  }
  .ui.three.cards>.card>.content {
    padding: 0.5em !important;
  }
  .ui.three.cards>.card>.content>.description, .approval_text {
    margin-top: 0 !important;
  }
  .event_card {
    min-width: 145px !important;
    width: 170px !important;
    margin-right: unset !important;
  }
  .sign_divider {
    display: none !important;
  }
  .sign_detail {
    font-size: smaller;
    margin: unset !important;
  }
  .action_button {    
    padding-left: 1em !important;
    padding-right: 1em !important;
  }
  .sig_card_icon {
    width: 50px !important;
  }
  #initial-event-date, #initial-ship-date, #signature-date {
    display: none !important;
  }
}
