
body {
	margin:5em 0 0 0;
	vertical-align:middle;
	font-size: 120%;
}

body, td, th, a, h1, h2, h3, h4, h5, h6 {
	margin:0;
	font-family:lucida,arial,sans-serif;
	color:#333333;
}

a {
    color: #336699;
    text-decoration: none;
}

.highlight {
    color: #336699;
}

* {
	margin: 0;
}

h1 {
	font-weight:bold;
	font-size:1.4em;
	margin-top:6px;
	margin-bottom:8px;
}
h2 {
	font-weight:normal;
	font-size:1.2em;
	font-style:italic;
}
.clear {
	clear:both;
}
.message {
    color:#ffffff;
    font-size:0.85em;
    padding:8px;
    border-radius:4px;
    margin-top:0;
    margin-bottom:4px;
}
.message ul {
    padding-top:10px;
    padding-bottom:10px;
}
.notificationMessage {
    background-color:#339900;
}
.errorMessage {
    background-color:#e64747;
}
.warningMessage {
    background-color:#fba637;
}
.errorText {
    color:#990000;
    font-weight:bold;
}
.fade {
    position: relative;
    bottom: 2.5em;
    height: 2.5em;
    margin:0;
    border:1px solid red;
    background: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    background-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    background-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    background-image: linear-gradient(rgba(255, 255, 255, 0) 0%,rgba(255, 255, 255, 1) 100%);
    background-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,rgba(255, 255, 255, 1) 100%);
}
.section {
    display:none;
}
.view {
    display:none;
}

#modalOverlay {
    width:100%;
    height:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:11000;
    display:none;
}

/********************************/
/* FONTS                        */
/********************************/
@font-face { font-family: "merriweather";     src: url("/static/fonts/merriweather-regular.ttf") format("truetype"); }
@font-face { font-family: "poppins-bold";     src: url("/static/fonts/poppins-bold.ttf") format("truetype"); }
@font-face { font-family: "poppins-light";    src: url("/static/fonts/poppins-light.ttf") format("truetype"); }
@font-face { font-family: "poppins-medium";   src: url("/static/fonts/poppins-medium.ttf") format("truetype"); }
@font-face { font-family: "poppins-regular";  src: url("/static/fonts/poppins-regular.ttf") format("truetype"); }
@font-face { font-family: "poppins-semibold"; src: url("/static/fonts/poppins-semibold.ttf") format("truetype"); }

/********************************/
/* FORMS                        */
/********************************/
input[type=text] {
    font-size: 0.9em;
    margin-bottom:6px;
    padding:4px;
    border: solid 1px #888888;
}
input[type=password] {
    font-size: 0.9em;
    margin-bottom:6px;
    padding:4px;
    border: solid 1px #888888;
}
/* pretty sure submit buttons are only currently found on list filters */
input[type=submit] {
    font-size: 1em;
    margin:2px;
    padding:4px;
    color: #336699;
}
select {
    font-size: 0.9em;
    margin-bottom:6px;
    padding:4px;
    border: solid 1px #888888;
}
textarea {
    font-size: 0.9em;
    margin-bottom:6px;
    padding:4px;
    border: solid 1px #888888;
}
.fieldError {
    background-color: #faded8;
    border:solid 1px #b10909;
}

/********************************/
/* IMAGE UPLOAD                 */
/********************************/
#imageUploadPopup {
    background-color: #fff;
    border:2px solid #333;
    width:500px;
    padding:20px;
}
.imageUploadPane h1 {
    font-size:1.1em;
    font-weight: normal;
}
#imageUploadClasses table {
    border-spacing:0 10px;
}
#imageUploadClasses th {
    border:1px solid #aaa;
    padding:10px;
    vertical-align: middle;
    text-align: center;
}
#imageUploadClasses td {
    padding:10px;
    vertical-align: top;
}
#imageUploadClasses h2 {
    font-size:1.2em;
    font-style:normal;
    font-weight:bold;
}
#imageUploadClasses h3 {
    font-size:0.8em;
    font-style:normal;
    font-weight:normal;
}
#imageUploadSource h2 {
    font-size:1.1em;
    font-style:normal;
    font-weight:bold;
}
#imageUploadFile h2 {
    font-size:0.8em;
    font-style:normal;
    font-weight:normal;
    margin-top:10px;
}
#imageUploadFile input {
    font-size: 1em;
    background-color: #aaa;
    width:100%;
}
#imageUploadComplete th {
    font-size:0.8em;
    font-style:normal;
    font-weight:normal;
    text-align: left;
    padding-right:20px;
}
#imageUploadComplete td {
    font-size:1em;
    font-style:normal;
    font-weight:normal;
    margin-bottom:4px;
}
#imageUploadProgressBar {
    border: 1px solid black;
    width:400px;
    height:20px;
    padding:4px;
}
#imageUploadProgressMeter {
    height:20px;
    width:1px;
    background-color:green;
}
/* puts the google places autocomplete dropdown results above the modal zindex. */
.pac-container {
    z-index: 1051 !important;
}
#imageUploadLibrary th {
    text-align:left;
}
#imageUploadLibraryTable {
    width:480px;
    height:300px;
    overflow:scroll;
}
#imageUploadLibraryTable td {
    border-top:1px #aaa solid;
    border-bottom:1px #aaa solid;
}
#imageUploadLibraryTable td {
    font-size:14px;
    padding-top:4px;
    padding-bottom:4px;
}

