.lm-tracking-home {
    box-sizing: border-box;
    min-height: 132px;
    background: linear-gradient(135deg, #07559b 0%, #0d6ab9 100%) !important;
    color: #fff;
}

.lm-tracking-home *,
.lm-tracking-home *:before,
.lm-tracking-home *:after {
    box-sizing: border-box;
}

.lm-query-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 9px;
}

.lm-query-title {
    flex: 0 0 auto;
    color: #fff;
    font-size: 20px;
    line-height: 30px;
}

.lm-tabs-list {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .38);
}

.lm-tabs-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 88px;
    padding: 5px 12px 7px;
    border: 0;
    border-radius: 5px 5px 0 0;
    outline: none;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.lm-tabs-icon {
    width: 16px;
    font-size: 15px;
    line-height: 1;
    text-align: center;
}

.lm-tabs-button:hover,
.lm-tabs-button:focus {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.lm-tabs-button-active {
    background: #fff;
    color: #07559b;
    font-weight: 700;
}

.lm-tabs-button-active:hover,
.lm-tabs-button-active:focus {
    background: #fff;
    color: #07559b;
}

.lm-tabs-panel[hidden] {
    display: none;
}

.lm-query-form {
    margin: 0;
}

.lm-query-main-row,
.lm-query-sub-row,
.lm-query-actions {
    display: flex;
    gap: 8px;
}

.lm-query-main-row,
.lm-query-actions {
    align-items: stretch;
}

.lm-query-main-row {
    width: 100%;
}

.lm-query-sub-row {
    align-items: flex-start;
}

.lm-query-input {
    min-width: 0;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 5px;
    outline: none;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    transition: border-color .2s, box-shadow .2s;
}

.lm-query-input:focus {
    border-color: #4aa8f5;
    box-shadow: 0 0 0 2px rgba(74, 168, 245, .25);
}

.lm-query-input-error {
    border-color: #f05b5b;
    box-shadow: 0 0 0 2px rgba(240, 91, 91, .22);
}

.lm-query-input-error:focus {
    border-color: #f05b5b;
    box-shadow: 0 0 0 2px rgba(240, 91, 91, .28);
}

.lm-query-main-input {
    flex: 1 1 auto;
}

.lm-query-sub-main-input {
    flex: 0 1 185px;
}

.lm-query-sub-input-wrap {
    position: relative;
    flex: 1 1 250px;
    min-width: 0;
}

.lm-query-sub-input {
    display: block;
    width: 100%;
    padding-right: 88px;
    resize: none;
    overflow: hidden;
}

.lm-query-count {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #6d7c8b;
    font-size: 12px;
    line-height: 18px;
    pointer-events: none;
}

.lm-query-count-limit {
    color: #d93025;
    font-weight: 700;
}

.lm-query-field-help {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    line-height: 16px;
}

.lm-query-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.lm-query-button {
    flex: 0 0 auto;
    width: 64px;
    min-width: 64px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 36px;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.lm-query-button-primary {
    background: #fff;
    color: #07559b;
    font-weight: 700;
}

.lm-query-button-primary:hover,
.lm-query-button-primary:focus {
    background: #eaf5ff;
    border-color: #eaf5ff;
}

.lm-query-button-clear {
    border-color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .86);
}

.lm-query-button-clear:hover,
.lm-query-button-clear:focus {
    background: rgba(255, 255, 255, .15);
}

.lm-query-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 22px;
    padding-top: 5px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 17px;
}

.lm-query-hint {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lm-query-message {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
    text-align: right;
}

.lm-query-message-error {
    color: #ffe0e0;
}

.lm-query-message-success {
    color: #d9f7ff;
}

.lm-query-visually-hidden {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .lm-query-sub-main-input {
        flex-basis: 160px;
    }

}

@media (max-width: 767px) {
    .lm-tracking-home {
        min-height: 0;
        padding: 15px !important;
        border-radius: 0 !important;
    }

    .lm-query-heading {
        align-items: flex-end;
        margin-bottom: 12px;
    }

    .lm-query-title {
        font-size: 18px;
    }

    .lm-tabs-button {
        min-width: 76px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .lm-query-sub-row {
        flex-wrap: wrap;
    }

    .lm-query-sub-main-input,
    .lm-query-sub-input-wrap {
        flex: 1 1 100%;
    }

    .lm-query-sub-input {
        height: 58px;
        padding-right: 88px;
        padding-top: 9px;
        padding-bottom: 9px;
        resize: vertical;
        overflow: auto;
    }

    .lm-query-actions {
        width: 100%;
    }

    .lm-query-actions .lm-query-button {
        flex: 1 1 50%;
        width: auto;
    }

    .lm-query-footer-row {
        display: block;
    }

    .lm-query-hint,
    .lm-query-message {
        display: block;
        white-space: normal;
        text-align: left;
    }

    .lm-query-message:not(:empty) {
        padding-top: 3px;
    }
}

@media (max-width: 420px) {
    .lm-query-heading {
        display: block;
    }

    .lm-query-title {
        display: block;
        margin-bottom: 6px;
    }

    .lm-tabs-list {
        justify-content: stretch;
    }

    .lm-tabs-button {
        flex: 1 1 50%;
    }

    .lm-query-main-row {
        flex-wrap: wrap;
    }

    .lm-query-main-input {
        flex-basis: 100%;
    }

    .lm-query-main-row .lm-query-button {
        flex: 1 1 calc(50% - 4px);
        width: auto;
    }
}

@media print {
    .lm-tracking-home {
        background: #fff !important;
        color: #000;
    }
}
