/*
    Document   : foxbuddy
    Created on : Apr 6, 2011, 11:12:27 AM
    Author     : Haruki Takechi <haruki@foxbuddy.com.au>
    Description:
        Common style sheet for all FoxBuddy based UIs
*/

h1, h2, h3, h4, h5 {
    text-shadow: 1px 1px 1px #CCC;
    color: #555;
}

input[type="text"], input[type="password"], input[type="file"], textarea, select {
    background: #f9f9f9;
    border: 1px solid #bbb;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
    padding: 2px;
}


.ui-widget-content .home-section-grid td a:focus,
.ui-widget-content .home-section-grid td a:hover,
div.job-tabs .ui-widget-content a:focus,
div.job-tabs .ui-widget-content a:hover,
div.quote-tabs .ui-widget-content a:focus,
div.quote-tabs .ui-widget-content a:hover
a:focus, a:hover {
    color: #09f;
    text-decoration: none;
}
.ui-widget-content .home-section-grid td a,
div.job-tabs .ui-widget-content a,
div.quote-tabs .ui-widget-content a,
a {
    color: #06c;
    text-decoration: underline;
    padding: 1px;
}

/* Input Widths */
select.input-medium {
    width: 16.5em;
}

/* Place Holder */
.placeholder {
    color: #aaa;
}


/* Page Container */
#page {
    position: relative;
    min-width: 1000px;
    max-width: 1880px; /* 1200px; @TODO: */
    width: auto;
    margin: 0 auto 20px auto;
    border: none;
}

/* User Bar */
#bar,
#bar-bottom {
    position: absolute;
    top: 3px;
    right: 0;
    padding: 0 0.5em;
    color: black;
    font-weight: bold;
    line-height: 2em;
    z-index: 101;
}
#bar a {
    color: #A20000;
}
#bar a:hover {
    color: #A20000;
}
#bar-bottom {
    top: 59px;
    font-weight: normal;
    line-height: 1em;
}
#bar-bottom a {
    color: #A20000;
    text-decoration: none;
}
#bar-bottom a:hover {
    text-decoration: underline;
}


/* Container */
#page .container {
    clear: both;
    width: auto;
    position: relative;
}
#page {
    border: 1px solid #cdcdcd;
}

/* Footer */
#footer {
    border-top: 1px solid #A2E3E8;
}

/* Content */
#content {
    position: relative;
    padding: 0 220px 10px 20px;
}
#content h1 {
    font-size: 1.5em;
    border-bottom: 1px solid #A2E3E8;
    text-transform: uppercase;
    padding-bottom: 0.2em;
}

/* Sidebar */
#sidebar {
    position: absolute;
    right: 0;
    top: 0;
    width: 180px;
    padding: 0 20px 0 0;
}

/* FoxBuddy Logo */
#foxbuddy {
    position: absolute;
    top: 0;
    left: 0;
    height: 80px;
    width: 340px;
    z-index: 110;
    background: url(logo-fox.png) no-repeat 0 0;
    background-position: 80px 0;
}

#foxbuddy_main {
    position: absolute;
    top: 0;
    left: 0;
    height: 80px;
    width: 240px;
    z-index: 110;
    background: url(logo-fox.png) no-repeat 0 0;
}
/* Header */
#header {
    border-top: none;
    position: relative;
}

/* Logo/Grid Header Background */
#logo{
    background: #FFFFFF;TEXT-ALIGN: center;
}
.grid-view table.items th,
table.items th {
    background: #2D9FA4 url(bg-dots.png) 50% 50% repeat;
    /*background: #FFFFFF;TEXT-ALIGN: center;*/
}

/* Logo */
#logo {
    padding: 0 20px 0 10px;
    line-height: 53px;
    height: 53px;
    vertical-align: middle;
    color: #fff;
}

#logo_main {
    padding: 0 20px 0 10px;
    line-height: 80px;
    height: 80px;
    vertical-align: middle;
    color: #fff;
}
#logo strong {
    padding-right: 10px;
}
#logo img {
    border: solid 1px #555;
    vertical-align: middle;
}
#logo,
#mainmenu {
    /*margin-left: 80px;*/
}

/* Main Menu */
#mainmenu-bar {
    height: 20px;
}
#mainmenu ul {
    padding: 0 20px 5px 0;
}
#mainmenu ul li a {
    padding: 5px 12px;
    color: #fff;
    border: none;
}
#mainmenu ul li ul li a {
    white-space: nowrap;
    color: #fff;
    border: none;
}
#mainmenu ul li a:hover,
#mainmenu ul li.active a,
#mainmenu ul li ul li a:hover,
#mainmenu ul li ul li.active a {
    color: #fff;
}
#mainmenu ul li a:hover,
#mainmenu ul li.active a {
    background-color: #35414F;
}
#mainmenu ul li a.has-icon {
    padding-left: 24px;
}
#mainmenu ul li ul {
    display: none;
}
#mainmenu ul li ul li {
    padding-top: 2px;
}
#mainmenu-bar .ui-icon {
    float: left;
    margin: -1px 2px 0 -3px;
}
#mainmenu-bar li ul li .ui-icon {
    margin: -1px 3px 0 -5px;
}

/* Bread Crumbs */
div.breadcrumbs {
    margin: 0.5em 0 0 0;
}

/* Advanced Search Form */
div.search-form {
    background: #fcfcfc;
    border: solid 1px #ddd;
}
#search-form {
    display: none;
    height: 600px;
    overflow: auto;
}