/********************************/
/* HEADER                       */
/********************************/
#header {
    clear:both;
    background-color: #1c5c8b;
    height:100px;
}
#logo {
    padding-top:15px;
    padding-left:10px;
    float:left;
}
#logo img {
    height:50px;
}
#buildTag {
    position: absolute;
    top:0;
    left:0;
    color:#fff;
    padding:2px;
    font-size:12px;
    font-family:monospace;
}
#session {
    float:right;
    padding:8px;
}
#session a {
    color:#ffffff;
    font-weight:bold;
    text-decoration: none;
}
#tabs {
    padding-left: 5px;
    padding-top:2px;
    color: #ffffff;
    float:left;
}
.tab {
    float:left;
    padding:2px 12px 2px 8px;
    font-weight:normal;
    margin-left:4px;
    margin-right:4px;
}
.tab a:link {
    color:#ffffff;
    font-weight:normal;
    font-size:1em;
    text-decoration: none;
}
.tab a:visited {
    color:#ffffff;
    font-weight:normal;
    font-size:1em;
    text-decoration: none;
}
.tabSelected {
    float:left;
    padding:2px 12px 2px 8px;
    font-weight:bold;
    margin-left:4px;
    margin-right:4px;
}
.tabSelected a:link {
    color:#ffffff;
    font-weight:bold;
    font-size:1em;
    text-decoration: none;
}
.tabSelected a:visited {
    color:#ffffff;
    font-weight:bold;
    text-decoration: none;
}
#container {
    padding:10px;
}
#navigation {
    background-color: #ddd;
    padding:6px 4px 4px 4px;
    border-top: solid 2px #ccc;
    border-bottom: solid 4px #1c5c8b;
}
#navigation a {
    color:#333;
    font-size:1em;
    text-decoration: none;
    margin-left:10px;
    background-repeat: no-repeat;
    padding-left:20px;
}
.navList         { background: url(/static/images/icons/list.png); }
.navAdd          { background: url(/static/images/icons/add.png); }
.navMap          { background: url(/static/images/icons/map.png); }
.navImages       { background: url(/static/images/icons/images.png); }
.navPages        { background: url(/static/images/icons/pages.png) 0 0/auto 80%; }
.navEmails       { background: url(/static/images/icons/emails.png); }
.navMessages     { background: url(/static/images/icons/messages.png); }
.navSettings     { background: url(/static/images/icons/settings3.png) 0 0/auto 80%; }
.navUser         { background: url(/static/images/icons/user.png) 0 0/auto 80%; }
.navUsers        { background: url(/static/images/icons/users.png) 0 0/auto 80%; }
.navLocation     { background: url(/static/images/icons/locations.png) 0 0/auto 80%; }
.navPromotions   { background: url(/static/images/icons/promotions.png) 0 0/auto 80%; }
.navTrips        { background: url(/static/images/icons/trips.png) 0 0/auto 80%; }
.navWebPages     { background: url(/static/images/icons/webpage.png) 0 0/auto 80%; }
.navDocuments    { background: url(/static/images/icons/document.png) 0 0/auto 80%; }
.navPlaces       { background: url(/static/images/icons/places.png) 0 0/auto 80%; }
.navUserPlaces   { background: url(/static/images/icons/user-places.png) 0 0/auto 80%; }
.navSql          { background: url(/static/images/icons/sql.png) 0 0/auto 80%; }
.navEmails       { background: url(/static/images/icons/emails.png) 0 0/auto 80%; }
.navTravelStyles { background: url(/static/images/icons/travel-styles.png) 0 0/auto 80%; }
.navUTM          { background: url(/static/images/icons/utm.png) 0 0/auto 80%; }
.navGoogle       { background: url(/static/images/icons/google.png) 0 0/auto 80%; }
.navArticles     { background: url(/static/images/icons/article.png) 0 0/auto 80%; }
.navPromotionTags{ background: url(/static/images/icons/tags.png) 0 0/auto 80%; }
.navTripExpert   { background: url(/static/images/icons/tripexpert.png) 0 0/auto 80%; }

