body {
  font-family: "Inter", sans-serif;
}

@media screen and (max-width:1023px) {
  body {
    padding-inline: 1rem;
  }
}

main {
  --margin: 0;
  background-color: var(--gray-200);
  margin-inline-start: var(--margin);
  background-color: var(--white);
  min-height: 85vh;
  padding: 0;
}

aside {
  --width: 300px;
  background-color: var(--gray-50);
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--width);
  min-height: 100vh;
  overflow: hidden;
  padding: 0 1rem 0.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

@media screen and (max-width: 1023px) {
  main {
    margin: .5rem;
  }

  aside {
    display: none;
  }
}

@media screen and (min-width: 800px) {
  main {
    padding: 1rem;
  }

}

@media screen and (min-width: 1024px) {
  aside {
    --width: 33.34%;
  }

  main {
    --margin: 33.34%;
  }
}

.container {
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    margin: 0;
    gap: 0;
  }
}


/** HIDE FOR MOBILE/ DESKTOP **/

.desktop-only {
  font-family: inherit;
}

.mobile-only {
  font-family: inherit;
}

@media screen and (min-width:1024px) {
  .desktop-only {
    display: initial;
  }

  .mobile-only {
    display: none;
  }
}

@media screen and (max-width:1023.9px) {
  .desktop-only {
   display: none;
  }

  .mobile-only {
    display: initial;
  }
}