#content .link-box {
    position: absolute;
    right: 220px;
    top: 2px;
}

/* Switch View Link */
#content a.switch-button {

}
#content a.switch-button:hover {
    text-decoration: none;
}

/* Advanced Search Link */
#content a.search-button {
    position: absolute;
    right: 220px;
    top: 12px;
}
#content a.search-button:hover {
    text-decoration: none;
}
#content .link-box a.search-button {
    position: relative;
    right: auto;
    top: auto;
}

/* CGridView Table Filters */
#content .grid-view .filters input,
#content .grid-view .filters select {
    border: 1px solid #ccc;
    padding: 2px 0;
}
#content .grid-view .filters select {
    width: 100%;
}


/* Grid View */
#content .grid-view {
    padding: 0 0 15px 0;
}
#content .grid-view .ui-icon {
    float: left;
    margin-right: 0.2em;
}
#quote-grid,
#job-grid {
    clear: both;
}


/* Grid View - Multi Select */
#content .grid-view .ui-widget {
    font-size: 1.1em;
}
#content .grid-view .ui-multiselect {
    -moz-border-radius: 0px;
    border-radius: 0px;
}
#content .grid-view .ui-multiselect .ui-icon {
    float: right;
    background-image: url(../images/ui-icons_888888_256x240.png);
}
#content .grid-view .filters .ui-multiselect-checkboxes input,
#content .grid-view .filters .ui-multiselect-checkboxes select {
    width: auto;
    border: 0;
    padding: 0;
}
#content .grid-view .filters .ui-multiselect-checkboxes label {
    padding: 1px 0;
    font-weight: bold;
}
#content .grid-view .filters .ui-state-default,
#content .grid-view .filters .ui-widget-content .ui-state-default,
#content .grid-view .filters .ui-widget-header .ui-state-default {
    border: 1px solid lightGrey;
    font-weight: normal;
    color: #555;
    background: #fff;
}


/* CGridView Table */
#content .grid-view table.items {

}
/* #content .grid-view table.items th, */
#content .grid-view table.items td.button-column {
    white-space: nowrap;
}
#content .grid-view table.items th,
#content .grid-view table.items td {
    padding: 0.3em;
}


/* CDetailView */
#content .detail-view a img {
    background: #fdfdfd;
    border: solid 5px #eee;
    margin: 1em;
}

/* Dashboard */
#dashboard {
    margin: 0;
}
#dashboard .dash-portlet-content {
    min-height: 160px;
    padding-top: 0;
}


/*#dashboard .dash-wrapper {
    margin: 0;
    padding: 0;
    list-style: none;
}
#dashboard .dash-wrapper .dash-portlet {
    float: left;
    clear: none;
    margin: 0 1% 1em 1%;
}*/

/* Form - Address - Map Container */
#address-map {
    clear: both;
    width: 410px;
    height: 200px;
    background: #fdfdfd;
    border: solid 5px #eee;
    margin: 1em;
}


/* CGridView */
#content .grid-view .items .abbr {
    width: 100px;
}
#content .grid-view .items .center,
#content .items .center {
    text-align: center;
}
#content .grid-view .items .nowrap {
    white-space: nowrap;
}
#content .grid-view .items .ref,
#content .items .ref {
    text-align: center;
    width: 50px;
    padding: 0 0.1em;
}
#content .grid-view .items .title {
    text-align: center;
    width: 120px;
}
#content .grid-view .items .action {
    text-align: center;
    white-space: nowrap;
    width: 55px;
}
#content .grid-view .items .date {
    text-align: center;
    width: 60px;
}
#content .grid-view .items .datetime,
#content .items .datetime {
    text-align: center;
    width: 120px;
}
#content .grid-view .items .status,
#content .items .status {
    text-align: center;
    width: 140px;
}
#content .grid-view .items .status div,
#content .items .status div {
    color: #000;
    font-size: 0.9em;
    padding: 0.2em 0.5em;
    -moz-border-radius: 3px;
    border-radius: 3px;
}


/* Home - Blog Posts */
.post {
    margin: 0 0 20px;
}
.post .title {
    font-size: 1.5em;
    border-bottom: 1px solid #A2E3E8;
}
.post .title a {
    color: #555;
    text-decoration: none;
}
.post .author {
    color: #888;
    margin: 0 0 5px;
}
.post .nav {
    -moz-border-radius:7px;
    padding: 5px;
    background: #A2E3E8;
}
.post .content p {
    background: #EFFFFC;
    -moz-border-radius: 7px;
    padding: 5px;
}

.comment {
    -moz-border-radius:7px;
    padding: 10px;
    background: #F5F5F5;
    margin: 5px 0;
}
.comment .content {
    margin: 10px 0;
}
.comment .author {
    margin: 5px 0;
    padding: 0 0 3px;
    border-bottom: 1px solid #DDD;
}
.comment .time {
    color: #888;
    font-size: 0.8em;
}
.comment a.cid {
    color:#CCC;
    float:right;
    font-size:1.5em;
    font-weight:bold;
    padding:0 5px 5px 5px;
    text-decoration: none;
}
.comment a.cid:hover {
    color:#555;
}
.comment .pending {
    color:red;
}

/* Alpha Pager */
.alphapager {
    padding: 0.5em 0;
}
.alphapager ul.alphaPager .hidden a {
    border: solid 1px #DEDEDE;
    color: #ccc;
}
ul.alphaPager a:link,
ul.alphaPager a:visited {
    border: solid 1px #2D9FA4;
    color: #2D9FA4;
}
ul.alphaPager .selected a {
    background: #43ABB2;
    color: #fff;
}