#navMenu {
    position:absolute;
    background-color:#fff;
    padding:10px 10px 0 10px;
    border:1px solid #ddd;
    width:120px;
    box-shadow: 0 10px 30px #333;
}
.navMenuButton {
    font-size:0.85em;
    background-repeat: no-repeat;
    padding-left:24px;
    border:0;
    display:block;
    margin-bottom:10px;
    cursor:pointer;
}

#mainContent {
    float:left;
}
.controlBar {
    padding:2px;
    margin-top:4px;
    margin-bottom:4px;
}
.standardButton {
    background-color:transparent;
    border:0;
    font-size:1em;
    color:#336699;
    padding:6px;
    text-align:center;
    text-decoration: underline;
    margin-right:6px;
    cursor:pointer;
    text-wrap: none;
}
.standardButton.disabled {
    color:#aaa;
    cursor:default;
}
.deletedButton {
    background-color:transparent;
    border:0;
    font-size:0.85em;
    color:darkred;
    padding:6px;
    text-align:center;
    text-decoration: underline;
    cursor:pointer;
}
.activeSubmitButton {
    background-color: #336699;
}
.shadedSubmitButton {
    background-color: #9dbddb;
}
.noTitleStuff .ui-dialog-titlebar {
    display:none
}
.ui-dialog .ui-dialog-titlebar {
    padding: 0;
    border:0;
    position: relative;
    font-size: 1em;
    background-image: none;
    background-color:#6699cc;
}
.ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix { border:none }
.radioSet input {
    margin-right:6px;
}
.radioSet label {
    padding-right:6px;
}
.hint {
    color:#cccccc;
    font-size:0.85em;
    text-align:left;
}
.numericField {
    text-align:right;
}
.hidden {
    display:none;
}
.detailsButton {
    padding-left:10px;
    padding-right:10px;
    padding-top:4px;
    padding-bottom:4px;
    margin-bottom:4px;
    text-decoration: none;
    background-color: #eeeeee;
    border: solid 1px #888888;
    color:#336699;
    border-radius: 4px;
}
.listButton {
    padding:4px 8px 4px 8px;
    text-decoration: none;
    color:#336699;
}
.simpleTabs {
    margin-top:14px;
}
.simpleTabContainer {
    border:4px solid #bbbbbb;
    padding:8px;
    margin-top:0;
    min-width:800px;
}
.detailsTab {
    background-color: #dddddd;
    padding-left:4px;
    padding-right:4px;
    padding-top:4px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}
.detailsTab a {
    text-decoration: none;
}
.selectedTab {
    background-color: #bbbbbb;
}
#tabContainer {
    border:4px solid #bbbbbb;
    padding:8px;
    min-height:500px;
}
.popupForm h2 {
    font-style:normal;
    font-size:0.7em;
}
.formCheckbox {
    height:24px;
    width:24px;
}
.checkboxField {
    height:30px;
    width:30px;
}
.fieldComment {
    font-size:10px;
    font-style: italic;
}

