/**********************************/
/* CarambolScoresheet - Directive */
/* see ScoresheetCarambol.css     */
/**********************************/

/**********************************/
/* PoolScoresheet - Directive     */
/* see ScoresheetPool.css         */
/**********************************/

/*******************************/
/* Menu Container - Directive  */
/*******************************/
.menu-container,
menu-container,
menu-container > div {
    display: block;
    height: 100%;
    background-color: #F8F8F8;
}

menu-container > div {
    display: flex;
    height: 100%;
}

.menu-container .sidebar,
menu-container .sidebar {
    flex: 0 0 180px;
    position: relative;
    padding: 18px 0 0 0;
    border-right: 1px solid #eee;
    font-size: 1.2rem;
}

.menu-container .content,
menu-container .content {
    flex: 1;
    position: relative;
    background-color: #fbfbfb;
    padding: 20px;
    overflow: auto;
}

/*******************************/
/* MatchSlipDialog - Directive */
/*******************************/

.matchslip-dialog {
    overflow: hidden;
}

.matchslip-dialog .modal-dialog {
    margin: 15px auto;
    width: 700px;
}

.matchslip-dialog .modal-dialog .modal-title {
    display: block;
    text-align: center;
}

.matchslip-dialog table.matchslip {
    font-size: 1.1em;
}

.matchslip-dialog .nav {
    color: black;
    opacity: 0.2;
}

.matchslip-dialog .nav:hover {
    opacity: 0.5;
}

/*******************************/
/* MatchSlip - Directive       */
/*******************************/
/* 1 inch = 2,54 cm */
/* DIN A4 = 21,0 x 29,7 cm */
/* => 21 / 2,54 = 8,27, 29,7 / 2,54 = 11,69 */
/* dpi = dots per inch */
/* dpi = 300 (=print quality) => (8,27*300) x (11,69*300) = 2480 x 3508 */
.matchslip-container {
    width: 540px;
    border: 1px solid #e5e5e5;
    padding: 10px;
}

.matchslip-container .title {
    text-align: center;
    margin-top: 0;
}

table.matchslip {
    width: 100%;
}