/* jQuery UI Widgets */
#content .ui-widget { font-family: Arial, Helvetica, sans-serif; font-size: 1em; }
#content .ui-widget .ui-widget { font-size: 0.9em; }
#content .ui-widget input, #content .ui-widget select, #content .ui-widget textarea, #content .ui-widget button { font-family: Arial, Helvetica, sans-serif; font-size: 0.9em; }

/* jQuery UI Multi-Select */
.ui-multiselect,
.ui-multiselect-single .ui-multiselect-checkboxes input,
.ui-multiselect-single .ui-multiselect-checkboxes label,
.ui-multiselect-header,
.ui-multiselect-menu,
.ui-multiselect-checkboxes { font-family: Arial, Helvetica, sans-serif; font-size: 1em; }

.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label {
    background: #efefef;
    border: solid 1px #ccc;
    margin-top: 5px;
    font-weight: normal;
    color: #666;
}
.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a {
    padding: 3px;
}
.ui-multiselect-checkboxes li {
    padding: 0 3px 0 0;
}

div.form .ui-multiselect-checkboxes label {
    font-size: 1em;
    line-height: 2em;
    cursor: default;
    display: block;
    padding: 0;
}
div.form .ui-multiselect-checkboxes label input {
    margin: 3px 3px 3px 4px;
}


/* Date Time Picker */
#ui-datepicker-div {
    font-size: 0.9em;
    font-family: Arial,Helvetica,sans-serif;
}
.ui-datepicker-trigger {
    margin-left: 0.5em;
    cursor: pointer;
}

/* Wizard Menu */
#wzd-menu {
    margin: 1em 0;
    padding: 0;
}
#wzd-menu li {
    background: #F9F6EF;
    color: #ccc;
    display: inline;
    font-weight: bold;
    list-style: none;
    margin: 0 20px 0 -23px;
    padding: 0.5em 10px 0.5em 23px;
    position: relative;
}
#wzd-menu li:before {
    content:"";
    display:block; /* reduce the damage in FF3.0 */
    position:absolute;
    width:0;
    height:0;
    top:0px; /* controls vertical position */
    right:-20px; /* value = - border-left-width - border-right-width */
    bottom:auto;
    left:auto;
    border-width:15px 0 15px 20px;
    border-style:solid;
    border-color:transparent #F9F6EF;
    z-index: 1;
}

/* creates the smaller triangle */
#wzd-menu li:after {
    content:"";
    display:block; /* reduce the damage in FF3.0 */
    position:absolute;
    width:0;
    height:0;


    top:6px; /* value = (:before top) + (:before border-top) - (:after border-top) */
    right:-15px; /* value = - border-left-width - border-right-width */
    bottom:auto;
    left:auto;
    border-width:9px 0 9px 15px;
    border-style:solid;
    border-color:transparent #fff;
    z-index: 1;
}

#wzd-menu li.wzd-first {
    margin-left:0;
    padding-left: 10px;
}
#wzd-menu li.wzd-last:before, #wzd-menu li.wzd-last:after {
    display: none;
}
#wzd-menu li.wzd-active {
    background: #A2E3E8;
    color: #DB751C;
}
#wzd-menu li.wzd-active:before {
    border-color:transparent #A2E3E8;
}
#wzd-menu li.wzd-previous {
    background: #7db4d4;
}
#wzd-menu li.wzd-previous:before {
    border-color:transparent #7db4d4;
}
#wzd-menu li a {
    text-decoration: none;
}
#wzd-menu li.wzd-active a, #wzd-menu li.wzd-previous a {
    color: #333;
}

/* Form Buttons */
div .buttons input,
div.form .buttons a,
form .button-column input,
a.button,
div.job-tabs .ui-widget-content a.button,
div.quote-tabs .ui-widget-content a.button,
#update-button,
.upload-box .file_upload {
    margin: 0 0.3em 0 0;
    padding: 0.3em 1em;

    background: #f4f4f4;
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#f4f4f4',endColorstr='#ececec');
    background: -webkit-gradient(linear,left top,left bottom,from(#f4f4f4),to(#ececec));
    background: -moz-linear-gradient(top,#f4f4f4,#ececec);

    border: 1px solid #d4d4d4;
    color: #666;

    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;

    outline: none;

    text-shadow: 0 1px 0 white;
    text-decoration: none;
    font: 0.9em helvetica,arial,freesans,clean,sans-serif;
    font-weight: bold;

    cursor: pointer;
}
div.form .buttons a,
a.button {
    float: none;
    display: inline-block;
}
div .buttons input:hover,
div.form .buttons a:hover,
a.button:hover,
div.job-tabs .ui-widget-content a.button:hover,
div.quote-tabs .ui-widget-content a.button:hover,
#update-button:hover,
.upload-box .file_upload:hover {
    background: #28B7BF;
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#A2E3E8',endColorstr='#28B7BF');
    background: -webkit-gradient(linear,left top,left bottom,from(#A2E3E8),to(#28B7BF));
    background: -moz-linear-gradient(top,#A2E3E8,#28B7BF);
    border-color: #8BBEC4 #8BBEC4 #2D9FA4;
    color: #fff;
    text-shadow: 0 -1px 0 #8BBEC4;
    text-decoration: none;
}

/* Upload Box */
.upload-box {
    clear: both;
    margin: 1em 0 0 0;
}
.upload-box form {
    /* width: 200px; */
    margin: 0 auto;
}
.upload-box #files {
    margin: 0;
    font-size: 0.8em;
    font-style: italic;
    border-collapse: collapse;
}
.upload-box #files tbody {
    border-top: solid 12px #fff;
}
.upload-box #files td {
    padding: 2px 4px;
    background: #f8f8f8;
}
.upload-box #files .file_upload_progress div {
    width: 50px;
}

.upload-box .file_upload {
    margin: 0 auto;
    padding: 0;
    width: 200px;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
}


/* Job Grid Tip Window */
#job-grid .title span {
	cursor: pointer;
}
hr.user_line {
	height: 1px;
	line-height: 1px;
	border-top: 1px solid black;
	padding: 0px;
	margin: 0px;
}

/* Job/Quote View */
#job-details,
#quote-details {
    width: 27%;
    float: left;
}

