root {
    --menu: grid;
  }

  html {
    margin: 0;
    padding: 0;
  }

  #loading svg {
    animation: 1.5s linear infinite rotate;
  }

  @keyframes rotate {
    from {
      transform: rotate(0);
    }

    to {
      transform: rotate(360deg);
    }
  }

  body {
    touch-action: pan-y;
    background-color: #f5f5f5;
    color: #000;
    height: 98vh;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    width: 100vw;
  }

  .parent-div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 72px);
  }

  .parent-div div {
    display: flex;
    flex-direction: column;
  }

  svg {
    align-self: center;
  }

  #loading {
    opacity: 0;
    animation: fade 0.75s ease 0.3s forwards;
  }

  @keyframes fade {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  #div-modificar-entrades {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f5f5f5;
  }
  .div-modificar-entrades-b {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    width: 100%;
    height: 100%;
  }
  .div-modificar-entrades-div {
    border-radius: 6px;
    background-color: #fff;
    width: 700px;
    max-width: 98vw;
    padding: 20px;
    margin: 1vw;
  }

  .bg {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1),
      0 3px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
  }

  input,
  textarea {
    font-weight: 400;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.625;
    letter-spacing: -0.011rem;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025),
      0 1px 2px rgba(0, 0, 0, 0.05);
    background: #fff;
    border: 1px solid #e1e4e8;
    outline: none;
    position: relative;
    color: #25292e;
    margin-bottom: 16px;
  }

  input:focus {
    border-color: #aaa;
  }

  button {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.625;
    letter-spacing: -0.011rem;
    text-align: left;
    background-image: none;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    border: none;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    height: 40px;
    border-radius: 6px;
    padding: 0px 20px;
    text-decoration: none;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    white-space: nowrap;
    transition: all 150ms ease 0s;
    outline: none;
    transform: translate3d(0px, 0px, 0px);
    background-color: #26292e;
    color: #fdfdfe;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
    transform: none;
    transition: transform 0.1s;
    margin-top: 2px;
    margin-bottom: 2px;
  }

  button:active {
    transform: translate(0px, 2px);
  }

  span {
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.6;
    letter-spacing: -0.009rem;
    color: #25292e;
    margin-bottom: 8px;
  }

  #menu div {
    display: flex;
    flex-direction: row;
    position: relative;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1),
      0 3px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    max-width: 100%;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: flex-start;
    transform: none;
    transition: transform 0.1s;
    margin-left: -24px;
  }

  #menu div:active {
    transform: translate(0px, 2px);
  }

  #menu {
    display: grid !important;
    visibility: hidden;
    grid-template-columns: repeat(auto-fill, minmax(20em, 20em));
    width: 100vw;
    max-width: 900px;
    height: 0;
    grid-column-gap: 4rem;
    grid-row-gap: 1rem;
    margin-top: -10%;
  }

  #menu span {
    margin-bottom: 0;
    float: left;
    width: 100%;
  }

  #menu div img {
    height: 20px;
    width: 20px;
    margin-right: 10px;
    float: left;
  }

  .fletxa {
    float: right !important;
    height: 16px !important;
    width: 16px !important;
  }

  #statusbar {
    height: 70px;
    width: calc(100% - 30px);
    background-color: #fff;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #e1e4e8;
  }

  #div-status-logged {
    display: none;
  }

  #shadow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: opacity 0.1s linear;
    opacity: 0;
    display: none;
  }

  #fbox {
    display: none;
    z-index: 11;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
    opacity: 0;
    transform: translate(0, 5px);
  }

  #fbox-img {
    margin-right: 10px;
    height: 28px;
    width: 28px;
  }

  .divInscripcio {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d1d5da;
    margin: 3px 0;
    justify-content: space-between;
  }
  .divInscripcio p {
    font-size: 12px;
    margin: 1px 0;
  }
  .divInscripcio img {
    width: 20px;
    height: 20px;
  }

  select {
    margin: 30px 0;
    width: 100%;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.625;
    letter-spacing: -0.011rem;
    text-align: left;
    background-image: none;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    border: none;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    height: 40px;
    border-radius: 6px;
    padding: 0px 20px;
    text-decoration: none;
    -webkit-box-align: center;
    align-items: center;
    white-space: nowrap;
    transition: all 150ms ease 0s;
    outline: none;
    transform: translate3d(0px, 0px, 0px);
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
    transform: none;
    transition: transform 0.1s;
    border: 1px solid #d1d5da;
  }

  .ff {
    animation: ffa 1.3s ease-in-out infinite;
  }

  @keyframes ffa {
    0% {
      opacity: 1;
    }

    30% {
      opacity: 1;
    }

    50% {
      opacity: 0.6;
    }

    70% {
      opacity: 1;
    }

    100% {
      opacity: 1;
    }
  }

  .sb {
    background-color: rgba(0, 0, 0, 0);
    border: transparent 1px solid;
    transition: all linear 0.1s;
    color: #000;
  }

  .sb:hover {
    border-color: #d1d5da;
    background-color: #f8f9fa;
  }

  .entrades-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin: 0;
    margin-right: 10px;
  }

  .entrades-div {
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #d1d5da;
    padding: 5px;
    margin-bottom: 10px;
  }

  .entrades-div2 {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .nm {
    margin: 0;
  }

  .etitol {
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .emeta {
    font-size: 0.85rem;
  }

  #menu-d {
    height: calc(100vh - 90px);
    margin-top: -70px;
  }

  #validar-result {
    border-radius: 10px;
    padding: 10px;
    margin-top: -20px;
  }

  #validar-img {
    width: 100%;
    border-radius: 10px;
  }

  #validar-activitat {
    color: #fff !important;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
  }

  #validar-observacions {
    color: #fff !important;
    text-align: center;
    font-weight: 500;
    font-size: 0.92rem;
  }

  #validar-nom {
    color: #fff !important;
    text-align: center;
    font-weight: 500;
    margin-top: 2px;
  }

  #validar-wl {
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    margin-top: 10px;
  }

  #validar-numero {
    color: #fff !important;
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: 2px;
  }

  #perfil-tiquets, #usuari-tiquets {
    background-color: #f2f2f2;
  }

  .aa {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  .aa span {
    margin-right: 5px;
  }

  @media (prefers-color-scheme: dark) {
    body {
      background-color: #0b0f13;
      color: #bcc3cd;
      margin: 0;
      padding: 0;
    }
    .div-modificar-entrades-b {
      background-color: #0b0f13;
    }

    #fbox-img {
      filter: invert(88%) sepia(13%) saturate(175%) hue-rotate(176deg) brightness(88%) contrast(88%);
    }

    .svg {
      filter: invert();
    }

    #menu div img {
      filter: invert(88%) sepia(13%) saturate(175%) hue-rotate(176deg) brightness(88%) contrast(88%);
    }

    #menu div {
      background-color: #14191f;
      border-color: #32373e;
    }

    #statusbar {
      background-color: #14191f;
      border-bottom-color: #32373e;
    }

    button {
      background-color: #49505a;
      color: #f0f2f5;
    }

    span {
      color: #f0f2f5;
    }

    .bg {
      background-color: #14191f;
      border-color: #32373e;
    }
    .div-modificar-entrades-div {
      background-color: #14191f;
      border-color: #32373e;
    }

    input,
    textarea {
      background-color: #14191f;
      border-color: #32373e;
      color: #caccd0;
    }

    .sb {
      background-color: rgba(0, 0, 0, 0);
      border: transparent 1px solid;
      color: #bcc3cd;
    }

    .sb:hover {
      border-color: #32373e;
      background-color: #14191f;
    }

    .entrades-div {
      border: 1px solid #32373e;
    }

    .divInscripcio {
      border: 1px solid #32373e;
    }

    .divInscripcio img {
      filter: invert(88%) sepia(13%) saturate(175%) hue-rotate(176deg) brightness(88%) contrast(88%);
    }

    select {
      border: 1px solid #32373e;
      background-color: #14191f;
      color: #caccd0;
    }

    #perfil-tiquets, #usuari-tiquets {
      background-color: #32373e;
    }
    .sbi {
      filter: invert(88%) sepia(13%) saturate(175%) hue-rotate(176deg) brightness(88%) contrast(88%);
    }
  }

  @media (max-width: 900px) {
    #menu {
      display: block !important;
      height: auto;
      margin-top: 10px;
    }

    #menu div {
      margin: 10px;
      width: calc(100% - 68px);
      margin-left: 10px;
    }

    #statusbar {
      display: block;
      height: auto;
    }

    #statusbar .div p {
      display: none;
    }

    #statusbar div {
      display: block;
    }

    #statusbar {
      padding-top: 10px;
      padding-bottom: 10px;
    }

    #statusbar p {
      text-align: center;
    }

    .bg {
      max-width: calc(98vw - 27px);
      padding: 12px;
    }

    .parent-div {
      height: calc(100vh - 105px);
    }

    #menu-d {
      height: calc(100vh - 105px);
      align-items: flex-start !important;
      margin-top: 0;
    }

    #fbox {
      align-items: flex-start;
      margin-top: 70px;
    }

  }

  .destructive {
    border: none;
    color: #fff;
    background-color: #d73a3a;
  }

  .sep {
    margin-top: 10px;
  }

  #f-acces-accions button {
    margin-bottom: 10px;
  }
