/* XMB Application Variables - These are needed for backward and forward theme compatibility */

.admin-members-result {
    --xmb-grid-columns: max-content auto auto max-content auto auto auto;
}
.admin-attachment-result {
    --xmb-grid-columns: auto 20% 28% 11% max-content max-content;
}
@media screen and (max-width: 850px) {
    .admin-attachment-result {
        --xmb-grid-columns: auto 20% 28% max-content;
    }
}
.admin-ranks {
    --xmb-grid-columns: max-content auto auto auto auto auto;
}
.admin-log {
    --xmb-grid-columns: auto auto auto auto auto;
}
.forum-list {
    --xmb-grid-columns: minmax(max-content, 4%) auto minmax(max-content, 6%) minmax(max-content, 6%) 22%;
}
.admin-modlog {
    --xmb-grid-columns: auto auto auto auto;
}
.admin-restrictions {
    --xmb-grid-columns: max-content auto max-content max-content;
}
.admin-smilies {
    --xmb-grid-columns: max-content auto auto max-content;
}
.admin-censor,
.index-member {
    --xmb-grid-columns: auto auto auto;
}
.admin-ipban {
    --xmb-grid-columns: min-content auto auto;
}
.debug-query {
    --xmb-grid-columns: min-content min-content minmax(min-content, max-content);
}
.admin-themes {
    --xmb-grid-columns: max-content auto max-content;
}
.admin-themes-single {
    --xmb-grid-columns: auto auto max-content;
}
.admin-attachment-search {
    --xmb-grid-columns: max-content auto;
}
.breadcrumbs,
.bottom-breadcrumbs {
    --xmb-grid-columns: auto min-content min-content;
}
.admin-email,
.admin-forums-detail,
.admin-moderators,
.admin-newsletter,
.admin-prune,
.admin-settings,
.admin-themes-import,
.admin-themes-new,
.header-top-grid,
.links-grid {
    --xmb-grid-columns: auto auto;
}
.admin-restrictions-new {
    --xmb-grid-columns: max-content max-content;
}
.admin-search-result {
    --xmb-grid-columns: 5% auto;
}
.admin-members-search,
.admin-rename {
    --xmb-grid-columns: 22% auto;
}
.index-guest {
    --xmb-grid-columns: 75% auto;
}
.index-whosonline .onnow {
    --xmb-grid-columns: minmax(4%, max-content) auto;
}
.index-stats {
    --xmb-grid-columns: 50% auto;
}

@media screen and (max-width: 850px) {
    .admin-attachment-result .cell:nth-child(4),
    .admin-attachment-result .cell:nth-child(6) {
        --xmb-column-hide: none;
    }
}
.span,
.admin-themes-single .row .field.submit,
.header-top-grid .logo {
    --xmb-grid-span: 1 / -1;
}
.admin-smilies .add-all .span,
.admin-themes-single .field.span,
.index-member .span {
    --xmb-grid-span: 2 / -1;
}
.admin-smilies .icon-list .span {
    --xmb-grid-span: 2 / span 2;
}
.admin-smilies .new .span {
    --xmb-grid-span: 3 / -1;
}

.header-top-grid {
    --xmb-grid-rows: auto auto;
}

/* XMB Stylesheet */

body {
    scrollbar-arrow-color: #d3dfe4;
    scrollbar-base-color: #FFFFFF;
    text-align: left;
    background-image: url(https://alpha.xmbforum2.com/images/davis/bg.gif);
    font-family: Tahoma, Arial, Helvetica, Verdana;
    font-size: 11px;
    color: #000000;
}

body > br {
    line-height: 18px;
}

a {
    color: #24404b;
    text-decoration: none;
}

a:hover, .category a:hover {
    text-decoration: underline;
}

a.button-link {
    display: inline-block;
    padding: 1px 4px;
}

.category a {
    color: #163c4b;
    text-decoration: none;
}

form {
    margin: 0px;
}

hr {
    color: #86a9b6;
    background-color: #86a9b6;
    border: 0px;
    height: 1px;
}

#tickertoggle {
    color: #163c4b;
}

table.code {
    border: 1px solid #86a9b6;
    margin: 15px auto 10px auto;
}

