/* BASIC ELEMENTS */
html,body {
    font-family: 'Montserrat';
    margin:0;
    padding:0;
    background-color:#f5f6fa;
    font-size: 14px;
    /*overflow: hidden;*/
}
h1,h2,h3,h4,h5,h6 {
    text-align: center;
}
a {
    color:#333;
    text-decoration: none;
}
button {
    margin:8px auto;
    padding:8px 16px;
    border-radius:5px;
    box-shadow:none;
    border:none;
    cursor: pointer;
}
.tablesorter th, input, textarea {
    cursor: pointer;
}
input, textarea {
    transition: background-color 0.2s ease-in;
}
input[type="number"] {
    line-height: 2;
}

#task-list {
    transition: opacity 0.5s ease-in;
    opacity: 1;
}
#task-list.loading {
    opacity: 0;
}
#load-spinner {
    text-align: center;
    position: absolute;
    width:100%;
    left:0;
    padding-top:120px;
}

/* HEADER*/
header {
    padding:8px 0;
    background-color:#f5f6fa;
    box-shadow:0 0 5px 5px #ddd;
    position:fixed;
    width:100%;
    z-index:9
}
header h1 {
    margin:0;
}
header .logo {
    margin: auto;
    max-height: 38px;
    display: block;
}
header nav {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px 24px;
}
.stats-menu {
    float:left;
    position: sticky;
    left: 20px;
    top: 16px;
    font-size:24px;
}
.toggle-menu {
    font-size:24px;
}
header .username {
    position:absolute;
    right:24px;
    top:20px;
}
nav ul {
    position:absolute;
    left: -200px;
    transition:left 0.2s ease-in;
    background-color:#f5f6fa;
    padding:1px 0 0;
    list-style:none;
    margin-top: 12px;
}
nav ul.show {
    display:block;
    left:0;
    box-shadow: 8px 8px 8px -5px #ddd;
}
nav li a {
    padding:10px 25px;
    display: block;
    min-width: 130px;
    border-top:1px solid #ddd;
}
nav li:last-child a {
    border-bottom:1px solid #ddd;
}

/* FOOTER */
footer {
    padding:25px;
    min-height:40px;
    text-align:center;
    background-color:#f5f6fa;
}

/* CONTENT */
section {
    padding:90px 25px 60px;
    background-color:#f5f6fa;
    min-height:500px;
    position: relative;
    z-index: 1;
}
#log-filter,
#filter {
    text-align: center;
}
#filter a {
    display:inline-block;
    padding:8px 32px;
    border-radius:5px;
    border:1px solid #ddd;
    background:transparent;
}
#filter a:hover,
#filter a.active {
    background:#fff;
}
/*#month-select,*/
#user-filter,
#month-status {
    min-width:300px;
    width:360px;
    position:relative;
    min-height:20px;
    top:8px;
}
#user-filter {
    float:left;
}

/*#month-select {
    float:right;
    width:200px;
    top:0;
    text-align: left;
    margin-bottom: 40px;
    margin-right:12px;
}*/
[name="month-select-stat"],
#month-status [name="month-select"] {
    padding: 5px 8px;
    margin: 0 0 25px;
    max-width:200px;
}
#month-status [name="month-select"] {
    max-width:230px;
}
select[name="tick-usr"],
select[name="company"] {
    padding: 5px 8px;
    max-width: 100%;
    margin-bottom:5px;
}
#month-status {
    text-align: right;
    float:right;
}
#month-status .status-day {
    position:absolute;
    display: block;
    opacity: 0;
    transition: all 0.2s ease-in;
    text-align: left;
    top: 6px;
    left: 5px;
    font-size: 10px;
}
#month-status > .status:hover .status-day {
    opacity: 1;
}
#month-status > .status {
    overflow: hidden;
    min-width:230px;
}
.status {
    display:inline-block;
    position:relative;
    min-width:200px;
    border:1px solid #ddd;
    border-radius:5px;
    padding-left:10px;
    /*overflow: hidden;*/
    vertical-align: top;
    max-height: 28px;
    top: -3px;
    box-sizing: border-box;
}
li.task:not(.fake-important) .status.red-border {
    border-color: red;
}
.status-bar {
    position: absolute;
    display:block;
    min-width:5px;
    max-width:100%;
    width:auto;
    background-color:#98BEE8;
    height: 100%;
    left: 0;
    z-index: 0;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
}
.status-bar.orange {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
.status-goal {
    opacity:0.2;
}
.status-goal.orange {
    opacity:0.4;
}
.status-goal.blue {
    display:none !important;
}
.status-goal.green {
    opacity:1;
    z-index:1;
}
li.task .status-goal.green + .status-bar.green {
    background-color: #0EBE76;
}
.status-text {
    position:relative;
    z-index:2;
    font-size: 12px !important;
    line-height: 28px;
    vertical-align: top;
}
/*
.status-bar.orange {
    background-color:#FFC32B;
}
*/
.status-bar.orange {
    background-color:#ffaa00;
    /*
    width:attr(data-diff);
    position: relative;
    left:attr(data-mdone);
    */
}
.status-bar.green {
    background-color:#3EEE96;
}
.status-bar.yellow {
    background-color:#D3DD7F;
}
.status-bar.red {
    background-color:#F58586;
}
.status-bar.red.flash {
    background-color:#F58586;
    animation: redalert 1.5s infinite;
}
.green-txt {
    color: #3EEE96;
}
.red-txt {
    color: #F58586;
}
.greentxt {
    color: green;
}
.redtxt {
    color: red;
}
@keyframes redalert {
    0% {background-color: #F58586;}
    /*20% {background-color: #F58586;}*/
    50% {background-color: #FFA5A6;}
    /*80% {background-color: #F58586;}*/
    100% {background-color: #F58586;}
}
@keyframes pulse {
    0% {
        transform: scale(1);
        /*box-shadow: 0 0 0 0 rgba(255, 121, 63, 0.7);*/
    }
    50% {
        transform: scale(1.5);
    }
    20%, 70% {
        transform: scale(0.8);
        /*box-shadow: 0 0 0 10px rgba(255, 121, 63, 0);*/
    }
    
    100% {
        transform: scale(1);
        /*box-shadow: 0 0 0 0 rgba(255, 121, 63, 0);*/
    }
}
.pulse:after {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    /*transform: scale(1);*/
    animation: pulse 1500ms infinite;
}
#perf-toggle {
    float: right;
    width: 32px;
    height: 32px;
    font-size: 24px;
    padding: 12px;
    border: 2px solid #3EEE96;
    border-radius: 50%;
    color: #3EEE96;
    margin-left: 12px;
}
#edit-user,
#create-company,
#create-user,
#login {
    width:90%;
    max-width:500px;
    margin:90px auto;
}
select[name="log-task"],
[name="logo-list"],
.perf-sel input,
[name="select-period"],
[name="company-select"],
[name="month-select-stat"],
[name="month-select"],
[name="user-select"],
[name="select-user"],
#edit-user input,
#log-filter input,
#create-company input,
#create-company textarea,
#create-user input,
#create-user select,
#create-task input,
#create-task select,
#create-task textarea,
#create-subtask input,
#create-subtask select,
#create-subtask textarea,
.update-task input,
.update-task select,
.update-task textarea,
.update-subtask input,
.update-subtask select,
.update-subtask textarea,
#login input {
    width:100%;
    margin:10px auto;
    padding:12px;
    border:1px solid #aaa;
    border-radius:5px;
    box-sizing: border-box;
}
select[name="log-task"],
#log-filter input,
[name="company-select"],
[name="month-select-stat"],
[name="month-select"],
[name="user-select"] {
    max-width: 300px;
}
.update-subtask input[name="task-price"],
.update-subtask input[name="task-time"],
.update-subtask input[name="task-expenses"],
.update-subtask input[name="task-expensestime"],
#create-subtask input[name="task-price"],
#create-subtask input[name="task-time"],
#create-subtask input[name="task-expenses"],
#create-subtask input[name="task-expensestime"],
.perf-sel input,
.update-task input[type="number"],
.update-task input.date,
#create-task input[type="number"],
#create-task input.date {
    width:48%;
}
.update-subtask input[name="task-price"],
#create-subtask input[name="task-price"],
.perf-sel input:not(:last-child),
.update-task input[type="number"],
.update-task input.date,
#create-task input[type="number"]:not([name="task-time"]),
#create-task input.date {
    margin-right:3%;
}
.update-subtask input[name="task-expenses"],
#create-subtask input[name="task-expenses"],
.update-task input[name="task-expenses"],
#create-task input[name="task-expenses"]{
    margin-right:3% !important;
}
.update-task input[type="number"] + input[type="number"],
.update-task input.date + input.date,
.update-task input.date[name="task-recurrence-start"],
#create-task input.date[name="task-recurrence-start"],
#create-task input[type="number"] + input[type="number"],
#create-task input.date + input.date {
    margin-right:0;
}
#change-task,
#close-ticket,
#performance:not(.embed),
div.create-log,
#create-task,
#create-subtask {
    display:none;
    position:fixed;
    left:50%;
    top:50%;
    width:90%;
    max-height: 80%;
    padding:10px;
    border-radius:5px;
    background-color:#f5f6fa;
    box-shadow:0 0 8px 8px #ddd; 
    max-width:500px;
    transform: translate(-50%, -50%);
    z-index: 9;
    overflow: auto;
}
#change-task {
    z-index: 9999;
}
#change-task select {
    max-width: 100%;
}
#performance:not(.embed) {
    transform: translate(-50%, 0%);
    top:10%;
}
#close-ticket {
    text-align: center;
}
#close-ticket button {
    display: inline-block;
    width: 30%;
    margin:12px 1%;
}
#close-ticket .go-log {
    background-color: #3EEE96;
}
#close-ticket .no-log {
    background-color: #F58586;
}
#close-ticket .create-log {
    position: static;
    transform: none;
    box-shadow: none;
}
#performance:not(.embed) {
    max-width:1200px;
    text-align: center;
    z-index:1001;
