/**
 * Defaults and Resets
 */

/* TODO: this is GLOBAL to every element, I would prefer to get rid of this and set this only
   TODO: where needed in jtgui. This tends to break 'special' layout like the DHTML color picker. */
*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: none;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    /*
    font-family: Verdana, Arial, Sans-Serif;
    */
    font-size: 11px;
}

form {
    margin: 0;
    padding: 0;
}

p {
    margin: 0 0 20px 0;
}

p:last-child {
    margin: 0;
}

a {
    transition: 0.25s ease;
}

/**
 * General
 */
.clearBoth, .clear {
    clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0;
    display: block;
}

.clearfix {
    zoom: 1;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.hidden {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

a#skip,
a#skip:hover,
a#skip:visited {
    position: absolute;
    left: 0;
    top: -500px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

a#skip:active,
a#skip:focus {
    position: static;
    width: auto;
    height: auto;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.link-button {
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

/**
 * Layout
 */
#idPageHeader {
    position: relative;
}

/* Only need to set header height on the two items below */
#idPageHeader .clsLogoBar:before {
    display: inline-block;
    content: "";
    vertical-align: middle;
    width: 15px;
    height: 80px; /* Header (LOGO area) height */
}

#idPageHeader .clsLogoBar img {
    display: inline-block;
    vertical-align: middle;
    max-height: 80px; /* Actual LOGO max height */
}

#idPageHeader .user {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    line-height: 30px;
}

#idPageHeader .actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 13px;
    line-height: 17px;
}

#idPageHeader .actions li {
    float: left;
    margin: 0 0 0 10px;
}

/* pagesBar == menu */
#pagesBar {
    background: #054c82;
    font-size: 13px;
    line-height: 17px;
    color: #fff;
    padding: 0 0 0 10px;
    z-index: 2;
    position: relative;
}

#pagesBar a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
    position: relative;
}

/* TODO: this lime green highlight color needs to be configurable!
   need to reuse the "menu body" color
 */
#pagesBar a:hover {
    background: #a8df00;
    color: #054c82;
}

#pagesBar a.dirActive {
    color: #a8df00;
}

#pagesBar a.dirActive:hover {
    background: #a8df00;
    color: #054c82;
}

#pagesBar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    background: #054c82;
}

#pagesBar li {
    position: relative;
}

#pagesBar li.has-children > a:before {
    position: absolute;
    top: 10px;
    right: 5px;
    font-family: 'FontAwesome';
    content: "\f178";
}

#pagesBar > ul {
    border-right: solid 1px rgba(255, 255, 255, 0.2);
    border-left: solid 1px rgba(0, 0, 0, 0.2);
    float: left;
}

#pagesBar > ul > li {
    float: left;
    position: relative;
}

#pagesBar > ul > li > a {
    border-left: solid 1px rgba(255, 255, 255, 0.2);
    border-right: solid 1px rgba(0, 0, 0, 0.2);
}

#pagesBar > ul > li > ul {
    position: absolute;
    top: 37px;
    left: 0;
}

#pagesBar ul ul {
    min-width: 180px;
}

#pagesBar ul ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 210px;
}

/* holds all 'toolbar's */
.subsubtitle-container {
    position: relative;
}

.toolbar {

    background: #dcdddf;
    color: #3e3e3e;

    padding: 10px 20px;
    font-size: 13px;
    line-height: 17px;
    min-height: 38px;
    z-index: 1;
}

.toolbar a {
    color: #3e3e3e;
    text-decoration: none;
}

.toolbar .panel {
    position: absolute;
    display: none;
    top: 28px;
    border: solid 1px #6e6e6e;
    border-width: 0 1px 1px 1px;
    background: #dcdddf;
    box-shadow: 3px 3px 3px 0 rgba(0, 0, 0, 0.1);
    z-index: 12;
}

.toolbar > div {
    float: left;
    position: relative;
    margin-left: 15px;
}

.toolbar .toolbar-dates {
    color: #3e3e3e;
    position: relative;
    padding: 0 25px;
    float: left;
    margin: 0;
}

.toolbar .toolbar-dates .previous,
.toolbar .toolbar-dates .next {
    text-decoration: none;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}

.toolbar .toolbar-dates .next {
    left: auto;
    right: 0;
}

.toolbar .toolbar-calendar {
    margin: 0 15px;
    top: -1px;
}

.toolbar .toolbar-calendar .toggle {
    font-size: 14px;
}

.toolbar .toolbar-calendar .panel {
    left: -72px;
    padding: 0 10px 10px 10px;
    width: 158px;
}

.toolbar .toolbar-calendar .content:before {
    position: absolute;
    content: "";
    top: -7px;
    left: 50%;
    margin-left: -7px;
    width: 13px;
    height: 7px;
    background: url(../image/icons.png) no-repeat center -471px;
}