td.code {
    background-color: #d3dfe4;
    border-bottom: 1px solid #86a9b6;
    color: #24404b;
    font-weight: bold;
    height: 20px;
    padding-left: 5px;
}

code {
    border: 1px solid #86a9b6;
    padding: 1px 4px;
}

.codemessage code {
    background-color: #f4f7f8;
    color: #000000;
    padding: 10px 5px 10px 5px;
    white-space: pre;
    display: block;
    width: 600px;
    max-height: 400px;
    overflow: auto;
    border: none;
}

table.quote {
    border: 1px solid #86a9b6;
    margin: 15px 5% 10px 5%;
    width: 80%;
}

td.quote {
    background-color: #d3dfe4;
    border-bottom: 1px solid #86a9b6;
    color: #24404b;
    font-weight: bold;
    height: 20px;
    padding-left: 5px;
}

td.quotemessage {
    background-color: #f4f7f8;
    color: #000000;
    padding: 10px 0 20px 5px;
}

textarea, select, input, object, a.button-link {
    background-color: #FFFFFF;
    border: 1px solid #86a9b6;
    color: #000000;
    font-family: Verdana, arial, helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    table-layout: fixed;
}

input[readonly] {
    background: none;
    border: none;
}

.category {
    background-image: url(https://alpha.xmbforum2.com/images/davis/catbar.gif);
    table-layout: fixed;
    text-align: left;
}

.ctrcategory {
    background-image: url(https://alpha.xmbforum2.com/images/davis/catbar.gif);
    table-layout: fixed;
    text-align: center;
}

.ctrtablerow {
    color: #000000;
    table-layout: fixed;
    text-align: center;
}

.center-text {
    text-align: center;
}

.header2 {
    background-color: #FFFFFF;
    font-weight: bold;
    table-layout: fixed;
}

.mediumtxt {
    color: #000000;
    font-weight: normal;
    table-layout: fixed;
}

.multi {
    table-layout: fixed;
}

.nav {
    font-weight: bold;
    table-layout: fixed;
}

.navtd2 {
    background-color: #d3dfe4;
    color: #24404b;
    font-size: 9px;
    table-layout: fixed;
    text-decoration: none;
}

.post {
    font-size: 13px;
    font-weight: normal;
}

.rghttablerow {
    color: #000000;
    table-layout: fixed;
    text-align: right;
}

.sig {
    border-top: 1px dashed #86a9b6;
    padding: 13px 0 0 3px;
}

.smalltxt {
    font-size: 10px;
    table-layout: fixed;
}

.subject,
.subheader {
    font-weight: bold;
}

.subitem {
    font-style: italic;
}

.submit {
    text-align: center;
}

.tablerow {
    color: #000000;
    table-layout: fixed;
}

.status_Super_Administrator {
    text-decoration: underline;
    font-weight: bold;
    font-style: italic;
}

.status_Administrator {
    text-decoration: underline;
    font-weight: bold;
}

.status_Super_Moderator {
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
}

.status_Moderator {
    text-decoration: none;
    font-weight: bold;
}

.status_Member, .status_Banned {
    text-decoration: none;
    font-weight: normal;
}

.tablelinks td {
    overflow: hidden;
}
.index-member .tablelinks a,
.tablelinks td a {
    display: block;
    width: 100%;
    margin: -1em;
    padding: 1em;
}
.tablelinks .plainlinks a, .tablelinks .multi a {
    display: inline;
    width: unset;
    margin: 0;
    padding: 0;
}

table.subforums {
    margin-bottom: 12px;    
}

.video {
    border: none;
    height: 344px;
    width: 600px;
}

.postOptions label {
    display: block;
}

.quickreply .inputWrap {
    display: flex;
}

.quickreply textarea {
    width: 80%;
}

.quickreply .controls {
    margin-left: 8px;
}

@media screen and (min-width: 1200px) {
    .codemessage code {
        width: 800px;
    }
}
@media screen and (min-width: 1500px) {
    .codemessage code {
        width: 1100px;
    }
}
@media screen and (min-width: 1850px) {
    .codemessage code {
        width: 1400px;
    }
}
@media screen and (max-width: 850px) {
    .video {
        height: 300px;
        width: 425px;
    }
    .codemessage code {
        width: 425px;
    }
}
@media screen and (max-width: 600px) {
    .video {
        height: 300px;
        width: 350px;
    }
    .codemessage code {
        width: 350px;
    }
    .quickreply .inputWrap {
        display: block;
    }
    .quickreply textarea {
        width: 99%;
    }
}

.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.marquee {
    max-width: 100%;
    overflow: hidden;
}

.marquee2 {
    display: flex;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 0;
    margin: 0;
    padding: 0 2rem;
    list-style: none;
    transform: translateX(100%);
    animation: marqueeAnimation 20s linear infinite;
}

@keyframes marqueeAnimation {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

#tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    background-color: #f4f7f8;
}

#tabs button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
}

#tabs button:hover {
    background-color: #FFFFFF;
}

