﻿



[role=listbox] {
    border-right: .5rem solid #fff;
    list-style: none;
    padding: 0;
    display: block;
}

[role=option] {
    cursor: pointer;
    padding: 1rem;
    border-bottom: .1rem solid #ddd;
    outline: none;
}

    [role=option] label {
        top: -1rem;
        border: 0 !important;
    }

    [role=option]:last-child {
        border-bottom: 0;
    }

    [role=option][aria-selected=true] {
        background: #000;
        color: #fff;
    }

    [role=option].active {
        background: #f16e00;
        color: #000;
    }

        [role=option].active .o-checkbox[type="checkbox"]:checked + label::before {
            border-color: #e15e00 !important;
        }

        [role=option].active .o-checkbox[type="checkbox"]:checked + label::after {
            background: transparent !important;
        }

    [role=option] .resume {
        font-weight: normal;
    }

    [role=option] span {
        display: block;
    }

.emails [role=option].unread {
    background: #fff;
    font-weight: bold;
}

.emails [role=option] {
    background: #eee;
    font-weight: normal;
}

    .emails [role=option][aria-selected=true] {
        background: #000;
        color: #fff;
    }

    .emails [role=option].active {
        background: #f16e00;
        color: #000;
    }

        .emails [role=option].active.unread {
            font-weight: bold;
        }

.navbar-brand {
    margin-left: 1rem;
}

.o-checkbox[type="checkbox"]:not(:checked) + label::before, .o-checkbox[type="checkbox"]:checked + label::before {
    top: .5rem;
}

.o-checkbox[type="checkbox"]:not(:checked) + label::after, .o-checkbox[type="checkbox"]:checked + label::after {
    top: .5rem;
}




.listbox-areaxx {
    display: grid;
    grid-gap: 2em;
    grid-template-columns: 1fr;
    padding: 20px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #eee;
}

[role="listbox"] {
    margin: 1em 0 0;
    padding: 0;
    min-height: 18em;
    border: 1px solid #aaa;
    background: white;
    outline: 2px gray solid;
}

    [role="listbox"]#ss_elem_list {
        position: relative;
        max-height: 18em;
        overflow-y: auto;
    }

    [role="listbox"] + *,
    .listbox-label + * {
        margin-top: 1em;
    }

[role="group"] {
    margin: 0;
    padding: 0;
}

    [role="group"] > [role="presentation"] {
        display: block;
        margin: 0;
        padding: 0 0.5em;
        line-height: 2;
        background-color: #ccc;
    }

[role="option"] {
    position: relative;
    display: block;
    margin: 2px;
    padding: 2px 1em 2px 1.5em;
    line-height: 1.8em;
    cursor: pointer;
}

[role="listbox"]:focus [role="option"].focused {
    outline: 2px solid currentcolor;
}

[role="option"]:hover {
    border: 2px solid #bde4ff;
}

.move-right-btn span.checkmark::after {
    content: " →";
}

.move-left-btn span.checkmark::before {
    content: "← ";
}

[role="option"][aria-selected="true"] span.checkmark::before {
    position: absolute;
    left: 0.5em;
    content: "✓";
}

button[aria-haspopup="listbox"] {
    position: relative;
    padding: 5px 10px;
    width: 150px;
    border-radius: 0;
    text-align: left;
}

    button[aria-haspopup="listbox"]::after {
        position: absolute;
        right: 5px;
        top: 10px;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-top-color: currentcolor;
        border-bottom: 0;
        content: "";
    }

    button[aria-haspopup="listbox"][aria-expanded="true"]::after {
        position: absolute;
        right: 5px;
        top: 10px;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-top: 0;
        border-bottom-color: currentcolor;
        content: "";
    }

    button[aria-haspopup="listbox"] + [role="listbox"] {
        position: absolute;
        margin: 0;
        width: 9.5em;
        max-height: 10em;
        border-top: 0;
        overflow-y: auto;
    }

[role="toolbar"] {
    display: flex;
}

    [role="toolbar"] > * {
        border: 1px solid #aaa;
        background: #ccc;
    }

    [role="toolbar"] > [aria-disabled="false"]:focus {
        background-color: #eee;
    }

    button[aria-disabled="true"] {
        opacity: 0.5;
    }

.annotate {
    color: #366ed4;
    font-style: italic;
}

.hidden {
    display: none;
}

.offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
