/* Keep the already-built Tailwind bundle on the same palette as resources/css/app.css. */
:root {
    --color-brand-50: #f2f5fa;
    --color-brand-100: #e4eaf4;
    --color-brand-200: #c9d5e9;
    --color-brand-500: #365588;
    --color-brand-600: #13274f;
    --color-brand-700: #0e1e3d;
    --color-brand-800: #09152d;
}

/* Public forms share one dropdown treatment, including the opened option list. */
main select:not([multiple]) {
    accent-color: #13274f;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%2313274f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    background-size: 1rem;
    padding-right: 2.75rem;
}

.navy-select {
    position: relative;
    min-width: 0;
    width: 100%;
}

.navy-select .navy-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.navy-select__trigger {
    display: flex;
    width: 100%;
    min-height: 2.95rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid #cbd5e1;
    border-radius: .75rem;
    background: #fff;
    padding: .7rem .9rem .7rem 1rem;
    color: #0f172a;
    font-size: .9375rem;
    text-align: left;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
    cursor: pointer;
}

.navy-select__trigger:hover:not(:disabled) { border-color: #365588; background: #f9fbfe; }
.navy-select__trigger:focus-visible,
.navy-select.is-open .navy-select__trigger {
    outline: none;
    border-color: #13274f;
    box-shadow: 0 0 0 3px rgba(19, 39, 79, .12);
}
.navy-select__trigger:disabled { cursor: not-allowed; background: #f8fafc; color: #94a3b8; }
.navy-select__trigger.is-placeholder { color: #64748b; }
.navy-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navy-select__chevron {
    width: 1rem;
    height: 1rem;
    flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%2313274f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform .18s;
}
.navy-select.is-open .navy-select__chevron { transform: rotate(180deg); }

.navy-select__menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + .35rem);
    left: 0;
    width: 100%;
    min-width: 100%;
    overflow: hidden;
    border: 1px solid #c9d5e9;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 16px 32px rgba(9, 21, 45, .14);
}
.navy-select__menu[hidden] { display: none; }
.navy-select__options { max-height: 17rem; overflow-y: auto; padding: .25rem; }
.navy-select__option {
    display: block;
    width: 100%;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    padding: .55rem .7rem;
    color: #1e293b;
    font-size: .9375rem;
    text-align: left;
    cursor: pointer;
}
.navy-select__option:hover,
.navy-select__option:focus-visible { outline: none; background: #e4eaf4; color: #13274f; }
.navy-select__option[aria-selected="true"] { background: #13274f; color: #fff; }
.navy-select__option[hidden] { display: none; }
.navy-select__search {
    display: block;
    width: calc(100% - .5rem);
    margin: .4rem .25rem .2rem;
    border: 1px solid #c9d5e9;
    border-radius: .5rem;
    padding: .5rem .65rem;
    font-size: .875rem;
    outline: none;
}
.navy-select__search:focus { border-color: #13274f; box-shadow: 0 0 0 3px rgba(19, 39, 79, .12); }
