﻿/* ------- modify jQuery theme ---------- */
.link
{
    text-decoration:underline;
}
.link, .link *
{
    color: #2E6E9E;
    cursor:pointer;
}
.link:hover, .ui-state-hover a.link:hover
{
    color: #E17009;
}
.link.act
{
    color:#AC0000;
}
.ui-button-text-only, .ui-button-text, .ui-button, .ui-state-hover, .ui-state-active
{
    font-weight: normal;
}
.ui-buttonset
{
    margin-bottom:7px;
}
th, th.ui-state-hover, th.ui-state-active
{
    font-weight: bold;
}
.ui-widget 
{
    font-size:1em;
}
.active
{
    border: 1px solid #79b7e7; background: #f5f8f9 url(/core/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #e17009;
}
.selected
{
    border: 1px solid #79b7e7; background: #f5f8f9 url(/core/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png) 50% 50% repeat-x;
}
.selected .ui-icon
{
    background-image: url(images/ui-icons_f9bd01_256x240.png);
}
.alt-bg, .table td.alt-bg, .table th.alt-bg
{
    background-color: #E5F0F9;
}
.alt-border
{
    border: solid 1px #DDECF7;
}
.alt-fg
{
    font-weight:bolder;
}
.faded
{
    color: #999;
}
.text-danger {
    color: #cd0a0a;
}
.text-warn {
    color: #E17009;
}
.text-success {
    color: #149600;
}

/*---------- master ------------*/

h1, h2
{
    font-weight:500;
}

.button.back
{
    float:left;
    width:1.8em;
    height:1.8em;
    margin-right:0.5em;
}

.button.delete
{
    width:1.5em;
    height:1.5em;
    vertical-align:middle;
}

.button.cute
{
    width:1.5em;
    height:1.5em;
    vertical-align:middle;
}

.buttonset
{
    white-space:nowrap;
}

.collapse {
    position: relative;
}
.collapse-right {
    float:right;
}
.collapse > .button {
    display: none;
}
.collapse > .buttonset {
    display: inline-block;
}
@media screen and (max-width: 800px) {
    .collapse > .button {
        display: inline-block;
        margin:0;
        z-index:10000
    }
    .collapse > .button .ui-button-text {
        padding: .4em .6em;
    }
    .collapse > .buttonset {
        display: none;
        position: absolute;
        left:0;
        margin: 0;
    }
    .collapse-right > .buttonset {
        right:0;
        left:auto;
    }
    .collapse > .buttonset.shown {
        display: inline-block;
        z-index:10010;
    }
    .collapse > .buttonset {
        border: 1px solid #c5dbec;
        border-radius: 5px;
        background: #fff;
    }
    .collapse > .buttonset > a {
        display: block;
        border-radius: 0;
        background: none;
        border: none;
    }
    .collapse > .buttonset > a:hover {
        text-decoration:underline !important;
    }
}

/*------------ inputs not in forms ----------------*/
.input {
    display: inline-block;
    color: #000;
    font: inherit;
    border-style: solid;
    border-width: 1px;
    border-color: #ccc;
    background-color: #FDF7D1;
    padding: 0.2em 0.5em;
}
.input input, .input select, .imput textarea, .input .table
{
    color: inherit;
    font: inherit;
    background-color: #FDF7D1;  /* IE does not inherit background properly */
    border-width: 0px;
    margin: 0px;
    padding:0px;    
}
.input.readonly input
{
    background-color: inherit;
}
.input.error,
.input.error input, .input.error select, .input.error textarea
{
    border-color: #CD0A0A;
    background-color: #FEF1EC;
}

/*------------ forms ----------------*/
.form
{
    max-width:20em;
    margin:auto;
    padding-right:1em; /* makes up for margin on inputs */
}
.form .field
{
    margin: .6em 0em;    
}
.form .field label
{
    width: 100%;
    display: block;
    margin-right: 1em;
    text-align: left;
    vertical-align: middle;    
}
.form .field .ddfilter {
    float:right;
    margin-right:-1em;
}
.form .field .ddfilter input {
    width: auto;
}
.form .field .input
{
    color:#000;
    font: inherit;
    width: 100%;
    border-style: solid;
    border-width: 1px;
    border-color: #ccc;
    background-color: #FDF7D1;
    padding: 0.2em 0.5em;     
}
.form .field input, .form .field select, .form .field textarea, .form .table
{
    color: inherit;
    font: inherit;
    background-color: #FDF7D1;  /* IE does not inherit background properly */
    width:100%;
    border-width: 0px;
    margin: 0px;
    padding:0px;
}
.form .field .ui-datepicker 
{
    color: inherit;
    font: inherit;
    background-color: #FDF7D1;
    background-image: none;
    border-color: #ccc;
}
.form .input.readonly, .form .input.readonly input, .form .input.readonly select
{
    background-color: inherit;
}

