.service-picker-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}

.service-picker-open,
.service-picker-pill,
.service-picker-filter-row button,
.service-picker-more,
.service-picker-close,
.service-picker-option,
.service-picker-sort {
    font: inherit;
}

.service-picker-open {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #0d97d3;
    border-radius: 6px;
    background: #061a3a;
    color: #c8f8ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.service-picker-open:hover,
.service-picker-open:focus-visible {
    background: #073566;
    color: #fff;
    box-shadow: 0 0 16px rgba(40, 215, 255, .38);
    outline: none;
}

#uiSimpleRoot select[name][data-service-picker-trigger="selected-chip"][data-service-picker-ready="1"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.service-picker-shortcuts--selected-chip {
    width: 100%;
    margin-top: 0;
}

.service-picker-shortcuts--selected-chip .service-picker-open--selected-chip,
.service-picker-shortcuts--selected-chip .service-picker-open--selected-chip:hover,
.service-picker-shortcuts--selected-chip .service-picker-open--selected-chip:focus-visible {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: flex-start;
    padding: 8px 12px;
    border: 1px solid #385575;
    border-radius: 8px;
    background: #0b1b35;
    color: #f8fafc;
    box-shadow: none;
    transform: none;
    transition: none;
}

.service-picker-open--selected-chip > i {
    flex: 0 0 auto;
    color: #22bfe8;
}

.service-picker-open--selected-chip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-picker-shortcuts--selected-chip .service-picker-pills {
    display: none;
}

.service-picker-pills {
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.service-picker-pill {
    max-width: 210px;
    min-width: 0;
    padding: 5px 9px;
    border: 1px solid rgba(21, 143, 201, .72);
    border-radius: 5px;
    background: rgba(4, 18, 42, .9);
    color: #c3d9ed;
    font-size: 11px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.service-picker-pill.is-favorite {
    border-color: rgba(251, 191, 36, .8);
    color: #fde68a;
}

.service-picker-pill:hover {
    color: #fff;
    background: #0a315c;
}

@media (min-width: 1400px) {
    .simv1-service-toolbar .simv1-service-pills {
        align-self: start;
        padding-top: 0;
    }
}

.service-picker-modal {
    position: fixed;
    z-index: 1080;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(1, 7, 19, .76);
    backdrop-filter: blur(3px);
}

.service-picker-dialog {
    display: flex;
    flex-direction: column;
    width: min(860px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid #087ac3;
    border-radius: 8px;
    background: #030d20;
    color: #e6f5ff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .58), 0 0 30px rgba(0, 185, 255, .16);
}

.service-picker-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(40, 163, 224, .32);
    background: #061a36;
}

.service-picker-modal-head strong {
    display: block;
    color: #27ddff;
    font-size: 16px;
}

.service-picker-result-count {
    display: block;
    margin-top: 3px;
    color: #94a9c5;
    font-size: 12px;
}

.service-picker-close {
    width: 34px;
    height: 34px;
    border: 1px solid #1a6099;
    border-radius: 6px;
    background: #071936;
    color: #d8eaff;
    cursor: pointer;
}

.service-picker-close:hover {
    background: #123d69;
    color: #fff;
}

.service-picker-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 16px 8px;
    padding: 0 12px;
    border: 1px solid #176aaa;
    border-radius: 6px;
    background: #020b1c;
    color: #76c9f4;
}

.service-picker-search-wrap input {
    width: 100%;
    height: 39px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f1f7ff;
}

/* Khung bọc sở hữu viền; input bên trong không tạo thêm ô viền thứ hai. */
#uiSimpleRoot .service-picker-dialog .service-picker-search-wrap input[type="search"],
#uiSimpleRoot .service-picker-dialog .service-picker-search-wrap input[type="search"]:focus,
#uiSimpleRoot .service-picker-dialog .service-picker-search-wrap input[type="search"]:focus-visible {
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

#uiSimpleRoot .service-picker-search-wrap:focus-within {
    border-color: var(--simple-accent) !important;
}

.service-picker-search-wrap input::placeholder {
    color: #7890ad;
}

.service-picker-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px 10px;
    flex-wrap: nowrap;
}

.service-picker-filter-row {
    display: flex;
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
    padding: 0;
    flex-wrap: wrap;
}

.service-picker-filter-row button {
    padding: 5px 10px;
    border: 1px solid #1a5f92;
    border-radius: 999px;
    background: #071a35;
    color: #a8cae2;
    font-size: 12px;
    cursor: pointer;
}

.service-picker-filter-row button.is-active {
    border-color: #11c9ee;
    background: #0b4771;
    color: #fff;
}

