*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 99.9%;
    position: relative;
    font-family: 'Inter UI', Avenir, Arial, Helvetica, sans-serif;
    font-size: 14px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

body > form {
    position: relative;
    min-height: 100%;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin: 0;
    line-height: 1.1;
}

[disabled] {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

a {
    text-decoration: none;
}

.mb {
    margin-bottom: 24px;
}

strong,
.strong {
    font-weight: 500;
}

table {
    width: 100%;
}

/**
 * Tables
 */

tr {
    border-bottom: 1px solid #f2f2f2;
}
td,
th {
    vertical-align: top;
    padding: 16px 8px;
}

td:first-child,
th:first-child {
    padding-left: 0;
}
td:last-child,
th:last-child {
    padding-right: 0;
}

th {
    text-align: left;
}

.v-top td {
    vertical-align: top;
}

/**
 * Form Elements
 */
select,
input[type='text'],
input[type='number'],
input[type='password'],
.field-group .text {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
}
select {
    padding-right: 24px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    background: #fff url(../images/select-arrow.png) no-repeat center right 8px;
    background-size: 9px;
}

label {
    color: rgba(0, 0, 0, 0.5);
}

fieldset {
    border: 1px solid #eee;
    background: #fdfdfd;
    padding: 24px;
    margin-bottom: 24px;
}

legend {
    font-weight: 600;
}

/**
 * Data display
 */

.field-group .text,
.field-group input[type='number'],
.field-group select {
    /* see form elements for base styles */
    margin-bottom: 16px;
    min-height: 36px;
}
.field-group label {
    display: block;
    padding: 10px 0;
}

.field-group::after {
    clear: both;
    display: block;
    content: ' ';
}
.field-group label span {
    display: inline-block;
    color: #000;
}

.field:before,
.field:after {
    content: ' ';
    display: table;
}

.field:after {
    clear: both;
}

.field.date input[type='text'] {
    width: 140px;
    display: inline-block;
    float: none;
    margin-left: 10px;
}
.field.date img {
    margin-left: 4px;
    display: inline-block;
}

@media screen and (min-width: 900px) {
    .field-group label {
        float: left;
        margin-bottom: 16px;
        text-align: right;
        width: 30%;
    }
    .field-group .text,
    .field-group input[type='number'],
    .field-group select {
        display: block;
        width: calc(70% - 10px);
        float: right;
    }
    .field-group label span,
    .field-group label input[type='checkbox'] {
        float: right;
        margin-right: -3.5em;
    }
}
.fields--narrow .field-group {
    position: relative;
    width: 100px;
}
.fields--first-innings .field-group {
    width:80px;
}
.fields--narrow .field-group .text {
    width:100%;
}
.fields--narrow .field-group input {
    width: 100%;
}
.fields--narrow label {
    width:100%;
    text-align: left;
    position: absolute;
    top:34px;
}
.fields--narrow .label--title {
    top:0px;
    position: relative;
    width: auto;
}
.field--checkbox label {
    top:0px;
}
    .field--checkbox label span {
        margin-right:0;
    }
    .field--checkbox label input[type=checkbox] {
        width: auto;
    }
/**
 * Buttons
 */

.button {
    border: 0;
    border-radius: 2px;
    display: inline-block;
    font-size: 14px;
    line-height: 16px;
    padding: 12px 16px;
}

.button-primary {
    padding: 16px 24px;
}

.button-group:last-child::after {
    display: block;
    content: '';
    clear: both;
}

.button-group .button-left {
    float: left;
    margin-right: 8px;
}

.button-group .button-right {
    float: right;
    margin-left: 8px;
}

.button-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* Clearfix */
.cf:before,
.cf:after {
    content: ' ';
    display: table;
}
.cf:after {
    clear: both;
}

.ui-list {
    list-style-type: none;
}

#wrapper {
    margin: 0;
    position: relative;
    min-height: 100%;
}

.nav_toggle {
    background: none;
    border: 0;
    display: inline-block;
    font-size: 36px;
    line-height: 64px;
    height: 64px;
    color: #fff;
    margin: 0 1em;
    vertical-align: middle;
}
@media screen and (min-width: 900px) {
    .nav_toggle {
        display: none;
    }
}

.header {
    background: #000;
    text-align: right;
    white-space: nowrap;
}
.header__inner {
    max-width: 1680px;
    margin: 0 auto;
    position: relative;
}

.header__logo {
    display: block;
    float: left;
    margin: 10px 16px;
}

.header__logo img {
    width: auto;
    height: 44px;
}

/* Mobile/Base Nav */

.header_nav__list {
    list-style-type: none;
}

.header_nav__link {
    color: rgba(255, 255, 255, 0.75);
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    transition: color 0.15s ease;
}

