.report-agency-picker {
    width: 100%;
    box-sizing: border-box;
}

.report-agency-picker .agency-search-input {
    width: 100%;
    margin: 0 0 8px;
    padding-left: 0;
    padding-right: 0;
}

.report-agency-picker .agency-search-input .md-errors-spacer {
    display: none;
}

.report-agency-picker .agency-search-input .md-input {
    width: 100%;
}

.report-agency-picker .agency-search-empty {
    padding: 16px 0;
    color: #757575;
    font-size: 14px;
    text-align: center;
}

.report-agency-picker .agency-list-scroll {
    display: block;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    box-sizing: border-box;
}

.report-agency-picker md-radio-button {
    margin: 0 0 2px;
    padding: 3px 8px 3px 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.report-agency-picker md-radio-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.report-agency-picker md-radio-button.md-focused .md-container:before,
.report-agency-picker md-radio-button.md-focused:not(:hover) .md-container:before,
.report-agency-picker md-radio-button.md-checked.md-focused .md-container:before,
.report-agency-picker md-radio-button.md-focused:not(:hover).md-checked .md-container:before {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.report-agency-picker md-radio-button .md-ripple-container,
.report-agency-picker md-radio-button .md-ripple {
    display: none !important;
}

.report-agency-picker md-radio-button .md-label {
    display: block !important;
    width: calc(100% - 12px) !important;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    white-space: normal;
    pointer-events: auto;
    padding: 0;
}

.report-agency-picker .agency-select-item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 24px;
    padding: 0;
}

.report-agency-picker .agency-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.25rem;
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    box-sizing: border-box;
    padding: 0 4px;
    border-radius: 3px;
    background: #e8eaed;
    color: #424242;
    font-size: 11px;
    font-weight: 600;
    font-family: "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    line-height: 18px;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-agency-picker .publishEverywhere .agency-code-badge {
    background: #fce4ec;
    color: #ca064d;
}

.report-agency-picker .agency-select-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.report-agency-picker .agency-select-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.report-agency-picker .agency-select-tags {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    max-width: none;
}

.report-agency-picker .agency-tag {
    display: inline-block;
    flex: 0 0 auto;
    background: #fff8e1;
    color: #6d4c41;
    border: 1px solid #e6d9a8;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.report-agency-picker .agency-section {
    margin-bottom: 16px;
}

.report-agency-picker .agency-section:last-child {
    margin-bottom: 0;
}

.report-agency-picker .agency-section-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #757575;
}

.report-agency-picker .agency-section--publish .agency-section-title {
    color: #ca064d;
}

.report-agency-picker .agency-section-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 4px 8px 8px;
    background: #fafafa;
}

.report-agency-picker .agency-section--publish .agency-section-box {
    border-color: #f3c0cf;
    background: #fffafb;
}

.report-agency-picker .agency-columns {
    display: block;
    width: 100%;
}

.report-agency-picker .agency-column {
    min-width: 0;
}

.report-agency-picker .agency-column md-radio-button {
    padding: 3px 20px 3px 0;
    margin: 0 0 2px;
}

@media (min-width: 1600px) {
    .report-agency-picker .agency-columns--split {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .report-agency-picker .agency-columns--split .agency-column {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        box-sizing: border-box;
    }

    .report-agency-picker .agency-columns--split .agency-column:first-child md-radio-button {
        padding-right: 36px;
    }

    .report-agency-picker .agency-columns--split .agency-column:last-child md-radio-button {
        padding-right: 28px;
    }
}

.report-last-departure {
    padding: 0 5px 12px;
    font-size: 13px;
}

.report-last-departure-apply {
    color: #ca064d;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 4px;
}

@media (max-width: 1599px) {
    .report-agency-picker .agency-columns--split .agency-column + .agency-column {
        margin-top: 2px;
        padding-top: 2px;
        border-top: 1px solid #eeeeee;
    }

    .report-agency-picker .agency-section--publish .agency-columns--split .agency-column + .agency-column {
        border-top-color: #f8d7e0;
    }
}