/* Job/Quote View - Calendar Created */
#job-details.details-calendar,
#quote-details.details-calendar{
    width: auto;
    margin-right: 0;
    float: none;
}
#job-details.details-calendar .upload-box form,
#job-details.details-calendar .upload-box table,
#quote-details.details-calendar .upload-box form,
#quote-details.details-calendar .upload-box table{
    width: 30%;
    float: left;
    clear: none;
}
#job-details table.detail-view tr th,
#quote-details table.detail-view tr th {
    width: 95px;
}


/* Job/Quote/Event View - Tabs */
div.job-tabs.ui-tabs,
div.quote-tabs.ui-tabs {
    float: right;
    width: 72%;
    min-height: 500px;
}
div.job-tabs.ui-tabs .ui-tabs-nav li,
div.quote-tabs.ui-tabs .ui-tabs-nav li {
    /* margin-right: 1px; */
}
div.job-tabs.ui-tabs .ui-tabs-nav li a,
div.quote-tabs.ui-tabs .ui-tabs-nav li a {
    font-size: 0.9em;
    padding: 0.5em;
}
div.job-tabs.ui-tabs li.ui-tabs-selected a,
div.quote-tabs.ui-tabs li.ui-tabs-selected a {
    font-weight: bold;
}
div.job-tabs h4,
div.quote-tabs h4 {
    font-weight: bold;
    font-size: 1em;
    margin: 0 0 0.2em 0;
}

/* Grid View */
.grid-view table.items tr.odd {
    background: #E5F1F4;
}
.grid-view table.items tr.even {
    background: #F8F8F8;
}
.grid-view table.items tr:hover {
    background: #F9EED4;
}

/* Job/Quote View - Tabs - Grid */
.job-section-grid.grid-view,
.quote-section-grid.grid-view,
.home-section-grid.grid-view {
    position: relative;
    font-size: 1em;
    padding: 0 0 25px 0;
}
.job-section-grid.grid-view table,
.quote-section-grid.grid-view table,
.home-section-grid table {
    background: #f8f8f8;
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    color: #333;
}

.job-section-grid.grid-view table.items th,
.quote-section-grid.grid-view table.items th,
.home-section-grid table.items th {
    color: white;
    text-align: center;
}
.job-section-grid.grid-view table.items th,
.job-section-grid.grid-view table.items td.button-column,
.quote-section-grid.grid-view table.items th,
.quote-section-grid.grid-view table.items td.button-column,
.home-section-grid table.items th,
.home-section-grid table.items td.button-column {
    white-space: nowrap;
}
.job-section-grid.grid-view table.items th,
.job-section-grid.grid-view table.items td,
.quote-section-grid.grid-view table.items th,
.quote-section-grid.grid-view table.items td,
.home-section-grid table.items th,
.home-section-grid table.items td {
    font-size: 0.9em;
    border: 1px white solid;
    padding: 0.3em;
}
.job-section-grid.grid-view .summary,
.quote-section-grid.grid-view .summary,
.home-section-grid .summary {
    margin: 1em 0 0px 0;
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
}

#content .grid-view table.items tfoot td {
    font-weight: bold;
}


table.items td.center div,
table.detail-view td div {
    padding: 0.2em 0.5em;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
table.items td.center div span,
table.detail-view td div span {
    color: #000;
    font-size: 0.9em;
}
.ui-tabs-panel p {
    margin: 0 0 1em 0;
}

/* Home Results */
.home-section-grid.grid-view {
    padding: 0 0 1.2em 0;
}
.home-section-grid .summary {
    font-size: 0.8em;
    margin: 0;
    padding: 0 5px 0 0;
    bottom: 7px;
}
.home-section-grid table {
    margin: 0;
}

/* Job/Quote Results - Table Header */
.grid-view table.items th,
.grid-view table.items td.button-column {
    white-space: nowrap;
}
.button-column select {
    font-size: 0.8em;
}

/* Job/Quote Review Form */
#job-review-form h2,
#quote-review-form h2 {
    margin: 0 0 0.2em 0;
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: solid 1px #E5F1F4;
}
#job-review-form table,
#quote-review-form table {
    margin-bottom: 2em;
}
#job-contact-table-form table thead th,
#job-assigned-user-table-form table thead th,
#job-client-contact-table-form table thead th,
#job-site-contact-table-form table thead th,
#quote-contact-table-form table thead th,
#quote-assigned-user-table-form table thead th,
#quote-client-contact-table-form table thead th,
#quote-site-contact-table-form table thead th {
    background: #E5F1F4;
}
#job-disable-overlay {
	background: black;
	opacity: 0.2;
	width: 98%;
	height: 675px;
	position: absolute;
	top: 0;
	left: 0;
	border: 1px solid black;
}
#job-disable-overlay-label{
	position: absolute;
	top: 300px;
	left: 170px;
	color: red;
	text-align: center;
	font-size: 30px;
}
/* Quick Add Form */
#quick-form {
    border: solid 3px #F9F6EF;
    margin: 0 0 1.5em 0;
    padding: 1em;
    /* width: 45%; */
    background: #fff;
    color: #333;
}
#quick-form h1 {
    font-size: 1em;
    font-weight: bold;
    text-transform: none;
    text-shadow: none;
    color: #1097A0;
}
#quick-form label {
    font-weight: normal;
}