#saveCompletePopup {
    border:solid #333333 4px;
    border-radius: 8px;
    background-color: #99cc66;
    font-size: 2rem;
    font-weight: bold;
    padding-top:20px;
    padding-left:20px;
    height:100px;
}
#infoPopup {
    border:solid #333333 4px;
    border-radius: 8px;
    background-color: #ffcc66;
    font-size: 1.5rem;
    font-weight: bold;
    padding:20px;
    width:260px;
}
#confirmPopup {
    border:solid #333333 4px;
    border-radius: 8px;
    background-color: #ffcc66;
    font-size: 1.5rem;
    font-weight: bold;
    padding:20px;
    width:280px;
}
#confirmPopup button {
    width:100%;
    background-color: #fff;
    font-size:1.4rem;
    border:2px #aaa solid;
    padding:4px;
    border-radius: 4px;
    margin-top:10px;
}
#simplemodal-container a.modalCloseImg {
    background:url(/static/images/x2.png) no-repeat; /* adjust url as required */
    width:50px;
    height:58px;
    display:inline;
    z-index:3200;
    position:absolute;
    top:-20px;
    right:-26px;
    cursor:pointer;
}
.verticalAlign {
    position:relative;
    top:50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.simpleButton {
    border:0;
    padding:4px;
    background-color: #aaaaaa;
    border-radius:4px;
    margin-bottom:4px;
    margin-right:4px;
}
.centerAlign {
    text-align: center;
}
.rightAlign {
    text-align:right;
}
.floatRight {
    float:right;
}
.smallText {
    font-size:0.8em;
}
#messagePopup {
    background-color: #daffd2;
    border:solid #333333 4px;
    border-radius: 8px;
    font-size: 1.2rem;
    padding:20px;
    width:440px;
}
#messagePopup h4 {
    display:inline-block;
    width:70px;
}
#messagePopup p {
    padding-bottom:4px;
    padding-top:4px;
}
.bold {
    font-weight: bold;
}
.disabledField {
    background-color: #eeeeee;
}
.externalLink {
    margin-left:4px;
    margin-right:4px;
}
.expandButton {
    background-image: url(/static/images/expand.png);
    background-size: 100% 100%;
    height:12px;
    width:12px;
    border:0;
    padding:0;
    position:relative;
    top:-6px;
}
.collapseButton {
    background-image: url(/static/images/collapse.png);
    background-size: 100% 100%;
    height:12px;
    width:12px;
    border:0;
    padding:0;
    position:relative;
    top:-6px;
}

/********************************/
/* STANDARD LIST                */
/********************************/
.listTable {
    border-collapse: collapse;
    width:100%;
    margin-bottom:10px;
}
.listTable tr:hover {
    background-color: #f0f0f0;
}
.listTable th {
    text-align:left;
    background-color: #999999;
    color:#fff;
    padding: 4px;
    width:auto;
}
.listTable td {
    text-align:left;
    color:#333;
    border-bottom: 1px dotted #888888;
    padding:4px;
}
th.sortable {
    cursor: pointer;
}
th.sortAsc {
    background-image:url(/static/images/sort_asc.png);
    background-position: right;
    background-size: auto 100%;
    background-repeat: no-repeat;
}
th.sortDesc {
    background-image:url(/static/images/sort_desc.png);
    background-position: right;
    background-size: auto 100%;
    background-repeat: no-repeat;
}
.listNotes {
    font-size:13px;
    font-style:italic;
}

/********************************/
/* DETAILS TABLE                */
/********************************/
.detailsTable th {
    background-color: #eee;
    font-size:0.8em;
    text-align: left;
    padding:2px;
}
.detailsTable td {
    font-size:0.8em;
    text-align: left;
    padding:2px;
    border-bottom:dotted #eee 1px;
    vertical-align: top;
}

.detailsContentNav {
    float:right;
}
.detailsContentNav button {
    font-weight:bold;
    background-color:#1c5c8b;
    color:#fff;
    height:20px;
    width:30px;
    border-radius:5px;
    border:0;
}

/********************************/
/* EVENTS                       */
/********************************/
.simpleEventDetail h2 {
    font-size:0.9em;
}
.simpleEventDetail h3 {
    font-size:0.7em;
    font-weight: normal;
}

.extraFilter {
    font-style:italic;
    font-weight:bold;
    color:#cc3333;
}

/********************************/
/* POPUPS                       */
/********************************/
#workingPopup {
    background-color: #fff;
    padding:20px;
    border:2px #aaa solid;
    border-radius:4px;
}
#workingPopupMessage {
    font-size:24px;
    height:24px;
}
.popup {
    display:none;
    box-shadow: 0 5px 25px rgba(24,24,25,0.7);
}
.popup h2 {
    font-style:normal;
    font-size:16px;
}
.popup__close {
    background: url(/static/images/buttons/cross.svg) no-repeat center/100% 100% transparent;
    float: right;
    border: 0;
    outline: 0;
    height: 18px;
    width: 18px;
    margin-top: 10px;
}


/********************************/
/* INFO TOOLTIP                 */
/********************************/
.infoTooltip {
    position: relative;
    display: inline-block;
    height:10px;
    width:10px;
    background-image: url(/static/images/question-icon.png);
    background-size:100% 100%;
    margin:4px;
}
.infoTooltip .infoTooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #ffffcc;
    text-align: center;
    padding: 4px 0;
    border: 2px solid #aaa;
    position: absolute;
    top:-10px;
    left:12px;
    z-index: 1;
}
.infoTooltip:hover .infoTooltiptext {
    visibility: visible;
}