/* TODO: a lot of the following CSS is repeated between different toolbar things */
.toolbar .toolbar-rate-report {
    margin: 0 30px;
}

.toolbar .toolbar-rate-report .fa {
    margin: 0 2px 0 0;
    width: 8px;
}

.toolbar .toolbar-rate-report-panel {
    margin: 0;
    padding: 18px;
    min-width: 800px;
    left: -80px;
}

.toolbar .toolbar-accruals {
    margin: 0 15px;
}

.toolbar .toolbar-accruals .fa {
    margin: 0 2px 0 0;
    width: 8px;
}

.toolbar .toolbar-accruals .panel {
    left: -20px;
    padding: 10px 30px 20px 30px;
    min-width: 300px;
}

.toolbar .toolbar-accruals .data {
    display: table;
    width: 100%;
}

.toolbar .toolbar-accruals .data .head {
    display: table-header-group;
    text-transform: uppercase;
}

.toolbar .toolbar-accruals .data .head > div > div {
    border-bottom: solid 1px #6e6e6e;
}

.toolbar .toolbar-accruals .data .body {
    display: table-row-group;
}

.toolbar .toolbar-accruals .data > div > div {
    display: table-row;
}

.toolbar .toolbar-accruals .data > div > div > div {
    display: table-cell;
    vertical-align: top;
    padding: 5px 0;
}

.toolbar .toolbar-accruals .data > div > div > div:last-child {
    text-align: right;
}

/* sheet status panel for mass entry timekeeping only */
.toolbar .toolbar-sheet-status {
    margin: 0 0 0 20px;
}

.toolbar .toolbar-sheet-status .fa {
    margin: 0 2px 0 0;
    width: 8px;
}

.toolbar-sheet-status-panel {
    margin: 0;
    padding: 18px;
    min-width: 700px;
    left: -80px;
}

.toolbar .toolbar-memorized-sheets {
    margin: 0 0 0 40px;
    float: right;
}

.toolbar .toolbar-memorized-sheets .fa {
    margin: 0 2px 0 0;
    width: 8px;
}

.toolbar-memorized-sheets-panel {
    margin: 0;
    padding: 12px;
    left: -120px;
}

.toolbar-memorized-sheets-panel .clsButton {
    color: #000;
}

.toolbar .toolbar-actions {
    float: right;
}

.toolbar .toolbar-actions ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.toolbar .toolbar-actions li {
    display: inline;
    margin: 0 0 0 20px;
}

.toolbar .toolbar-actions a {
    text-decoration: underline;
}

.toolbar .arrows {
    font-size: 17px;
}

.header-alert {
    font-size: 13px;
    line-height: 17px;
    padding: 10px 20px;
    cursor: pointer;
}

.header-alert .fa {
    font-size: 16px;
    margin-right: 8px;
    position: relative;
    top: 1px;
}

#timesheet {
    display: table;
    line-height: 12px;
    table-layout: fixed;
    border-top: solid 1px #bbb;
    margin: 0 0 15px 0;
    color: #000;
    opacity: 0; /* initially invisible, will fade in after loading at end of global.js */
}

#timesheet > div {
    display: table-row;
}

#timesheet > div > div, #timesheet .projects-cell {
    display: table-cell;
    vertical-align: top;
}

#timesheet .timesheet-container {
    height: 100%;
    float: left;
}

#timesheet .projects-container .buttons {
    padding: 15px 0 0 20px;
}

#timesheet .time-container .cell:hover,
#timesheet .projects-container .tb1 .cell:hover {
    cursor: text;
}

#timesheet .cell.group-head:hover,
#timesheet .projects-container .tb1 .cell.group-head:hover {
    cursor: auto;
}

#timesheet .projects-container {
    margin-right: -4px;  /* magic for split.js ...? */
}

#timesheet .totals-container {
    width: 120px;
    margin-left: -6px;  /* magic for split.js ...? */
}

#timesheet .worksheet-container {
    overflow-y: hidden;
    overflow-x: auto;
}

#timesheet .worksheet-container .table.grand-totals INPUT {
    text-align: right;
}

#timesheet .worksheet-container .table.grand-totals .cell {
    padding-left: 5px;
    padding-right: 8px;
}

#idPageFooter {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 20px;
    background: #000;
    color: #8a8a8a;
    font-size: 11px;
    line-height: 15px;

    /* Don't seem to need this and it interferes with menus when they overlap. */
    /*z-index: 10;*/
}

/* On normal pages, the footer logo should fit w/in the little footer bar */
#idPageFooter #footerLogo IMG {
    max-height: 20px;
}

#idPageFooter a {
    color: #8a8a8a;
    text-decoration: none;
}

#idPageFooter a:focus,
#idPageFooter a:hover {
    color: #fff;
    text-decoration: underline;
}