/* Map Labels */
.map-label {
    font: 0.75em bold Arial, Helvetica, sans-serif;
    width: 28px;
    height: 20px;
    text-align: center;
    padding-top: 2px;
    color: #000;
}


/* Portlet */
.portlet {
    font-weight: bold;
    border: 1px solid #28B7BF;
    width: 175px;
    padding: 5px;
    background: #EFFFFC;
    margin: 0 0 1em 0;
    -moz-border-radius: 3px;
    border-radius: 3px;
    color: #1097A0;
}
.portlet-title {
    color: #fff;
    margin: 0;
    padding: 4px 6px;
}
.portlet-decoration {
    padding: 0;
    margin: 0 0 3px 0;
}
.portlet-content {
    background: #EFFFFC;
    padding: 0;
    margin: 0;
}
.portlet-content ul {
    margin-top: 5px;
}
.portlet-content li {
    text-align: left;
    padding: 2px 0 4px 0px;
    margin-bottom: 1px;
}
.portlet-content li a:hover {
    text-decoration: underline;
}
.portlet-content li.active {
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #C4C4C4;
    background: #F8F8F8;
    text-decoration: none;
    padding: 2px 0 3px 0px;
}
.portlet-content li.active a {
    color: #555;
}
.portlet-content .color-box {
    width: 15px;
    height: 15px;
    float: left;
    margin: 1px 5px 0 2px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.portlet .ui-icon-portlet {
    float: left;
    margin: -1px 0 0 0;
}
.portlet-title .ui-icon-portlet {
    margin: -1px 3px 0 -3px;
}

/* Contact Message - Select */
.portlet div.form input,
.portlet div.form textarea,
.portlet div.form select {
    margin: 0;
}
.portlet div.form select {
    width: 175px;
}
.portlet div.form textarea {
    margin: 3px 0;
    width: 165px;
}
.portlet div.form .buttons {
    padding: 0;
}
.portlet div.form .checkbox {
    text-align: center;
}
.portlet div.form .checkbox label {
    padding-right: 10px;
    margin-top: -2px;
}
.portlet .ui-multiselect-header {
    margin: 0;
    padding: 0;
}
.portlet .ui-multiselect-header ul {
    margin: 2px;
}
.portlet .ui-multiselect-header ul li {
    float: left;
    padding: 0 3px 0 0;
    font-size: 0.9em;
    line-height: 1.8em;
    height: 1.8em;
}
.portlet .ui-multiselect-header ul li .ui-multiselect-close {
    padding: 0;
}
.portlet .ui-multiselect-header ul li .ui-icon {
    width: 14px;
}
.portlet .ui-multiselect-header ul li.ui-multiselect-close .ui-icon {
    width: 16px;
}
.portlet-content .ui-multiselect-checkboxes li {
    padding: 0;
}
.portlet-content .ui-multiselect-checkboxes li.ui-multiselect-optgroup-label {
    margin: 0 0 2px 0;
}
.portlet-content .ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a {
    padding: 2px 0;
    margin: 0;
}

/* Portlet - Operations */
/*.operations li a {
    color: #1097A0;
}
.operations li a:visited {
    color: #1097A0;
}
.operations li a:hover {
    background: #A2E3E8;
}*/

/* Side Box - Map */
#sidebar #home-map {
    border: solid 1px #28B7BF;
    background: #A2E3E8;
    float: left;
    margin: 0 0 5px 0;
    width: 173px;
    height: 200px;
}
.map-infowindow {
    font-size: 0.8em;
    margin: 0 1em 0 0;
    padding: 0;
    clear: both;
}
.map-infowindow h4 {
    color: #444;
    margin-bottom: 5px;
    font-size: 1.2em;
}


/* Job Operation map */
#operation-map,
#location-map {
    clear: both;
    width: 500px;
    height: 350px;
    background: #fdfdfd;
    border: solid 5px #eee;
    margin: 0 0 2em 0;
}

/* Weather Forecast */
.weather-forecast {
    margin: 0 0 0.5em 0;
    padding: 0;
    width: 100%;
}
.weather-forecast caption {
    display: none;
}
.weather-forecast thead tr,
.weather-forecast thead th {
    font-size: 1em;
    font-weight: bold;
    border: 1px white solid;
    padding: 0.3em;
    color: white;
    background: #43ABB2;
}
.weather-forecast th, .weather-forecast td {
    border: 1px white solid;
    padding: 0.3em;
}
.weather-forecast tr {
    background: #F8F8F8;
}
.weather-forecast tr.even {
    background: #E5F1F4;
}

/* Auto-Complete Loader */
.ui-autocomplete-loading {
    background: white url(ui-anim_basic_16x16.gif) right center no-repeat;
}

/* Form - Horizontal Radio Buttons */
input[type=radio] + label, input[type=checkbox] + label {
    display:inline !important;
}

