/* @ignore next line@ */
/* needed for itext */
@page {
    margin: 0;
}

body {
    box-sizing: border-box;
    margin: 0;
}

/* @ignore next line@ */
/* the HTML that shall be send by mail should have the same layout like the print version */
/* @ignore next line@ */
@media print {
    body.mail {
        padding: 20px;
    }

    carambol-scoresheet *[contenteditable="true"] {
        background-color: white !important;
    }

    carambol-scoresheet .playerStatus {
        display: none !important;
    }

    carambol-scoresheet .playerTable {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* @ignore next line@ */
}

carambol-scoresheet {
    display: inline-block;
    font-family: Arial;
    cursor: default;
    box-sizing: border-box;
    font-size: 14px;
}

carambol-scoresheet * {
    box-sizing: border-box;
}

carambol-scoresheet .hidden {
    display: none;
}

carambol-scoresheet > table {
    border: 2px solid black;
    background-color: white;
    border-spacing: 0;
    border-collapse: collapse;
}

carambol-scoresheet > table table {
    width: 100%;
    font-size: 9pt;
    border-spacing: 0;
    border-collapse: collapse;
}

carambol-scoresheet > table > tbody > tr > td {
    border-width: 2px 1px 2px 1px;
    border-style: solid;
    border-color: black;
    padding: 0;
}

carambol-scoresheet table.has-team-click.clickable td.team:hover,
carambol-scoresheet table.has-play-click tr.play:hover {
    background-color: #337ab7;
    cursor: pointer;
}

carambol-scoresheet table.has-team-click.clickable td.team:hover,
carambol-scoresheet table.has-play-click tr.play:hover td {
    color: white;
}

carambol-scoresheet .detail-header td {
    font-size: 0.7em;
    padding: 4px;
    text-align: center;
}

carambol-scoresheet .LargeText {
    font-weight: bold;
    font-size: 1.2em;
}

carambol-scoresheet .lastname {
    position: relative;
    border-bottom: 1px dotted black;
    font-weight: bold;
    text-align: left;
    padding-left: 4px;
}

carambol-scoresheet .firstname {
    position: relative;
    text-align: left;
    padding-left: 4px;
}

carambol-scoresheet .value {
    padding: 4px;
    text-align: center;
}

carambol-scoresheet div.value {
    height: 48px;
    padding-top: 12px;
    vertical-align: middle;
}

carambol-scoresheet .value[contenteditable="true"] {
    background-color: #fefde0;
    cursor: text;
}

carambol-scoresheet .playerTable {
    table-layout: fixed;
    overflow: hidden;
}

carambol-scoresheet > table.clickable .playerTable.has-substitute {
    width: calc(100% - 30px);
    margin-left: 30px;
}

carambol-scoresheet > table.clickable .playerTable:hover {
    background-color: #337ab7;
    color: white;
    cursor: pointer;
}

carambol-scoresheet .playerTable,
carambol-scoresheet .pointsTable,
carambol-scoresheet .inningsTable {
    height: 50px;
}

carambol-scoresheet .playerTable tr,
carambol-scoresheet .pointsTable tr,
carambol-scoresheet .inningsTable tr {
    height: 25px;
}

carambol-scoresheet .player-up,
carambol-scoresheet .player-down {
    position: absolute;
    display: none;
    top: 6px;
    right: 3px;
    vertical-align: middle;
}

carambol-scoresheet .player-down {
    margin-top: 2px;
}

carambol-scoresheet > table.clickable .playerTable td.lastname:hover .player-up,
carambol-scoresheet > table.clickable .playerTable td.firstname:hover .player-down {
    display: block;
}

carambol-scoresheet .playerTable td.lastname,
carambol-scoresheet .playerTable td.firstname {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

carambol-scoresheet .pointsTable td.value,
carambol-scoresheet .inningsTable td.value {
    border-bottom: 1px dotted black;
    padding: 2px;
}

carambol-scoresheet .pointsTable td.factor,
carambol-scoresheet .inningsTable td.factor {
    padding: 5px 2px 2px 4px;
    font-size: 0.8em;
    width: 15px;
}

carambol-scoresheet .pointsTable td.calculated,
carambol-scoresheet .inningsTable td.calculated {
    padding: 5px 4px 2px 2px;
    text-align: right;
}

carambol-scoresheet .playerStatus {
    position: absolute;
    border-right: 1px solid black;
    color: gray;
    width: 30px;
    height: 100%;
    font-size: 1.4em;
    text-align: center;
    vertical-align: middle;
    line-height: 50px;
    cursor: pointer;
    overflow: hidden;
    display: none;
}

carambol-scoresheet .playerStatus.substitute {
    color: white !important;
    background-color: #337ab7;
}

carambol-scoresheet > table.clickable .playerStatus {
    display: block;
}

carambol-scoresheet .playerCell {
    vertical-align: top;
    position: relative;
}

carambol-scoresheet .playerCell.combined {
    padding-left: 13px;
}
