table.tooltip-table {
    text-align: left;
}

table.tooltip-table td {
    padding-left: 8px;
}

input.form-control.Integer {
    text-align: right;
}

.row-form label.row-form-label {
    font-weight: normal;
    margin-top: 6px;
}

/*********************/
/* settings/general  */
/*********************/

#sound-table tr {
    cursor: pointer;
}

/*************************/
/* settings/menu         */
/*************************/
#setting-menu-table th:nth-child(1),
#setting-menu-table td:nth-child(1) {
    width: 40px;
}

#setting-menu-table td:nth-child(1) {
    font-size: 1.8em;
    text-align: center;
    vertical-align: middle;
    color: gray;
    cursor: grab;
}

#setting-menu-table th:nth-child(2),
#setting-menu-table td:nth-child(2) {
    width: 40px;
    text-align: right;
    vertical-align: middle;
    font-size: 1.3em;
    padding-right: 10px;
}

#setting-menu-table td:nth-child(2) input {
    text-align: right;
}

#setting-menu-table th:nth-child(4) {
    width: 120px;
    padding-right: 20px;
    text-align: center;
}

#setting-menu-table td:nth-child(4) {
    width: 100px;
    text-align: center;
    vertical-align: middle;
}

#setting-menu-table th:nth-child(5) {
    width: 120px;
    padding-right: 20px;
    text-align: center;
    display: none;
}

#setting-menu-table td:nth-child(5) {
    width: 100px;
    text-align: center;
    vertical-align: middle;
    display: none;
}

/*************************/
/* settings/associations */
/*************************/
#association-table tr {
    cursor: pointer;
}

#association-table .c0 {
    width: 20px;
}

#association-table .c1 {
    width: 120px;
}

#association-table .c2 {
    width: 100px;
}

#association-table .c3 {
    width: 80px;
}

#association-table .c4 {
    width: 40px;
    text-align: center;
}

#association-table .c5 {
    width: 40px;
    text-align: center;
}

#association-table .c7 {
    width: 70px;
    text-align: center;
    cursor: pointer;
}

#association-table tr.inuse {
    font-weight: bold;
}

#association-dialog .validation-error {
    color: #a94442;
}

/*******************/
/* settings/ticker */
/*******************/
#TickerSettingsLeagueTable td,
#TickerSettingsLeagueTable th {
    padding: 3px 20px 3px 3px;
    white-space: nowrap;
}

#TickerSettingsLeagueTable th.text,
#TickerSettingsLeagueTable td.text {
    width: 200px;
}

#TickerSettingsLeagueTable th.input,
#TickerSettingsLeagueTable td.input {
    width: 600px;
}

#TickerSettingsLeagueTable th.link,
#TickerSettingsLeagueTable td.link {
    width: 50px;
    text-align: center;
}

/*****************/
/* settings/mail */
/*****************/
.tabs-left-container {
    overflow-x: hidden;
    overflow-y: hidden;
}

.tabs-left-container:hover {
    overflow-y: auto;
}

.tabs-left {
    border-bottom: none;
    padding-top: 2px;
    border-right: 1px solid #ddd;
}

.tabs-left > li {
    float: none;
    margin-bottom: 2px;
    margin-right: -1px;
}

.tabs-left > li > a:hover {
    border-color: #eee;
    border-right-color: #ddd;
}

.tabs-left > li.active > a,
.tabs-left > li.active > a:focus,
.tabs-left > li.active > a:hover {
    border-bottom-color: #ddd;
    border-right-color: transparent !important;
    background-color: white;
}

.tabs-left > li > a {
    border-radius: 4px 0 0 4px;
    margin-right: 0;
    display: block;
}

#mail-settings-association-container li.in-use > a {
    color: black;
}

#mail-settings-container .treeview {
    height: 100%;
}

#mail-settings-container .treeview > ul {
    height: 100%;
    overflow: auto;
}

#mail-settings-container .treeview .node-icon {
    margin-right: 10px;
}

#mail-settings-container .treeview .list-group-item {
    padding: 5px 5px;
}

