:root {
  --vdic-color-primary: #ffcd30;
  --vdic-color-accent-1: #ff8f00;
}

.vdic {
    padding: 1.5rem!important;
    container-type: inline-size;
    background: #f7f7f7!important;
    border: 2px solid #DADADA!important;
    border-radius: 1rem!important;
    box-shadow: 0 0 3rem rgb(0 0 0 / 6%)!important;
    /* max-width: none !important; */
}
.vdic__calcName {
    display:none!important;
  font-size: 2rem;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.8rem;
}
.vdic__logo {
  display: none;
  justify-content: center;
  margin-bottom: 2rem;
}
.vdic__logo img {
  width: 120px;
  font-size: 10px;
  line-height: 1;
}
.vdic__formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  border: 0 none;
  padding: 0;
}
.vdic__typeSelector{
  margin-bottom: 1rem;
}
.vdic__typeSelector select{
  font-weight: bold;
}
.vdic__formGrid label {
    opacity: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 2em;
}


.vdic__formCellFull {
  grid-column: span 2;
}

.vdic__formFooter {
  display: flex;
  justify-content: flex-end;
}
.vdic__formControl {
  display: flex;
  height: 2.4rem;
  align-items: center;
  position: relative;
}
.vdic__suffix {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  font-size: 1.2rem;
  pointer-events: none;
  font-weight: bold;
  background-color: white;
}

.vdic__formControl > input[type=text],
.vdic__formControl > input[type=number],
.vdic__formControl > select {
border: 1px solid #bfbfbf!important;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  background: white;
  font-family: inherit;
  color: black;
  flex-grow: 1;
  height: 100%;
  padding: 0 0.5rem;
  display: block;
  font-size: 1rem;
  max-width: 100%;
  font-weight: 500;
  margin: auto;
  border-radius: 8px;
}

.vdic__formControl > select {
border: 1px solid #DADADA!important;
}

.vdic__button {
  background: var(--vdic-color-primary);
  box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  color: white;
  font-weight: bold;
  border: 0 none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: background-color .2s;
}
fieldset[disabled] .vdic__button {
  cursor: not-allowed;
  opacity: 0.5;
}
.vdic__button:hover {
  background: black;
}
fieldset[disabled] .vdic__button:hover {
  background: var(--vdic-color-primary);
}


.vdic__resultBox {
  min-height: 2rem;
}
.vdic__result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 2px solid #c4c9cb;
}

/* SHARE BOX */
.vdic__shareBox {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 0.2rem;
  background:#d5d8d9;
  font-size: 0.8rem;
}
.vdic__shareBox__share{
  padding-right: 1rem;
  font-weight: bold;
}
.vdic__shareBox__urlBox {
}
.vdic__shareBox__urlBox input[type=text] {
  font-size: 0.8rem;
  height: 2.5rem;
  box-sizing: border-box;
  background: #f1f1f1;
  width: 100%;
  display: block;
  border: 0 none;
}
.vdic__shareBox img{
  max-width: 80%;
  display: block;
  margin: 0 auto;
}
.vdic__shareBox__urlBox {
  flex-grow: 1;
  flex-shrink: 1;
  display: flex;
}
.vdic__shareBox__urlBox button {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  flex-grow: 0;
  cursor: pointer;
  border: 0 none;
  background: transparent!important;
  appearance: none!important;
  padding: 8px;
}
.vdic__shareBox__urlBox button:active img {
  transform: scale(0.8);
}
.vdic__shareBox__socialBox {
  padding-left: 0.5rem;
  display: flex;
}
.vdic__shareBox__socialBox button {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  flex-grow: 0;
  margin-left: 0.5rem;
  cursor: pointer;
  border: 0 none;
  background: #e5e5e5!important;
  appearance: none!important;
  border-radius: 0.2rem;
  padding: 8px;
}
.vdic__shareBox__socialBox button:active img {
  transform: scale(0.8);
}

/* RESULT TEXT */
.vdic__resultText {
  width: 60%;
  padding-right: 2rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
  max-width: 420px;
  line-height: 1.2em;
}
.vdic__resultTextTitle {
  margin-bottom: 0.7rem;
}
.vdic__resultTextSubtitle {
    margin-top: 0.7rem;
    font-size: 0.8em;
}
.vdic__resultTextBig {
  font-weight: bold;
  font-size: 1.7rem;
  color: var(--vdic-color-accent-1);
}
.vdic__resultPie {
  width: 40%;
}
.vdic__resultBar {
  width: 100%;
  margin-top: 2rem;
  position: relative;
  display: block;
  aspect-ratio: 600/240;
}
.vdic__resultTable {
  width: 100%;
  margin-top: 2rem;
  overflow: auto;
}
.vdic__pieLegend {
  font-size: 0.9rem;
}
.vdic__pieLegend > span {
  display: flex;
}
.vdic__pieLegend i {
  display: block;
  width: 1.2rem;
  height: 1rem; 
}
.vdic__pieLegend td {
  padding-right: 1rem;
}

.vdic__table{
  border-collapse: collapse;
  width: 100%;
}
.vdic__table td,.vdic__table th{
  border: 1px solid #cecece;
  line-height: 1.1;
  text-align: left;
  padding: 0.4rem 0.2rem;
  font-size: 0.9rem;
}
.vdic__hspace {
  border-bottom: 1px solid #cecece;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.vdic__thSmall {
  font-size: 0.8rem!important;
  font-weight: normal!important;
  margin: 0!important;
  color: #a0a5a7!important;
}

.vdic__spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  min-height: 48px;
}
.vdic__spinner::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  border: 5px solid var(--vdic-color-accent-1);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: vdic__rotation 1s linear infinite;
  }
@keyframes vdic__rotation {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
} 

@container (max-width: 540px) {
  .vdic__formGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .vdic__formCellFull {
    grid-column: auto;
  }
  .vdic__resultText {
    width: 100%;
  }
  .vdic__resultPie {
    width: 100%;
  }
}