
.table-wrapper {
    /* display: inline-block;
    width: auto; */
    margin-bottom: 2rem;
}

.table-title {
    margin-bottom: 0;
}

.table-wrapper .view-links {
    margin: 0 auto 0.5rem;
    text-align: right;
}
/* .table-wrapper .view-links .view-entities,
.table-wrapper.legacy .view-links .view-legacy,
.table-wrapper.locations .view-links .view-locations {
    display: none;
}
.table-wrapper.legacy .view-links .view-entities,
.table-wrapper.locations .view-links .view-entities {
    display: inline;
} */

.view-links .sbutton {
    background-color: #ecf7f0;
    color: #333;
    border: 1px solid #83af92;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.view-links .sbutton:hover {
    background-color: #beddc9;
}
.table-wrapper.entities .view-links .view-entities,
.table-wrapper.legacy .view-links .view-legacy,
.table-wrapper.locations .view-links .view-locations {
    background-color: #436850;
    color: #ecf7f0;
}


.regs-wrapper {
    position: relative;
    transition: all 300ms ease-in-out 0s;
    margin-bottom: 2rem;
}


.regs-wrapper a.fs {
    text-decoration: none;
    margin: 0.25rem;
    margin-left: 0.75rem;
    display: inline-block;
}

.regs-wrapper.full a.fs-open,
.regs-wrapper a.fs-close {
    display: none;
}

.regs-wrapper.full a.fs-close {
    display: inline-block;
}

@media screen and (max-width: 1024px) {
    .regs-wrapper a.fs {
        display: none;
    }
}


.regs-wrapper.full {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
}
/* .regs-wrapper.full .table-wrapper {
    width: 60%;
    min-width: 400px;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 10px 2%;
}
.regs-wrapper.full .svg-wrapper {
    flex-grow: 4;
    flex-shrink: 4;
    padding: 10px 2%;
    text-align: center;
} */
.regs-wrapper.full .table-wrapper,
.regs-wrapper.full .svg-wrapper {
    width: 50%;
    flex-grow: 0;
    flex-shrink: 0;
    padding: 1rem;
}

table.regs {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
table.regs h2,
table.regs h3,
table.regs h4 {
    margin: 0;
}

.table-wrapper table.regs.locations,
.table-wrapper.locations table.regs,
.table-wrapper table.regs.legacy,
.table-wrapper.legacy table.regs {
    display: none;
}

.table-wrapper.legacy table.regs.legacy,
.table-wrapper.locations table.regs.locations {
    display: table;
}

table.regs td, table.regs th {
    border: 1px solid #ddd;
    padding: 8px;
}

table.regs th {
    border-width: 0 0 1px 0 !important;
    background-color: rgba(0, 0, 0, 0) !important;
}

table.regs tr.reg:nth-child(even){
    background-color: #fbfbfb;
}

table.regs tr.reg:hover {
    background-color: #ddd;
}

table.regs th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #e9e9e9;
    color: #333;
}
tr.region h3, tr.city h4 {
    cursor: pointer;
}
tr.city h4.current {
    color: #666;
}
tr.reg, tr.city {
    display:none;
}
tr.reg td:first-child {
    width: 2.4em;
}
tr.reg td:last-child {
    width: 12em;
    text-align: center;
}

table.regs th.small {
    width: 1em;
}

table.regs .item-tr .view-item {
    position: relative;
}

table.regs .item-tr a.close-item {
    position: absolute;
    top: 6px;
    right: 6px;
    text-decoration: none;
    color: #333;
}

table.regs tr.item-tr:hover {
    background-color: rgba(0, 0, 0, 0);
}

table.regs tr.reg.loading td:nth-child(2) {
    background-image: url(../img/loading.svg);
    background-position: 99% 50%;
    background-repeat: no-repeat;
    background-size: 26px;
}

table.regs .view-item .ask {
    background-color: #f1f1f1;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

table.regs .view-item .ask .item-id {
    display: none;
    float: right;
    font-size: 0.9em;
    font-weight: 600;
    margin: 0 0 0.25rem 0.25rem;
}

table.regs .view-item .ask .label {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    color: #777;
}

table.regs .view-item .ask .answer {
    font-size: 1.1em;
    color: #000;
}

body:not(.logged-in) tr.reg a.view,
body:not(.logged-in) tr.reg a.view:hover {
    color: #000;
    text-decoration: none;
    cursor: default;
    pointer-events: none;
}


.show-item .images img.img {
    max-width: 100%;
}