/* Bracket rendering & printing styles (extracted from kaavioparse*, auto_kaaviot*) */
.kaavio_input {
    padding: 4px;
    margin: 4px;
    border: 1px solid #aaa;
    background: #d5d5d5;
    border-radius: 3px;
    text-shadow: -1px -1px #fff;
    color: #333;
}

.seurateksti {
    white-space: nowrap;
    font-size: 12px;
    color: #ccc;
}

.ottelunum,
.ottelunumoik,
.ottelunumkeski {
    position: relative;
    top: -12px;
    border: 2px solid #000;
    text-align: center;
    width: 25px;
    height: 20px;
    background-color: #fff;
    z-index: 2;
    font-weight: bold;
}

.ottelunum {
    right: 30px;
}

.ottelunumoik,
.ottelunumkeski {
    left: 156px;
}

.ottelu {
    width: 45%;
    box-sizing: border-box;
    height: 70px;
    padding: 10px 10px 10px 65px;
    margin: 2%;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.ottelunumero {
    position: absolute;
    left: 0;
    top: 0;
    height: 70px;
    font-size: 20px;
    text-align: center;
    width: 55px;
    padding: 10px;
    border-right: 1px solid #eee;
    line-height: 50px;
}

.voittotapa {
    color: #880000;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #eee;
    position: absolute;
    top: 22px;
    right: 0;
    display: inline-block;
}

.kaavio_seura {
    opacity: 0.8;
    font-size: 0.8em;
}

.ottelu .ottelija:last-child {
    border-bottom: 0;
}

.voittaja {
    color: #880000;
}

.haviaja {
    opacity: 0.4;
}

.ottelija {
    height: 25px;
    font-size: 16px;
    line-height: 25px;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}

#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#sortable li {
    margin: 0 3px 3px;
    padding: 0.4em 0.4em 0.4em 1.5em;
    font-size: 1.4em;
    min-height: 18px;
}

#sortable li span {
    position: absolute;
    margin-left: -1.3em;
}

@media print {
    .printdiv {
        display: none;
    }
}

@media screen {
    .printdiv {
        display: block;
        margin: 0 0 10px;
        max-width: 1260px;
        width: 100%;
        min-height: 20px;
        text-align: center;
        padding: 8px 0 20px;
    }
}