/*
    width:90%;
    max-height: 80%;
    overflow: auto;
*/
}
.performance-table td:last-child {
    text-align: right;
    font-weight: 600;
}
.performance-table:not(.employees) td:last-child:after {
    content:',-';
}
.performance-table span.currency {
    position: relative;
    padding-right:10px;
}
.performance-table span.currency:after {
    position:absolute;
    right:0;
    top:0;
    content:',-';
}
.performance-table h4 {
    text-align: left;
}
.performance-table.employees span {
    display: block;
    font-weight: 400;
    line-height: 2;
}
.create-btn {
    background-color:#3EEE96;
    color:#fff;
}
.delete-btn {
    background-color: #F58586;
    color: #fff;
}
.close-note,
.close {
    float: right;
    font-size: 32px;
    display: block;
    padding: 0 10px;
    font-weight: 700;
    color: red;
    position: sticky;
    right: 10px;
    top: 10px;
}
.close-note {
    position: absolute;
    z-index: 999;
    top: 10px;
}
.clear-value {
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    color: red;
    margin-left: -16px;
}
#notes a.close-note span.txt {
    font-size: 12px;
    display: inline;
    padding: 0;
    vertical-align: middle;
}
#notes .save-success i {
    color:#3EEE96;
    font-size:48px;
}
#notes .save-error i {
    color:red;
    font-size:48px;
}
#notes .save-success,
#notes .save-error {
    position:absolute;
    bottom:25px;
    right:25px;
    z-index:999;
}