@media screen and (max-width: 939px) {
    .header_nav {
        position: fixed;
        top: 64px;
        right: 0;
        width: 100%;
        max-width: 280px;
        bottom: 0;
        overflow-y: auto;
        z-index: 999;
        text-align: left;
        padding: 20px;
        transform: translateX(100%);
    }
    .header_nav__item {
        margin-bottom: 0.25em;
    }
    .header_nav__link {
        padding: 0.5em 1em;
    }
    .header_nav__item--more > .header_nav__link,
    .header_nav__item--settings > .header_nav__link,
    .header__user_button {
        display: none !important;
    }
    .header_nav--open {
        transform: translateY(0);
    }
}

/* Desktop Nav */
.header_nav__link:hover,
.header_nav__link:focus {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.header_user {
    display: inline-block;
    vertical-align: top;
    position: relative;
}

.has_subnav {
    position: relative;
}

.header__user_button {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    text-align: center;
    padding-top: 18px;
    font-size: 24px;
    color: #fff;
}

@media screen and (min-width: 940px) {
    .header_nav {
        display: inline-block;
        line-height: 64px;
    }

    .header_nav__list {
        display: inline-block;
        vertical-align: top;
    }

    .header_nav__item {
        display: inline-block;
        vertical-align: top;
        margin-right: 2em;
    }

    .header_nav__item--more .header_nav__link {
        padding-left: 2em;
        padding-right: 1em;
    }

    .subnav__item .header_nav__link {
        padding-left: 0;
        padding-right: 0;
    }

    .header_nav__item--settings {
        margin-right: 0.25em;
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 18px;
        font-size: 24px;
        line-height: 0;
        height: 64px;
    }

    .subnav {
        background: #000;
        box-shadow: rgba(255, 255, 255, 0.1) 0 1px 0 inset;
        display: none;
        font-size: 14px;
        line-height: 20px;
        min-width: 240px;
        padding: 16px 24px;
        position: absolute;
        right: 0;
        text-align: left;
        top: 100%;
        z-index: 500;
    }

    .has_subnav:hover .subnav {
        display: block;
    }

    .subnav__item {
        display: block;
        padding: 8px 0;
    }
}

#content {
    max-width: 1680px;
    margin: 0 auto;
}

#copy {
    position: relative;
}

#iframe {
    border: none;
    height: 100%;
    width: 100%;
}

#confirm {
    display: none;
}

.masthead {
    background: rgba(0, 0, 0, 0.04);
    padding: 24px 16px 16px 16px;
    margin-bottom: 24px;
}

.masthead__backlink {
    float: left;
}

.masthead__heading {
    display: inline-block;
    font-size: 32px;
    font-weight: 500;
    margin-top: 0.5em;
}

.page-actions {
    display: inline-block;
    float: right;
    vertical-align: bottom;
}

.form_actions {
    list-style-type: none;
}
.form_actions li {
    display: inline-block;
    vertical-align: middle;
    margin: 0 16px;
}

.page-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 48px;
}

@media screen and (min-width: 900px) {
    .page-content-column {
        float: left;
        width: 50%;
        padding-right: 12px;
        margin-bottom: 24px;
    }
}

/* Page Description */
.page-description {
    background: rgba(0, 0, 0, 0.1);
    padding: 1em;
    margin: 1em 0;
}

/* Overlay */
#confirm-overlay {
    background-color: #eee;
    cursor: wait;
}

/* Container */
#confirm-container {
    height: 100px;
    width: 420px;
    text-align: left;
    background: #fff;
    border: 2px solid #336699;
}
#confirm-container .header {
    height: 0px;
    line-height: 30px;
    width: 100%;
    background: url(../img/confirm/header.gif) repeat-x;
    color: #fff;
    font-weight: bold;
}
#confirm-container .header span {
    padding-left: 8px;
}
#confirm-container .message {
    color: #333;
    font-size: 14px;
    margin: 0;
    padding: 12px 4px 12px 8px;
    font-size: large;
}
#confirm-container .buttons {
    line-height: 26px;
    width: 160px;
    float: right;
    padding: 10px 8px 0;
}
#confirm-container .buttons div {
    float: right;
    margin-left: 4px;
    width: 70px;
    height: 26px;
    color: #666;
    font-weight: bold;
    text-align: center;
    background: #f0f0f0;
    border: 1px solid #bbb;
    cursor: pointer;
}
#confirm-container a.modal-close,
#confirm-container a.modal-close:link,
#confirm-container a.modal-close:active,
#confirm-container a.modal-close:visited {
    text-decoration: none;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 2px;
    color: #fff;
}
#confirm-container a.modal-close:hover {
    color: #ccc;
}

