﻿/*-------------------- Baseline ---------------------*/
body
{
    font-family: Arial, Verdana;
    color: White;
    font-size: small;
    background-color: White;
    margin: 0;
    padding: 0;
}

a
{
    text-decoration: none;
    color: White;
}

a:hoverexport
{
    text-decoration: none;
    cursor: pointer;
    color: White;
}

a img
{
    border: none;
}

/*-------------------- Common ---------------------*/

.fontOverride
{
    font-family: Arial, Verdana;
    color: White;
    font-size: large;
}

.centerTrick1
{
    width: 100%;
    text-align: center;
}

/* For AspxButtons the method below works best */
.centerTrick2
{
    margin-left: auto;
    margin-right: auto;
}

.PreventWrapping
{
    white-space: nowrap;
}

#treeScrollPanel
{
    width: 300px;
    height: 550px;
    overflow: auto;
}

.clear
{
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;    
}

.fullWidth
{
    width: 100%;
}

/*-------------------- Main ---------------------*/

#siteWrapper
{
    margin-top: 10px;
    width: 980px;
    margin-left: auto;
    margin-right: auto;
}

#headerWrapper
{
    background: url(../Images/SiteHeader.png) no-repeat;
    height: 100px;
}

#headerMenuWrapper
{
    float: left;
    padding-top: 55px;
    padding-left: 5px;
}

#headerAdminWrapper
{
    float: right;
    padding-top: 10px;
    padding-right: 52px;
}

#headerActionsWrapper
{
    clear: right; /* NOTE: Needed because else it would flow next to adminwrappert */
    float: right;
    padding-right: 50px;
}

#mainWrapperFull
{
    float: left;
    width: 100%; /* Does not work icm a fixed width for mainWrapper1 */
}

#mainWrapper1
{
    float: left;
    width: 359px;
}

#mainWrapper2
{
    float: left;
    width: 610px;
}

#footerWrapper
{
    clear: both;
}

#errorReportWrapper
{
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    width: 660px;
    height: 610px;
    background: url(../Images/ErrorReport.png) no-repeat;
}

/*-------------------- Home ---------------------*/