#task-list {
    list-style:none;
    padding:0;
}
#task-list .subtask,
#task-list li.list-title {
    padding-left:0;
}
#task-list li.list-title {
    overflow:hidden;
}
input[name='cust-filter'],
input[name='initials-filter'],
input[name='task-filter'],
input[name='deal-filter'] {
    padding:5px 0;
    background-color: transparent;
    border:none;
    font-size: inherit;
    max-width: calc(100% - 8px);
}
input[name='cust-filter']::placeholder,
input[name='initials-filter']::placeholder,
input[name='task-filter']::placeholder,
input[name='deal-filter']::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #000;
    opacity: 1; /* Firefox */
}
input[name='cust-filter']:-ms-input-placeholder,
input[name='initials-filter']:-ms-input-placeholder,
input[name='task-filter']:-ms-input-placeholder,
input[name='deal-filter']:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #000;
}
input[name='cust-filter']::-ms-input-placeholder,
input[name='initials-filter']::-ms-input-placeholder,
input[name='task-filter']::-ms-input-placeholder,
input[name='deal-filter']::-ms-input-placeholder { /* Microsoft Edge */
    color: #000;
}
span.stat-filter {
    margin-top:0 !important;
}
a.stat-filter:not([data-toggle="all"]) {
    font-weight:700;
}
a.stat-filter[data-toggle="behind"] {
    color:#F58586;
}
a.stat-filter[data-toggle="ahead"] {
    color:#3EEE96;
}
a.stat-filter[data-toggle="done"] {
    color:#98BEE8;
}
.filter-list,
#initials-list,
#tasks-list,
#deals-list {
    position: absolute;
    display:none;
    list-style:none;
    padding-left:0;
    z-index:9;
    background:#fff;
    padding:12px 0;
    border-radius:5px;
    box-shadow: 0 1px 6px 0px #ddd;
}
#task-list #initials-list > li,
#task-list #tasks-list > li,
#task-list #deals-list > li {
    font-size: 12px;
}
.filter-filter.active .filter-list,
input[name='initials-filter']:focus ~ #initials-list,
input[name='initials-filter']:active ~ #initials-list,
input[name='task-filter']:focus ~ #tasks-list,
input[name='task-filter']:active ~ #tasks-list,
input[name='deal-filter']:focus ~ #deals-list,
input[name='deal-filter']:active ~ #deals-list,
#initials-list:focus,
#initials-list:active,
#tasks-list:focus,
#tasks-list:active,
#deals-list:focus,
#deals-list:active {
    display: block;
}
.clear-input {
    font-size: 20px;
    line-height: 1;
    position: relative;
    top: 3px;
    color: red;
    margin-left: -16px;
    z-index: 99;
}
input[name='initials-filter']:not(.active) ~ .clear-input,
input[name='task-filter']:not(.active) ~ .clear-input,
input[name='deal-filter']:not(.active) ~ .clear-input {
    display:none;
}
input[name='initials-filter'].active,
input[name='task-filter'].active,
input[name='deal-filter'].active {
    border-radius: 10px;
    background-color: #3EEE96;
    padding-left: 8px;
    color: #fff;
    font-weight: 600;
}
#task-list li {
    margin-bottom:10px;
    padding:0px 12px;
    font-size: 0;
    border-radius: 5px;
    width:100%;
    box-sizing: border-box;
}
#task-list .task {
    position:relative;
    background-color:#fff;
    box-shadow: 0 1px 6px 0px #ddd;
    height:auto;/*40px;*/
    transition:height 0.2s ease-in;
    padding-left:0;/*28px;*/
}
/*
#task-list li.task[data-unsnooze="1"] {
    background-color: rgba(255, 170, 0, 0.25);
}
*/
#task-list li.task:not(.stale):not(.almost-used) a.snooze-toggle {
    display:none !important;
}
#task-list li.task.almost-used a.snooze-toggle,
#task-list li.task.stale a.snooze-toggle {
    position: absolute;
    right: 50px;
    top: 12px;
}
#task-list li.task.almost-used a.snooze-toggle:after,
#task-list li.task.stale a.snooze-toggle:after {
    color: orange;
    content: "\f0a2";
    display: inline-block;
    font-family: 'FontAwesome';
    font-size: 14px;
}
#task-list li.task.almost-used:not(.stale) a.snooze-toggle:after {
    color:#98BEE8;
}
#task-list li.task[data-unsnooze="1"]:after {
    color: orange;
    content: "\f0a2";
    display: inline-block;
    font-family: 'FontAwesome';
    font-size: 14px;
    position: absolute;
    right: 35px;
    top: 12px;
    opacity: 0;
    z-index: -1;
}
#task-list .task.has-subs {
    cursor: pointer;
}
#task-list .task.has-subs:before {
    content:"\f0ca";
    font-family: 'FontAwesome';
    font-size: 15px;
    position:absolute;
    left: 8px;
    top: 11px;
}
#task-list .task .controls {
    position: absolute;
    top: 5px;
    right: 40px;
    padding: 2px 5px;
    background-color: #fff;
    display:none;
    z-index: 90;
    box-shadow: 0 0 5px 0px #ddd;
    border-radius: 5px;
}
#task-list .task .subtask .controls {
    top: 2px;
    right: 35px;
    padding: 1px 3px;
    border-radius: 3px;
}
#task-list .task .controls button {
    margin:2px;
    padding:8px 12px;
    background-color:#fff;
    /*border:1px solid #aaa;*/
    color:#ddd;
}
.impmiss,
#task-list .task .controls .snooze button {
    color:red;
}
#task-list .task .controls .snooze button i {
    position: relative;
}
#task-list li.task[data-important="-1"] .snooze button i:after,
#task-list .task .controls .snooze button:hover i:after {
    color:#777;
    content:"\f05e";
    position: absolute;
    left:-4px;
    top:-5px;
    font-size:22px;
}
#task-list .task .controls [name='task-not-important'][value='-1'] ~ button,
#task-list .task .controls [name='task-important'][value='1'] ~ button {
    background-color:#3EEE96;
    color:#fff;
}
#task-list .task .controls [name='close-task'] ~ button {
    color: #333;
    font-size: 18px;
    padding: 1px 8px 0px;
}
#task-list li.task[data-unsnooze="0"] .insnooze,
#task-list:not(.show-closed) .task[data-closed="1"] {
    display:none !important;
}
#task-list .task .controls [name='close-task'] ~ button {
    display:none;
}
#task-list .task[data-closed="0"][data-deal="0"] .controls [name='close-task'] ~ button,
#task-list .task[data-closed="0"][data-deal="1"] .controls [name='close-task'] ~ button,
#task-list .task[data-closed="0"][data-deal="2"] .controls [name='close-task'] ~ button,
#task-list .task[data-closed="0"][data-deal="3"] .controls [name='close-task'] ~ button {
    display:inline-block;
}
#show-closed {
    float:right;
}
.task[data-closed="1"]:before {
    content:'';
    display:block;
    position:absolute;
    left: 0;
    top: 0;
    border-radius: 10px;
    z-index:9;
    width:100%;
    height:100%;
    background-color:rgba(255,255,255,0.8);
}
/*#task-list .task:hover .controls {*/
#task-list .task.show-menu > .controls,
#task-list .subtask.show-menu > .controls {
    display: block;
}
#task-list .task .controls > * {
    display:inline-block;
    vertical-align: middle;
}
#task-list .task .controls > a {
    font-size: 18px;
    min-width: 32px;
    text-align: center;
}
#task-list .subtask .controls > a {
    font-size: 16px;
    min-width: 24px;
}
#task-list .task.show {
    height:auto;
}
.log-wrapper li span,
#task-list li span {
    display: inline-block;
    font-size:13px;
    margin-right:0.7%;
    vertical-align: middle;
}
#task-list li.task > span:first-child {
    position: relative;
    padding-left: 28px;
    padding-top: 10px;
    padding-bottom: 10px;
}
#task-list li.task.new > span:last-of-type:after {
    /*font-family: 'FontAwesome';*/
    /*content:"\f005";*/
    content: "NY";
    color: #CCCC00;
    font-weight: 600;
    position: absolute;
    /* text-shadow: 1px 1px 0px #aaa; */
    margin-left: 8px;
    font-size: 12px;
}
.log-wrapper li span:first-child,
#task-list li span:first-child {
    width:16%;
}
#task-list li.task > span:first-child {
    box-sizing: border-box;
}
body.reduce-table #task-list > li > span:first-child {
    width:17.5%;
}
#task-list li span:nth-child(7) {
    min-width: auto;/*240px;*/
    width:15%;
    margin-top: 8px;
    margin-bottom: 2px;
}
body.reduce-table #task-list > li > span:nth-child(7) {
    width:17.5%;
}
#task-list li span:nth-child(3),
#task-list li span:nth-child(2) {
    width:12%;
}
body.reduce-table #task-list > li > span:nth-child(3),
body.reduce-table #task-list > li > span:nth-child(2) {
    width:13.5%;
}
#task-list li span:nth-child(4),
#task-list li span:nth-child(5),
#task-list li span:nth-child(8) {
    width:7%;
    /*max-width:80px;*/
}
#task-list li span:nth-child(9) {
    width:6%;
}
body.reduce-table #task-list > li > span:nth-child(4),
body.reduce-table #task-list > li > span:nth-child(5),
body.reduce-table #task-list > li > span:nth-child(8) {
    width:8.5%;
}
body.reduce-table #task-list > li > span:nth-child(9) {
    width:7.5%;
}
#task-list li span:nth-child(6),
#task-list li span:nth-child(10) {
    width:2.5%;
    /*max-width: 45px;*/
}
body.reduce-table #task-list > li > span:nth-child(6),
body.reduce-table #task-list > li > span:nth-child(10) {
    width:3.5%;
}
#task-list li span:nth-child(11) {
    width:4%;
    margin-right:0;
}
body.reduce-table #task-list li span:nth-child(11) {
    width:5%;
}
#task-list .task p,
#task-list .task ul,
#task-list .task .log {
    font-size:10.5px;
}
#task-list .task .log {
    padding-top: 5px;
}
.log-wrapper .log,
#task-list .log {
    padding:0;
    list-style: none;
}
.log-wrapper .log span:first-child,
#task-list .log span:first-child {
    font-size:10.5px;
    width:140px;
    vertical-align: middle;
    position: relative;
}
.log-wrapper .log li,
#task-list .log li {
    border-top:1px solid #ddd;
    border-radius: 0;
    margin-bottom:0;
}
.log-wrapper .log span:not(:first-child),
#task-list .log span:not(:first-child) {
    font-size:12px;
    width: calc(100% - 390px);/* 270px);*/
    vertical-align: middle;
}
.log-wrapper .log .date-expense,
#task-list .log .date-expense {
    float:right;
    width: 140px;
    margin-top:2px;
}
.log-wrapper .log .date-expense input,
#task-list .log .date-expense input {
    width:100%;
    margin-bottom:2px;
}
body.reduce-table #task-list .log span:last-child,
#task-list .log span:last-child {
    width: calc(100% - 130px);
}
ul.log form.delete {
    display: inline-block;
    vertical-align: middle;
}
.create-log h4 {
    font-size:18px;
    margin:12px auto;
}
.create-plan-form select,
.create-plan-form input:not([type="checkbox"]),
.create-log-form select,
.create-log-form input:not([type="checkbox"]),
.create-log select,
.create-log input:not([type="checkbox"]) {
    width: calc(100% - 180px);
    margin:0 10px;
    padding:5px;
    border:1px solid #aaa;
    border-radius:5px;
    box-sizing: border-box;
}
.create-plan-form > input,
.create-log-form > input,
.create-log > input {
    margin: 10px 0;
    width:75%;
}
.create-plan-form label,
.create-log-form label,
.create-log label {
    font-size: 12px;
    padding: 8px;
    display: inline-block;
}
.create-plan-form [type="checkbox"],
.create-log-form [type="checkbox"],
.create-log [type="checkbox"] {
    margin-left: 16px;
}
/*
.create-log input:first-child,
.create-log input:last-child {
    margin:0;
    width:75px;
}
*/
.log .delete-btn {
    float:right;
}
.msg {
    position:fixed;
    bottom:60px;
    text-align: center;
    left:50%;
    transform:translateX(-50%);
    width:500px;
    background-color:#3EEE96;
    color:#fff;
    text-shadow: 0px 0px 5px #333;
    font-size:16px;
    padding:16px;
    border-radius:5px;
    z-index:9;
}
table {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    border: 1px solid #aaa;
    text-align: left;
    border-collapse: collapse;
}
table button {
    margin:0;
}
table th,
table td {
    border: 1px solid #aaa;
    padding:5px 8px;
}
table.edit td {
    padding:1px;
}
table th.delete,
table th.edit,
table td.delete,
table td.edit {
    width:50px;
}
table tfoot {
    font-weight: 600;
}
table input,
table textarea {
    width:calc(100% - 8px);
    display:inline-block;
    border: none;
    margin-left:2px;
    padding:2px 3px;
    box-sizing: border-box;
    min-height:24px;
}
table.tasks th:nth-child(1),
table.tasks td:nth-child(1) {
    width:120px;
}
table.tasks th:nth-child(3),
table.tasks td:nth-child(3),
table.tasks th:nth-child(4),
table.tasks td:nth-child(4),
table.tasks th:nth-child(5),
table.tasks td:nth-child(5),
table.tasks th:nth-child(6),
table.tasks td:nth-child(6) {
    width:40px;
}
table.tasks th:nth-child(2),
table.tasks td:nth-child(2) {
    width:90px;
}
table.expenses th:first-child,
tr.expense td:first-child,
table.expenses form input[type="text"] {
    width:54%;
}
table.expenses th:nth-child(2),
tr.expense td:nth-child(2),
table.expenses form input[type="number"] {
    width:29%;
}
table.expenses form input[type="submit"] {
    width: 10%;
}
table.expenses .total td {
    padding:5px;
    font-weight: 600;
}
table.settings {
    text-align: center;
}
.col-3,
.col-6,
.col-9 {
    display:inline-block;
    width:49.5%;
    vertical-align: top;
}
.col-3 {
    width:33%;
}
.col-9 {
    width:66%;
}
.col-12 {
    width:100%;
}
form.edit input,
form.edit select {
    display:none !important;
}
#dialog-close-clone,
#task-list li.task[data-important="0"]:not(.fake-important):not(.fake-important-stale) .snooze,
textarea[readonly] ~ [name="change-ticket-user"],
progress,
.update-task input.date,
#create-task input.date,
.create-log,
.log-wrapper,
.edit-wrapper,
.notes-wrapper,
input.new {
    display:none;
}
.edit-wrapper,
.log-wrapper,
.notes-wrapper {
    position: fixed;
    background: #fff;
    width: 90%;
    max-width:1000px;
    left: 50%;
    z-index: 99;
    box-shadow: 0 1px 6px 0px #ddd;
    padding: 12px;
    top: 50%;
    transform: translate(-50%,-50%);
    max-height: 80%;
    overflow: auto;
    font-size: 10.5px;
}

