.office-options[hidden] {
    display: none !important;
}

.office-options {
    --office-accent: #0b3b75;
    --office-accent-soft: #eaf1fa;
    --office-ink: #17212b;
    position: fixed;
    z-index: 10050;
    overflow: hidden;
    max-height: min(360px, calc(100vh - 24px));
    border: 1px solid rgba(15, 39, 66, .14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(7, 24, 43, .22), 0 3px 10px rgba(7, 24, 43, .1);
    color: var(--office-ink);
    font-family: inherit;
    animation: office-options-in .16s ease-out;
}

body.ruamex-home .office-options {
    --office-accent: #5f8700;
    --office-accent-soft: #f0f6df;
}

.office-options__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8edf2;
    background: rgba(255, 255, 255, .97);
    color: var(--office-accent);
    font-size: 13px;
    letter-spacing: .01em;
    backdrop-filter: blur(8px);
}

.office-options__count {
    color: #687481;
    font-size: 12px;
    font-weight: 600;
}

.office-options__list {
    overflow-y: auto;
    max-height: 302px;
    padding: 7px;
    overscroll-behavior: contain;
}

.office-options__item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 11px;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .14s ease, transform .14s ease;
}

.office-options__item:hover,
.office-options__item:focus,
.office-options__item.is-active {
    outline: none;
    background: var(--office-accent-soft);
    transform: translateX(2px);
}

.office-options__marker {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 7px;
    border-radius: 9px;
    background: var(--office-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.office-options__text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.office-options__text strong {
    overflow: hidden;
    color: #1c2732;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.office-options__text small {
    overflow: hidden;
    color: #667482;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.office-options__empty {
    padding: 24px 16px;
    color: #667482;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

@keyframes office-options-in {
    from { opacity: 0; transform: translateY(-4px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 575.98px) {
    .office-options {
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        border-radius: 12px;
    }

    .office-options__list {
        max-height: min(310px, 48vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    .office-options { animation: none; }
    .office-options__item { transition: none; }
}