.form .input.error,
.form .input.error input, .form .input.error select, .form .input.error textarea, .input.error .table /* for IE */
{
    border-color: #CD0A0A;
    background-color: #FEF1EC;
}
.form .input.error.ui-state-error
{
    color: #CD0A0A;
}


/* ------- iconed message box ---------- */
.form .input.iconed, .iconed, .padded.iconed
{ position:relative; padding:6px; }
.form .input.iconed div, .iconed, .padded.iconed div
{ padding-left:28px; }
.form .input.iconed .ui-icon, .iconed .ui-icon
{ margin:0.5em; position:absolute; left:0px; top:0px; }
.iconed .heading 
{ font-weight:bold; padding-right:18px; }
.form .input.iconed .ui-icon.ui-icon-close, .iconed .ui-icon.ui-icon-close 
{ margin:2px; position:absolute; left:auto; right:0px; top:0px; }


/*----------- modal dialog --------------*/
.modal { text-align:center; }
.ui-dialog-titlebar { display:none; }
.ui-widget-overlay { opacity: 0.6; filter:Alpha(Opacity=60);}

/*----------- data tables --------------*/
.table
{
    margin:auto;
    border-collapse:collapse;
    border-spacing:0px;
}
.table td, .table th
{
    padding: .3em .3em .3em 1em;
    text-align: center;
}
.table td
{
   /* border: none;*/
}
.table th
{
    /*border-bottom: solid 1px #79B7E7;*/
    text-align:left;
    vertical-align:bottom;
}
.table td:first-child, .table th:first-child
{
    padding-left: .3em;
    text-align:left;
}
.table .button
{
    margin-left: .2em;
}
.table .button .ui-button-text-only, .table .button .ui-button-text
{
    padding: .05em .5em;
    font-weight: normal;
}
.table .spacer
{
}
.table.left-aligned td, .table.left-aligned th
{
    text-align:left;
}
.table.right-aligned td
{
    text-align:right;
}
.table.center-aligned td, .table.center-aligned th {
    text-align: center;
}
.table tr
{
    background-color: #eee;
}
.table tr.alt-row, .table th
{
    background-color: #fff;
}
.table tr.ui-state-hover, .table tr.ui-state-active
{
    border-width:0px;
}
.table .td.rotate, .table th.rotate
{
    overflow:visible;
    height:6em;
    padding:0px;
    margin:0px;
}
.table .td.rotate > div, .table th.rotate >div
{
    width:3em;
    height:3em;
    overflow:visible;
    transform:rotate(-70deg);
    -ms-transform:rotate(-70deg); /* IE 9 */
    -moz-transform:rotate(-70deg); /* Firefox */
    -webkit-transform:rotate(-70deg); /* Safari and Chrome */
    -o-transform:rotate(-70deg); /* Opera */
}
.table .td.rotate > div > div, .table th.rotate > div > div
{
    position:relative;
    top:1em;
    left:.5em;
    overflow:visible;
}
.table td.warning
{
    background-color:#FEF1EC;
    color: #CD0A0A;
}
.table td.warning .ui-icon-alert
{
    display:inline-block; vertical-align:middle;
}
.table td.warning .ui-icon
{
    background-image: url(/core/css/redmond/images/ui-icons_cd0a0a_256x240.png);
}