.add-log {
    display: inline-block;
    background-color: #3EEE96;
    border-radius: 8px;
    padding: 5px 12px;
    /*margin-top: -4px;*/
    color: #fff;
}
li.has-subs > span > .add-log {
    /*
    position: relative;
    z-index: -1;
    */
    display:none;
}
li.has-subs > span:nth-child(6):after {
    content:'\f078';
    font-family: 'FontAwesome';
    font-size: 10px;
    display: inline-block;
    background-color: #3EEE96;
    border-radius: 8px;
    padding: 8px 11px;
    color: #fff;
    cursor: pointer;
}
.number-wrapper > * {
    display:inline-block;
    width:20% !important;
}
.number-wrapper a {
    background-color: #3EEE96;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
    vertical-align: top;
    margin-bottom: 10px;
    color: #fff;
}
#user-stats .user,
#user-filter .user {
    opacity:0.2;
    display: inline-block;
    margin: 0 2px 0 0;
    padding: 14px 0;
    width: 48px;
    border-radius: 50%;
    border: 1px solid #777777;
    text-align: center;
}
#user-stats .user,
#user-filter .user.active {
    opacity:1;
}
#user-stats {
    margin-top: 25px;
}
.perf-sel {
    display:inline-block;
}
.user-stat {
    display:inline-block;
    vertical-align:top;
    min-width:190px;
    margin-right:4%;
    cursor: pointer;
}
.user-stat.this-user {
    background-color:#ffffff;
    padding:8px;
    margin-left:-8px;
    position: relative;
    top:-8px;
    margin-right:calc(4% - 8px);
    border-radius: 8px;
}
.user-stat:last-child {
    margin-right:0;
}
.user-stat .user {
    float:left;
}
.user-stat span.stat,
.user-stat span.goal {
    display: block;
    text-align: right;
    line-height:1;
    font-size:21px;
}
.user-stat span.goal {
    /*color:#777;*/
    font-size: 75%;
    margin-top: 5px;
    font-weight:600;
}
.user-stat span.stat {
    color:#3EEE96;
    font-weight:700;
}
.user-stat span.stat.orange {
    color:#ffaa00;
}
.user-stat span.stat.yellow {
    color:#D3DD7F;
}
.user-stat span.stat.red {
    color:#F58586;
}
.perf-bar {
    display: inline-block;
    vertical-align: top;
    width:44%;
    margin:5px 1% 0;
}
.perf-bar .target-txt {
    display: block;
    text-align: right;
    padding:5px;
    font-size: 12px;
}
.perf-bar .val {
    font-weight: 600;
    font-size: 16px;
}
.perf-bar .status {
    width:100%;
}
.perf-bar .status-text {
    display: block;
    min-height: 28px;
    opacity:0;
    transition: all 0.2s ease-in;
}
.perf-bar:hover .status-text {
    opacity: 1;
}
#month-status .status-goal.green,
.perf-bar .status-goal.green {
    z-index: 1;
    opacity: 0.3;
    background-color:#00AA00;
}
/*
.perf-bar .status-bar {
    min-height:14px;
    height:14px;
}
.perf-bar .status-goal {
    top:13px;
}
*/
.perf-name {
    width: 90%;
    margin: 12px auto 0;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.contact-info {
    display:inline-block;
    max-width:90%;
    width:800px;
    margin:auto;
    padding: 25px 25px 15px;
    background-color:#fff;
    box-shadow:0 1px 6px 0px #ddd;
    border-radius:5px;
    vertical-align: middle;
}
.contact-info > * {
    vertical-align: top;
    margin:0;
    width:400px;
    max-width:90%;
    list-style: none;
    padding:0;
    display:inline-block;
}
.contact-info span {
    display: inline-block;
    margin-bottom:8px;
    min-width:140px;
    font-weight:600;
}
.clear {
    content:'';
    display:block;
    clear:both;
}
.company-tasks {
    list-style: none;
    padding:0;
    margin-top:40px;
}
.company-tasks li {
    margin-bottom:10px;
    padding:8px 12px;
    border-radius: 5px;
    width:100%;
    box-sizing: border-box;
    background-color:#fff;
    box-shadow:0 1px 6px 0px #ddd;
    border-radius:5px;
}
.company-tasks span {
    /*font-weight:600;*/
    margin-right:25px;
}
.company-tasks table {

}
.company-tasks th:first-child,
.company-tasks th:nth-child(2) {
    width:12%;
}
.company-tasks th:nth-child(3) {
    width:7%;
}
[name="select-period"],
[name="select-user"] {
    width:100%;
}
.perf-sel {
    max-width: 920px;
    width:30%;
    margin: auto;
    display: inline-block;
    vertical-align: top;
}
.toggle-create-ticket {
    position: fixed;
    right: 4px;
    bottom: 4px;
    z-index: 9;
    border-radius: 5px;/*50%;*/
    background-color: #3EEE96;
    /*width: 48px;*/
    height: 48px;
    text-align: center;
    line-height: 36px;
    width: 290px;
    right: 18px;
    height: 32px;
    bottom: 70px;
}
#mini-dash,
#planning,
#tickets,
#notes,
#deadlines {
    bottom: 5px;
    z-index: 9;
    background-color: #3EEE96;
    text-align: center;
    position: fixed;
    /*
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    */
    border-radius:50%;
}
#notes,
#deadlines {
    z-index:999;
}
#tickets {
    z-index:998;
}
#mini-dash {
    left:64px;
}
#planning {
    left:128px;
}
#tickets {
    right:128px;
}
#notes {
    right:64px;
}
#deadlines {
    right:192px;
}
#mini-dash i,
#planning i,
#tickets i,
#notes i,
#deadlines i {
    font-size:18px;
    color:#fff;
}
#mini-dash > a,
#planning > a,
#tickets > a,
#deadlines > a,
#notes > a {
    position: relative;
    display: block;
    padding: 16px 0px;
    min-width: 52px;
    min-height: 20px;
    text-align: center;
    z-index: 9;
}
#deadlines .list,
#mini-dash .list,
#planning .list,
#tickets .list,
#notes .list {
    display:none;
    min-width: 300px;
    position: fixed;
    right: 5px;
    bottom: 60px;
    min-height: 40px;
    /*max-height:500px;*/
    background-color: #fff;
    padding: 12px;
    border-radius: 5px;
    box-shadow: 0 0 5px 0px #ddd;
    overflow: auto;
    width: 500px;
    max-width: 96%;
}
#planning .list {
    width: 1200px;
    left:50%;
    right:auto;
    transform: translateX(-50%);
    max-height: calc(80vh);
}
#deadlines .list {
    overflow: visible;
}
#mini-dash .list {
    right:auto;
    left:10px;
    z-index: 999;
    font-weight: 600;
    text-align: center;
}
#mini-dash td:not(:first-child) {
    text-align: center;
}
#planning-calendar tbody tr:not(:first-child) td {
    height: 400px;/*360px;/*180px;*/
    box-sizing: border-box;
    width: 20%;/*14.2%;*/
    position: relative;
}
#planning-calendar tbody td:nth-child(6),
#planning-calendar tbody td:nth-child(7) {
    display: none !important;
}
#planning-calendar .tooltip {
    position: absolute;
    top:0;
    right:0;
    width: calc(100% - 24px);
    margin: 0;
}
#planning-calendar span.plan {
    display: block;
    position: absolute;
    width: 100%;
    left:0;
    border-radius: 3px;
    font-size: 8px;
    padding-left:3px;
    background-color: #0EBE76;
    padding-left: 3px;
    box-sizing: border-box;
}
#planning-calendar span.plan:hover:after {
    position: absolute;
    content:attr(data-hover);
    background-color: #333;
    color:#fff;
    padding:2px 5px;
    display: block;
    top:5px;
}
#planning .list > .close {
    position: sticky;
}
#planning-calendar table {
    margin:40px auto 40px 5%;
}
#tickets .list {
    width:300px;
    box-shadow: none;
    background-color: transparent;
    height: calc(100% - 100px);
    bottom: 36px;
}
#tickets ul {
    height: calc(100% - 175px);
}
#tickets form,
#tickets .ticket {
    background-color: #fff;
    padding: 8px 8px 0;
    border-radius: 5px;
    box-shadow: 0 0 5px 0px #ddd;
    margin-bottom:5px;
    position: relative;
    z-index: 99;
}
#tickets input:not([type="radio"]):not([type="checkbox"]),
#tickets select,
#tickets textarea,
#tickets button {
    width: 100%;
}
#tickets input[type="text"][name="ticket-filter"] {
    width:45% !important;
}
#tickets label [type="radio"] {
    display:none;
}
#tickets label span {
    display: inline-block;
    padding: 2px 5px;
    min-width: 25px;
    border-radius: 5px;
    background-color: #aaa;
    margin-right: 4px;
    color: #fff;
    position: relative;
    font-weight: 600;
    top: 1px;
    cursor: pointer;
}
#tickets label [type="radio"]:checked + span {
    background-color: #3EEE96;
}