/******************
* Flex
******************/

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-0 {
  gap: 0;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-7 {
  gap: 1.75rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-9 {
  gap: 3rem;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-baseline {
  justify-content: baseline;
}

.justify-stretch {
  justify-content: stretch;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.align-baseline {
  align-items: baseline;
}

.align-stretch {
  align-items: stretch;
}

.align-between {
  align-items: space-between;
}

.align-around {
  align-items: space-around;
}

.flex-full {
  width: 100%;
}

.margin-0 {
  margin: 0;
}

.margin-x-0 {
  margin-left: 0;
  margin-right: 0;
}

.margin-y-0 {
  margin-top: 0;
  margin-bottom: 0;
}

.margin-auto {
  margin: auto;
}

.margin-x-auto {
  margin-left: auto;
  margin-right: auto;
}

.margin-y-auto {
  margin-top: auto;
  margin-bottom: auto;
}


/***MODAL **/

body:has(dialog[open]) {
  overflow: hidden;
}

*::backdrop {
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.5);
  user-select: none;
}

/* Modal styles */

dialog {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  padding: 1.5rem 2rem;
  position: absolute;
  inset: 0;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  min-width: 38ch;
  max-width: 45ch;
  box-shadow: 0px 2px 4px -2px #1018280f, 0px 4px 8px -2px #1018281a;
}

dialog h3 {
  display: block;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

dialog>header {
  position: relative;
  display: block;
}

dialog>header>button.bttn.bttn-close {
  position: absolute;
  top: -8px;
  right: 0px;
}

dialog p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 400;
}

dialog footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0 0 0;
}

/***/


/**
Heading Stepper
**/

[data-mobile-stepper] {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0;
  margin: 1rem auto 0 auto;
  height: 1.25rem;
  width: clamp(320px, 22rem, 100%);
}

[data-spacer] {
  width: clamp(3rem, 120px, 10rem);
}

[data-step] {
  --height: 0.5rem;
  width: clamp(3rem, 100%, 200px);
  height: var(--height);
  border-radius: calc(var(--height) * 2);
  flex: 1;
  background-color: var(--gray-100);
}

[data-step].selected {
  background-color: var(--brand-1, var(--cyan-700));
}

[data-desktop-header] {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-around;
}

/*************************************************
* Components
*************************************************/
/* BASE CARD */
.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border-radius: 0.5rem;
  box-shadow: 0px 1px 2px 0px #1018280f;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  font-family: inherit;
  width: 16rem;
  height: auto;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  font-weight: 400;
  color: var(--gray-600);
  overflow-wrap: break-word;
}

.card svg {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.card img {
  margin: 0 auto;
}

.card h3 {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.card p {
  font-weight: 400;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.card.checked {
  --border: var(--brand-1, var(--cyan-600));
  --background-color: var(--brand-2, var(--cyan-50));

  border: 1px solid var(--border);
  background-color: var(--background-color);
}

.card.checked p  {
  color: var(--text-color);
}

.employee.card {
  padding-top: 1.5rem;
  width: 12rem;
  min-width: 9rem;
  height: 13rem;
}

.card.checked h3  {
  color: var(--text-color);
}

.employee.card.no-picture {
  height: auto;
  min-width: 20rem;
  min-height: 3.5rem;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

.employee.card.no-picture>div {
  margin-left: 2.5rem;
  margin-top: 0.5rem;
  text-align: left;
}

.employee.card.no-picture span {
  font-weight: 600;
  font-size: 1rem;
}

.employee.card.no-picture p {
  margin-bottom: .25em;
}

.employee.card.checked {
  background-color: var(--brand-2, var(--cyan-50));
}

.persona.card.checked {
  --background-color: var(--brand-2, var(--cyan-50));
  background-color: var(--background-color);
}

.noperson.card {
  padding-top: 1.5rem;
  width: 12rem;
  min-width: 9rem;
  height: 13rem;
}

.noperson.card.no-picture {
  height: auto;
  min-width: 20rem;
  min-height: 3.5rem;
  justify-content: flex-start;
  flex-direction: row;
  align-items: center;
  padding: 0;
  margin: 0;
  gap:1rem;
}

.noperson.card.no-picture .no-pic {
  margin-left: 2.5rem;
  margin-top: 0.5rem;
  text-align: left;
  padding: 1rem;
  padding-top: 0.5rem;
  width: 100%;
}

.noperson.card.no-picture h3 {
  margin: 0;
}

.noperson.card svg.checked > rect{
  fill: var(--warning-800);
}

.noperson.card svg[data-image] {
  position: static;
  width: 100%;
  display: initial;
  padding: 1rem;
}

.noperson.card div[data-image] {
  border-radius: 100%;
  border: 1px solid var(--gray-300);
  padding: 0;
  background: var(--gray-200);
  box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.10), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  margin-bottom: 1rem;
}

.noperson.card.checked {
  background-color: var(--warning-50);
  border-color: var(--warning-600);
  color: black !important;
}

.noperson.card.checked h3 {
  color: black !important;
}


@media screen and (max-width: 460px) {
  .noperson.card {
    min-width:9rem;
    max-width:9rem;
  }
}

@media screen and (min-width:461px) and (max-width: 600px) {
  .card {
    min-width: 250px;
  }
  .noperson.card {
    min-width:9rem;
    max-width:12rem;
  }

  .card-container {
    gap: 0.3rem;
  }
}


@media screen and (max-width:460px) {
  .employee.card, .noperson.card {
    max-width: 150px;
  }
}


/** BUTTONS **/

/*************************************************
* Button
*************************************************/

button {
/*  --border-color: var(--cyan-700);
  --bg-color: var(--cyan-700);
  --color: var(--white);
*/  

--border-color: var(--brand-1, var(--cyan-700));
--bg-color: var(--brand-1, var(--cyan-700));
--color: var(--brand-text);

--min-width: 20ch;

  display: flex;
  padding: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
}

.bttn-primary {
  min-width: var(--min-width);
}

.bttn-secondary {
  --border-color: var(--gray-300);
  --bg-color: var(--white);
  --color: var(--gray-700);
  min-width: var(--min-width);
}

.bttn-text {
  --bg-color: inherit;
  --color: var(--gray-600);
  /*Back button */
  --min-width: initial;
  border: 0;
  text-decoration: none;
  box-shadow: none;
  padding: 0;
}

button.bttn-stretch {
  width: 100%;
}

button[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

@media screen and (max-width: 640px) {
  .bttn-secondary,
  .bttn-primary{
    width: 100%;
  }
}

#backBtn {
  margin-inline-start: 2rem;
}

@media screen and (max-width: 800px) {
  #backBtn {
    margin-inline-start: 0;
  }
}

/*Add name box*/
.add-name-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}

.name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.your-name {
    color: var(--Gray-700, #344054);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.option {
    color: var(--Gray-400, #98A2B3);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.input-text {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 528px;
    height: 2.5em;
    display: flex;
    justify-content: center;
}

.name-text-box {
    width: 100%;
    max-width: 100%;
    border: none;
    outline: none;
    background: transparent;
}

.name-wrapper textarea.name-text-box {
    white-space: pre-wrap;
    overflow-wrap: break-word;
}


@media screen and (min-width: 600px) and (max-width: 1248px){
    .add-name-wrapper {
        display: flex;
        justify-content: center;
    }

    .name-wrapper { 
        width: 60%; align-items: stretch;
    }
    .input-text { width: 100%; max-width: none; height: 48px; }
    .name-text-box { width: 100%; height: 32px; }
    .name-wrapper textarea.name-text-box { height: 56px; max-height: 96px;}
    }

@media screen and (min-width: 322px) and (max-width:600px) {
    .add-name-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 1em;
    }

    .name-wrapper { 
        width: 80%; align-items: stretch;
    }
    .input-text { width: 100%; max-width: none; height: 48px; }
    .name-text-box { width: 100%; height: 32px; }
    .name-wrapper textarea.name-text-box { height: 56px; max-height: 96px;}
    }