#mail-settings-container .treeview .node-selected {
    color: white;
}

textarea.expandable {
    height: 34px;
    width: 400px;
    transition: height 0.8s;
}

textarea.expandable:focus {
    height: 120px;
}

/*****************/
/* settings/club */
/*****************/

#club-settings-container .content > .row,
#club-settings-container .content > .row > div {
    height: 100%;
}

#club-settings-container .table-fixedheader {
    margin-bottom: 0;
}

#club-settings-container td i.fa {
    cursor: pointer;
}

#ClubTable {
    cursor: pointer;
}

#ClubTable .club-selectable {
    width: 50px;
    text-align: center;
}

#ClubTable th.club-cc,
#ClubTable td.club-cc {
    width: 50px;
}

#ClubTable th.club-action,
#ClubTable td.club-action {
    width: 100px;
}

#ClubTable th.club-delete {
    width: 90px;
}

#ClubTable td.club-delete {
    width: 70px;
    text-align: center;
    cursor: pointer;
}

#club-settings-container .club-members-table-container .club-members-table-settings-menu:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

#club-settings-container .club-cc > a {
    margin: 0 10px;
}

#club-settings-container .club-logo {
    position: relative;
    cursor: pointer;
}

#club-settings-container .club-logo > button {
    display: none;
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 2px;
}

#club-settings-container .club-logo:hover > button {
    display: block;
}

#club-settings-container .club-logo > button:not([disabled]):hover {
    background-color: #ddd;
}

/*******************/
/* settings/player */
/*******************/
#player-settings-container .search-container {
    margin-bottom: 10px;
}

#player-settings-container .tab-content {
    margin-top: 10px;
    height: calc(100% - 50px);
}

#player-settings-container .tab-pane {
    height: 100%;
}

#player-settings-container .table td {
    cursor: pointer;
}

#player-settings-container .season-col {
    width: 100px;
}

#player-settings-container .cc-col {
    width: 50px;
    text-align: center;
}

#player-settings-container .date-col {
    width: 200px;
}

#player-settings-container .appointment-type-col {
    width: 200px;
}

#player-settings-container .association-col {
    width: 100px;
}

#player-settings-container .league-col {
    width: 300px;
}

#player-settings-container .passno-col {
    width: 100px;
}

#player-settings-container .match-no-col {
    width: 60px;
}

#player-settings-container .match-play-no-col {
    width: 60px;
}

#player-settings-container th.action-col,
#player-settings-container th.scoresheet-col {
    width: 120px;
}

#player-settings-container td.action-col,
#player-settings-container td.scoresheet-col {
    width: 100px;
}

#player-settings-container td.scoresheet-col a {
    color: #337ab7;
}

/*********************/
/* settings/sponsors */
/*********************/
menu-container .sponsors .tab-content {
    padding-top: 10px;
}

#sponsors-settings-variation-table tr {
    cursor: pointer;
}

.my-drop-zone {
    border: dotted 3px lightgray;
    border-radius: 4px;
    height: 200px;
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Default class applied to drop zones on over */
.nv-file-over {
    border: dotted 3px red;
}

/*
canvas {
  background-color: #f3f3f3;
  -webkit-box-shadow: 3px 3px 3px 0 #e3e3e3;
  -moz-box-shadow: 3px 3px 3px 0 #e3e3e3;
  box-shadow: 3px 3px 3px 0 #e3e3e3;
  border: 1px solid #c3c3c3;
  height: 100px;
  margin: 6px 0 0 6px;
}
*/
#lightgallery {
    line-height: normal;
}

#lightgallery > a {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 200px;
    margin: 0 4px 1px 0;
    overflow: hidden;
}

#lightgallery > a > img {
    transition: transform 0.15s ease 0s;
    transform: scale3d(1, 1, 1);
    height: 100%;
    width: 100%;
}

#lightgallery > a:hover > img {
    transform: scale3d(1.1, 1.1, 1.1);
}

#lightgallery > a .img-frame {
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background-color 0.15s ease 0s;
}