#tickets form {
    position: absolute;
    bottom: 75px;
    left: 14px;
    width: 290px;
}
#tickets .ticket {
    font-size: 10px;
}
#tickets textarea {
    font-size: 10px;
    outline: none;
    max-width: 96%;
    font-family: 'Montserrat';
    line-height: 1;
}
#tickets textarea[readonly] {
    border-color:transparent;
    padding: 0;
    margin-top: 2px;
    overflow: hidden;
    position: relative;
    max-height:18px;
    pointer-events: none;
    resize: none;
}
#tickets textarea[readonly] + .text-fade {
    display:block;
    width:100%;
    height: 24px;
    margin-top: -24px;
    z-index: 999;
    position: relative;
}
#tickets textarea[readonly] + .text-fade:not(.full) {
    background-image: linear-gradient(to bottom, transparent 0%, transparent 50%, #fff 90%);
}
#tickets textarea[readonly] + .text-fade.full {
    position: absolute;
    left: 0;
    bottom: 0;
    height: calc(100% - 25px);
}
#tickets .ticket-admin {
    text-align: right;
    position: absolute;
    top: 1px;
    right: 0px;
    z-index: 999;
}
#tickets .ticket-admin i {
    color:#ccc;
    font-size:16px;
}
#tickets .ticket-admin a:hover i {
    color:#777;
}
#tickets .ticket-admin .menu {
    display:none;
    padding: 5px 8px;
    box-shadow: 0 0 5px 0px #aaa;
    border-radius: 5px;
    position: relative;
    top: -16px;
    right: 16px;
    background-color: #fff;
}
#tickets .ticket-admin .menu a {
    margin-left:2px;
    margin-right:2px;
    display: inline-block;
    background-color: transparent;
    padding: 4px;
    border-radius: 50%;
    width: 16px;
    text-align: center;
}
#tickets .ticket-admin .menu a:hover {
    background-color: #ddd;
    color:#3EEE96
}
#tickets .ticket-admin.show .menu {
    display: block;
}
#tickets .close-tickets {
    float: left;
    margin-top: 18px;
}
#tickets .close-tickets i {
    color:#333;
    font-size: 16px;
}
#tickets .ticket.deadnow {
    box-shadow: 0 0 5px 0px orange;
}
#tickets .ticket.deadpass,
#tickets .ticket[data-imp="1"] {
    box-shadow: 0 0 5px 0px red;
}
#tickets .ticket[data-imp="1"] .ticket-admin .set-important i {
    color: red;
}
.ticket-admin > a {
    width: 16px;
    display: inline-block;
    text-align: center;
    background-color: transparent;
    margin-left: 1px;
    border-radius: 50%;
    padding: 2px;
}
.ticket-admin > a:hover {
    background-color: #ddd;
    /*color:#3EEE96;*/
}
.ticket-admin .external:hover:after {
    position:absolute;
    content: attr(data-tag);
    padding:8px ;
    border-radius:5px;
    color:#fff;
    background-color: #333;
}
.ticket .external {
    display: inline-block;
    width: 16px;
    text-align: center;
}
#tickets .ticket .external i {
    color:#ddd;
}
#tickets .ticket .external.yellow i {
    color:yellow;
    text-shadow: 0px 0px 1px black;
}
#tickets .list ul,
#notes .list ul {
    list-style: none;
    padding:0;
    text-align: left;
    line-height: 1;
}
#tickets .list ul {
    overflow: auto;
    padding:4px;
    width: 100%;
}
#tickets h3 {
    line-height: 1;
    margin-bottom: 16px;
    margin-top: 20px;
}
#tickets[data-ext]:after {
    content: attr(data-ext);
    position:absolute;
    top:-2px;
    right:-2px;
    color:#333;
    background: yellow;
    font-size:10px;
    width:16px;
    height:16px;
    text-align:center;
    border-radius: 8px;
    line-height: 16px;
    z-index:9;
    opacity:1;
    transition: all 0.5 ease-in;
}
/*
#tickets[data-ext="0"]:not(.pulse):after {
    opacity: 0;
}
*/
#tickets[data-deadnow]:not([data-deadpass]):after,
#tickets[data-deadpass]:after {
    content: attr(data-deadnow);
    position:absolute;
    top:-2px;
    right:-2px;
    color:#333;
    background: yellow;
    font-size:10px;
    width:16px;
    height:16px;
    text-align:center;
    border-radius: 8px;
    line-height: 16px;
    z-index:9;
    opacity:1;
    transition: all 0.5 ease-in;
}
#tickets[data-deadpass]:after {
    content: attr(data-deadpass);
    /*
    left:unset;
    right:-2px;
    */
    background: #cc0000;
    color:#fff;
}
#task-list .notes-wrapper li,
#notes .list li {
    border-bottom:1px solid #aaa;
    padding: 5px 0;
}
#notes .list span {
    width:100%;
    padding: 2px 5px;
    display: inline-block;
    vertical-align: middle;
}
#notes .list span:first-child {
    font-size: 70%;
}
.notes-wrapper textarea,
.notes-wrapper input,
#notes textarea,
#notes input {
    display: block;
    width:100%;
    border: 1px solid #aaa;
    margin-top:5px;
    padding:5px;
    box-shadow: none;
    box-sizing: border-box;
}
#notes input[type="submit"] {
    background-color:#3EEE96;
    border: none;
    border-radius: 5px;
    color: #fff;
}
#notes .tox-tinymce {
    min-height:calc(100vh - 175px);
}
#task-list .list-title.sticky {
    position:fixed;
    padding:10px 37px;
    top:55px;
    left:0;
    background-color:#f5f6fa;
    z-index:9;
}
#task-list .list-title.sticky + li {
    margin-top:48px;
}
[name="note-text"] {
    min-height:500px;
}
ul.log input {
    width:50px;
    border:none;
    background-color:#efefef;
}
ul.log textarea {
    width:100%;
    border:none;
    background-color:#efefef;
}
body.reduce-table #content {
    max-width: calc(100% - 360px);
    padding-right: 10px;
}
body.reduce-table #task-list .list-title.sticky {
    max-width: calc(100% - 310px);
}
.tab:not(.show),
.subtab:not(.show),
#create-ticket,
body.reduce-table #task-list > li.list-title > span:nth-child(2),
body.reduce-table #task-list > li.task > span:nth-child(2),
#performance .save-log,
ul.log .save-log {
    display:none;
}
.subtab-select,
.tab-select {
    border-bottom: 2px solid #3EEE96;
}
.subtab-select > a,
.tab-select > a {
    display:inline-block;
    background-color: #fff;
    border:2px solid #3EEE96;
    color: #3EEE96;
    font-weight: 300;
    padding:8px;
    min-width:100px;
    margin-right:4px;
    margin-bottom:-2px;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.subtab-select > a.active,
.tab-select > a.active {
    background-color: #3EEE96;
    color:#fff;
    font-weight: 700;
}
.subtab-wrapper {
    width: 90%;
    max-width: 1200px;
    margin:40px auto;
}
input.saving {
    background-color: rgba(63,255,150, 0.5);
}
input.error {
    background-color: rgba(250,50,50, 0.5);
}
/*
ul.log li.changes .save-log {
    display:block;
    position:absolute;
    right:0;
    top:4px;
}
#performance tr.changes .save-log {
    display: inline-block;
    position:relative;
}
*/
#performance tr [name="spent"] {
    max-width:75px;
    margin-right:12px;
}
#performance td {
    position: relative;
}
ul.log li.changes {
    position:relative;
}
#task-list .task.almost-used:not(.stale) {
    box-shadow: 0 1px 6px 0px #5577FF;/*#98BEE8;*/
}
#task-list .task[data-important="1"],
#task-list .task.fake-important:not([data-important="-1"]) {
    box-shadow: 0 1px 6px 0px #cc0000;
}
#task-list .task.stale[data-important="-1"],
#task-list .task.stale {/*fake-important-stale.*/
    box-shadow: 0 1px 6px 0px orange;
}
#task-list .task[data-important="-1"]:after,
#task-list .task[data-important="-1"]:before,
#task-list .task[data-important="1"]:before {
    content: "\f12a";
    font-family: 'FontAwesome';
    display: block;
    position: absolute;
    right: 28px;
    left:unset;
    top: 9px;
    width: 16px;
    height: 16px;
    color: red;
    font-size: 20px;
    opacity: 0.5;
}
#task-list .task[data-important="-1"]:before {
    content:"\f026";
    color:blue;
    opacity: 0.2;
}
#task-list .task[data-important="-1"]:after {
    content:"\f05e";
    color:blue;
    opacity: 0.2;
    right: 33px;
    font-size: 24px;
    top: 7px;
}
/*
@media all and (max-height:920px) {
    #notes .tox-tinymce {
        min-height:600px;
    }    
}
@media all and (max-height:800px) {
    #notes .tox-tinymce {
        min-height:400px;
    }    
}
*/
.show-comp {
    position:absolute;
    display:none;
    color: #3EEE96;
    right: 0;
    top: 6px;
    font-size: 20px;
}
span:hover > .show-comp {
    display:block;
}
input.edit-locked {
    color:#aaa;
}
.edit-unlock {
    width: calc(48% - 12px);
    display:none;
    height: 32px;
    vertical-align: middle;
    line-height: 1;
    font-size: 24px;
    /* display:none; */
    margin-left: calc(-48% - 12px);
    text-align: right;
    padding-right: 24px;
    color: #555;
}
input.edit-locked + .edit-unlock {
    display: inline-block;
}
#close-reg-tasks {
    float:right;
    margin-top: 0;
}
.contact-info a {
    font-family: Arial;
    font-size: 13px;
    border-radius: 50%;
    background-color: #3EEE96;
    text-align: center;
    color: #fff;
    padding: 5px 6px;
    font-size: 14px;
}
.contact-info input,
.contact-info textarea {
    background-color: transparent;
    pointer-events: none;
    border: none;
    min-width: 200px;
}
.contact-info.editable input,
.contact-info.editable textarea {
    pointer-events: all;
    background-color: #efefef;
    border-radius: 4px;
    padding: 4px 8px;
}
.contact-info.editable [name="tags"] {
    width:100%;
    box-sizing: border-box;
}
.contact-info textarea {
    width:100%;
    min-height:80px;
    box-sizing: border-box;
}
.contact-info.editable button {
    padding:8px;
    width:100%;
    max-width: 100%;
    background-color: #3EEE96;
    color: #fff;
}
.contact-info.editable button[disabled] {
    background-color: #efefef;
}
.contact-info #link-txt {
    font-size: 13px;
    font-weight: 400;
}
.contact-info #link-url {
    position:absolute;
    opacity:0;
    z-index: -1;
    right: 0;
}
#comp-logo {
    display:inline-block;
    width: calc(100% - 850px);
    vertical-align: middle;
}
#logo-form input,
#comp-logo select {
    width:90%;
}
#comp-logo img {
    /*width:90%;*/
    width:auto;
    height:auto;
    max-width:350px;
    max-height:150px;
    margin: auto;
    display: block;
}
#logo-form input {
    margin-top:8px;
}
.company-tasks .em {
    font-weight: 600;
    margin-right:0;
}
.no-wrap,
.no-wrap span {
    overflow:visible;
    white-space:nowrap;
}
[name="change-ticket-user"] {
    margin-bottom:2px;
    position: relative;
    z-index: 9999;
}
.future {
    display: inline-block;
    font-size: 14px;
    position: absolute;
    color: #aaa;
    top: 10px;
    right: 30px;
}
#task-list .future .date-txt {
    display:none;
    position:absolute;
    padding:3px 5px;
    border-radius:3px;
    background:#333;
    color:#fff;
    right:0;
    top:100%;
    min-width: 65px;
    font-size: 12px;
}
#task-list .future:hover .date-txt {
    display: block;
}
#task-list .subtasks {
    display:none;
    padding-left:0;
    padding-bottom:4px;
}
#task-list .subtask {
    margin: 2px 0;
    width: calc(100% + 12px);
    position: relative;
}
#task-list .subtask .status {
    top:0px;
}
#task-list .subtask .add-log {
    padding-top:2px;
    padding-bottom:2px;
}
#task-list .task.show-sub .subtasks {
    display:block;
}
#task-list .subtask > span:first-child {
    padding-left:20px;
    width: 41.4%;
    box-sizing: border-box;
}
#task-list .subtask .status-text {
    line-height: 16px;
}
#task-list .subtask > span:nth-child(2),
#task-list .subtask > span:nth-child(3),
#task-list .subtask > span:nth-child(6){
    width:7%;
}
#task-list .subtask > span:nth-child(4) {
    width:2.5%;
}
#task-list .subtask > span:nth-child(5) {
    width:15%;
}
#task-list .subtask > span:nth-child(7) {
    width:6%;
    margin-top: 5px;
    margin-bottom: 5px;
}
#task-list .subtask > span:nth-child(8) {
    width:2.5%;
}
#task-list .subtask > span:nth-child(9) {
    width:4%;
    margin-right:0;
}
body.reduce-table #task-list .subtask > span:first-child {
    width:31.7%;
    padding-left:28px;
}
body.reduce-table #task-list .subtask > span:nth-child(2),
body.reduce-table #task-list .subtask > span:nth-child(3),
body.reduce-table #task-list .subtask > span:nth-child(6){
    width:8.5%;
}
body.reduce-table #task-list .subtask > span:nth-child(4),
body.reduce-table #task-list .subtask > span:nth-child(8) {
    width:3.5%;
}
body.reduce-table #task-list .subtask > span:nth-child(5){
    width: 17.5%;
    min-width: 17.5%;
}
body.reduce-table #task-list .subtask > span:nth-child(7){
    width:7.5%;
}
.task a.show-menu {
    display:block;/*none;*/
    position: absolute;
    right: 3px;
    font-size: 20px;
    top: 3px;
    padding: 4px 14px;
    border-radius: 50%;
    color:#d5d6da;/*#f5f6fa;*/
}
.task .subtask a.show-menu {
    font-size:14px;
    right: 8px;
    padding:2px 10px;
}
.task a.show-menu:hover {
    background-color: #eee;
    color:#333;
}
.task:hover a.show-menu {
    display:block;
}
.task.recoff {
    background-color: rgba(255,255,255,0.3);
}
.task.recoff > *:not(div) {
    opacity: 0.3;
    /*box-shadow: 0 1px 6px 0px #ddd !important;*/
}
.task.recoff .status,
.task.recoff .diff {
    opacity: 0;
}
#statChart,
#salesChart {
    width:100%;
    height:auto;
    margin:40px auto;
    max-width:1200px;
    max-height:800px;
}
.subtask-title {
    margin:0 auto;
    text-align: left;
    max-width: 1420px;
}
.subtask-title .subtask-pre-title {
    margin-right:10px;
    min-width: 100px;
    display: inline-block;
}
.subtask-table {
    margin-top:12px;
}
.deal0-input {
    display:none;
}
#popup-msg-wrapper {
    position: fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
}
#popup-msg {
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
    background-color: #ffffff;
    z-index: 999;
    width:800px;
    max-width: 90%;
    max-height: 96%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}
