/*
 * tinyurl_list.pt
 */

table#tinyurl-list a.tinyurl-code {
    background-color: #eeeeee;
    font-family:      monospace;
    padding:          1px 1ex;
    border-radius:    5px;
}

table#tinyurl-list a.tinyurl-code:hover {
    text-decoration:  none;
    background-color: lightblue;
}

table#tinyurl-list span.tinyurl-user {
    white-space: nowrap;
}

/*
 * redirect_list.pt
 */

a#add-redirect-link {
    float: right;
}

div.hostnamedisplay {
    display:          none;
    position:         absolute;
    border:           1px solid darkgray;
    border-radius:    5px;
    background-color: lightgray;
    padding:          3px;
}

div.hostnamedisplay div.host {
    color:   white;
    padding: 1px 1ex;
}

div.hostnamedisplay div.host.ok {
    background-color: green;
}


div.hostnamedisplay div.host.failed {
    background-color: orange;
}

div.hostnamedisplay div.host.error {
    background-color: red;
}

td:hover div.hostnamedisplay {
    display: block;
}

div.hostnamedisplay img {
    float:       right;
    margin-left: 1em;
}

table.host-status-matrix {
    width:           20em;
    border:          1px solid darkgray;
    empty-cells:     show;
    border-spacing:  1px;
    border-collapse: separate;
    position:        relative;
}

table.host-status-matrix td {
    height: 1em;
}

table.host-status-matrix td.ok {
    background-color: green;
}

table.host-status-matrix td.failed {
    background-color: orange;
}

table.host-status-matrix td.error {
    background-color: red;
}

table.host-status-matrix td.prohibited {
    background-color: blue;
}

table.host-status-matrix td div.matrix-host {
    position:  absolute;
    padding:   2px;
    display:   none;
    left:      0;
    bottom:    1em;
    min-width: 20em;
    font-size: 80%;

}

table.host-status-matrix td:hover div.matrix-host {
    display:          block;
    border:           1px solid darkgray;
    border-radius:    5px;
    background-color: white;
    padding:          3px;
    width:            fit-content;
    z-index:          99;
}

table.host-status-matrix td div.matrix-host span {
    display: block;
}

table.host-status-matrix td div.matrix-host strike {
    color: red;
}

/*
 * redirect_debug.pt
 */

div#debug-view {
    width:      max-content;
    margin-top: 2em;
    border:     1px solid darkgray;
}

div#debug-view div.path-entry {
    white-space:           nowrap;
    padding:               0 2px;
    display:               grid;
    grid-gap:              5px;
    grid-template-columns: auto min-content min-content;
    border-bottom: 1px solid darkgray;
}

div#debug-view div.path-entry.hit {
    background-color: lightgreen;
    font-weight:      bold;
}

div#debug-view div.path-entry.miss {
    background-color: #ffcbcb;
}

div#debug-view div.path-entry.skip {
    background-color: #f0f0f0;
}

div#debug-view div.path-entry span.path {
    padding-right: 2em;
}

h1 a#backlink {
    display: block;
    font-size: initial;
    font-weight: initial;
}

/*
 * redirect_debug_legend.pt
 */

div#redirect-debug-legend div#legend {
    display: grid;
    grid-template-columns: 3em auto;
    grid-gap: 5px;
}

div#redirect-debug-legend div#legend div.bullet {
    border: 1px solid darkgray;
}


div#redirect-debug-legend div#legend div.miss {
    background-color: #ffcbcb;

}

div#redirect-debug-legend div#legend div.skip {
    background-color: #f0f0f0;

}

div#redirect-debug-legend div#legend div.hit {
    background-color: lightgreen;

}

