@import url("spacing.css");
@import url("alert.css");
body {
    min-height: 100vh;
}

.input-group {
    display: table;
}

.input-group input,
.input-group select {
    display: table-cell;
}

/* input sufix icon */

.input-field.sufix {
    display: flex;
    flex-direction: row-reverse;
    position: relative;
}

.input-field.sufix > input {
    padding-right: 2em;
}

.input-field.sufix > i {
    font-size: 1.5em;
    width: 2.5rem;
    top: 0.5em;
    right: 0;
    position: absolute;
}

/* radio box */

.option-box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto;
}

.option-box > .option {
    display: inline-flex;
}

.option-box > .option .checkbox {
    display: inline-flex;
}

.option .checkbox-tools:checked + label {
    background: #2e7d32;
    color: #fff;
}

.option-box.jcunset {
    justify-content: unset;
}

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked),
[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    visibility: hidden;
}

.checkbox-tools + label {
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    width: 8.4em;
    font-size: 0.8em;
    line-height: 1.2rem;
    letter-spacing: 1px;
    margin: 0 auto;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
    color: var(--white);
    -webkit-transition: all 300ms linear;
    transition: all 300ms linear;
}

.checkbox-tools:not(:checked) + label {
    background-color: var(--dark-light);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.checkbox-tools:checked + label {
    background-color: transparent;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.checkbox-tools:not(:checked) + label:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.checkbox-tools:checked + label::before,
.checkbox-tools:not(:checked) + label::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-image: linear-gradient(298deg, var(--red), var(--yellow));
    z-index: -1;
}

.checkbox-tools:checked + label > i,
.checkbox-tools:not(:checked) + label > i {
    font-size: 24px;
    line-height: 24px;
    display: block;
    padding-bottom: 10px;
}

.swal2-checkbox input:checked + span::before {
    background-color: transparent !important;
}

@media only screen and (max-width: 600px) {
    .checkbox-tools:checked + label,
    .checkbox-tools:not(:checked) + label {
        width: 7em;
        padding: 0.75em;
    }
}