/* CGridView - Save Search / Export Link */
#content #save-search-name {
	padding: 5px;
	background: #fff;
}
#content #saved-searches {
	padding: 0px;
	clear: both;
	min-height: 18px;
}
#content #saved-searches li {
	float: left;
	list-style: none;
	border-right: 1px solid #222;
	padding: 0 10px 0 10px;
}
#content #saved-searches li a {
	color: #2D9FA4;
	font-size: 14px;
	display: block;
	text-decoration: none;
	float: left;
	font-weight: bold;
}
#content #saved-searches li.exclusive a {
	color: #F79800;
}
#content #saved-searches li a:hover {
	text-decoration: underline;
	color:#222;
}

#content #saved-searches li a.delete_link {
	margin: -1px 0 0 5px;
	color: red;
	font-weight: normal;
}
#content .grid-view a.export-link {
    display: block;
    font-size: 0.8em;
    border: 1px solid #C4C4C4;
    background: #F8F8F8;
    -moz-border-radius: 3px;
    border-radius: 3px;
    color: #555;
    font-size:1em;
    text-decoration: none;
    padding: 5px 15px 5px 25px;
    position: relative;
}

#content a.export-link,
#content a.save-search-link  {
    font-size: 0.8em;
    border: 1px solid #C4C4C4;
    background: #F8F8F8;
    -moz-border-radius: 3px;
    border-radius: 3px;
    color: #555;
    font-size:1em;
    text-decoration: none;
    padding: 5px 15px 5px 25px;
    position: relative;
}

#content .grid-view a.export-link:hover {
    background: #ccc;
}

#content a.export-link:hover,
#content a.save-search-link:hover  {
    background: #ccc;
}
#content a.export-link span {
    width: 16px;
    /*background-position: -114px -80px; */
    background: url("ico_print.gif");
    position: absolute;
    top: 3px;
    left: 2px;
}
#content #f1 a.export-link span {
    width: 16px;
    /*background-position: -114px -80px; */
    background: url("ico_print.gif");
    position: absolute;
    top: 3px;
    left: 2px;
}
#content .grid-view a.export-link span {
    width: 16px;
    /*background-position: -114px -80px; */
    background: url("ico-xls.png");
    position: absolute;
    top: 3px;
    left: 2px;
}
#content #f1 .grid-view a.export-link span {
    width: 16px;
    /*background-position: -114px -80px; */
    background: url("ico-xls.png");
    position: absolute;
    top: 3px;
    left: 2px;
}

/* Information Box Panels (Error/Notice/Success) */
.ui-info-box {
    margin: 0.5em 1.5em;
    font-size: 1em;
}
.ui-info-box div {
    padding: 1em;
}
.ui-info-box p {
    margin: 0;
}
.ui-info-box p span {
    float: left;
}
.ui-state-success {
    background-color: #EBFFCE;
    border: solid 1px #B4DAA5;
    color: green;
}

/* Job/Quote - Media View */
.media-view {
    list-style: none;
    margin: 0 0 1em 0;
    padding: 0;
    float: left;
    clear: both;
    display: flex;
    flex-wrap: wrap;
}
.media-view li {
    float: left;
    margin: 5px;
    padding: 0;
    min-height: 145px;

}
.media-view li audio {
    margin-right: 2.93em;
}
.ui-widget-content .media-view li a {
    padding: 0;
}
.media-view li span {
    font-size: 0.8em;
    display: block;
    text-align: center;
    color: #666;
    line-height: 2em;
}
.media-view audio::-webkit-media-controls-panel,
#content .items .center audio::-webkit-media-controls-panel {
    background-color: #2d9fa4;
}

a.download {
    line-height: 2em;
}
.media-view li a img,
.job-section-grid td a div img,
.quote-section-grid td a div img,
.job-section-grid td a.fancybox-photo img,
.quote-section-grid td a.fancybox-photo img,
.job-section-grid td a.fancybox-materials-supplies img,
.quote-section-grid td a.fancybox-materials-supplies img {
    border: solid 5px #2C4359;
    display: block;
    margin: auto;
    background: #fff;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.media-view li a:hover img,
.media-view li a:hover div,
.job-section-grid td a:hover div img,
.quote-section-grid td a:hover div img,
.job-section-grid td a.fancybox-photo:hover div img,
.quote-section-grid td a.fancybox-photo:hover div img,
.job-section-grid td a.fancybox-materials-supplies:hover div img,
.quote-section-grid td a.fancybox-materials-supplies:hover div img {
   opacity: 0.7;
}
.media-view li a div span,
.job-section-grid td a div span,
.quote-section-grid td a div span {
    color: #000;
    opacity: 0.9;
    background-color: #eee;
    display: block;
    padding: 0;
    height: 20px;
    line-height: 20px;
    vertical-align: middle;
}

/* Media Thumbnails */
.bg-thumb-audio,
.bg-thumb-document,
.bg-thumb-other,
.bg-thumb-photo,
.bg-thumb-video {
    width: 114px;
    height: 100px;
    margin: 0 auto;
    padding: 0;
    border: solid 5px #2C4359;
    background: #fff;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.audio-title {
    white-space: pre-wrap;
}
.bg-thumb-audio {
    background: #fff url(../images/bg-audio.png) no-repeat center -10px;
}
.bg-thumb-document {
    background: #fff url(../images/bg-document.png) no-repeat center -6px;
}
.bg-thumb-other {
    background: #fff url(../images/bg-other.png) no-repeat center -10px;
}
.bg-thumb-photo {
    background: #fff url(../images/bg-photo.png) no-repeat center center;
}
.bg-thumb-video {
    background: #fff url(../images/bg-video.png) no-repeat center -6px;
}


/* Job/Quote - Media View - FancyBox */
#tip-media-title {
    text-align: left;
}
#tip-media-title strong {
    display: block;
    text-align: center;
}
#tip-media-title span {
    float: right;
}