/*----------- data tables in feature style --------------*/
.table.feature td { border-top: solid 1px #CCC; padding: .5em .5em .5em 0em; cursor: pointer; }
.table.feature { border-bottom: solid 1px #CCC; }
.table.feature tr { background-color:inherit; }
/*.table.feature tr.ui-state-hover { background-color:inherit; background-image:none; }*/
/*.table.feature tr.ui-state-hover td { color:#E17009; }*/

/*------------ Fixture Matrix ------------*/
.full-width .matrix
{
    display:inline-block;
    margin: 1em;
}
.seasons-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    grid-gap: 30px;
}
.part-season {
    text-align: center;
    display: inline-block;
    letter-spacing: normal;
    page-break-inside: avoid;
    break-inside: avoid;    
}
@media print {
    /* the break avoidance above has no effect so use this instead*/
    .seasons-container {
        display: block;
    }
    .part-season {
        margin: 10px;
    }
}
.part-season h2
{
    margin:1em 0 0 0;
}
.part-season .matrix {
    margin: .2em 0em 0em 0em;
}
.matrix
{
    border-collapse: collapse;
    border-spacing: 0px;
    margin:1em auto;
}
.matrix td
{
    padding:0em;
    text-align:center;
    overflow:hidden;
    border:none;
    width:3em;
    height:3em;
}
.matrix td.fixture
{
    border: solid 1px #C5DBEC;
}
.matrix td.fixture a 
{
    display:table-cell;
    vertical-align:middle;
    width:3em;
    height:3em;
    color:#403333;
    text-decoration:none;
}
.matrix td.fixture.unapproved, .matrix td.fixture.late
{
    color: #AC0000;
    background-color: #FEF1EC;
}
.matrix td.fixture
{
    border: solid 1px #C5DBEC;
}

.matrix .home {
    position:absolute;
    left:.5em;
    bottom:0em;
}
.matrix .away {
    position:absolute;
    right:-.6em;
    top:.6em;
    transform:rotate(-90deg);
    -ms-transform:rotate(-90deg); /* IE 9 */
    -moz-transform:rotate(-90deg); /* Firefox */
    -webkit-transform:rotate(-90deg); /* Safari and Chrome */
    -o-transform:rotate(-90deg); /* Opera */
}
.matrix .teamname
{
    overflow:visible;
    text-align:left;
    /*font-size:smaller;*/
}
.matrix .teamname .teamtext
{
    display:table-cell;
    padding:0.3em 0.5em;
    border: 1px solid transparent;
    text-decoration:none;
    color:#403333;
}
.matrix .teamname .teamtext.ui-state-hover
{
    border: 1px solid #79b7e7;
    color:#1D5987;
}
.matrix .teamname .teamtext.fixture-hover
{
    border: solid 1px #C5DBEC;
}
.matrix .alt, .matrix .teamname .teamtext.alt
{
    color:#4297D7;
}

.matrix tr:first-child .teamname
{
    height:2.5em;
    width:3em;
    transform:rotate(-70deg);
    -ms-transform:rotate(-70deg); /* IE 9 */
    -moz-transform:rotate(-70deg); /* Firefox */
    -webkit-transform:rotate(-70deg); /* Safari and Chrome */
    -o-transform:rotate(-70deg); /* Opera */
}
.matrix tr:first-child td
{
    height:3em;
    overflow:visible;
    vertical-align:bottom;
    padding-bottom:0.5em;
}

#fixture-tt-box.tip-box .tip table { border-spacing:0px; border-collapse:collapse; margin:auto; text-align:center; margin:auto; }
#fixture-tt-box.tip-box .tip div { text-align:center; margin: 0em auto 0.5em auto; }
#fixture-tt-box.tip-box .tip th { white-space:nowrap; padding: .2em .3em; text-align:center; }
#fixture-tt-box.tip-box .tip td { padding: 0em .3em; white-space:nowrap; text-align:center; }
#fixture-tt-box.tip-box p { margin-top: 1em; margin-bottom: 0em; text-align:center; }
#fixture-tt-box.tip-box p.title { margin-top: 0em; margin-bottom:1em; }
#fixture-tt-box.tip-box .tip .ui-datepicker-calendar td { padding: 0em 0em; }


/* Plugin: tooltip */
.tip-box { display:none; width:auto; height:auto; padding:1em; background:url(/core/css/transback.png); }
.tip-box .tip { background-color: #fff; border: solid 1px #C5DBEC; padding:1em; }
.tip-box .tip h3 { margin:0em 0em 0.5em 0em; }
.help-box { background: #fffad8; border: 1px solid #CCC; padding: 1em 1.4em; margin:1em 1em 1.5em 1em; display:none; }

/* Plugin: checkbox */
.checkbox { display:inline-block; border:solid 1px #ccc; background-color:#fff; vertical-align:text-bottom; margin-right:.3em; }
.checkbox.ui-icon { display:inline-block; }
.checkbox.ui-icon-none { background-image: none; }