﻿/*dnnLabel Override*/
.dnnLabel{ width: auto;text-align: left;}

/*

CHANGE LOG
------------------------------------------------------------------------------
[1] | 16/04/2012 | Task 1316 | Mark Smith |
Changes thoughout all pages to aid in applying OpenData markup


------------------------------------------------------------------------------

*/

.VotesPercentageColumn:after {
    Content:"%";
}

/*********************************************************/
/************ Changes to Global Styles *******************/
/*********************************************************/
.CMIS_ModuleWrapper .DNNLabel {
    float: left;
    clear: left;
    width: 14em;
}
.CMIS_ModuleWrapper .LabelWrapper {clear:both;}

/* ===================================== */
/* Module specific Styles                */
/* ===================================== */

.ElectionWrapper {}
.ElectionWrapper .RadGridWrapper { padding-top: 10px; padding-bottom: 10px; } 
.ElectionWrapper .PartyColour { border: 1px solid black; float: left; height: 15px; width: 15px; margin-right: 3px; }

.ElectionWrapper .Uncontested { font-style: italic; }
.ElectionWrapper div.OpenDataWarning { margin-top: 10px; }


/* ===================================== */
/* Page Specific Styles                  */
/* ===================================== */

/* ===================================== */
/* ViewElections.ascx                    */
/* ===================================== */
.ViewElections .ElectionsGrid .ImageLink {width: 1px; padding-left: 0px; padding-right: 0px; }
.ViewElections .ElectionsGrid .ViewWards {border-right: 0; }
.ViewElections .ElectionsGrid .ViewResults { border-left: 0;}

/* ===================================== */
/* ViewElectionsResults.ascx             */
/* ===================================== */
.ViewResults .ResultsGrid .Seats { border-right: 0;width: 4em; }
.ViewResults .ResultsGrid .SeatsChange { border-left: 0; }
.ViewResults .ResultsGrid .ChartColumn { border-right: 0;}
.ViewResults .ResultsGrid .PercentageChange { border-left: 0; }

.ViewResults .ResultsGrid .NumericField { text-align: right;padding-right: 1em; }
.ViewResults .ResultsGrid .ChangeField { width: 3em;font-style: italic;text-align: right; }


/* ===================================== */
/* ViewWards.ascx                        */
/* ===================================== */
.ViewWards .dnnLabel { width: 9em;}

.ViewWards .WardsGrid .ImageLink {width: 1px; padding-left: 0px; padding-right: 0px; }
.ViewWards .WardsGrid .ViewWard { white-space: nowrap; }
.ViewWards .WardsGrid .ViewCandidates {border-right: 0; }
.ViewWards .WardsGrid .Candidates { border-left: 0; }
.ViewWards .WardsGrid .Places { }
.ViewWards .WardsGrid .IsUncontested { font-style: italic;text-align: center;}
.ViewWards .WardsGrid .RegisteredVoters { }
.ViewWards .WardsGrid .BallotPapersIssued { }
.ViewWards .WardsGrid .VotesCast { }
.ViewWards .WardsGrid .SpoiltPapers { }
.ViewWards .WardsGrid .ViewResults { border-right: 0;}
.ViewWards .WardsGrid .Status { border-left: 0; }

.ViewWards .WardsGrid .FooterRow { font-style: italic; }
.ViewWards .WardsGrid .FooterTotal { text-align: right; }
.ViewWards .WardsGrid .NumericField { text-align: right;padding-right: 1em;}

/* ===================================== */
/* ViewCandidates.ascx                   */
/* ===================================== */
.ViewCandidates .CandidatesGrid .ElectedImage {width: 1px; padding-left: 0px; padding-right: 0px;  border-right: 0;}
.ViewCandidates .CandidatesGrid .Elected {border-left: 0;width: 3em;}


/* ===================================== */
/* EditElections.ascx                    */
/* ===================================== */
.EditElections .ElectionsGrid .ImageButton {width: 1px; padding-left: 0px; padding-right: 0px;}
.EditElections .ElectionsGrid td.EditElection:first-child,
.EditElections .ElectionsGrid th.EditElection { padding-left: 0px; padding-right: 0px; }

.EditElections .ElectionsGrid .ElectionDate { white-space: nowrap;}
.EditElections .ElectionsGrid .EditWards { border-right: 0;}
.EditElections .ElectionsGrid .Wards { border-left: 0;}

.EditElections .ElectionsGrid .NumericField { text-align: right;padding-right: 1em;}



/* ===================================== */
/* EditWards.ascx                        */
/* ===================================== */
.EditWards .WardsGrid .ImageButton {width: 1px; padding-left: 0px; padding-right: 0px;}
.EditWards .WardsGrid td.EditWard:first-child,
.EditWards .WardsGrid th.EditWard { padding-left: 0px; padding-right: 0px; }
.EditWards .WardsGrid .EditCandidates {border-right: 0;}
.EditWards .WardsGrid .NumCandidates {border-left: 0;}
.EditWards .WardsGrid .IsUncontested { font-style: italic;text-align: center;}

.EditWards .WardsGrid .FooterRow { font-style: italic; }
.EditWards .WardsGrid .FooterTotal { text-align: right; }
.EditWards .WardsGrid .NumericField { text-align: right;padding-right: 1em;}



/* ===================================== */
/* EditElectionCandidates.ascx           */
/* ===================================== */

.EditCandidates {}

.EditCandidates .CandidateName{width: 15em;}
.EditCandidates .Party{width: 20em;}
.EditCandidates .VoteCount{width: 5em;}

.EditCandidates .CandidatesGrid .ImageButton  {width: 1px; padding-left: 0px; padding-right: 0px;}
.EditCandidates .CandidatesGrid td.EditCandidate:first-child,
.EditCandidates .CandidatesGrid th.EditCandidate { padding-left: 0px; padding-right: 0px; }

.EditCandidates .CandidatesGrid .NumericColumn {padding-right: 1em;}

.EditCandidates .CandidatesGrid .Title {width: 130px;padding-right: 4px;}

.EditCandidates .CommandItemTemplate .Add
{
    background-image: url("../../images/add.gif");
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 24px;
    display: inline-block;
    height: 24px;
    line-height: 24px;
}

.EditCandidates .CommandItemTemplate .Edit
{
    background-image: url("images/edit_small.gif");
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 24px;
    display: inline-block;
    height: 24px;
    line-height: 24px;
}
.EditCandidates .CommandItemTemplate .Cancel
{
    background-image: url("../../images/cancel.gif");
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 24px;
    display: inline-block;
    height: 24px;
    line-height: 24px;
}
.EditCandidates .CommandItemTemplate .Update
{
    background-image: url("images/confirm_smaller.gif");
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 24px;
    display: inline-block;
    height: 24px;
    line-height: 24px;
}