/* Job/Quote - Media View - Video */
#strobemediaplayback p {
    color: #ccc;
}
#strobemediaplayback p a {
    color: #ccc;
    text-decoration: underline;
}

/* Rights Menu */
#rights #menu,
#rights #menu ul {
    float: left;
    clear: both;
    margin: 0 0 1em 0;
    padding: 0;
    list-style: none;
}
#rights #menu ul li {
    float: left;
    padding: 1em;
    background: #F8F8F8;
}
#rights #menu ul li a {
    font-weight: bold;
}
#rights #assignments,
#rights #permissions,
#rights #roles,
#rights #tasks,
#rights #operations,
#rights #userAssignments,
#rights #generator,
#rights .createAuthItem,
#rights .updatedAuthItem {
    clear: both;
}


/* Operations Menu */
.operations li span {
    font: 12px Arial;
    color: #ccc;
    display: block;
    padding: 2px 0 2px 8px;
    line-height: 15px;
    text-decoration: none;
}
.operations .break {
    margin-top: 0.3em;
    border-top: solid 1px #A2E3E8;
}


.checkbox label {
    padding-right: 3px;
}

/* Job/Quote Status Reason */
#reason-box {
    display: none;
}

/* Job/Quote Reporting */
#select-contacts {
    width: 200px;
}
#job-report-form select {
    width: 300px;
}

/* Wizard Form */
div.form .wizard-form {

}
div.form .wizard-form fieldset {
    padding: 1em;
    margin: 1em 0;
    background: #fcfcfc;
    border: solid 1px #eee;
}
div.form .wizard-form .checkbox {
    margin-top: 2em;
}

/* Home - Dashboard */
.dash-portlet-content {
    position: relative;
    padding-bottom: 2.5em;
}
.home-section-grid a.button {
    font-size: 1em;
}


/* Calendar */
#calendar-wrapper {
    position: relative;
}
#calendar-loading {
    position: absolute;
    top: 33px;
    right: 5px;
    z-index: 100;
    padding: 0.2em 0.5em;
    background: #eee;
    font-weight: bold;
}
#calendar-menu {
    margin-top: 5.2em;
}
#calendar-menu .section {
    border: 1px solid #C4C4C4;
    width: 175px;
    overflow: hidden;
    padding: 5px;
    background: #F8F8F8;
    margin: 0 0 1em 0;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 0.9em;
}
#calendar-menu .section h4 {
    font-size: 1em;
    font-weight: bold;
    margin: 0 0 0.3em 0;
}
#calendar-menu .section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#calendar-menu .section ul li {
    line-height: 1.5em;
    background: #eee;
    margin-bottom: 2px;
}
#calendar-menu .section ul li.active {
    background: #b8b8b8;
    color: #fff;
    font-weight: bold;
}
#calendar-menu .section ul li a {
    text-decoration: none;
    display: block;
    color: #555;
}
#calendar-menu .section ul li a:hover {
    font-weight: bold;
}
#calendar-menu .section ul li.active a {
    color: #fff;
}
#calendar-menu .section .color-box {
    width: 15px;
    height: 15px;
    float: left;
    margin: 3px 5px 0 3px;
}

/* Calendar - Mini */
#mini-calendar {
    font-size: 0.693em;
}
thead th {
    background: inherit;
}

/* Calendar - Entries - Menu */
.fc-event-head {
    padding: 2px;
}
.fc-event-time {

}
.fc-event-title {

}
.fc-id {
    display: none;
}
.fc-edit {
    position: absolute;
    top: 2px;
    right: 4px;
    z-index: 100;
}
.fc-event-inner .button {
    padding: 0 0.5em;
}
.fc-agenda-slots td div {
    height: 16px;
}

/* Calendar - Entries - Content */
.fc-event {
    border: solid 1px #000;
}
.fc-event-content p,
.fc-event-content div {
    padding: 0 0.3em;
}
.fc-event-content div {
    font-weight: bold;
}
.fc-event-content p {
    font-style: italic;
}
.cal-user {

}

/* Calender - Entries - Divider */
.cal-user-divide {
    position: absolute;
    top:0;
    height: 20px;
    border-right: solid 1px #A6C9E2;
}
.fc-agenda-allday .cal-user-divide {
    height: 55px;
}

/* Calendar - Tips */
.qtip {
    line-height: 1.7em;
}
.qtip span {
    padding: 2px 3px;
}


/* Calendar - Bottom */
#calendar-unassigned-jobs,
#calendar-unassigned-quotes {
    border: 1px solid #C4C4C4;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 5px;
    background: #F8F8F8;
    margin: 0 0 1em 0;
    font-size: 0.9em;
    float: left;
    clear: both;
    margin: 0 0 1em 0;
}
#calendar-unassigned-quotes {
    margin: 0;
}
#calendar-unassigned-jobs h4,
#calendar-unassigned-quotes h4 {
    font-size: 1em;
    font-weight: bold;
    margin: 0 0 0.3em 0;
}
#calendar-unassigned-jobs div,
#calendar-unassigned-quotes div {
    float: left;
    margin: 0.25em;
    padding: 0.5em;
    width: 15em;
    height: 43px;
    border: solid 1px #ccc;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #ddd;
    overflow: hidden;
    cursor: pointer;
}
#calendar-unassigned-jobs div:hover,
#calendar-unassigned-quotes div:hover {
    font-weight: bold;
    background: #eee;
    border: dashed 1px #aaa;
}
#calendar-unassigned-jobs a,
#calendar-unassigned-quotes a {
    color: #555;
}
#calendar-unassigned-jobs a:hover,
#calendar-unassigned-quotes a:hover {
    color: #ccc;
}

