
@media (min-width: 1200px) {
    body > div.halfwidth {
        width: 49%;
    }

    body > div.halfwidth:first-child {
        margin-left: 1%;
        float: right;
    }
}

@media (max-width: 1199px) {
    body > div.halfwidth:first-child { margin-bottom: 1em; }
}

body {
    margin: 1em;
    padding: 0;
    font-size: 0.9em;
    font-family: Helvetica, Arial, sans-serif;
    min-width: 600px;
}

body > div {
    width: 100%; padding:0; margin:0;
}

body > div > iframe {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 1rem 0 0 0;
    height: 50rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: #444;
    margin: 0 0 .5em 0;
    border-radius: .5em .5em 0 0;
}

table th {
    color: #fff;
    font-size: 0.9em;
    padding: .5em 0 .2em;
}

table th, table td {
    border: 0;
    border-bottom: 1px solid #fff;
    white-space: nowrap;
}

table th:nth-child(3):hover,
table th:nth-child(4):hover,
table th:nth-child(5):hover,
table th:nth-child(6):hover,
table th:nth-child(7):hover,
table th:nth-child(8):hover {
    background-color: #222;
    cursor: pointer;
}

table tr.edit td:nth-child(2),
table tr.edit td:nth-child(3),
table tr.edit td:nth-child(4),
table tr.edit td:nth-child(9),
table tr.edit td:nth-child(10) {
    padding: 0.1em;
}

table td {
    padding: 0.6em 1em;
    text-align: right;
    background-color: #eee;
}
table td img {
    padding: 0 0.5em;
}
table tr td:last-child, table tr td:first-child {
    text-align: left;
    padding: 0;
}
table tr td:nth-child(2) {
    text-align: center;
}
table tr.edit td:first-child img { display: none; }
table td input, table td form {
    display: none;
}
table tr td span.value {
    display: block;
    max-width: 6em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0 auto;
}
table tr.edit td span.value {
    display: none;
}
table tr.edit td input, table tr.edit td form {
    display: inline;
}
table tr.summary td { background-color: #fff; }
table tr.summary td:nth-child(2) { text-align: right; padding: 0; }
table tr.hidden { display: none; }
table tr.show-more td {
    background-color: #f3f3f3;
    text-align: center;
}
table tr.show-more td a {
    display: inline-block;
    text-decoration: none;
    padding: 0.3rem 0.4rem;
    margin: 0.3rem;
    background-color: #b00;
    border-radius: 5px;
    border: 0;
    color: #fff;
}
table tr.show-more td a:hover {
    background-color: #c00;
}

table td input[type="text"] { width: 100%; box-sizing: border-box; }

table td:nth-child(9) input[type="text"] { font-size: 0.6em;}
table td:nth-child(10) input[type="text"] { font-size: 0.7em; }

table td input[type="radio"] {
    cursor: pointer;
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}
table td label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width:1em;
    height:1em;
    background-color: #AFB;
}
table td label:first-child { background-color: #ABF; }

table td:nth-child(1) { padding: 0; }
table td:nth-child(2) input { text-align: center; }
table td:nth-child(3) input,
table td:nth-child(4) input { text-align: right; }

table td a.extern {
    margin: 0 auto;
    display: block;
    width: 14px;
    height: 14px;
    background-image: url(extern.gif);
    background-repeat: no-repeat;
    background-position: center right;
}
table tr.edit td a.extern { display: none; }

table td small {
    display: block;
    background-color: #AFB;
    padding: 0.1em 0.5em;
    border-bottom: 1px white solid;
}

table td small:first-child { background-color: #ABF; }

table tr.K td { background-color: #ABF; }
table tr.K:hover td { background-color: #BCF; }
table tr.T td { background-color: #AFB; }
table tr.T:hover td { background-color: #CFC; }