#idPageFooter .footer-block {
    position: relative;
    float: left;
    padding-right: 18px;
}

/* Underline the "Generated In..." in footer when hovering to show there's a tooltip */
#idPageFooter .generated-time:hover {
    text-decoration: underline;
}

/**
 * Miscellaneous
 */
.table {
    display: table;
    table-layout: fixed;
    width: 100%;
    background: #fff;
}

.table a {
    color: #054c82;
}

.table .row {
    display: table-row;
}

.table .col {
    display: table-cell;
    border-right: solid 1px #bbb;
}

/* Don't need a right border on the last date cell because the totals col has a left border.*/
.table .col:nth-last-child(1) {
    border-right: 0;
}


.table .cell {
    padding: 9px 10px;
    min-height: 35px; /* all rows are now 'open for edit', need a little height */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.table .cell SELECT {
    padding: 0;
    margin: 0;
}

/* Alloc can use less height */
.table .group.allocated-time .cell {
    min-height: 32px;
}

/* now obsolete b/c all cells are "new" style (open for editing with select boxes) */
/*
.table .group.new .cell {
    /!* This is a bit fragile: adding a single pixel inside the grid rows can
       throw everything off.  Was originally 35px in the DP demo
     *!/
    min-height: 35px;
}
*/

.table .inner-cell {
    position: relative;
    min-height: 28px;
    margin: -7px -10px;
    padding: 7px 10px;
}

/* .date-foot is used when a dates footer row is inserted depending on the pref. */
.table .date-foot {
    background: rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #6e6e6e;
    position: relative;
    min-height: 42px;
    padding-top: 20px;
}

.table.worksheet .date-foot {
    padding-top: 8px;
    text-align: right;
}


.table .head {
    font-weight: bold;
    color: #6e6e6e;
    position: relative;
    min-height: 45px;
    padding-top: 23px;
}

.table .head .toggle {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 11px;
    height: 11px;
    background: url(../image/icons.png) no-repeat -19px -319px;
}

.table .head .toggle.expand {
    background-position: -19px -269px;
}

.table .head .sort {
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: #6e6e6e;
    font-size: 24px;
}

.table .group-head {
    background: rgba(0, 0, 0, 0.1);
}

.table .group-head .toggle {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

.table .group-head .toggle .fa {
    font-size: 13px;
    width: 10px;
}

.table .group.striped > div:nth-child(even) {
    background: rgba(0, 0, 0, 0.05);
}

.table .group.collapsed {
    display: none;
}

.table .group.collapsed + .group-head {
    border-top: solid 1px rgba(255, 255, 255, 0.5);
}

.table [type="text"],
.table [type="time"] {
    width: 100%;
    border: none;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: 12px;
    background: none;
    padding: 0;
    height: 13px;
}

.table select {
    display: inline-block;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: 12px;

    /* PBL added - disable the "select box look" */
    border: 0;
    background-color: inherit;
}

.table .actions {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: right;
}

.table .actions li {
    display: inline-block;
    vertical-align: top;
    margin: 0 0 0 2px;
}

.table .actions a {
    display: inline-block;
    vertical-align: top;
    width: 13px;
    height: 13px;
    background: url(../image/icons.png) no-repeat center -219px;
    font-size: 1px;
    line-height: 1px;
    text-indent: -10000px;
    text-align: left;
}

.table .actions a.trash {
    background-position: center -169px;
}

/* Need this to be the initial state, but can't set in .tooltip below */
.clsPageContainer .tooltip, #theBodyTable .tooltip {
    display: none;
}

.table.projects {
    /* Don't let this bleed into the dates area when fiddling with resize */
    overflow-x: hidden;
}

.table.projects .col:first-child .head {
    padding-left: 20px;
}

/* The following rules apply different colors to each column.
   There is a div in between each column for the resizable gutter handle
   so this must be skipped over when counting children.
*/
.table.projects .col:nth-child(3) {
    background: #e8ecf1;
}

/*
.table.projects .col:nth-child(1), .table.projects .col.h1 {
}
.table.projects .col.u1 {
}

*/


.table.projects .col:nth-child(5) {
    background: #fffaf5;
}

.table.projects .col:nth-child(7) {
    background: #fdf6fa;
}

.table.projects .col:nth-child(9) {
    background: #fffaf5;
}

.table.projects .col:nth-child(11) {
    background: #e8ecf1;
}

.table.projects .col:nth-last-child(1) {
    background: #fffeeb;
    border-right: 0;
}

.table.projects .h1 .allocated-time > .in {
    background: #eaf7ed;
}

.table.projects .h1 .allocated-time > .total {
    background: rgba(0, 0, 0, 0.05);
}

.table.projects .col.h1 .group .cell {
    padding-left: 20px;
}

/*
.table.projects .col.tb1 [type="text"] {border: solid 1px #ccc; background: #fff; padding: 3px; font-size: 11px; line-height: 14px; height: 20px; margin: -3px 0;}
*/

.table.worksheet {
    /*width: 490px;*/
    text-align: right;
}

.table.worksheet .col, .table.worksheet-grand-totals .col {
    min-width: 70px;
    width: 70px;
    display: table-cell;
}

.table.worksheet .cell {
    padding-left: 5px;
    padding-right: 8px;
    position: relative;
}

.table.worksheet .head {
    padding-top: 11px;
    text-align: right;
}

.table.worksheet .foot {
    font-weight: bold;
    color: #fff;
    background: #054c82;
}

.table.worksheet .comment {
    position: absolute;
    bottom: 0;
    right: 0;
    display: block;
    width: 12px;
    height: 12px;
    text-align: left;
}

.table.worksheet .comment:before {
    position: absolute;
    content: "";
    width: 12px;
    height: 12px;
    border: solid 6px #d8d8d8;
    border-color: transparent #d8d8d8 #d8d8d8 transparent;
}

/* A filled-in attachments icon - when there are notes/files present */
.table.worksheet .comment.comments:before {
    border-color: transparent #f6e618 #f6e618 transparent;
}

.table.worksheet .allocated-time > .in {
    background: #eaf7ed;
}

.table.worksheet .allocated-time > .total {
    background: rgba(0, 0, 0, 0.05);
}

.table.worksheet input {
    text-align: right;
}

.table.worksheet-grand-totals {
    /*width: 490px;*/
    width: 100%
}

.table.totals {
    /*width: 120px;*/
    /*width: 100%;*/

}

#column-totals {
    border-left: solid 1px #bbb;
}