#homeWrapper
{
    background: url(../Images/Home.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

#homeDetails
{
    margin-top: 20px;
    margin-left: 50px;
    height: 550px;
    width: 900px;
}

/*-------------------- Login ---------------------*/

#loginWrapper
{
    background: url(../Images/Login.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

#loginDetails
{
    margin-top: 20px;
    margin-left: 50px;
    height: 550px;
    width: 900px;
}

#loginByImageWrapper
{
    position: relative;
    left: 190px;
    top: 40px;
    width: 500px;
}

/*-------------------- Types ---------------------*/

#typesWrapper1
{
    background: url(../Images/CollectionTaxa.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

#typesWrapper2
{
    background: url(../Images/TaxonDetails.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

/*-------------------- Search ---------------------*/

#searchWrapper1
{
    background: url(../Images/SearchRelatedResults.png) no-repeat;
    height: 605px;
    margin-top: 5px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

#searchWrapper2
{
    background: url(../Images/TaxonDetails.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

/*-------------------- Taxon Details ---------------------*/

#taxonDetails
{
    margin-top: 12px;
    margin-left: 40px;
    height: 510px;
    width: 550px;
}

#taxonDetailsScrollPanel
{
    height: 500px;
    overflow: auto;
}

/*-------------------- Contact ---------------------*/

#contactWrapper
{
    background: url(../Images/Contact.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}
    
#contactForm
{
    float: left;
    padding-top: 47px;
    padding-left: 70px;
    width: 510px;
}

#contactDetails
{
    float: right;
    padding-top: 47px;
    padding-right: 60px;
    width: 300px;
}

/*-------------------- Taxon Administration ---------------------*/

#taxonAdminWrapper
{
    background: url(../Images/TaxonAdmin.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

/*-------------------- Site Administration ---------------------*/

#siteAdminWrapper
{
    background: url(../Images/SiteAdmin.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

/*-------------------- Taxon Reports ---------------------*/

#taxonReportWrapper
{
    background: url(../Images/TaxonReport.png) no-repeat;
    height: 605px;
    margin-top: 10px;
    padding: 1px; /* To prevent Margin collapse for nested divs */
}

/*-------------------- Edit blocks ---------------------*/

.editBlock
{
    padding-bottom: 8px;
    padding-right: 8px;
    float: left;
}

.editBlockLarge
{
    padding-bottom: 8px;
    padding-right: 8px;
    clear: both; /* A large block starts on a new line */
}

/*-------------------- Editables ---------------------*/

.editableEmail
{
    width: 240px;
}

.editableSmall
{
    width: 120px;
}
.editableMedium
{
    width: 270px;
}
.editableLarge
{
    width: 340px;
}
.editableSuperLarge
{
    width: 800px;
}

/*-------------------- Table Layouts ---------------------*/

/* 
IMPORTANT
  You can also take a look at the dd, dt, li css stylings defined at the end of this stylesheet. Reverted back to table layouts because centering, widths and heights work as expected!
IMPORTANT 
*/

/*-------------------- Purple Haze Table ---------------------*/

table.purplehaze
{
    border-collapse: collapse;
    border: 2px solid #B85A7C;
    background-color: #641B35;
}

table.purplehaze tr.centered
{
    text-align: center;
}

table.purplehaze th
{
    border: thin solid #B85A7C;
    padding: 2px;
    background-color: #B34D71;
}

table.purplehaze td.purpleTd /* NOTE: Separate definition needed to prevent mixing with devexpress td elements */
{
    border: thin solid #B85A7C;
    padding: 4px;
}

td.purplehazeNoVerticalLine
{
    border-style: none none solid none !important;
}

td.purplehazeButtons
{
    border-style: none none solid none !important;
    vertical-align: top;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

/*-------------------- Sadly Gray Table ---------------------*/

table.sadlygray
{
    border-collapse: collapse;
    border: 2px solid #FFFFFF;
    background-color: #464646;
}

table.sadlygray tr.centered
{
    text-align: center;
}

table.sadlygray th
{
    border: thin solid #FFFFFF;
    padding: 4px;
    background-color: #666666;
}

table.sadlygray td.sadTd /* NOTE: Separate definition needed to prevent mixing with devexpress td elements */
{
    border: thin solid #CACACA;
    padding: 6px;
}

td.sadlygrayNoVerticalLine
{
    border-style: none none solid none !important;
}

/*-------------------- Avatar ---------------------*/

.avatarGrid
{
    padding-left: 0px;
}

.avatarButton
{
    margin-left: 5px;
    margin-bottom: 5px;
    background-color: #3E4000;
    width: 45px;
    height: 45px;
}

.avatarButtonHover
{
    background-color: #838846;
}

.avatarButtonPressed
{
    background-color: #CC0066;
}

/*-------------------- DevExpress Custom CSS ---------------------*/

/* Tabs */

.normalTab
{
    background-color: #822D59;
    padding: 6px;
    white-space: nowrap;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: small;
}

.tabHover
{
    background-color: #9C366B;
}

.tabActive
{
    background-color: #9C366B;
}


/* Button Base (unfortunately CSS does not have inheritance so all button must be part of this definition) */
.buttonHover, 
.smallButton,
.smallSquareButton, 
.mediumButton,
.mediumSquareButton, 
.bigButton,
.bigSquareButton, 
.linloutButtonHover, 
.linloutButton, 
.loginButtonHover, 
.loginButton,
.emailPatternButton,
.emailPatternButtonHover, 
.exportButton,
.exportButtonHover, 
.editOnOffToggleButtonHover, 
.editOnOffToggleButton, 
.actionButton, 
.actionButtonHover, 
.importantActionButton, 
.importantActionButtonHover, 
.importantActionButtonDisabled,
.avatarButton, 
.avatarButtonHover, 
.avatarButtonPressed
{
    border-style: none;
    color: White;
    cursor: pointer;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

/* Standard Buttons */

.smallButton,
.smallSquareButton,
.mediumButton,
.mediumSquareButton,
.bigButton,
.bigSquareButton
{
    margin-left: 5px;
    background-color: #5C5F18;
}

.buttonHover
{
    background-color: #838846;
}

.smallButton
{
    width: 60px;
    height: 20px;
    font-size: smaller;
}

.smallSquareButton
{
    width: 60px;
    height: 60px;
    font-size: small;
}

.mediumButton
{
    width: 80px;
    height: 30px;
    font-size: medium;
}

.mediumSquareButton
{
    width: 80px;
    height: 80px;
    font-size: medium;
}

.bigButton
{
    width: 120px;
    height: 30px;
    font-size: x-large;
}

.bigSquareButton
{
    width: 120px;
    height: 120px;
    font-size: x-large;
}

/* Action Buttons */

.importantActionButton,
.actionButton
{
    width: 120px;
    height: 30px;
}

.importantActionButton
{
    background-color: #793B50;
    font-size: small;
}

.importantActionButtonHover
{
    background-color: #B46581;
}

.importantActionButtonDisabled
{
    cursor: default;
}

.actionButton
{
    background-color: #5C5F18;
    font-size: small;
}

.actionButtonHover
{
    background-color: #838846;
}

/* Edit On Off Toggle Button */

.editOnOffToggleButtonHover
{
    background-color: #786D5F;
}

.editOnOffToggleButton
{
    background-color: #774F15;
    width: 70px;
    height: 24px;
    font-size: x-small;
}

/* Login/Logout Button */

.linloutButton
{
    background-color: #774F15;
    width: 70px;
    height: 24px;
    font-size: x-small;
}

.linloutButtonHover
{
    background-color: #786D5F;
}

/* Login Button */

.loginButton
{
    background-color: #793B50;
    width: 120px;
    height: 40px;
    font-size: medium;
    margin-left: auto;
    margin-right: auto;
}

.loginButtonHover
{
    background-color: #AB1F4D;
}

.emailPatternButton
{
    background-color: #808080;
    width: 120px;
    height: 30px;
    font-size: smaller;
}
.emailPatternButtonHover
{
    background-color: #C0C0C0;
}

.exportButton
{
    background-color: #808080;
    width: 130px;
    height: 25px;
    font-size: small;
}
.exportButtonHover
{
    background-color: #C0C0C0;
}

/* Menu */

#headerMenuWrapper .dxm-main, #headerMenuWrapper .dxm-horizontal .dxm-item, #headerMenuWrapper .dxm-horizontal .dxm-spacing, #headerMenuWrapper .dxm-horizontal .dxm-separator
{
    float: left;
}

#headerMenuWrapper ul.dx
{
    list-style: none none outside;
    margin: 0;
    padding: 0;
    background-repeat: repeat-y;
    background-position: left top;
}

#headerMenuWrapper .dxm-content
{
    float: none !important;
    white-space: nowrap;
    padding: 7px;
}

.menuItemHover, .menuItem, .menuItemSelected
{
    border-style: none;
    color: White;
    -moz-border-radius: 10px;
    border-radius: 10px;
}


.menuItem
{
    text-align: center;
    margin-left: 5px;
    background-color: #5C5F18;
    width: 100px;
    height: 30px;
    font-size: small;
}

.menuItemHover
{
    background-color: #838846;
}

.menuItemSelected
{
    background-color: #838846;
}


/* Horizontal Button List */

#horizontalButtonList ul
{
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

#horizontalButtonList li
{
    float: left;
    display: block;
    padding: 0px 5px 0px 0px;
}

/* DevExpress Memo redefines */

.dxeMemoEditArea 
{
    background-color: white;
    font-family: Tahoma;
    font-size: 9pt;
}
.dxeMemo td
{
    padding: 5px;
    width: 100%;
}


/*-------------------- View Layouts (generalized for ul and dt based layouts) ---------------------*/

/* 
IMPORTANT
  dd,dt ect where also used as an alternative for tabular data, but this proved to be a difficult task when I was 
  trying to convert the sadly table layout (height was wrong for example)
IMPORTANT 
*/

/* Normal Layout */

.Layout
{
    border: none;
}

.Layout ul
{
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.Layout li
{
    display: block; /* Needed for padding */
    clear: both;
    padding-bottom: 15px;
}

.Layout dl
{
    clear: both;
}
.Layout dt
{
    float: left;
    text-align: right;
    width: 100px;
    margin: 0 10px 10px 0;
}
.Layout dd
{
    float: left;
    width: 300px;
    margin: 0 0 10px 0;
}


.Layout input
{
    width: 280px;
}

.Layout textarea
{
    width: 290px !important;
}

.Layout_SmallLabel label
{
    width: 60px;
    float: left;
}

.Layout_SmallLabel label.inline
{
    float: none;
}

.Layout_MediumLabel label
{
    width: 90px !important;
    float: left;
}

.Layout_MediumLabel label.inline
{
    float: none;
}