#tabs button.active {
    background-color: #d3dfe4;
}

/* Table Replacement Styles */

.xmb-grid {
    display: grid;
    grid-template-columns: var(--xmb-grid-columns);
}

.xmb-tabbed-grid {
    display: none;
    grid-template-columns: var(--xmb-grid-columns);
}

.xmb-block-flex {
    display: flex;
    flex-wrap: wrap;
}

.xmb-block-simple,
.xmb-block-flex,
.xmb-grid,
.xmb-tabbed-grid {
    margin: 1px auto;
    color: #000000;
    --xmb-block-width: 97%;
}

.admin-settings #boardDetail {
    display: grid;
}

.admin-censor {
    max-width: 450px;
}

.admin-log,
.admin-modlog,
.admin-themes,
.admin-themes-import,
.admin-smilies {
    max-width: 500px;
}

.admin-attachment-search,
.admin-ipban,
.admin-prune,
.admin-rename,
.admin-search-form,
.admin-themes-single {
    max-width: 550px;
}

.admin-ranks,
.admin-restrictions,
.admin-sql {
    max-width: 650px;
}

.admin-newsletter {
    max-width: 750px;
}

.admin-settings .xmb-tabbed-grid {
    max-width: 800px;
}

.admin-forums-detail {
    max-width: 1024px;
}

@media screen and (min-width: 1100px) {
    .admin-themes-single {
        max-width: 50%;
    }
}

.admin-forums,
.admin-members-search,
.admin-moderators {
    --xmb-block-width: 90%;
}

.admin-members-result {
    --xmb-block-width: 91%;
}

.admin-attachment-result,
.admin-themes-new {
    --xmb-block-width: 93%;
}

.admin-panel {
    --xmb-block-width: 98%;
}

.admin-attachment-result,
.admin-block,
.admin-email,
.admin-forums,
.admin-members-result,
.admin-members-search,
.admin-moderators,
.admin-panel,
.admin-search-result,
.admin-themes-new,
.breadcrumbs,
.bottom-breadcrumbs,
.core-message,
.forum-list,
.index-guest,
.index-member,
.index-stats,
.index-ticker,
.index-whosonline,
.page-header,
.page-footer,
.result-message,
.sql-result {
    width: calc(var(--xmb-block-width) - (2 * 1px));
}

.debug-block {
    width: max-content;
    max-width: calc(var(--xmb-block-width) - (2 * 1px));
}

.xmb-content-row {
    padding: 5px;
}

.xmb-block-wrap {
    margin-top: -1px;
    margin-left: -1px;
}

.admin-settings {
    margin-top: calc(-1px + 5px + 1px);
    margin-left: -1px;
}

.xmb-flex-4, .admin-panel .group {
    border: 1px solid #86a9b6;
    margin-right: -1px;
    margin-bottom: -1px;
    padding-bottom: 1px;
    flex: 1 0 calc(25% - (4 * 1px));
    background: #f4f7f8;
}

@media screen and (max-width: 850px) {
    .xmb-flex-4, .admin-panel .group {
        flex: 1 0 200px;
    }
}

.xmb-grid .row,
.xmb-tabbed-grid .row,
.header-top-grid .row,
.links-grid .row {
    display: contents;
}

.xmb-grid-form-label,
.xmb-grid .label,
.xmb-tabbed-grid .label {
    border: 1px solid #86a9b6;
    padding: 5px;
    padding-top: calc(5px + 2px);
    margin-right: -1px;
    margin-bottom: -1px;
    background: #FFFFFF;
}

