form#pagetree-tabs {
    margin-bottom: 1rem;
}

table.pagetree-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 3px solid #C0C0C0;
}

table.pagetree-table thead {
    position: sticky;
    top: 46px;
    z-index: 9;
}

table.pagetree-table tr.hide {
    display: none;
}

table.pagetree-table th {
    text-align: left;
    padding-left: 4px;
    border-bottom: 2px solid #222222;
    min-width: 1.5rem;
}

table.pagetree-table td {
    padding: 2px 0;
    border-bottom: 1px dotted #C0C0C0;
}

table.pagetree-table thead,
table#pagetree-simpletable thead {
    background-color: #B5CADE;
    line-height: 2em;
    border-top: none !important;
}

table#pagetree-simpletable thead th {
    text-align: left;
}

table.pagetree-table .pagetree-table-header-title {
    width: 50%;
    padding-left: 0.5rem;
}

table.pagetree-table ul.pagetree-table-actions {
    margin: 0;
    padding: 0;
    list-style-type: none;
    line-height: 1em;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}

table.pagetree-table ul li {
    margin: 0;
}

table.pagetree-table .dashicons-admin-home {
    font-size: 17px;
    width: 18px;
    height: 17px;
}

table.pagetree-table ul.pagetree-table-actions a {
    display: inline-block;
    text-decoration: none;
}

.depth-1 > td.indent { padding-left: 20px; }
.depth-2 > td.indent { padding-left: 40px; }
.depth-3 > td.indent { padding-left: 60px; }
.depth-4 > td.indent { padding-left: 80px; }
.depth-5 > td.indent { padding-left: 100px; }
.depth-6 > td.indent { padding-left: 120px; }
.depth-7 > td.indent { padding-left: 140px; }
.depth-8 > td.indent { padding-left: 160px; }
.depth-9 > td.indent { padding-left: 180px; }
.depth-10 > td.indent { padding-left: 200px; }

table#pagetree-simpletable {
    border-collapse: collapse;
    margin-top: 1rem;
}

#pagetree-simpletable-wrapper {
    overflow-x: auto;
}

table#pagetree-simpletable th,
table#pagetree-simpletable td {
    border: 1px solid #000000;
    padding: 4px;
    font-family: monospace;
}

pre#pagetree-tsv {
    overflow-x: auto;
}

.cursor-pointer { cursor: pointer; }

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.monospaced { font-family: monospace !important; }
.no-wrap { white-space: nowrap; }

table.pagetree-table td.p-x { padding-left: 4px; padding-right: 4px; }

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

/* .has-children { font-weight: bold; } */

.dis-inline-block { display: inline-block; }

pre.code {
    border: 1px solid #D0D0D0;
    padding: 0.25em;
}

.status-published { border: 1px solid #C0C0C0; }
.status-draft { background-color: #FFCC99; }
.status-pending { background-color: #D8BFD8; }
.status-future { background-color: #00BFFF; }

ul.inline { padding: 0; display: flex; flex-direction: row; gap: 1em; align-items: center; }
ul.inline li { margin-bottom: 0; }

ul.ul-key li.has-marker { border-width: 0 0 0 7px; border-style: solid; padding: 0 0 0 5px; }

.abbreviation { font-weight: bold; padding: 2px; margin: 0 1px; }

.callout {
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.callout-tip {
    background-color: #C8D5E1;
}

.callout .title { flex-shrink: 1; font-size: 150%; font-weight: bold; }
.callout .body { flex-grow: 1; }

.pagetree-button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.pagetree-spacer {
    display: inline-block;
    width: 16px;
    margin-right: 4px;
}

.pagetree-spacer.parent.down {
    transform: rotate(90deg);
}

.pagetree-spacer.page {
    color: #C7C7C7;
}


/* --- DESKTOP --- */

@media screen and (min-width: 784px) {

    table.pagetree-table thead {
        top: 32px;
    }

    table.pagetree-table tbody tr:hover {
        background-color: #F0FFFF;
    }

    .pagetree-controls {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

}
