body  {color: black; background-color: #C0C0D0; font-family: sans-serif;}

P {
width: 80ex
}

A {
    text-decoration: none;
}

TABLE.result { font-weight: bold; background-color: white; padding: 1em; table-layout: fixed;}

TABLE.summary TD { white-space: nowrap }
TABLE.result,TABLE.summary { border-collapse: collapse; }
TABLE.result TD,TABLE.summary TD { border-width: 1px; border-style: solid; }
TABLE.result TD { padding: 0;}
TABLE.result TD > a { font-weight: normal; font-family: monospace; display: block; padding: 0.2ex 0.5ex 0.2ex 0.5ex;}

TABLE.beside TABLE { border-collapse: collapse; font-family: monospace; }

TABLE.beside TABLE TD { padding: 0.2ex 0.5ex 0.2ex 0.5ex; }

TD.highlight {background-color: rgb(80%,80%,80%)}
TD.os64bits {font-style:italic}
.cmaketag {font-weight: bold; color: rgb(100%,20%,20%);}


TD.ok {background-color: rgb(44%,88%,44%)}
TD.warning {background-color: rgb(100%,100%,50%)}
TD.third_party_warning {background-color: rgb(75%,100%,50%)}
TD.timeout {background-color: rgb(100%,75%,25%)}
TD.error {background-color: rgb(100%,50%,50%)}
TD.na {background-color: white;}
TD.requirements { background-color: rgb(65%,65%,100%) }

TH.ok {background-color: rgb(44%,88%,44%)}
TH.warning {background-color: rgb(100%,100%,50%)}
TH.third_party_warning {background-color: rgb(75%,100%,50%)}
TH.timeout {background-color: rgb(100%,75%,25%)}
TH.error {background-color: rgb(100%,50%,50%)}
TH.requirements { background-color: rgb(65%,65%,100%) }

TD.ok A {font-size:large; text-decoration: none}
TD.ok A:link {color: rgb(0%,0%,100%)}
TD.ok A:visited {color: rgb(0%,80%,100%)}

TD.warning A {font-size:large; text-decoration: none}
TD.warning A:link {color: rgb(0%,0%,100%)}
TD.warning A:visited {color: rgb(80%,80%,100%)}

TD.third_party_warning A {font-size:large; text-decoration: none}
TD.third_party_warning A:link {color: rgb(0%,0%,100%)}
TD.third_party_warning A:visited {color: rgb(80%,80%,100%)}

TD.timeout A {font-size:large; text-decoration: none}
TD.timeout A:link {color: rgb(0%,0%,100%)}
TD.timeout A:visited {color: rgb(80%,80%,100%)}

TD.error A {font-size: large; text-decoration: none}
TD.error A:link {color: rgb(0%,0%,100%)}
TD.error A:visited {color: rgb(80%,0%,100%)}

TD.requirements A {font-size: large; text-decoration: none}
TD.requirements A:link {color: rgb(0%,0%,100%)}
TD.requirements A:visited {color: rgb(100%,100%,65%)}

SELECT { font-family: monospace; }

#permalink,#jump_to_results,#compare {
    font-size: 0.5em;
    font-weight: normal;
}
#permalink::before,#jump_to_results::before,#compare::before{
    content: "("
}
#permalink::after,#jump_to_results::after,#compare::after{
    content: ")"
}

TABLE.result TD > a.package_name {
    color: black;
    font-weight: bold;
}

/* Summary Page */

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.toggle-button {
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
}

.summary-content{
    overflow: auto;
    max-height: 600px;
}

.directory_container{
    display: flex;
    align-items: center;
}

.platform-container {
    display: flex;
    align-items: center;
}

.platform-link {
    margin-right: 10px;
}

/* TPL table */

.tpl-table {
    width: auto;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
    border: 1px solid #ccc;
}

.tpl-table th, .tpl-table td {
    border: 1px solid #ddd;
    padding: 6px 12px;
    text-align: left;
    white-space: nowrap;
}

.tpl-table tr:nth-child(even) {
    background-color: #a6a6a6;
}

.tpl-table th {
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: #a6a6a6;
    color: #333;
    font-weight: normal;
}

.tpl-toggle-button {
    display: inline-block;
    padding: 0.3em 0.5em;
    font-size: 14px;
}

.toggle-button:hover {
    background-color: #e0e0e0;
}

.tpl-row {
    cursor: pointer;
}

.tpl-row:hover td {
    background-color: #d1d1d1 !important;
}

/* TPL Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    color: #333;
}

.modal p {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

table.tablesorter {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background-color: #f0f0f0;
    color: #333;
    font-family: Arial, sans-serif;
}

table.tablesorter thead th {
    background-color: #d9d9d9;
    color: #333;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    cursor: pointer;
}

table.tablesorter thead th.tablesorter-headerAsc {
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

table.tablesorter thead th.tablesorter-headerDesc {
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

table.tablesorter tbody tr:nth-child(odd) td {
    background-color: #e6e6e6;
}

table.tablesorter tbody tr:nth-child(even) td {
    background-color: #f0f0f0;
}

table.tablesorter tbody td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
}