/* Topnavigational styles */

header div#options {
    width: 100%; 
    height: 40px; 
    background: #383838; /* fallback */
	background: linear-gradient(#828282,#343434); /* W3C */
}

header div#options form {
    margin: 4px 30px 0 0px;
}

header div#options form select {
    margin: 0;
}
	
header div#options a {
    text-decoration:underline; /* overwrite */
}
	
header div#options div#activities-parent,
header div#options div#welcome,
header div#options div#superadmin {
	margin: 9px 30px 0 0px; 
	color: #FFF; 
	font-size: 10pt; 
	line-height: 17px; 
}

header div#options div#activities-parent {
	position: relative;	/* for positioning the child "#activities-content" */
}

header div#options div#activities-content a {
    text-decoration:none; /* overwrite */
}

@media only screen and (max-width: 599px) {
    /* Add your CSS rules here */
    header div#options {
        display: none;
    }
}

div#activities-content {
	position: absolute;
	top: 34px;
    left: -40px;
	z-index: 10;

	width:180px;
	height:50px;
	padding:3px 6px;
	
	box-sizing: border-box;
	background-color: white;
	color: black;
	
	border-radius: 5px;
	border: 1px solid #D9DADB;
	box-shadow: 0px 0px 5px #D9DADB;
}

div#activities-content:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 0 10px 10px;
    border-color: #FFFFFF transparent;
    display: block;
    width: 0;
    z-index: 10;
    top: -10px;
    left: 80px;
}

div#activities-content span {
    line-height:30px;
}

div#activities-content span.amount {
    display:block;

    height:30px;
    width:30px;
    
    font-weight:bold;
    font-size:13px;
    line-height:30px;
    color:white;
    text-align:center;

    border-radius:3px;
    background: #4e4d4d; /* fallback */
    background: linear-gradient(#575656,#3d3c3c); /* W3C */
}

div#activities-content a {
    float:left;
    width:31px;
    height:31px;
    margin:5px;
}

div#activities-content a#download-files-btn {
    box-sizing: border-box;
    padding:9px 10px;
}

div#activities-content a.disabled {
    cursor: default;
    opacity: 0.3;
    pointer-events:none;
}

div#activities-content a#toDownload {
    position:relative; /* for positioning a#toDownload::after */
}

div#activities-content a#toDownload::after {
    display:inline-block; /* this turned out the only way to respect the min-width */
    border-radius: 7px;
    font-weight: bold;
    height: 15px;
    line-height: 15px;
    text-align: center;
    min-width: 15px;
    max-width: 45px;
    
    padding-left:2px;
    padding-right:2px;
    
    box-sizing: border-box;
    
    color:white;
    overflow:hidden;
    text-overflow: ellipsis;
    
    position:absolute;
    right:-7px;
    top:-7px;
    
    background-color:#343434; /* default, should be overwritten inline */
    content:'0'; /* default, should be overwritten inline */
}

header div#options form#lang select {
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    color: #000000;
    height: 26px;
    padding: 5px 5px 5px 2px;
    margin-top:2px;
    min-width:95px;
}

header div#options form#login input {
	padding: 8px 5px 6px 5px; 
	border-radius: 7px;
	border: 1px solid #EAEAEA; 
	float:left;
	margin-right:5px;
}

header div#options form#login button[type="submit"] {
    width: 95px;
    line-height: 22px;
    height:29px;
    white-space:nowrap;
}

header div#options form#login button[type="submit"] span {
   margin: 2px 3px 0 2px;
   height: 17px;
}

header div#options form#logout button[type="submit"] {
    line-height: 22px;
    min-width: 95px;
    height:29px;
}

header div#options form#logout button[type="submit"] span.cross {
    margin: 0 0 0 4px; 
    font-size: 17pt; 
    font-weight: bold; 
}

/* START content menu QUESTION: should this be part of the content module css? */