#lightgallery > a .img-frame > img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
}

#lightgallery > a:hover .img-frame {
    background-color: rgba(0, 0, 0, 0.5);
}

#lightgallery > a:hover .img-frame > img {
    opacity: 1;
}

#lightgallery > a .img-frame > button {
    width: 100%;
    position: absolute;
    bottom: 0;
    display: none;
}

#lightgallery > a:hover .img-frame > button {
    display: block;
}

/*********************/
/* settings/system   */
/*********************/
.system .tab-header {
    margin-right: 10px;
}

.system .tab-header .nav-item .nav-link {
    font-size: 1.2em;
}

.system .tab-content {
    position: absolute;
    top: 70px;
    bottom: 20px;
    left: 20px;
    right: 30px;
}

.system .tab-pane {
    height: 100%;
}

.result-label {
    position: absolute;
    top: 2px;
    right: 24px;
    font-size: 0.8em;
    background-color: #f5f5f5;
    padding: 6px;
    z-index: 1;
}

.red {
    color: red;
}

#system-messages-button {
    position: absolute;
    top: -12px;
    right: 0;
}

#system-threaddump-text {
    overflow-y: scroll;
}

#system-threaddump-button {
    position: absolute;
    top: 10px;
    right: 30px;
}

#system-endpoint-text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#system-backups-table > thead > tr,
#system-logfiles-table > thead > tr {
    cursor: default;
}

#system-backups-table > tbody > tr,
#system-logfiles-table > tbody > tr {
    cursor: pointer;
}

#system-backups-table tbody tr td i {
    margin-left: 5px;
    margin-right: 5px;
}

table.parameters td {
    padding: 4px;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    padding-left: 0;
    margin-right: .75rem;
}

.form-check-inline .form-check-input {
    position: static;
    margin-top: 0;
    margin-right: .3125rem;
    margin-left: 0;
}

.form-check-label {
    font-weight: normal;
    margin-bottom: 0;
}

.dropdown-menu.compact > li > a {
    padding: 3px 10px;
}

.dropdown-menu.compact > li > a > i {
    margin-right: 5px;
}

/**********************/
/* settings/smarthome */
/**********************/
#smarthome-container .result-label {
    background-color: white;
}

#smarthome-inactive {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: bold;
    color: red;
    min-width: 1000px;
}

#smarthome-smsalertdirs-table input[type='text'] {
    text-align: right;
    height: auto;
}

#smarthome-smsalertdirs-table tfoot td {
    border: none;
}

#smarthome-smsfiles-table tr,
#smarthome-smsalertdirs-table tr {
    cursor: pointer;
}

#smarthome-container .sidebar-header {
    display: flex;
    align-items: stretch;
}

#smarthome-container .sidebar-header .sidebar-header-searchcontrol {
    flex-grow: 1;
}

#smarthome-container .sidebar-header .sidebar-header-toolbar {
    flex: 0 0 190px;
    text-align: right;
}

#smarthome-container .treeview {
    overflow: hidden;
}

#smarthome-container .treeview ul {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#smarthome-container .treeview span.icon {
    width: 0;
    margin-right: 0;
}

#smarthome-container .treeview span.node-icon.glyphicon,
#smarthome-container .treeview span.expand-icon {
    width: 16px;
    margin-right: 5px;
}

#smarthome-container .treeview li span.badge {
    display: inline-block;
    position: absolute;
    right: 8px;
}

#smarthome-container .treeview-menu {
    display: none;
    margin-left: 10px;
    margin-right: 60px;
    float: right;
}

/*
#smarthome-container .treeview-menu.treeview-menu-folder {
  display: inline-block;
}
*/
#smarthome-container .treeview li:hover .treeview-menu {
    display: inline-block;
}

#smarthome-container .treeview li.node-selected:hover .treeview-menu {
    display: inline-block;
    color: white;
}

#smarthome-container .treeview-menu-icon {
    margin-left: 5px;
}

#smarthome-container .news-dir {
    color: #337ab7;
}