#popup-msg > * {
    order:1;
}
#popup-msg > .stats {
    order:2;
}
#popup-msg > h4,
#popup-msg > #fixlog-list,
#popup-msg > #running-list {
    order:4;
}
#popup-msg > h4 {
    margin:0 auto;
}
#popup-msg .close {
    position: absolute;
}
#popup-msg > .list {
    width:100%;
}
#popup-msg > .chart {
    width:calc(100% - 80px);
    min-height: 360px;
    padding-left:40px;
    padding-right:40px;
}
ul#snooze-list,
ul#fixlog-list,
ul#running-list {
    list-style: none;
    padding:0;
    margin:20px 40px;
}
ul#snooze-list li,
ul#fixlog-list li,
ul#running-list li {
    padding:2px;
}
ul#snooze-list li:nth-child(2n+1),
ul#fixlog-list li:nth-child(2n+1),
ul#running-list li:nth-child(2n+1) {
    background-color: #efefef;
}
ul#snooze-list span,
ul#fixlog-list span,
ul#running-list span {
    display: inline-block;
    vertical-align: middle;
}
ul#snooze-list span:first-child,
ul#snooze-list span:nth-child(2),
ul#fixlog-list span:first-child,
ul#fixlog-list span:nth-child(2),
ul#running-list span:first-child,
ul#running-list span:nth-child(2) {
    width:20%;
    margin-right: 1%;
}
ul#fixlog-list span:nth-child(2),
ul#running-list span:nth-child(2) {
    width:13%;
}
ul#snooze-list span:nth-child(3),
ul#fixlog-list span:nth-child(3),
ul#running-list span:nth-child(3) {
    width:43%;
    margin-right: 1%;
}
ul#fixlog-list span:nth-child(3),
ul#running-list span:nth-child(3) {
    width:34%;
}
ul#snooze-list span:nth-child(4) {
    width:2%;
    text-align: center;
}
ul#fixlog-list span:nth-child(4) {
    width: 8%;
}
ul#running-list span:nth-child(4) {
    width: 6%;
}
ul#fixlog-list span:nth-child(5) {
    width: 8%;
}
ul#running-list span:nth-child(5) {
    width: 5%;
    text-align: center;
}
ul#snooze-list span:nth-child(5) {
    width:12%;
    text-align: center;
}
ul#fixlog-list span:nth-child(6) {
    width: 14%;
}
ul#running-list span:nth-child(6) {
    width:19%;
}
ul#fixlog-list button,
ul#snooze-list button,
ul#running-list button {
    background-color: #3EEE96;
    color:#fff;
    margin: 2px auto;
    padding: 4px 8px;
}
ul#running-list button.close-run {
    background-color: #F58586;
}
ul#snooze-list li.unsnoozed .unsnooze,
ul#running-list li.unsnoozed .unsnooze {
    color:orange;
    font-weight: 600;
}
ul#fixlog-list .head,
ul#running-list .head {
    font-weight: 700;
}
ul#fixlog-list li[data-closed="1"] {
    opacity: 0.3;
    pointer-events: none !important;
}
ul#fixlog-list li[data-closed="1"] button {
    visibility: hidden;;
}
#popup-msg > .log-wrapper {
    display: block;
}
#popup-msg > .log-wrapper input {
    pointer-events:none;
}
#popup-msg > .log-wrapper button {
    display:none;
}
#popup-msg td {
    width: 50%;
}
/*
#popup-log-wrap {
    position: absolute;
    bottom:10px;
    left:10px;
    right:10px;
    top:10px;
    background-color: #dfdfdf;
}
*/