/* Calendar - Events */
.event-job {
    border: 0;
}
.event-quote {
    border: 0;
}
.event-job .fc-event-inner {
    border: solid 1px #000;
}
.event-quote .fc-event-inner {
    border: dashed 1px #000;
}

#calendar-body {
    padding: 1em;
    border: solid 1px #ccc;
    background: #fff;
}
#calendar-body #wzd-menu {
    font-size: 0.9em;
}

/* Calendar - Dialog */
#dialog-calendar {
    display: none;
}
.calendar-dialog {
    font-size: 0.9em;
}
#dialog-calendar .ui-icon {
    float: left;
    margin: 0 7px 0 0;
}
#dialog-calendar p {
    margin: 1em 0 0 0;
}

/* Auto-Complete (with category) */
.ui-autocomplete-category {
    font-weight: bold;
    font-size: 0.8em;
    padding: 0 0 .2em .4em;
    margin: 0 0 .2em;
    border-bottom: solid 1px #888;
    line-height: 1.5em;
}
.ui-autocomplete-category-spacer {
    padding: 0;
    margin: 0;
    font-size: 0.5em;
}

.ui-button {
    margin-left: -1px;
}
.ui-button-icon-only .ui-button-text {
    padding: 0.35em;
}

/* Separtor Line */
.separator {
    background: #f0f0f0; /* #A2E3E8; */
    height: 1px;
    margin: 1em 0;
    clear: both;
}

/* From/To */
.column span.inbetween {
    line-height: 4em;
}

/* Job Reminders */
#reminders {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 255px;
}
#reminders li {
    position: relative;
}
#reminders a {
    position: absolute;
    right: 0;
    top: 5px;
}
#reminders a div {
    width: 17px;
}
#reminder-template {
    display: none;
}

.ui-timepicker .ui-menu-item a  {
    font-size: 0.9em;
    padding: 0.2em 0.1em;
    cursor: default;
}


/* Pager */
ul.yiiPager a:link,
ul.yiiPager a:visited {
    border: solid 1px #A2E3E8;
    color: #1097A0;
}
ul.yiiPager a:hover {
    border: solid 1px #43ABB2;
}
ul.yiiPager .selected a {
    background: #43ABB2;
    color: #fff;
}
ul.yiiPager .hidden a {
    border: solid 1px #DEDEDE;
    color: #888888;
}


#content #job-form .grid-view,
#content #quote-form .grid-view {
    padding: 0;
}

.half {
    width: auto;
    padding: 0;
    float: left;
    position: relative;
}
.half-left {
    width: 48%;
    padding-right: 2%;
}

#client-job-addresses #address-list {
	padding: 0px;
}
#client-job-addresses #address-list li {
	list-style: none;
	cursor: pointer;
	border-bottom: 1px solid #F0F0F0;
	padding: 4px;
}
#client-job-addresses #address-list li:hover {
	background: #c4c4c4;
}

#media-preview {
    margin: 0.5em 0;
    height: 600px;
    width: 490px;
    background: #f9f9f9;
    border: 1px solid #bbb;
    padding: 2px;
}
#media {
    margin: 0.5em 0;
}

#operation-map,
#location-map {
    color: #333;
}

.form .row p {
    line-height: 2em;
}


table.items td.center a div {
    padding: 0;
}


/* Flash Message */
#flash-message {
    margin: 1em 0;
}


/* Login Form */
#login-form input[type="text"],
#login-form input[type="password"] {
    padding: 0.3em;
    font-size: 1.2em;
    border: 1px solid #bbb;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    width: 97%;
}
#login {
    width: 400px;
    margin: 50px auto;
    background: #fff;
    border: none;
}
#login #content {
    position: relative;
    padding: 10px 20px;
}
#login #logo {
    height: 80px;
    font-size: 250%;
    line-height: 80px;
    vertical-align: middle;
}

/* Sort Order Help Text */
.order-text {
    clear: both;
    float: left;
    font-size: 1em;
    color: #555;
    padding: 0.3em;
    margin: 0;
}
.order-text span {
    display: block;
    float: left;
}
.order-text strong {
    background: #2D9FA4 url(bg-dots.png) 50% 50% repeat;
    padding: 0.2em;
    color: white;
    font-weight: normal;
}

/* Terms */
#terms {
    margin: 0.5em 0;
    height: 750px;
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #bbb;
    padding: 2px;
}

#job-details table.detail-view tr.even,
#quote-details table.detail-view tr.even{
    background: #fff;
}

/* Comments */
div.form .rowleft
{
     margin: 5px 0;
     margin-right: 5px;
     width: auto;
     float: left;
}

/* Help Videos */
.videos {
    list-style: square;
}
.videos h4 {
    margin: 3px 0;
    text-shadow: none;
    font-weight: bold;
}
#fancybox-close {
    padding: 0;
}

.fancybox-video {
	display:none;
}
#fancybox-content > div > .fancybox-video {
	display: block;
}