header div#options #content-menu-button {
    height: 26px;
    padding: 5px;
    margin: 4px 0 0 10px;
    
    /* resets */
    background-color:transparent;
    border:0;
    color: white;
    font-size: 10pt;
    cursor:pointer;
}

header div#options #content-menu-button img {
    margin-right:10px;
    vertical-align:-15%;
}

header div#options #content-menu-overlay {
    position:absolute;
    top:0;
    left:0;
    z-index:31; /* NOTICE: Will push it above the button bar, but there could be more z-index-ed elements. What about them? */
    
    /*background-color:black;*/
    width:100%;
    height:100%;
}

header div#options #content-menu {

    height:100%;

    width:370px;
    background-color:white;
    border-right:solid 1px #cccccc;
}

header div#options #content-menu #content-menu-head {
    height:80px;
    line-height:20px;
    padding:30px 40px;
    box-sizing:border-box;
    
    width:371px; /* NOTICE: the extra pixel pushes it over the container right border. That's what we want but I cannot explain why? Does this work crossbrowser? */
    
    /* resets */
    display:block;
    text-align:left;
    border:0;
    color: white;
    font-size: 10pt;
    cursor:pointer;
}

header div#options #content-menu #content-menu-head::after {
    content: '×';
    position: absolute;
    left: 345px;
    font-size:20px;
}

header div#options #content-menu nav a {
    height:70px;
    line-height:20px;
    display:block;
    padding:25px 40px;
    box-sizing:border-box;
    border-bottom:solid 1px #eaeaea;
    
    text-decoration:none;
    color:#565656;
    white-space:nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
}

header div#options #content-menu nav a::after {
    content: '›';
    position: absolute;
    left: 345px;
    font-size:20px;
}

header div#options #content-menu nav a.active,
header div#options #content-menu nav a:hover {
    background-color:#fafafa;
}

/** share dialog **/
#dialog-share input[type=email],
#dialog-share input[type=text],
#dialog-share input[type=date],
#dialog-share input[type=password],
#dialog-share textarea {
    border: 1px solid #d0d0d0;
    padding:9px;
    margin:0 0 10px 0;
    width:299px;
}

#dialog-share label {
    font-style:italic;
}

#dialog-share label input[type=checkbox] {
    vertical-align:-10%;
    margin: 0 7px 10px 0;
}

#dialog-share input[name="password"]
{
    width: 199px;
}

#dialog-share input#share-expiry
{
    width: 172px;
}

#dialog-share .expiry-icon-calendar
{
    height: 35px;
    float: left;
    padding: 9px 10px 6px 0;
}

#dialog-share .required-fields
{
    font-style: italic;
    color: #b4b4b4;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 14px;
    margin-top: 14px;
}

.ui-dialog.bb-share-dialog,
.ui-dialog.bb-share-dialog .ui-dialog-titlebar
{
    padding: 0;
}

.ui-dialog.bb-share-dialog .ui-dialog-titlebar
{
    padding: 20px 40px;
}

.ui-dialog.bb-share-dialog .ui-dialog-titlebar-close
{
    right: 40px;
    background: black url('/img/icon-fb-error.png') no-repeat center center;
}

.ui-dialog.bb-share-dialog .ui-widget-header
{
    background-color: #000;
    color: #fff;
    height: 23px;
    font-size: 17px;
    font-weight: bold;
}

.ui-dialog.bb-share-dialog .ui-dialog-title
{
    color: #fff;
    position: absolute;
    top: 50%;
    margin: -10px 0 0 0;
    padding: 1px 1px 1px 30px;
    height: 20px;
    background: black url("/img/icon-share-white.png") no-repeat left center;
}

.ui-dialog.bb-share-dialog .ui-dialog-content
{
    padding: 30px 40px;
    color: #565555;
}

.ui-dialog.bb-share-dialog .ui-dialog-content .btn
{
    text-transform: uppercase;
    height: 30px;
    border-radius: 3px;
    padding: 0 29px;
}
