@import (reference) "../bootstrap/variables";
@import (reference) "../bootstrap/mixins/border-radius";

html, body {
  height: 100%;
}

.artif-table {
  display: table;
  width: 100%;
  height: 100%;
  .tr {
    display: table-row;
    .td {
      display: table-cell;
    }
  }
}

.flex-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  .flex-navbar {
    height: @navbar-height;
  }
  .flex-content {
    flex: 1;
    overflow-y: auto;
    height: ~"calc(100% - 50px)"; // Wanted to use variable but won't work.
  }
}

.page-title {
  margin-top: (@grid-gutter-width / 2);
  margin-bottom: (@grid-gutter-width / 2);
  padding: 0;
  h1, h2, h3, h3, h5 {
    margin-top: 0;
  }
}

.navbar-text.navbar-right {
  margin-right: 0;
}

.section-btm {
  .pagination {
    margin-top: 0;
  }
}

.flex-ddli {
  display: flex;
  flex-flow: column wrap;
  align-items: stretch;
  align-content: flex-start;
  padding: 0 (@grid-gutter-width / 2);
  height: 100%;
  .flex-header {
  }
  .flex-content {
    flex: 1;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    align-content: flex-start;
    .flex-col-1 {
      width: 20%;
      align-self: stretch;
      margin-right: (@grid-gutter-width / 2);
      margin-bottom: (@grid-gutter-width / 2);
    }
    .flex-col-2 {
      flex: 2;
      overflow-y: auto;
      align-self: stretch;
      margin-bottom: (@grid-gutter-width / 2);
    }
    .flex-col-30p {
      width: 30%;
    }
    .flex-col-50p {
      width: 50%;
    }
    .flex-col-70p {
      width: 70%;
    }
    .flex-col-100p {
      width: 100%;
    }
    .panel {
      display: flex;
      flex-flow: column wrap;
      align-items: stretch;
      margin-bottom: 0;
      .panel-heading {
        .btn-xs {
          margin-top: 7px;
        }
      }
      .list-group {
        overflow: auto;
        height: 100%;
        li:last-of-type {
          border-bottom: 1px solid @list-group-border;
          .border-bottom-radius(0);
        }
      }
    }
  }
}


.growl-container .alert-dismissable .close {
  right: 0;
}

ul[dnd-list], ul[dnd-list] > li {
  position: relative;
}

ul[dnd-list] .dndPlaceholder {
  display: block;
}
ul[dnd-list] .dndDraggingSource {
  display: none;
}

.team-container {
  padding: 0;
  margin: 0;
  display: block;
  height: 62px;
  line-height: 62px;
  &-home {
    background: transparent url('../img/bg-square-home.png') center center no-repeat;
  }
  &-away {
    background: transparent url('../img/bg-square-away.png') center center no-repeat;
  }
  .team {
    display: block;
    position: relative;
    text-align: center;
    padding: 0;
    list-style-type: none;
    height: 62px;
    line-height: 62px;
    color: #fff;
    text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    &-home {
      background: transparent url('../img/bg-square-home.png') center center no-repeat;
    }
    &-away {
      background: transparent url('../img/bg-square-away.png') center center no-repeat;
    }
    .bet {
      display: block;
      position: absolute;
      top: 5px;
      right: 5px;
    }
  }
  .dndPlaceholder {
    display: block;
    background-color: #eee;
    height: 62px;
    line-height: 62px;
    text-align: center;
  }
}

.flex-ddli .flex-content .panel .list-group .team-container li:last-of-type {
  border-bottom: 0 none;
}

.matches-reallife {
  .dndPlaceholder {
    display: block;
  }
  .dndDraggingSource {
    display: block;
  }
}

.scores-form {
  .panel {
    .panel-body {
      padding-left: 0;
      padding-right: 0;
      .form-group {
        margin-bottom: 0;
      }
    }
  }
}

.modal .modal-dialog.modal-wide {
  width: 90%;
}