.col-total {
    text-align: right;
}

/* 60 is enough for time entry, but expense and mileage/custom can require more */
.timesheet .table.totals .col-total {
    width: 80px;
}

.timesheet.time .table.totals .col {
    width: 60px;
}

.table.totals .col:last-child {
    border-right: none;
}

.table.grand-totals {
    font-weight: bold;
    color: #fff;
    background: none;
}

.table.grand-totals .col {
    border-right: none;
    text-align: right;
}

/* Ensure the grand total in expense screens has correct width */
#timesheet.expense .table.grand-totals .col:nth-last-child(1) {
    width: 40px;
}

/*
 * Apply a light gray shading to weekends in the grid
 * Currently you can't change the sat/sun weekend or turn the shading off.
 */
.time-container .col.weekend {
    background-color: #ececec;
}



a.icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    text-indent: -10000px;
    background: url(../image/icons.png) no-repeat center -367px;
    vertical-align: middle;
}

a.icon.search {
    background-position: center -417px;
}

/* Allocation entry balance - indicate if balanced or not */
.alloc-ok {
    color: #009203;
}

.alloc-bad {
    color: #e80001;
}

.my-projects-link {
    font-weight: bold;
}

.dialog {
    margin: 0 auto;
    max-width: 505px;
    position: relative;
}

.dialog .mfp-close {
    top: -37px;
    right: -5px;
}

.btn {
    background: none;
    border: solid 1px #fff;
    cursor: pointer;
    margin: 0 5px 10px 0;
    border-radius: 5px;
    color: #fff;
    min-width: 150px;
    padding: 5px 10px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    line-height: 17px;
}

.btn:focus,
.btn:hover {
    background: #a8df00;
    color: #054c82;
}

.ui-tooltip {
    max-width: 380px;
}

/* Applied by wtdoc.make_static_tooltip(wide=True) for unconstrained width */
.ui-tooltip-wide {
    max-width: inherit;
}

.ui-tooltip-content {
    padding: 4px;
    font-size: 11px;
    line-height: 14px;
    color: #545454;
}

/* Note: the project tree tooltip is currently unavailable except on memorized entries */
.ui-tooltip-content .tree {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.ui-tooltip-content .tree ul {
    margin: 0;
    padding: 0 0 0 10px;
    list-style-type: none;
}

/**
 * Forms
 */
form.form {
    width: 100%;
}

form.form .row {
    padding: 0 0 5px 0;
}

form.form .label {
    float: left;
    width: 90px;
}

form.form .field {
    float: left;
    width: 190px;
}

/*
input[type="submit"] {
    cursor: pointer;
    border-radius: 0;
}
*/


/** from superfish.css - fixes flash of unstyled content in dropdown menus **/
/*** ESSENTIAL STYLES ***/
.sf-menu, .sf-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-menu li {
    position: relative;
}

.sf-menu ul {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    z-index: 99;
}

.sf-menu > li {
    float: left;
}

.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul {
    display: block;
}

.sf-menu a {
    display: block;
    position: relative;
}

.sf-menu ul ul {
    top: 0;
    left: 100%;
}
