/*
* Stile per Tabella orari
*/

.cont-tab-op {
  overflow: auto;
}

.tabella-op {
  word-break: keep-all;
  width: 100%;
}

.tabella-op td {
  border: 1px solid gray;
  border-width: 0px 1px 1px 0px;
  text-align: center;
  padding: 12px 10px;
  vertical-align: middle;
  background-color: white;
  background-clip: padding-box;
}

.tabella-op.tabella-op-singolo td:first-child {
  border-left: 1px solid gray
}

.tabella-op.tabella-op-glob td:first-child {
  border-left-width: 1px;
  text-transform: uppercase;
  background-color: var(--secondaryTabella);
  position: relative;
  white-space: nowrap;
}

.tabella-op thead th {
  color: white;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--headTabella);
  font-weight: 400;
  font-size: 16px;
  border: 1px solid var(--headTabella);
  width: 12.5%;
}

.tabella-op tbody .tab-giorno-mob {
  display: none;
  background-color: var(--secondaryTabella);
}

p.messaggio-error {
  background-color: #b60000;
  padding: 5px 10px;
  color: white;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0px
}

.container-loading {
  text-align: center;
  padding: 300px 10px;
  background-color: lightgray;
}

#loadingTabOrari {
  color: var(--headTabella);
}

#errorTabOrari {
  display: none;
}

#errorTabOrari>h4 {
  color: #b60000;
}

.container-lista-orari-singolo p {
  margin-bottom: 6px
}

.container-lista-orari-singolo p:last-child {
  margin-bottom: 0px
}

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

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}

@media(max-width:800px) {
  .tabella-op {
    min-width: auto;
    border: 1px solid gray
  }

  .tabella-op thead {
    display: none;
  }

  .tabella-op tbody>tr {
    display: flex;
    flex-direction: column;
  }

  .tabella-op.tabella-op-glob tbody tr>td:first-child {
    border-bottom: 1px solid gray;
    color: white;
    border-left: 0px
  }

  .tabella-op.tabella-op-glob tr>td:first-child {
    background-color: var(--headTabella);
  }

  .tabella-op td,
  .tabella-op th {
    border-right: 0px;
    border-color: gray
  }

  .tabella-op.tabella-op-glob tr>td:not(:first-child),
  .tabella-op.tabella-op-singolo tr>td {
    display: flex;
    justify-content: space-between;
    padding: 0px
  }

  .tabella-op tbody .tab-giorno-mob {
    border-right: 1px solid gray;
    display: flex;
    justify-content: right;
    text-transform: uppercase;
    border-left: 0px
  }

  .tabella-op tr>td>div {
    width: 100%;
    padding: 15px;
    align-items: center;
    text-align: left;
  }

  .tabella-op tr>td>div:last-child {
    border-right: 0px
  }

  .tabella-op.tabella-op-singolo tr>td:last-child {
    border-bottom: 0px
  }

  .tabella-op.tabella-op-singolo td:first-child {
    border-left: 0px
  }

  .tabella-op.tabella-op-glob tbody>tr:last-child>td:last-child {
    border-bottom: 0px
  }
}