/* Base  */
.label {
    cursor: pointer;
}

.select-field,
.text-field,
.date-field {
    height: 30px;
    border: 1px solid rgba(60,60,60,.26) !important;
    padding: 5px !important;
    box-sizing: border-box;
}

.select-field {
    cursor: pointer
}

.link {
    border: none;
    color: #91C844;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline !important;
}

.loading-icon {
    display: inline-grid;
    height: 40px;
    color: currentColor;
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 4px;
}

.loading-icon div {
    width: 5px;
    background-color: currentColor;
    transform: scaleY(0.6);
    animation-name: loading;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.loading-icon div:nth-child(1) {
    animation-delay: 0s;
}

.loading-icon div:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-icon div:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-icon div:nth-child(4) {
    animation-delay: 0.3s;
}

.loading-icon div:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes loading {
    0%, 40%, 100% {transform: scaleY(0.6);}
    20% {transform: scaleY(1);}
}

/* Tom Select */
.ts-control {
    min-height: 30px;
    border-color: rgba(60,60,60,.26);
    border-radius: 0px;
    padding: 5px;
    font-size: inherit;
    white-space: nowrap;
    gap: 5px;
}

.ts-control > * {
    display: flex;
    align-items: center;
    font-size: inherit;
    font-weight: 400;
}

.ts-control .remove {
    color: #303030 !important;
    text-decoration: none !important;
}

.ts-dropdown {
    margin: 0;
}

.ts-dropdown .option {
    display: flex;
    align-items: center;
    min-height: 30px;
    box-sizing: border-box;
}

.ts-wrapper.multi .ts-control > div {
    margin: 0;
    background-color: #eeeeee;
}

/* Device Search Form */
.device-search-section {
    color: #000;
    font-size: 0.8rem;
}

.device-search-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 50px;
    row-gap: 70px;
    margin-bottom: 50px;
}

.device-search-form-fields {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: flex-start;
    align-items: center;
    row-gap: 10px;
    column-gap: 10px;
}

.search-form-label {
    justify-self: flex-end;
    font-weight: bold;
}

.advanced-button {
    grid-column-start: 2;
    justify-self: flex-start;
    padding: 0;
}

.device-search-form:not(.has-advanced-fields) .is-advanced {
    display: none;
}

.certification-date-fieldset {
    display: contents;
}

.certification-date-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
}

.wireless-technology-fieldset {
    display: contents;
}

.wireless-technology-fieldset .search-form-label {
    align-self: flex-start;
    height: 30px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.wireless-technology-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 100px);
}

.wireless-technology-wrapper {
    display: flex;
    column-gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.wireless-technology-wrapper .checkbox-label {
    display: flex;
    align-items: center;
    column-gap: 5px;
    height: 30px;
}

.bands-fieldset {
    display: contents;
}

.bands-fieldset .search-form-label {
    align-self: flex-start;
    height: 30px;
    display: flex;
    align-items: center;
}

.band-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 10px;
}

.device-search-form-control {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 100px;
}

.device-search-form-back-link {
    align-self: center;
    justify-self: flex-start;
}

.device-search-form-submit {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
    width: 225px;
    background-color: #91C844;
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.device-search-form-submit.is-loading .device-search-form-submit-text {
    display: none;
}

.device-search-form-submit:not(.is-loading) .loading-icon {
    display: none;
}

.device-search-form-clear-button {
    align-self: center;
    justify-self: flex-end;
}

/* Search Results */
.device-search-results {
    display: none;
    border-top: 3px solid #CCCCCC;
    padding: 10px;
}

.device-search-results.is-visible {
    display: block;
}

.device-search-results-table {
    display: flex;
    flex-direction: column;
    margin: 20px 0px 0px;
}

.device-search-results-header {
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(0,5fr) minmax(0,3fr) minmax(0,2fr) minmax(0,3fr) 50px ;
    column-gap: 10px;
    align-items: flex-end;
    padding: 0 10px;
    font-size: 0.8rem;
    color: #999999;
}

.device-search-results-header-date {
    grid-column: span 2;
}

.device-search-results-row {
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(0,5fr) minmax(0,3fr) minmax(0,2fr) minmax(0,3fr) 50px;
    column-gap: 10px;
    align-items: center;
    min-height: 50px;
    border: 1px solid #D5D5D5;
    border-bottom: 0px;
    padding: 10px;
    box-sizing: border-box;
}

.device-search-results-row:last-child {
    border-bottom: 1px solid #D5D5D5;
}

.device-search-results-more-details {
    justify-self: flex-end;
}

.device-search-results-loading {
    display: flex;
    justify-content: center;
    padding: 10px 0px;
    color: #91C844;
}

.device-search-results-loading:not(.is-loading) .loading-icon {
    display: none;
}

.search-result-request-count {
    margin-left: 5px;
    color: #707070;
    font-style: italic;
}