/********************************/
/* DETAILS VIEW                 */
/********************************/
.detailView__sidebar {
    float:left;
    margin:8px;
    width:180px;
}
.detailView__sidebarInfo {
    border:solid 8px #ddd;
    border-radius: 6px;
    padding:10px;
    width:180px;
}
.detailView__sidebarInfo h2 {
    font-style:normal;
    font-size:0.7em;
    font-weight:900;
}
.detailView__sidebarInfo p {
    padding-bottom:2px;
    border-bottom:1px dotted #ddd;
    margin-bottom:6px;
}

.detailView__actions {
    margin-top:10px;
    margin-bottom:10px;
}

.detailView__content {
    padding:2px 0 8px 8px;
    margin-left:230px;
}
.detailView__content h2 {
    padding:4px;
    border-bottom: dotted 1px #1c5c8b;
    font-size:0.8em;
    font-style:normal;
    margin-top:8px;
    margin-bottom:8px;
}
.detailView__content h3 {
    padding:4px;
    font-size:0.9em;
    font-style:normal;
    margin-bottom:4px;
}

.detailView__table {
    width:100%;
}
.detailView__table th {
    text-align:left;
    padding:4px;
    font-size:0.9em;
    width:150px;
    vertical-align: top;
}
.detailView__table td {
    text-align:left;
    padding:4px;
    font-size:0.9em;
}

/********************************/
/* PROMOTED ITEM POPUP          */
/********************************/
#promotedItemPopup {
    background-color: #fff;
    width:600px;
    padding:10px 20px 20px 20px;
    border:2px #aaa solid;
    border-radius:4px;
    position:absolute;
}
#promotedItemPopup__table {

}
#promotedItemPopup__table th {
    text-align:left;
    vertical-align:top;
    padding:0 20px 0 0;
}
#promotedItemPopup__locationField {
    font-size: 0.9em;
    margin-bottom:6px;
    padding:8px;
    border: solid 1px #888888;
    width:400px;
}
#promotedItemPopup__notesField {
    width:400px;
    height:80px;
    resize: none;
    padding:8px;
}
#promotedItemPopup__tipsField {
    width:400px;
    height:80px;
    resize: none;
    padding:8px;
}
#promotedItemPopup__image {
    height:80px;
    width:80px;
}
.promotedItemPopup__image-selectable {
    height:120px;
    width:120px;
    margin-right:4px;
}
#promotedItemPopup__imageButton {
    border:0;
    border-radius:4px;
    background-color: #336699;
    height:26px;
    color:white;
}
#promotedItemPopup__tagField {
    font-size: 0.9em;
    margin-bottom:6px;
    padding:8px;
    border: solid 1px #888888;
    width:200px;
}
#promotedItemPopup__tagButton {
    border:0;
    border-radius:4px;
    background-color: #336699;
    height:26px;
    width:26px;
    background-image: url(/static/images/white-cross.png);
    background-size:14px;
    background-repeat: no-repeat;
    background-position: center center;
}
#promotedItemPopup__discoveredByField {
    font-size: 0.9em;
    margin-bottom:6px;
    padding:8px;
    border: solid 1px #888888;
    width:400px;
}
.porticoItemTag {
    font-size: 0.8em;
    background-color: #c2e5ff;
    border-radius:6px;
    padding:4px 26px 4px 4px;
    background-image: url(/static/images/delete-button.png);
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size:16px;
    color:#333;
    margin:4px;
    border:0;
}
#promotedItemPopup__buttons {
    text-align:center;
    padding:10px;
}
#promotedItemPopup__buttons button {
    font-size: 1em;
    border:0;
    border-radius:4px;
    background-color: #336699;
    color:white;
    min-width:200px;
    padding:10px;
}
/********************
 TYPEAHEADS
 ********************/
.typeahead__results {
    border:1px solid #ccc;
    padding:8px;
    position:absolute;
    background-color:#fff;
    z-index:20000000;
}
.typeahead__result {
    font-size: 16px;
    padding: 8px;
    overflow:hidden;
    white-space:nowrap;
    position:relative;
}
.typeahead__result strong {
    font-weight: 600;
    font-size: 16px;
}
.typeahead__result-selected {
    background-color:#ddd;
}
.typeahead__result-sub {
    font-size: 12px;
    padding-left: 8px;
    overflow:hidden;
    white-space:nowrap;
    color:#ddd;
}

/********************
 CODE HIGHLIGHTING
 ********************/
.code__keyword {
    color:blue;
    font-weight:bold;
}
.code__function {
    color:purple;
    font-weight:bold;
}
.code__string {
    color:green;
    font-weight:bold;
}