.task .task-desc {
    display:none;
    position: absolute;
    background-color: #fff;
    z-index: 9;
    width: calc(100% - 56px);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    top: 35px;
    box-shadow: 0 4px 5px -2px #ddd;
    padding:0 28px;
}
.subtask .task-desc {
    top: 30px;
}
.task > span:first-child:hover ~ .task-desc,
.subtask > span:first-child:hover ~ .task-desc {
    display:block;
}
a.edit-log {
    float: right;
}
a.save-comp-log {
    display:none;
    color: #3EEE96;
}
a.save-comp-log ~ .spinner {
    margin:0 !important;
}
[contenteditable="true"] {
    background-color:#efefef;
}
#task-list .task .pause-active button {
    color:#cc0000;
}
[data-calc] {
    /*position: relative;*/
}
[data-calc]:not([data-calc=""]):hover:before {
    content:attr(data-calc);
    position: absolute;
    /*
    top: 60%;
    left:50%;
    */
    transform: translateY(66%);
    font-size: 12px;
    display: block;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    /*min-width: 140px;*/
    z-index: 99;
}
span[data-status]:hover:before {
    content:attr(data-status);
    position: absolute;
    min-width: 240px;
    transform: translateY(75%);
    font-size: 12px;
    display: block;
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    z-index: 99;
    box-shadow:0 0 5px -1px #ddd;
}
span:nth-child(4)[data-status]:hover:before {
    min-width: 120px;
}
[name="tickuid"] {
    width: 82%;
    padding: 5px 8px;
    margin: 8px 0;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-sizing: border-box;
}
#tickets [name="tickuid"] {
    width:22%;
    margin-left:5px;
    padding:2px;
}
li.task.interval > span:last-of-type,
li.task.manrecoff > span:last-of-type {
    position: relative;
}
li.task.interval > span:last-of-type:after,
li.task.manrecoff > span:last-of-type:after {
    content:"\f28c";
    font-family:'FontAwesome';
    position: absolute;
    left:22px;
    font-size:16px;
}
li.task.interval > span:last-of-type:after {
    content:"\f017";
}
li.task .edit-wrapper form.delete {
    width:45%;
    display: inline-block;
}
li.task .task-snoozer {
    float:right;
    width:45%;
    max-width:200px;
}
li.task .task-snoozer .weeks {
    padding: 5px 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-sizing: border-box;
}
li.task .task-snoozer .snooze {
    margin-left:5px;
}
/*li.task:not([data-deal="1"]):not([data-deal="2"]) [name="task-snoozeinterval"],*/
li.task:not(.stale) .task-snoozer {
    display:none;
}
.hover-info-box {
    display:none;
    position: absolute;
    padding:5px;
    background: #fff;
    box-shadow:0 1px 6px 0px #ddd;
    border-radius:5px;
    z-index: 1;
}
.hover-info-box span {
    display: block;
}
.hover-info:hover .hover-info-box {
    display: block;
}
li.disabled textarea,
li.disabled input {
    border:none;
    pointer-events: none;
    background-color: transparent;
}
li.disabled {
    position: relative;
}
li.disabled:after {
    content:'';
    display:block;
    opacity: 0.5;
    background-color: #fff;
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index: 99;
}
[name="close-task"] ~ button,
[name="task-important"] ~ button,
[name="pause-task"] ~ button,
[name="task-not-important"] ~ button,
.create-subtask,
.controls a[href^="/company/"],
.controls .toggle-edit {
    position: relative;
}
.snooze-time:hover:after,
[name="close-task"] ~ button:hover:after,
[name="task-important"] ~ button:hover:after,
[name="pause-task"] ~ button:hover:after,
[name="task-not-important"] ~ button:hover:after,
.create-subtask:hover:after,
.controls a[href^="/company/"]:hover:after,
.controls .toggle-edit:hover:after {
    content:'Opret underopgave';
    position: absolute;
    top:100%;
    left:50%;
    transform: translateX(-50%);
    font-size: 10px;
    display: inline-block;
    padding:5px;
    border-radius: 5px;
    box-shadow: 0 1px 6px 0px #ddd;
    background: #fff;
    color:#555
}
.controls a[href^="/company/"]:hover:after {
    content:'Virksomhedsinfo';
}
.controls .toggle-edit:hover:after {
    content:'Ret opgave';
}
[name="task-not-important"] ~ button:hover:after {
    content:'Ikke vigtig';
}
[name="pause-task"] ~ button:hover:after {
    content:'Pause';
}
[name="task-important"] ~ button:hover:after {
    content:'Vigtig';
}
[name="close-task"] ~ button:hover:after {
    content:'Luk opgave';
}
#popup-snoozer {
    display:none;
    position: absolute;
    /*
    left: 50%;
    top: 40%;
    */
    z-index: 999;
    padding: 0 20px 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px 0px #ddd;
}
#popup-snoozer select,
#popup-snoozer button {
    width: 100%;
}
span[data-recoff]:hover:before {
    content:'Om ' attr(data-recoff) ' måned(er)';
    position:absolute;
    min-width:115px;
    text-align: center;
    top:95%;
    right:-8px;
    padding:8px ;
    border-radius:5px;
    color:#fff;
    background-color: #000;
    z-index: 99;
}
tr form input[name="vat"] {
    width: auto;
    min-width: 60px;
    vertical-align: bottom;
}
#ui-datepicker-div {
    z-index: 9999 !important;
}
#non-invoice td:last-child {
    width: 190px;
}
#non-invoice td:last-child form {
    display: inline-block;
    margin-right:5px;
}
#non-invoice .cancel {
    background-color: #cc0000;
}