.xmb-grid-form-field,
.xmb-grid .field,
.xmb-grid .row-head,
.xmb-grid > .row > .header,
.xmb-tabbed-grid .field,
.xmb-block-simple .field,
.admin-attachment-result .cell,
.admin-content-row,
.header-top,
.navtd {
    border: 1px solid #86a9b6;
    margin-right: -1px;
    margin-bottom: -1px;
    padding: 5px;
    background: #f4f7f8;
}

.xmb-grid .naked-cell {
    padding: 5px;
}

.debug-query .naked-cell {
    padding: 2px 5px;
}

.admin-content-row,
.admin-forums .group,
.admin-ipban .delete,
.admin-log .field:not(.date),
.admin-modlog .field:not(.date),
.admin-ranks .new .field,
.admin-search-result .field,
.admin-smilies .new .field,
.admin-smilies .add-all .field,
.admin-sql .note,
.buddy-link .field,
.buddylist .book-block,
.core-message .field,
.forum-list .icon,
.forum-list .lastpostcell,
.forum-list .message,
.forum-list .thread-count,
.index-whosonline .icon,
.index-whosonline .key,
.index-whosonline .today-count,
.sql-result .field {
    background: #FFFFFF;
}

.admin-restrictions-new .field,
.admin-restrictions-new .label {
    border: none;
    margin: 0;
    padding: 5px;
    background: #f4f7f8;
}

.admin-themes .count,
.sql-result .title {
    background: #f4f7f8;
}

.vertical-center,
.admin-forums-detail .xmb-grid-form-label,
.admin-members-result .result .field,
.admin-prune .label,
.admin-settings .field,
.breadcrumbs .naked-cell,
.bottom-breadcrumbs-grid .naked-cell,
.forum-list .field,
.index-guest .welcome {
    display: flex;
    align-items: center;
}

.horizontal-center,
.admin-members-result .delete,
.admin-restrictions .check,
.admin-restrictions .delete,
.admin-smilies .check,
.admin-smilies .delete,
.admin-themes .delete,
.debug-block .field {
    display: flex;
    justify-content: center;
}