/* MENU */
#navbar_wrapper {
    min-height: 0;
}

#menu-accordion h3 {
    list-style: none;
    padding: 10px 10px 10px 40px;
    font-size: small;
    font-weight: normal;
    position: relative;
    line-height: 20px;
}

#menu-accordion h3:hover {
}

#menu-accordion h3.selected {
    background: #eef7fc;
    border: 1px solid #5bb4e5;
}

#menu-accordion .tree {
    padding-bottom: 3em;
    overflow: auto;
    overflow-x: hidden !important;
}

/* Hack in order to provide backwards compatibility */
#menu-accordion h3 span {
    display: block;
    height: 20px;
    width: 20px;
    position: absolute;
    top: 10px;
    left: 10px;
}

#menu-accordion h3.top_folder-gif span {
    background-image: url('./menu-icons/folder.png');
}

#menu-accordion h3.top_notes-gif span {
    background-image: url('./menu-icons/top-notes.png');
    display: inline-block;
}

#menu-accordion h3.top_tasks-gif span {
    background-image: url('./menu-icons/tasks.png');
    display: inline-block;
}

#jqContextMenu li {
    font-family: Arial, Helvetica, Sans-Serif;
    font-size: 12px;
}

#sortable {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

#sortable li {
    margin: 0 0 5px;
    padding: 8px;
    list-style: none;
    position: relative;
}

#sortable li span {
    position: absolute;
    right: 5px;
    top: 8px;
}

#expand-menu {
    width: 2px;
    height: 100%;
    position: absolute;
    left: 230px;
    z-index: 1000;
    top: 0;
    margin: 0;
}

/* Reorder menu */
#sortable span.menu-link {
    background: url('/_structure/new-menu/css/dialog-icons/icon_link.gif') no-repeat 0 0;
}

#sortable span.document {
    background: url('/_structure/new-menu/css/dialog-icons/page_text.gif') no-repeat 0 0;
}

#sortable span.section {
    background: url('/_structure/new-menu/css/dialog-icons/folder_page.gif') no-repeat 0 0;
}

/* Input dialog */
.nv-dialog label {
    display: block;
    padding: 15px 0 5px 0;
    font-weight: bold;
}

.nv-dialog input[type='text'] {
    width: 400px;
    height: 25px;
}

#overlay {
    z-index: 1000;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fafafa;
    display: none;
}

/**
 * Loading Indicator
 */