#invoice tbody,
#open tbody,
#non-invoice tbody {
    counter-reset: rowNumber;
}
#invoice tbody tr,
#open tbody tr,
#non-invoice tbody tr {
    counter-increment: rowNumber;
}
#invoice tbody tr td:first-child:before,
#open tbody tr td:first-child:before,
#non-invoice tbody tr td:first-child:before {
    content: counter(rowNumber);
    min-width: 1em;
    margin-right: 0.5em;
}
.change-task {
    float: right;
    color: #777;
    font-size: 12px;
    position: absolute;
    bottom: 2px;
    right: 5px;
}
.latest-log-wrap {
    overflow: auto;
    max-height: 180px;
}
.snooze-time {
    position: relative;
    width: auto !important;
    margin: auto !important;
}
.snooze-time:before {
    color: #aaa;
    content: "\f0a2";
    display: inline-block;
    font-family: 'FontAwesome';
    font-size: 14px;
}
.snooze-time:hover:after {
    transform: translateX(-70%);
    content:'Snoozed indtil ' attr(data-time);
    min-width: 135px;
}
#task-list li .impmiss {
    font-size: 70%;
}

/* CALENDAR*/
#dline-calendar {
    margin: auto;
    display: block;
}
table,
.dycalendar-container,
.dycalendar-container th,
.dycalendar-container td {
    border:none;
}
.dycalendar-container th,
.dycalendar-container td {
    width: 32px;
    height: 32px;
    position: relative;
}
.dycalendar-month-container .dycalendar-target-date,
.dycalendar-month-container .dycalendar-today-date {
    background-color: #3EEE96 !important;/*#A58B4B;*/
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding-top: 2px;
    display: inline-block;
    position: relative;
    top: 8px;
}
.dycalendar-container .event:after {
    content:'';
    display:block;
    position:absolute;
    left:calc(50% - 3px);
    width:8px;
    height:8px;
    border-radius: 50%;
    background-color: red;/*#A58B4B;*/
}
#dline-calendar .tooltip {
    position:absolute;
    display:none;
    z-index:9;
    min-width:290px;
    right: 0;
    top: 40px;
}
#dline-calendar .tooltip > div {
    text-align: left;
    padding:12px;
    color:#fff;
    background-color: #333;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
}
.info:hover + .txt,
#dline-calendar td.show .tooltip,
#dline-calendar td:hover .tooltip {
    display:block;
}
.info {
    font-size: 20px;
    display: inline;
    margin-left: 5px;
    line-height: 1;
}
.info + .txt {
    display:none;
    position:absolute;
    text-align: left;
    padding:12px;
    border-radius: 5px;
    z-index: 9;
    font-size: 14px;
    line-height: 1.4;
    max-width: 200px;
}
#dline-calendar table {
    text-align: center;
}
.tooltip h5 {
    margin:5px auto 0;
    font-size: 14px;
}
.ticket[data-deadline]:before {
    content:attr(data-deadline);
    float:right;
    margin-right: 75px;
    margin-top: -2px;
}
.close-create-ticket {
    float: right;
    font-size: 24px;
    color: red;
    font-weight: 600;
}
[data-hover]:hover {
    position: relative;
}
[data-hover]:hover:after {
    content:attr(data-hover);
    padding:12px;
    color:#fff;
    background-color: #333;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    position: absolute;
    top:100%;
    right:0;
    min-width: 140px;
    z-index: 99;
}
#actsales {
    position: absolute;
    bottom:0;
    left:0;
    width: 100%;
    height: 100%;/*calc(100% - 50px);*/
    background-color: #fff;
    overflow: auto;
}
.filter-filter {
    display: inline-block;
    padding: 8px 32px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.filter-list {
    left:0;
    top:110%;
    width: calc(100% - 16px);
    text-align: left;
    padding: 8px;
}
.filter-list label {
    display: block;
}
ul#task-list.hide-gray > li.task:not(.stale):not([data-important="1"]):not(.fake-important),
ul#task-list.hide-gray > li.task.fake-important[data-important="-1"],
ul#task-list.hide-yellow > li.task.stale[data-important="-1"],
ul#task-list.hide-yellow > li.task.stale,
ul#task-list.hide-red > li.task[data-important="1"],
ul#task-list.hide-red > li.task.fake-important:not([data-important="-1"]) {
    display: none !important;
}
.create-log-form.admin {
    max-width: 500px;
    margin:auto;
    text-align: center;
}
.create-plan-form.admin select,
.create-log-form.admin select {
    max-width: unset;
    margin-bottom: 5px;
}
/*
.create-log-form.admin input[type="text"] {
    min-width: 300px;
}
*/
form.create-plan-form {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
.create-plan-form select,
.create-plan-form input[type="submit"] {
    width: auto;
    margin-left:0;
    min-width: 75px;
}
.create-plan-form .number-wrapper {
    display: inline-block;
}
.create-plan-form .number-wrapper input[type="number"] {
    padding-top:0;
    padding-bottom: 0;
    min-width: 60px;
}
.create-plan-form .number-wrapper a {
    margin-bottom: 0;
    padding-top: 2px;
    padding-bottom: 2px;
}
.del-plan {
    font-size: 24px;
    color: red;
}
#planner-table .timeoff {
    background-color: #F58586;
}
#planner-table .timeon {
    background-color: #3EEE96;
}
#planner-table .timemiss {
    background-color: #D3DD7F;
}
.weekview {
    /*
    border-top: 1px solid #aaa;
    border-right: 1px solid #aaa;
    */
    width:1200px;
    font-size: 0;
    position: relative;
}
.weekview div:first-child {
    font-weight: 600;
}
.weekview .head {
    border-top: 1px solid #aaa;
}
.weekview .head > div,
.weekview .hour > div {
    display: inline-block;
    width: 150px;
    border-left: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    padding: 5px;
    box-sizing: border-box;
}
.weekview .head > div:last-child,
.weekview .hour > div:last-child {
    border-right: 1px solid #aaa;
}
.weekview .head > div {
    font-size: 14px;
}
.weekview .head > div:first-child,
.weekview .hour > div:first-child {
    /*width: 15%;*/
    font-size: 14px;
}
.weekview .hour > div {
    height:40px;
    vertical-align: top;
}
.weekview .taskbox {
    position: absolute;
    width: 148px;
    background-color: #3EEE96;
    font-size: 10px;
    color:#000;
    overflow: hidden;
    border-radius: 5px;
    padding:4px;
    box-sizing: border-box;
}
.create-log-form > input[name="log-free"] {
    width: auto;
}
@media all and (max-width:1199px) {
    #comp-logo img {
        max-width:90%;
    }
}
@media all and (max-width:767px) {
    header .username {
        max-width: 33vw;
        right: 8px;
        top: 16px;
        text-align: right;
        font-size: 80%;
    }
    section {
        padding: 75px 12px 40px;
    }
    #filter a {
        padding: 8px 24px;
    }
    #task-list {
        overflow:scroll;
    }
    #task-list li.list-title,
    #task-list li.task {
        min-width:1440px;
        margin-left: 10px;
        right: 5px;
    }
    #notes .list {
        max-width:90%;
        right:5px;
    }
    #user-filter {
        float: none;
        text-align: center;
        width: 100%;
        margin-bottom: 25px;
    }
    .user-stat {
        display: block;
        max-width: 200px;
        margin: 12px auto !important;
    }
    .perf-sel {
        width:290px;
    }
    #performance table {
        overflow: scroll;
        max-width: 100%;
        display: block;
    }
    ul.log li {
        min-width:320px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    ul.log li span {
        min-width:150px;
    }
    .log-wrapper {
        z-index:999;
    }
    #comp-logo {
        width: 100%;
        margin-bottom: 25px;
    }
    .contact-info > * {
        max-width: 100%;
    }
    .contact-info {
        max-width: calc(100% - 50px);
    }
    .contact-info span {
        min-width: 90px;
    }
    .contact-info input {
        min-width:auto;
        width:auto;
    }
    .contact-info textarea {
        width:100%;
        border:1px solid #efefef;
    }
    .company-tasks > li > span {
        display:block;
    }
    .company-tasks table {
        overflow: scroll;
        max-width: 100%;
        width: 100%;
        display: block;
    }
    .company-tasks span {
        margin-right: 0;
    }
    .company-tasks .em {
        min-width: 90px;
        margin-bottom: 5px;
        display: inline-block;
    }
    .company-tasks .em + .desc {
        display: inline-block;
        width: calc(100% - 125px);
        vertical-align: top;
        margin-bottom: 5px;
    }
    .company-tasks .em + .status {
        width:100%;
    }
}
@media all and (max-height:750px) {
    [name="note-text"] {
        min-height:400px;
    }    
}
@media all and (max-height:640px) {
    [name="note-text"] {
        min-height:300px;
    }    
}
@media all and (max-height:500px) {
    [name="note-text"] {
        min-height:240px;
    }    
}