﻿/* ------- modify jQuery theme ---------- */
.link, a
{
    text-decoration:none;
}
.link, a, .link *
{
    color: #2E6E9E;
    cursor:pointer;
}
.link:hover, .ui-state-hover a.link:hover
{
    color: #E17009;
}
.ui-button-text-only, .ui-button-text, .ui-button, .ui-state-hover, .ui-state-active
{
    font-weight: normal;
}
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;
}

/*---------- master ------------*/

h1, h2
{
    font-weight:500;
}

.button.back
{
    float:left;
    width:1.8em;
    height:1.8em;
    margin-right:0.5em;
}

.button.delete, .button.open
{
    width:1.5em;
    height:1.5em;
    vertical-align:middle;
}

.buttonset
{
    margin-left:1em;
}

/*------------ 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 .input
{
    color:#555;
    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 .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;
}
.table input.disabled, .table select.disabled
{
    background-color: #eee;
}

/* ------- iconed message box ---------- */
.form .input.iconed, .iconed, .padded.iconed
{
        position:relative;
}
.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;
}
.padded.iconed .ui-icon
{
    margin:0.7em 0.5em;
}


/*----------- 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;
}
.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.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;
}

/*------------ Fixture Matrix ------------*/
.full-width .matrix
{
    display:inline-block;
    margin: 1em;
    clear:both;
}
.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-bottom:0em;
}
.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:#232323;
    text-decoration:none;
}
.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:#232323;
}
.matrix .teamname .teamtext.ui-state-hover
{
    border: 1px solid #79b7e7;
    color:#1D5987;
}
.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;
}
.matrix .unapproved, .matrix .late
{
    background-color: #FEF1EC;
    color: #CD0A0A;
}

/* 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; }

/* Plugin: checkbox */
.check { display:inline-block; border:solid 1px #ccc; background-color:#fff; vertical-align:middle; }
.check.ui-icon-none { background-image: none; }