table.matchslip td.header-team {
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

table.matchslip td.header-team-1 {
    padding-right: 80px;
}

table.matchslip td.header-team-2 {
    padding-left: 80px;
}

table.matchslip td.header-player {
    text-align: center;
    padding-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

table.matchslip td.header-player-1 {
    padding-right: 80px;
}

table.matchslip td.header-player-2 {
    padding-left: 80px;
}

table.matchslip th,
table.matchslip td {
    text-align: center;
}

table.matchslip th {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

table.matchslip tr:last-child {
    border-bottom: 1px solid #e5e5e5;
}

table.matchslip .nav {
    color: black;
    opacity: 0.2;
}

table.matchslip .nav:hover {
    opacity: 0.5;
}

table.matchslip .left {
    border-left: 1px solid #e5e5e5;
}

table.matchslip .right {
    border-right: 1px solid #e5e5e5;
}

table.matchslip .dark {
    background-color: #f8f8f8;
    /*background-color: #eaeaea;*/
}

table.matchslip td.points.maxpoints {
    font-weight: bold;
    color: #F79A2E;
}

table.matchslip td.lastinning {
    font-weight: bold;
    color: #337ab7;
}

table.matchslip td.notplayed {
    color: #777777;
}

/*******************************/
/*  DynamicTable - Directive   */
/*******************************/
dynamictable {
    display: inline-block;
    font-family: Arial;
}

dynamictable > table {
    border: 1px solid black;
    background-color: white;
    border-collapse: collapse;
    border-spacing: 0;
}

dynamictable > table > thead > tr > th {
    /*background-color: #F0F0F0;*/
    text-align: center;
}

dynamictable > table > thead > tr > th,
dynamictable > table > tbody > tr > td {
    padding: 2px 6px 2px 6px;
}

dynamictable > table.dynamic-table-empty {
    background: none;
    border: none;
}

dynamictable > table.dynamic-table-empty > tbody > tr > td {
    padding: 100px;
}

/********************************/
/* MatchPlaySummary - Directive */
/********************************/

matchplaysummary .home {
    color: white;
}

matchplaysummary .guest {
    color: #FFFF00;
}

/*******************************/
/* KeypadDialog - Directive    */
/*******************************/
.keypad-dialog .modal-dialog {
    width: 326px;
}

.keypad-dialog .modal-dialog .modal-body {
    padding: 5px;
}

.keypad-dialog .keypad {
    padding: 0 6px 6px 6px;
    border: 1px solid white;
    background-color: #222;
}

.keypad-dialog .keypad table {
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}

.keypad-dialog .keypad table td {
    width: 100px;
    height: 100px;
    padding: 2px;
}

.keypad-dialog .keypad .input {
    position: relative;
}

.keypad-dialog .keypad .input input {
    width: 100%;
    text-align: center;
    font-size: 3.4em;
    border: none;
    height: 70px;
}

.keypad-dialog .keypad .input.error {
    color: white;
}

.keypad-dialog .keypad .input.error input {
    background-color: red;
    color: white;
}

.keypad-dialog .keypad .input .clear {
    position: absolute;
    right: 14px;
    top: 15px;
    font-weight: normal;
    font-size: 3em;
    cursor: pointer;
}

.keypad-dialog .keypad .input .clear:hover {
    color: #737373;
}

.keypad-dialog .keypad button:hover {
    color: white;
    background-color: #737373;
}

.keypad-dialog .keypad button:focus {
    color: white;
}

.keypad-dialog .keypad button {
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 2.8em;
    color: white;
    background-color: #515151;
}

.keypad-dialog .keypad .cancel,
.keypad-dialog .keypad .ok {
    margin-top: 14px;
}

.keypad-dialog .keypad .cancel {
    color: red;
}

.keypad-dialog .keypad .ok {
    color: green;
}

/*******************************/
/* KeypadDialog2 - Directive   */
/*******************************/
.keypad-dialog2 .modal-dialog {
    width: 326px;
}

.keypad-dialog2 .modal-dialog .modal-content {
    /*background-color: #F8F8F8;*/
}

.keypad-dialog2 .modal-dialog .modal-body {
    padding: 5px;
    /*border-color: #F8F8F8;*/
}

.keypad-dialog2 .keypad {
    padding: 0 6px 6px 6px;
    /*border: 1px solid #F8F8F8;*/
    border: 1px solid white;
}

.keypad-dialog2 .keypad table {
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}

.keypad-dialog2 .keypad table td {
    width: 100px;
    height: 100px;
    padding: 6px;
}

.keypad-dialog2 .keypad .input {
    position: relative;
}

.keypad-dialog2 .keypad .input input {
    width: 100%;
    text-align: center;
    font-size: 4.4em;
    height: 70px;
    border-color: #737373;
}

.keypad-dialog2 .keypad .input.error {
    color: white;
}

.keypad-dialog2 .keypad .input.error input {
    background-color: red;
    color: white;
}

.keypad-dialog2 .keypad .input .clear {
    position: absolute;
    right: 14px;
    top: 7px;
    font-size: 3em;
    cursor: pointer;
    /*color: #ccc;*/
    color: #e6e6e6;
}

.keypad-dialog2 .keypad .input .clear:hover {
    color: #737373;
}

.keypad-dialog2 .keypad button {
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-align: center;
    font-size: 3.8em;
    padding: 0;
    border-radius: 50%;
}

.keypad-dialog2 .keypad button.digit {
    font-family: Arial;
    border: 1px solid #737373;
}

.keypad-dialog2 .keypad .cancel,
.keypad-dialog2 .keypad .ok {
    border: none;
}

.keypad-dialog2 .keypad .cancel {
    color: red;
}

.keypad-dialog2 .keypad .ok {
    color: green;
}

/*******************************/
/* PdfViewer - Directive       */
/*******************************/
pdf-viewer {
    display: inline-block;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 4px;
}

pdf-viewer canvas {
    box-sizing: border-box;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: 10px;
}

/*******************************/
/* SearchControl - Directive   */
/*******************************/
.search-control-icon {
    cursor: pointer;
    pointer-events: auto !important;
}

/*******************************/
/* Logview - Directive         */
/*******************************/
logview {
    position: relative;
    display: block;
    height: 100%;
}

.Logview {
    height: 100%;
    min-width: 100%;
}

.LogviewTable {
    border-collapse: collapse;
    border: 0px solid #ddd;
    min-width: 100%;
    height: 100%;
}

.LogviewTable tbody {
    display: block;
    overflow-y: auto;
    height: 100%;
    font-family: monospace;
}

.LogviewTable tr.ERROR {
    color: red;
}

.LogviewTable tr.WARN {
    color: orange;
}

.LogviewTable tr.INFO {
    color: blue;
}

.LogviewTable td.timestamp {
    width: 190px;
    white-space: nowrap;
}

.LogviewTable td.date {
    width: 100px;
}

.LogviewTable td.level {
    width: 70px;
}

#loglevelFilter .chip {
    padding: 3px;
    border: 1px solid #adadad;
    border-radius: 4px;
    margin-right: 4px;
}

#loglevelFilter .chip.ERROR {
    color: red;
    border-color: red;
}

#loglevelFilter .chip.WARN {
    color: orange;
    border-color: orange;
}