.loader {
    position: absolute;
    width: 50px;
    height: 50px;
    overflow: hidden;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.loader > div {
    position: absolute;
    border-width: 0;
    border-radius: 100%;
    -webkit-animation: spin-rotate 0.6s 0s infinite linear;
    animation: spin-rotate 0.6s 0s infinite linear;
    background-image: linear-gradient(transparent 0, transparent 55%, #ccc 55%, #ccc 100%);
    width: 100%;
    height: 100%;
}

@-webkit-keyframes spin-rotate {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spin-rotate {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/**
 * Filters Panel
 */
.filters {
    background: #f6f6f6;
    border: 0;
    padding: 16px;
}

.filters legend {
    font-size: 14px;
}
.filters select,
.filters input[type='text'],
.filters input[type='search'] {
    display: block;
    margin-bottom: 16px;
}
.filters select,
.filters input[type='text'],
.filters label,
.filters input[type='search'] {
    display: block;
}
.filters label {
    margin-bottom: 8px;
}

.filters .date input[type='text'] {
    margin-left: 0;
}

.page_recent {
    margin: 24px 0 36px 0;
}

.page_filterable {
    overflow-x: auto;
}

@media screen and (min-width: 900px) {
    .page_filters {
        float: left;
        width: 240px;
    }
    .page_filterable {
        float: left;
        width: calc(100% - 240px);
        padding-left: 24px;
    }
}

/**
 * Pagination
 */

.pagination {
    line-height: 28px;
    margin: 48px 0;
    text-align: center;
}

.pagination__buttons {
    text-align: center;
}

.pagination__description {
    color: #888;
    margin-bottom: 12px;
}
.pagination__description strong {
    color: #000;
    font-weight: 500;
}

.pagination__pages {
    white-space: nowrap;
    width: auto;
    margin: 0 2em;
}

.pagination__pages span span {
    display: inline-block;
    margin: 0 0.25em;
}

.pagination__pages a {
    background: rgba(0, 0, 0, 0.03);
    color: #444;
    display: inline-block;
    min-width: 2em;
    padding: 4px;
    line-height: 20px;
    text-align: center;
    font-size: 14px;
    transition: background 0.1s ease, color 0.1s ease;
}

.pagination__pages a.selected {
    background: #000;
    color: #fff;
}

.pagination__pages a:not(.selected):hover {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
}

@media screen and (min-width: 1200px) {
    .pagination__description {
        float: left;
        width: 30%;
    }
    .pagination__buttons {
        float: left;
        width: 70%;
    }
}

/**
 * Auth Form
 */

.auth #copy {
    position: relative;
    min-height: 80vh;
}

.nvp_wrap {
    margin-top: 48px;
}

@media screen and (min-width: 600px) {
    .nvp {
        position: fixed;
        bottom: 30px;
        left: 30px;
    }
    .auth .page-content {
        padding-top: 10vh;
    }
}

.auth .page-content {
    margin-top: 40px;
}

.auth_logo {
    margin: 0 auto;
    width: 228px;
}
.auth_title {
    color: #fff;
    font-size: 22px;
    margin: 22px 0 66px 0;
    text-align: center;
    font-weight: 400;
}

.auth_form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-field-group label {
    color: #fff;
    display: block;
    margin-bottom: 16px;
}

.auth-field-group input[type='text'],
.auth-field-group input[type='password'] {
    margin-bottom: 32px;
}

.auth-field-group input[type='checkbox'] {
    display: inline-block;
    float: left;
    margin-right: 1em;
    transform: translateY(1px);
}

.auth-forgot {
    text-align: center;
    margin: 48px 0;
}

.payroll-table th {
    padding: 4px 0;
}

.payroll-table th:first-child {
    width: 50px;
}

.payroll-table td {
    padding: 0 4px;
}

.payroll-table input[type='checkbox'] {
    margin-top: 10px;
}

.payroll-table label {
    text-align: left;
    margin-bottom: 0px;
    padding: 4px 0;
    width: auto
}

.payroll-table label:empty {
    display: none;
}
.payroll-table label:empty + .text {
    width: 100%;
}

.user-roles-table td {
    padding: 0 4px;
}

.user-roles-table input[type='checkbox'] {
    margin-top: 12px;
}

.user-roles-table label {
    text-align: left;
}

.user-roles-table label:empty {
    display: none;
}

.user-roles-table label:empty + .text {
    width: 100%;
}

.team-current-squad-table.datagrid {
    min-width: auto;
}

.team-current-squad-table td {
  padding: 0 4px;
}

  .team-current-squad-table:not(.datagrid) td:first-of-type {
    padding: 10px 4px;
  }

.team-current-squad-table label {
  text-align: left;
}

  .team-current-squad-table label:empty {
    display: none;
  }

    .team-current-squad-table label:empty + .text {
      width: 100%;
    }

.profile-table td:first-child {
  width: 30%;
}

.profile-table td:last-child div:first-child {
    display: flex;
}

.profile-table .profile-remove {
    margin: auto 0 auto auto;
}

.profile-competition-table {
}

  .profile-competition-table td {
    padding: 8px;
  }

    .profile-competition-table td:first-child {
      padding-left: 0;
      width: 35%;
    }

    .profile-competition-table td:last-child {
      padding-right: 0;
      width: 65%;
    }

/**
 * Utilities
 */
.text-right {
  text-align: right;
}

table.table {
    font-family: "Arial Black", Gadget, sans-serif;
    border: 1px solid #000000;
    background-color: #EEEEEE;
    width: 100%;
    text-align: left;
}
table.table td, table.table th {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;
}
table.table tbody td {
    font-size: 11px;
}
table.table thead {
    background: #FFFFFF;
    background: -moz-linear-gradient(top, #ffffff 0%, #ffffff 66%, #FFFFFF 100%);
    background: -webkit-linear-gradient(top, #ffffff 0%, #ffffff 66%, #FFFFFF 100%);
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 66%, #FFFFFF 100%);
    border-bottom: 2px solid #444444;
}
table.table thead th {
    font-size: 13px;
    font-weight: bold;
    color: #000000;
}
table.table tfoot td {
    font-size: 14px;
}
table.table tfoot .links {
    text-align: right;
}
table.table tfoot .links a{
    display: inline-block;
    background: #1C6EA4;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 5px;
}

/**
 * Team Colour
 */
.team-colour-display {
    width: 50px;
    height: 20px;
    float: left;
    margin-right: 10px;
}

.error {
    color: red;
}

/* ASP.NET Validation */

.validation-summary-errors {
  margin-bottom: 32px;
}

.validation-summary-errors ul li {
  display: block;
  text-align: center;
  color: #dc2626
}

/* Tenant Context */

.tenant-context {
  padding: 10px
}

.tenant-context .tenant-id {
  color: rgba(0, 0, 0, 0.5);
}

.tenant-context .change-tenant {
  padding-left: 8px
}