#smarthome-container .treeview-folder-change {
    margin-top: -4px;
}

#smarthome-container th.select,
#smarthome-container td.select {
    width: 80px;
    text-align: center;
}

#smarthome-container th.name,
#smarthome-container td.name {
    width: 200px;
}

#smarthome-container th.action {
    width: 65px;
}

#smarthome-container td.action {
    width: 50px;
    text-align: center;
    padding-top: 8px;
}

#smarthome-container td.text textarea {
    width: 100%;
}


#upload-file-control {
    display: none;
}

/***********************/
/* settings/livestream */
/***********************/
#livestream-table tr:hover {
    cursor: pointer;
}

#livestream-table th.c1,
#livestream-table td.c1 {
    width: 120px;
}

#livestream-table th.c3,
#livestream-table td.c3 {
    width: 210px;
}

.livestream-details .form-group {
    padding-left: 5px;
    padding-right: 5px;
}

.livestream .scoreboards td {
    vertical-align: top;
    padding-right: 10px;
}

.livestream .preview {
    position: relative;
    height: 320px;
}

.livestream .preview scoreboard-play {
    position: absolute;
    top: 10px;
    left: 10px;
}

.livestream .chatroom {
    display: none;
    font-size: 0.7em;
}

.livestream .chatroom.open {
    display: block;
}

.livestream chat .chat-message-body-heading h5 {
    margin: 0 0 2px 0;
}

.livestream chat .chat-users img,
.livestream chat .chat-message-body img {
    top: 5px;
    width: 30px;
    height: 30px;
}

.livestream chat .chat-user-body,
.livestream chat .chat-message-body {
    padding-left: 35px;
}

.livestream chat .chat-message-body p {
    margin: 0;
    padding: 0;
    line-height: 14px;
}

.livestream chat ul.chat-users li {
    height: 40px;
}

.livestream chat ul.chat-users li span {
    display: inline-block;
    line-height: 20px;
}

.livestream chat .button-link-container {
    top: 5px;
    left: 5px;
    height: 25px;
    line-height: 25px;
}

.livestream chat .button-link {
    width: 25px;
    height: 25px;
    line-height: 25px;
    padding-top: 1px;
}

#livestream-settings .btn {
    vertical-align: unset;
}

/*********************/
/* settings/youtube  */
/*********************/
#youtube-livebroadcasts-table .c2,
#youtube-livebroadcasts-table .c3,
#youtube-livebroadcasts-table .c4 {
    width: 160px;
}

/***********************/
/* settings/foursome   */
/***********************/
#foursome-team-table tr:hover {
    cursor: pointer;
}

#foursome-team-table .c3 {
    width: 60px;
    text-align: center;
}

.team-image-container {
    position: relative;
    height: 530px;
}

.team-image-container:hover {
    cursor: default;
}

.team-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 460px;
    height: 420px;
    border: 3px solid lightgray;
    border-radius: 4px;
    background-color: black;
    cursor: pointer;
}

.team-image > img {
    max-width: 400px;
    max-height: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*
      width: 100%;
      height: 100%;
      object-fit: contain;
    */
}

.team-image > button {
    width: calc(50% - 2px);
    position: absolute;
    display: none;
    bottom: 2px;
}

.team-image:hover > button {
    display: block;
}

.team-image > button:not([disabled]):hover {
    background-color: #ddd;
}

.team-image > button.remove {
    left: 1px;
}

.team-image > button.select {
    left: 50%;
}

/**********************/
/* settings/basicdata */
/**********************/
.basicdata .tab-header {
    margin-right: 10px;
}

.basicdata .tab-header .nav-item {
    font-size: 1.2em;
}

.basicdata .tab-content {
    position: absolute;
    top: 70px;
    bottom: 20px;
    left: 20px;
    right: 30px;
}

.basicdata .tab-pane {
    height: 100%;
}

.basicdata button.btn {
    margin-right: 10px;
}

.basicdata .table {
    margin-bottom: 0;
}

.basicdata i.fa:hover {
    cursor: pointer;
}
