.dp-button-select {
    position: relative;
    width: 100%;
    min-width: 0;
    font-family: Tahoma, Helvetica, "Open Sans", sans-serif;
}

.dp-button-select-trigger {
    width: 100%;
    height: 33px!important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 5px 1px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    color: #323840;
    background: #fff;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dp-button-select-trigger:hover,
.dp-button-select-trigger:focus,
.dp-button-select.is-open .dp-button-select-trigger {
    border-color: #075f90;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(22, 97, 120, .10);
}

.dp-button-select-value {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-button-select-leading {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-button-select-field-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #075f90;
}

.dp-button-select-field-icon .mud-icon-root {
    font-size: 17px;
}

.dp-button-select-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    color: #075f90;
    transition: transform .15s ease;
}

.dp-button-select.is-open .dp-button-select-arrow {
    transform: rotate(180deg);
}

.dp-button-select.select-icon-bottom-right .dp-button-select-trigger {
    position: relative;
    padding-right: 25px;
}

.dp-button-select.select-icon-bottom-right .dp-button-select-arrow {
    position: absolute;
    right: 4px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dp-button-select.select-icon-bottom-right .dp-button-select-arrow .mud-icon-root,
.dp-button-select.select-icon-bottom-right .dp-button-select-arrow svg {
    font-size: 18px;
}

.dp-button-select-label {
    position: absolute;
    z-index: 2;
    top: -9px;
    left: 10px;
    padding: 0 5px;
    color: #66665d;
    background: #fff;
    font-size: 11px;
    line-height: 16px;
    pointer-events: none;
}

.dp-button-select.is-open .dp-button-select-label {
    color: #075f90;
}

.dp-button-select.is-disabled .dp-button-select-trigger {
    color: #6c757d;
    background: #e9ecef;
    cursor: not-allowed;
}

.dp-button-select.no-label .dp-button-select-trigger {
    padding-block: 2px;
}

.dp-button-select-menu {
    position: absolute;
    z-index: 1600;
    top: calc(100% + 5px);
    left: 0;
    width: max(100%, 220px);
    max-width: min(360px, calc(100vw - 24px));
    padding: 6px;
    border: 1px solid #d7dee3;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

.dp-button-select.open-up .dp-button-select-menu {
    top: auto;
    bottom: calc(100% + 5px);
}

.dp-button-select-search {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    padding: 0 8px;
    border: 1px solid #d5dadd;
    border-radius: 5px;
    color: #075f90;
    background: #fff;
}

.dp-button-select-search:focus-within {
    border-color: #075f90;
    box-shadow: 0 0 0 2px rgba(22, 97, 120, .10);
}

.dp-button-select-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: #323840;
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.dp-button-select-options {
    max-height: 230px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dp-button-select-option {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    border: 0;
    border-radius: 4px;
    color: #323840;
    background: transparent;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.dp-button-select-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-button-select-option:hover,
.dp-button-select-option:focus {
    outline: 0;
    color: #075f90;
    background: #eef7f9;
}

.dp-button-select-option.selected {
    color: #075f90;
    background: #e3f1f4;
    font-weight: 600;
}

.dp-button-select-empty {
    padding: 10px 8px;
    color: #8a9199;
    font-size: 12px;
    text-align: center;
}
/* Native-child mode: keeps existing select binding while sharing the same DPButtonSelect UI. */
.dp-button-select {
    --dp-button-select-height: 28px;
    height: var(--dp-button-select-height);
}

.dp-button-select-trigger {
    height: 100%;
    font-size: var(--dp-button-select-font-size, 15px);
}

.dp-button-select-source {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.dp-button-select-source select {
    width: 100%;
    height: var(--dp-button-select-height);
}

.dp-button-select-native-ui {
    position: relative;
    width: 100%;
    height: 100%;
}