#loglevelFilter .chip.INFO {
    color: blue;
    border-color: blue;
}

/*******************************/
/* PlayerDialog - Directive    */
/*******************************/

.player-dialog {
    z-index: 1056;
    cursor: default;
}

.player-dialog.show-keyboard .modal-dialog {
    left: -200px;
}

.player-dialog .modal-header h1 {
    font-size: 1.5em;
}

.player-dialog .modal-header h2 {
    margin-bottom: 0;
}

.player-dialog .modal-body {
    font-size: 1.4em;
}

.player-dialog search-control .search-container {
    margin-bottom: 10px;
}

.player-dialog search-control .search-container .form-control {
    font-size: 1em;
    background-image: none;
}

.player-dialog .SelectPlayerTable {
    width: 100%;
}

.player-dialog .SelectPlayerTable tbody {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 500px;
    max-height: 70vh;
}

.player-dialog .SelectPlayerTable thead, .SelectPlayerTable tr {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.player-dialog .SelectPlayerTable td, .SelectPlayerTable th {
    padding: 6px;
}

.player-dialog:not(.team-mode) .SelectPlayerTable tr.selected,
.player-dialog:not(.team-mode) .SelectPlayerTable tr:hover:not(.group):not(.chosen),
.player-dialog.team-mode .SelectPlayerTable tr:not(.chosen) td.position:hover {
    background-color: #337ab7;
    color: white;
    cursor: pointer;
}

.player-dialog .SelectPlayerTable tr td i.fa-star {
    position: absolute;
    right: 4px;
    top: 8px;
    color: #337ab7;
}

.player-dialog .SelectPlayerTable .highlightSpecialPlayer {
    color: #ff8040;
}

.player-dialog .SelectPlayerTable .highlightTeamMember {
    color: #337ab7;
}

.player-dialog .SelectPlayerTable tr.highlightTeam {
    background-color: #d1e7dd;
    filter: brightness(118%);
}

.player-dialog .SelectPlayerTable tr.highlightWrongType {
    background-color: #F8F8F8;
}

.player-dialog .SelectPlayerTable .highlightPosition {
    font-style: italic;
}

.player-dialog .SelectPlayerTable tr.chosen {
    color: grey;
}

.player-dialog .SelectPlayerTable tbody::-webkit-scrollbar {
    width: 2em;
}

.player-dialog .SelectPlayerTable tbody::-webkit-scrollbar-track {
    background: #F6F6F6
}

​ .player-dialog .SelectPlayerTable tbody::-webkit-scrollbar-track-piece {
    background: #888
}

.player-dialog .SelectPlayerTable tbody::-webkit-scrollbar-thumb {
    background: #E8E8E8
}

.player-dialog .SelectPlayerTable tbody::-webkit-scrollbar-thumb:hover {
    background: #D6D6D6
}

.player-dialog .SelectPlayerTable td.position {
    width: 30px;
    text-align: center;
}

.player-dialog td.position:not(.active-round) {
    color: gray;
}

.player-dialog .SelectPlayerTable td.position img {
    width: 20px;
    height: 20px;
}

.new-player-dialog {
    z-index: 1060;
    background-color: rgba(0, 0, 0, 0.5);
}

/*******************************/
/* Diff - Directive            */
/*******************************/

diff > span {
    font-style: italic;
}

diff > span.CHANGE {
    color: blue;
}

diff > span.INSERT {
    color: green;
}

diff > span.DELETE {
    color: red;
    text-decoration: line-through;
}

/*******************************/
/* MessageList - Directive     */
/*******************************/

ul.message-list {
    padding-left: 24px;
    padding-bottom: 6px;
    border: 1px solid red;
}

ul.message-list > li {
    padding-top: 6px;
}

ul.message-list > li.ERROR,
ul.message-list > li.FATAL {
    color: red;
}

ul.message-list > li.WARN {
    color: orange;
}

/*******************************/
/* CsvImportWizard - Directive */
/*******************************/

csv-import-wizard,
.csv-import-wizard {
    height: 100%;
    width: 100%;
}

.csv-import-wizard .menu-container .left-menu {
    padding: 5px 0;
}

.csv-import-wizard .menu-container .content {
    padding: 5px 20px 0 20px;
    overflow: hidden;
}

.csv-import-wizard > .menu-container > .content > div {
    height: 100%;
}

.csv-import-wizard .table-responsive table th,
.csv-import-wizard .table-responsive table td {
    white-space: nowrap;
}

.csv-import-wizard .error {
    color: red;
}

.csv-import-wizard .importMessage.WARN,
.csv-import-wizard .importMessage.WARN .fa-exclamation-triangle {
    color: orange;
}

.csv-import-wizard .bottom-toolbar {
    height: 50px;
    padding-top: 10px;
}

.csv-import-wizard .import-error-icon {
    color: red;
    float: right;
    margin-top: 5px;
}

.csv-import-wizard .bottom-toolbar .alert-danger {
    max-width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.csv-import-wizard .content .Logview {
    padding-bottom: 15px;
}

.csv-import-wizard .fa-exclamation-triangle,
.csv-import-wizard .import-data-table tr.ERROR-NONE > td {
    color: red;
}

.csv-import-wizard .import-data-table tr.OK-UPD > td {
    color: blue;
}

.csv-import-wizard .fa-check-circle,
.csv-import-wizard .import-data-table tr.OK-NEW > td {
    color: green;
}

/*******************************/
/* CsvImportDialog - Directive */
/*******************************/

/*******************************/
/* MailDialog - Directive      */
/*******************************/

.mail-dialog .modal-body div.form-row {
    padding: 4px;
}

.mail-dialog .ck-editor {
    width: 100%;
    height: 100%;
}

/* .ck-editor__top (=toolbar) has height of 40px */
.mail-dialog .ck-editor__main {
    height: calc(100% - 40px);
}

.mail-dialog .ck-editor__editable {
    height: 100%;
    min-height: 150px;
}

.mail-dialog i.file,
.mail-dialog i.remove {
    margin-left: 5px;
    margin-right: 5px;
}

.mail-dialog .remove:hover {
    color: gray;
}

.mail-dialog .attachment-chip {
    display: inline-block;
    margin-top: 6px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 5px 5px 5px;
    cursor: pointer;
}

/*****************************************/
/* ScoreboardSelectionDialog - Directive */
/*****************************************/

.scoreboard-selection-dialog .modal-dialog {
    width: 400px;
}

.scoreboard-selection-dialog .modal-body .btn-group-vertical button.btn {
    font-size: 2.8rem;
}

.scoreboard-selection-dialog .modal-body .btn-group-vertical button.current-match {
    background-color: gray;
    color: white;
}

.scoreboard-selection-dialog .modal-body .btn-group-vertical button.current-play {
    background-color: #337ab7;
    color: white;
}

.scoreboard-selection-dialog .modal-body .btn-group-vertical button.another-match {
    background-color: #d57384;
    color: white;
}

.scoreboard-selection-dialog .no-scoreboards {
    font-size: 1.2em;
    color: red;
    text-indent: -14px;
    margin-left: 27px;
}

.scoreboard-selection-dialog .no-scoreboards i.fa {
    margin-right: 4px;
}

/*****************************************/
/* ParamTable - Directive                */
/*****************************************/

.param-table th {
    min-width: 200px;
}