.otop-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .35s ease, opacity .25s ease, visibility 0s linear .35s;
}

.otop-collapse.is-open {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    transition: max-height .35s ease, opacity .25s ease;
}

/* Table rows toggle instantly via display, matching the legacy display:none
   behavior — Chromium renders visibility:collapse like hidden (leaves gaps). */
.otop-collapse.otop-collapse-row {
    display: none;
    max-height: none;
    opacity: 1;
    visibility: visible;
    transition: none;
}

.otop-collapse.otop-collapse-row.is-open {
    display: table-row;
}

.otop-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0 0 4px;
    border-bottom: 5px solid #f48f01;
    list-style: none;
}

.otop-tabs-nav li {
    margin: 0 2px -1px 0;
}

.otop-tabs-nav a {
    display: block;
    padding: 5px 10px;
    border: 1px solid #a3a3a3;
    background: #f48f01 url(../images/sprite.png) repeat-x;
    color: #000;
    text-decoration: none;
}

.otop-tabs-nav a:hover,
.otop-tabs-nav a:focus {
    background: #f48f01 url(../images/sprite.png) repeat-x left -1300px;
    outline: 0;
}

.otop-tabs-nav li.selected a,
.otop-tabs-nav li.selected a:hover,
.otop-tabs-nav li.selected a:focus {
    border-color: #f48f01;
    background: #f48f01 url(../images/sprite.png) repeat-x left -1400px;
    color: #fff;
}

.otop-tabs-nav em {
    font-style: normal;
}

.otop-tabs-content {
    clear: both;
    padding-top: 10px;
}

.otop-tabs-content > [hidden] {
    display: none;
}

.otop-calendar-proxy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
}

.otop-sortable-table th button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.otop-sortable-table th button[aria-sort="ascending"]::after {
    content: " ▲";
}

.otop-sortable-table th button[aria-sort="descending"]::after {
    content: " ▼";
}

.otop-sortable-table tbody tr.selected td {
    background-color: #fece8a;
}

@media (prefers-reduced-motion: reduce) {
    .otop-collapse,
    #otop_modal {
        transition: none;
        animation: none;
    }
}