.center-both-ways,
.forum-list .icon,
.forum-list .message,
.forum-list .thread-count,
.forum-list .post-count,
.index-whosonline .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-head {
    background-image: url(https://alpha.xmbforum2.com/images/davis/catbar.gif);
    color: #163c4b;
    padding: 5px;
    font-weight: bold;
}

.normal-text {
    font-weight: normal;
}

.admin-block > .row > .category-head,
.admin-panel .category-head,
.admin-themes-single .category-head,
.buddy-link .field,
.forum-list .header,
.permissions-grid thead .category-head {
    text-align: center;
}

.permissions-grid tbody .header {
    text-align: right;
}

.admin-panel .category-head {
    border-bottom: 1px solid #86a9b6;
}

.xmb-block-simple > .row > .category-head,
.xmb-grid > .row > .category-head,
.xmb-tabbed-grid > .row > .category-head {
    border: 1px solid #86a9b6;
    margin-right: -1px;
    margin-bottom: -1px;
    grid-column: var(--xmb-grid-span);
}

.header,
.xmb-grid > .row > .header {
    background-color: #d3dfe4;
    color: #24404b;
    font-size: 10px;
    font-weight: bold;
    table-layout: fixed;
}

.naked-header {
    font-weight: bold;
}

.span {
    grid-column: var(--xmb-grid-span);
}

.admin-ays,
.admin-fixporphans,
.admin-fixtorphans,
.admin-members-prune-ays,
.admin-members-result .delete,
.admin-ranks .delete,
.admin-settings .field.span {
    display: block;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .admin-settings input[type="text"],
    .admin-settings textarea {
        width: 250px;
    }
    .admin-attachment-search input[type="text"] {
        width: 190px;
    }
}

.admin-attachment-result .span,
.admin-censor .span,
.admin-attachment-result .cell:nth-child(4),
.admin-attachment-result .cell:nth-child(5),
.admin-attachment-result .cell:nth-child(6),
.admin-censor .field:nth-child(1),
.admin-search-form .field,
.admin-smilies .icon,
.page-footer .field,
.result-message .field {
    text-align: center;
}

.admin-attachment-result .cell {
    display: var(--xmb-column-hide);
}

@media screen and (max-width: 600px) {
    .admin-censor input[type="text"] {
        width: 150px;
    }
}

@media screen and (max-width: 600px) {
    .admin-email input[type="text"] {
        width: 250px;
    }
}

@media screen and (max-width: 800px) {
    .admin-newsletter input[type="text"],
    .admin-newsletter textarea {
        width: calc(100% - (2 * (5px - 1px)));
    }
}

.admin-forums .xmb-grid-form-field,
.index-guest .welcome,
.index-whosonline .key,
.index-whosonline .now-count {
    font-size: 10px;
}

.xmb-grid .indent1 {
    padding-left: calc(3.7em + 5px);
}

.xmb-grid .indent2 {
    padding-left: calc(3.7em * 2 + 5px);
}

@media screen and (max-width: 800px) {
    .admin-forums span {
        display: block;
    }
}

.permissions-grid th:first-child, 
.permissions-grid td:first-child {
    max-width: 50px;
}

.option-list div {
    margin: 5px 0px;
}

.option-list input[type="checkbox"] {
    margin: 0px 4px;
}

.option-list input[type="radio"] {
    margin: 0px 7px 0px 4px;
}

.admin-restrictions .new-instructions {
    font-size: 10px;
    line-height: 1.5;
    margin: 5px;
}

.admin-themes-single .color {
    width: 13px;
}

.page-header-wrap {
    margin-top: -1px;
}

.page-header {
    margin-top: 1px;
}

.page-header > .row > div {
    padding: 6px;
}

.header-top {
    background-image: url(https://alpha.xmbforum2.com/images/davis/topbg.gif);
}

.header-top-grid {
    display: grid;
    grid-template-columns: var(--xmb-grid-columns);
    grid-template-rows: var(--xmb-grid-rows);
    font-size: 10px;
}

.header-top-grid .logo {
    grid-row: var(--xmb-grid-span);
}

.header-top-grid .user-alerts,
.header-top-grid .login-status div,
.index-member .category-head.span {
    text-align: right;
}

.header-top-grid .login-status {
    display: flex;
    align-items: end;
    justify-content: right;
}

.navtd {
    background-color: #d3dfe4;
    color: #24404b;
    table-layout: fixed;
    text-decoration: none;
}

.navtd a {
    white-space: nowrap;
}

.breadcrumbs {
    margin-top: 2px;
    margin-bottom: 12px;
}

.links-grid {
    display: grid;
    grid-template-columns: var(--xmb-grid-columns);
}

.links-grid .sitelink {
    text-align: right;
}

.bottom-breadcrumbs-wrap,
.debug-block-wrap {
    margin-top: calc(12px + 1px);
    margin-bottom: calc(12px + 1px);
}
    
.sql-result-wrap {
    margin-top: calc(6px + 1px);
    margin-bottom: calc(12px + 1px);
}

.admin-block,
.buddylist-wrap,
.core-message,
.forum-list .spacer,
.forum-list-wrap,
.index-guest,
.index-member,
.index-stats,
.index-ticker-wrap,
.index-whosonline {
    margin-bottom: calc(12px + 1px);
}
    
.bottom-breadcrumbs .field {
    padding: 0px;
}

.index-ticker .field {
    padding: 13px;
}
.index-member > .row:nth-child(1) > div:nth-child(1) {
    border-right: none;
}
.index-member > .row:nth-child(1) > div:nth-child(2) {
    border-left: none;
}

.xmb-grid.onnow {
    margin: 0px;
}

.index-whosonline .onnow p {
    margin: 0px;
    line-height: 1.5;
}

.index-guest .link {
    display: flex;
    align-items: center;
    justify-content: right;
}

.lastpostcell,
.forum-list .lastpostcell {
    text-align: right;
    display: flex;
    justify-content: right;
    padding-right: 10px;
    font-size: 10px;
}

/* Temporary: Don't break the old forumdisplay layout, yet */

.lastpostcell a:first-child {
    display: block;
    width: 100%;
}

.lastpostcell img {
    padding: 0.8em 0 0.8em 0.8em;
}

.xmb-wide-links-parent,
.forum-list .description .content {
    width: 100%;

    & > a {
        display: block;
    }
}
