/* ---- general ---- */
.form-control {
    padding: 0.3rem 0.48rem;
    font-size: 1.0rem;
    line-height: 1.2;
}

.dropdown-item {
    padding: 0.18rem 0.8rem;
}

.dropdown-menu {
    font-size: 1.0rem;
}

.form-select {
    padding: 0.3rem 2.0rem 0.3rem 0.6rem;
    font-size: 1.0rem;
}

.input-group-text {
    font-size: 1.0rem;
}

.col .form-switch {
    padding-top: 4px;
}

/* ---- select groups ---- */
.jit-card-group .card {
    cursor: pointer;
    /*max-width: 8rem;*/
    background-color: transparent;
}

.jit-card-group .card-body {
    user-select: none; /* prevents text highlighting on double click */
    padding: 0.3rem 0.3rem;
}

.jit-card-group .card-title {
    font-size: 1.0rem;
}

.jit-card-group .card-img-top {
    max-height: 100px;
    width: auto;
}

.jit-card-group .card:hover {
    background-color: #dedede;
}

.jit-card-group .card.selected {
    background-color: #b3d4fc;
}

.jit-card-group .card.selected .card-title {
    border-bottom: 2px solid #333;
    /*text-decoration: underline;*/
    /* TODO - maybe underline this only in the print view? should look nicer... */
}

/* ---- dropdowns ---- */
.jit-dropdown-widget li {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.jit-dropdown-widget li.default-item {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.jit-dropdown-header {
    /*background-color: #efefef;*/
    border: 1px solid #ced4da;
    font-size: 1.0rem;
}

.jit-dropdown-widget ul, .jit-dropdown-widget li {
    border-radius: 0.25rem;
}

.jit-dropdown-widget .dropdown-menu {
    width: 100%;
}

.jit-dropdown-widget .dropdown-item {
    text-align: center;
}

.jit-dropdown-widget.disabled .dropdown-item {
    background-color: #efefef;
}

.jit-dropdown-widget:not(.disabled) .dropdown-item {
    cursor: pointer;
    background-color: inherit;
}

.jit-dropdown-widget .dropdown-item-icon {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    height: 24px;
    width: 24px;
}

.jit-dropdown-widget .dropdown-item-icon img {
    height: 24px;
    padding-right: 8px;
}

.jit-dropdown-widget .dropdown-item-text {
    text-align: left;
    display: table-cell;
    vertical-align: middle;
    padding: 0;
    height: 24px;
}

.jit-dropdown-widget-tall .dropdown-item-text, .jit-dropdown-widget-tall .dropdown-item-icon img, .jit-dropdown-widget-tall .dropdown-item-icon {
    height: 80px;
    font-size: 85%;
}

.jit-dropdown-widget-tall .dropdown-item-icon {
    width: 80px;
    height: 80px;
}

.jit-dropdown-widget-tall .dropdown-item-icon img {
    max-width: 72px;
    height: 70px;
    padding-right: 8px;
}

@media only screen and (max-width: 760px) {
    .jit-dropdown-widget-tall .dropdown-item-text, .jit-dropdown-widget-tall .dropdown-item-icon img, .jit-dropdown-widget-tall .dropdown-item-icon {
        height: 60px;
        font-size: 75%;
    }

    .jit-dropdown-widget-tall .dropdown-item-icon {
        width: 60px;
        height: 60px;
    }

    .jit-dropdown-widget-tall .dropdown-item-icon img {
        max-width: 52px;
        height: 50px;
        padding-right: 8px;
    }
}

@media only screen and (max-width: 660px) {
    .form-control {
        font-size: 0.7rem;
    }

    .dropdown-menu {
        font-size: 0.7rem;
    }

    .form-select {
        font-size: 0.7rem;
    }

    .input-group-text {
        font-size: 0.7rem;
    }

    .jit-card-group .card-title {
        font-size: 0.7rem;
    }

    .jit-dropdown-header {
        font-size: 0.7rem;
    }

    .jit-dropdown-widget-tall .dropdown-item-icon {
        display: none;
    }
}