.service-picker-sort-wrap {
    display: flex;
    flex: 0 0 232px;
    min-width: 232px;
    margin-left: auto;
}

.service-picker-sort-wrap--modal {
    position: relative;
    padding: 0;
}

.service-picker-sort-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.service-picker-sort {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 36px 0 14px;
    border: 1px solid rgba(12, 98, 205, .42);
    border-radius: 10px;
    background: rgba(3, 14, 38, .99);
    color: #edf4ff;
    font-size: 11.5px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    box-shadow: none;
}

.service-picker-sort:hover,
.service-picker-sort:focus {
    border-color: rgba(12, 98, 205, .72);
    box-shadow: 0 0 0 2px rgba(12, 98, 205, .1);
}

.service-picker-list-head {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 68px 84px 76px 78px 88px 28px;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 calc(18px + var(--service-picker-scrollbar-gutter, 0px)) 7px 18px;
    color: #91aac8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.service-picker-list-head span:not(:first-child) {
    text-align: right;
}

.service-picker-list-head span:nth-child(6) {
    text-align: center;
}

.service-picker-list {
    min-height: 130px;
    overflow: auto;
    padding: 0 8px 8px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.service-picker-option {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 68px 84px 76px 78px 88px 28px;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    margin-bottom: 4px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #e5f1ff;
    text-align: left;
    cursor: pointer;
}

.service-picker-option:hover,
.service-picker-option.is-selected {
    border-color: #1688c9;
    background: #08294d;
}

.service-picker-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.service-picker-option-code {
    color: #5adcf4;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.service-picker-option-code,
.service-picker-option-price,
.service-picker-option-count,
.service-picker-option-otp {
    font-variant-numeric: tabular-nums;
}

.service-picker-option-price {
    color: #ffd369;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.service-picker-option-count {
    color: #55ee92;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.service-picker-option-otp {
    color: #49f586;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.service-picker-option-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    -webkit-text-fill-color: currentColor !important;
}

.service-picker-option-status.is-good {
    border-color: #22c55e;
    background: #14532d;
    color: #dcfce7;
}

.service-picker-option-status.is-fair {
    border-color: #38bdf8;
    background: #075985;
    color: #e0f2fe;
}

.service-picker-option-status.is-average {
    border-color: #f59e0b;
    background: #78350f;
    color: #fef3c7;
}

.service-picker-option-status.is-weak {
    border-color: #fb7185;
    background: #881337;
    color: #ffe4e6;
}

.service-picker-option-status.is-unknown {
    border-color: #64748b;
    background: #334155;
    color: #f1f5f9;
}

.service-picker-option-status.is-unused {
    border-color: #818cf8;
    background: #312e81;
    color: #e0e7ff;
}

.service-picker-favorite {
    color: #facc15;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.service-picker-empty {
    padding: 28px 12px;
    color: #93a9bf;
    text-align: center;
}

.service-picker-footer {
    padding: 9px 16px 13px;
    border-top: 1px solid rgba(40, 163, 224, .22);
    text-align: center;
}

.service-picker-more {
    min-height: 34px;
    padding: 6px 16px;
    border: 1px solid #118fc5;
    border-radius: 6px;
    background: #08345c;
    color: #e8fbff;
    cursor: pointer;
}

.service-picker-more:hover {
    background: #0a5287;
}

@media (max-width: 575.98px) {
    .service-picker-shortcuts {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .service-picker-pills {
        flex-basis: 100%;
        order: 2;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .service-picker-pill {
        max-width: 180px;
    }

    .service-picker-modal {
        padding: 10px;
    }

    .service-picker-dialog {
        width: min(100%, 680px);
        max-height: calc(100vh - 20px);
    }

    .service-picker-toolbar-row {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .service-picker-sort-wrap {
        flex: 1 1 100%;
        min-width: 0;
        margin-left: 0;
    }

    .service-picker-sort {
        height: 40px;
        border-radius: 14px;
        font-size: 14px;
    }

    .service-picker-list-head {
        min-width: 684px;
        grid-template-columns: minmax(180px, 1fr) 70px 78px 76px 78px 90px 28px;
        gap: 8px;
        padding-left: 18px;
        padding-right: calc(18px + var(--service-picker-scrollbar-gutter, 0px));
    }

    .service-picker-list {
        overflow-x: auto;
    }

    .service-picker-option {
        min-width: 684px;
        grid-template-columns: minmax(180px, 1fr) 70px 78px 76px 78px 90px 28px;
        gap: 8px;
    }
}
