/*
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200;400;800&display=swap');
*/

.panel {
    display: none;
    transition: 250ms ease-in;
    opacity: 0;
}

.panel.active {
    display: block;
    opacity: 1;
}

span.checkbox {
    display: block;
    border-radius: 3px;
    text-indent: 4em;
    line-height: 2.5em;
    position: relative;
    cursor: pointer;
    padding: 0;
    position: relative;

    border: 1px solid var(--color-light-light);
    background-color: var(--color-light-light);
}

span.checkbox.checked {
    border: 1px solid var(--color-light-light);
    background-color: var(--color-green-light-light);
}

span.checkbox::before {
    text-indent: 0;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    background-color: var(--color-mid);
    content: '✗';
    width: 3rem;
    height: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

span.checkbox.checked::before {
    background-color: var(--color-green-dark);
    content: '✔';
    color: var(--color-white);
}

span.checkbox.checked.blue::before {
    background-color: var(--color-link);
}

select {
	line-height: 2.5;
	height: 2.5rem;
	height: calc(2.5rem + 2px);
	width: 100%;
}

.flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.flex > * {
	margin: 0;
}

.flex.three > * {
	width: 33.33%;
	width: calc(33.33% - 0.66rem);
}

.flex.three > input {
	width: 33.33%;
	width: calc(33.33% - 0.66rem - 2px - 1rem);
}

.flex.three > .checkbox {
	width: 33.33%;
	width: calc(33.33% - 0.66rem - 2px);
}

.flex.four > * {
	width: 25%;
	width: calc(25% - 0.66rem);
}



button.oneThird {
	width: 33.33% !important;
	width: calc(33.33% - 0.5rem) !important;
}

input.twoThirds {
	width: 66.66% !important;
    /* why an extra 1px? I have no idea */
	width: calc(66.66% - 0.5rem - 1rem + 1px) !important;
}

button.twoThirds {
	width: 66.66% !important;
    /* why an extra 1px? I have no idea */
	width: calc(66.66% - 0.5rem - 1px) !important;
}

select.twoThirds {
	width: 66.66% !important;
	width: calc(66.66% - 0.3rem) !important;
}

.flex .full,
.full {
	width: 100% !important;
}

#current_timer {
	display: block;
	font-size: 6rem;
	text-align: center;
	line-height: 6rem;
	margin: 2rem 0;
    color: var(--color-black);
}

.marginTop {
	margin-top: 1rem !important;
}

#message {
	display: none;
    transition: 250ms ease-in;
    opacity: 0;
	padding: 2rem;
	width: 100%;
	width: calc(100% - 4rem);
	margin-bottom: 2rem;
	text-align: center;
}

#message.show {
	display: block;
	opacity: 1;
}

#message.success {
    color: var(--color-green-dark);
    background-color: var(--color-light-light);
}

button.show_panel__back,
button.cancel {
    color: var(--color-mid);
    border: 1px solid var(--color-light-light);
    background-color: var(--color-light-light);
}

button.resume {
    background-color: var(--color-green-dark);
    color: var(--color-white);
}

tr.resumed,
tr.resumed td {
    background-color: var(--color-green-dark) !important;
    color: var(--color-white) !important;
}

button.delete {
    color: var(--color-red);
    border: 1px solid var(--color-red-light);
    background-color: var(--color-red-light-light);
}

#message.error {
    color: var(--color-red);
    background-color: var(--color-red-light);
}

h4 {
    color: var(--color-dark);
    font-weight: normal;
    margin: 0;
    overflow: auto;
}

.working {
	background-color: var(--color-green-dark);
	color: var(--color-white);
}

.blinking {
    animation: blinking 0.7s steps(1,end) infinite;
}

h3, h5, h6 {
    overflow: auto;
    line-height: 2rem;
}

h5 {
    margin: 0;
    line-height: 1.5rem;
    font-weight: bolder;
}

#existing_projects h6 {
    text-transform: uppercase;
    font-size: 0.8rem;
    background-color: var(--color-light-light);
    margin-top: 0;
    line-height: 2rem;
    color: var(--color-dark);
}

h3 span,
h4 span,
h5 span,
h6 span {
    float: right;
    font-weight: normal;
    opacity: 0.8;
    margin-left: 2rem;
    width: 6rem;
}

#existing_projects h6 span {
    text-align: right;
}

#existing_projects h3,
#existing_projects h4,
#existing_projects h6 {
    text-indent: 1rem;
}

#existing_projects h6 span:nth-of-type(2),
#existing_projects h3 span:nth-of-type(1),
#existing_projects h4 span:nth-of-type(1) {
    padding-right: 1rem !important;
}

h6 span.show-hidden {
    float: left;
    margin-left: 0.4rem;
    width: auto;
    cursor: pointer;
    text-align: left;
}

#dash h3 {
    text-transform: uppercase;

}

#dash h3,
#invoice h3 {
    background-color: transparent;
}

#invoice h3 span {
    float: left;
    margin-left: 0;
    width: auto;
    opacity: 1;
    font-weight: bolder;
    color: var(--color-black);
}

#existing_projects h4 span,
#existing_projects h3 span {
    text-align: right;
}

h3 span#invoice_client {
    margin-left: 1rem;
}

#invoice_panel p {
    color: var(--color-dark);
}

h3 span#invoice_total {
    float: right;
    text-align: right;
}

h6 span.show-hidden:hover {
    color: var(--color-black);
    text-decoration: underline;
    background-image: var(--image-hover);
}

h3 span#owed_work_client {
    float: left;
    margin-left: 0;
    width: auto;
    opacity: 1;
    font-weight: bolder;
}

h3 span#select_all_work {
    padding: 0 1em;
    text-align: right;
    width: auto;
    cursor: pointer;
}

h4:hover {
    cursor: pointer;
    text-decoration: underline;
    background-image: var(--image-hover);
}


#existing_clients > p,
#existing_projects > p,
#owed_work_table tr th,
.invoices tr th,
.project_work tr th,
.report_work tr th,
.work tr th {
    text-align: center;
    opacity: 0.5;
    padding-top: 1rem;
    font-style: italic;
    font-weight: normal;
}

#invoice_work,
#existing_clients,
#existing_projects,
#owed_work_table,
.invoices,
.report_stats,
.project_work,
.invoice_stats,
.report_work,
.work {
    border-top: 1px solid var(--color-mid);
    margin-top: 2rem;
    padding-top: 2rem;
    width: 100%;
}

.invoice_stats {
    margin-bottom: 2rem;
    margin-top: 0;
}

.invoice_stats tbody tr td:nth-child(2){
    width: 100%;
}

.invoice_stats tr td {
    text-align: right;
}

.invoice_stats tr td:first-of-type {
    width: 90%;
    padding-right: 1rem;
}

.invoice_stats tr:nth-of-type(2) {
    color: var(--color-black);
}

section#invoice_panel .bottom {
    border-bottom: 1px solid var(--color-mid);
    padding-bottom: 2rem;
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.report_stats thead th {
    background-color: var(--color-white);
}

.report_stats th,
.report_stats tbody td {
    line-height: 2rem;
    text-align: right;
    padding: 0 1rem;
}

.report_stats tbody th {
    padding-right: 1rem;
    width: 10ch;
}

tr.not_billable {
    opacity: 0.3;
}

#existing_clients,
#existing_projects {
    padding-top: 0;
}

#invoice_work {
    padding-top: 0;
}

#invoice_work tr,
#owed_work_table tr,
.invoices tr,
.project_work tr,
.report_work tr,
.work tr {
    line-height: 2rem;
}

.work tr td,
.invoices tr td,
.striped tr td {
    padding-left: 1em;
}

.work tr td:nth-of-type(4),
.invoices tr td:nth-of-type(4),
.striped tr td:nth-of-type(4) {
    padding-right: 1em;
    text-align: right;
}

.work tr:nth-of-type(odd),
.invoices tr:nth-of-type(odd),
.striped tr:nth-of-type(odd) {
    background-color: var(--color-light-light);
}

#owed_work_table tr th,
.invoices tr th,
#owed_work_table tr.blank,
.invoices tr.blank,
.project_work tr th,
.work tr th,
.report_work tr th,
.project_work tr.blank,
.report_work tr.blank,
.work tr.blank {
    padding-top: 0;
    background-color: transparent !important;
    cursor: default;
    color: var(--color-dark);
}

#owed_work_table tr:hover,
.invoices tr:hover,
.project_work tr:hover,
.report_work tr:hover,
.work tr:hover {
    cursor: pointer;
    background-image: var(--image-hover);
    color: var(--color-dark);
}

.recentHours > div {
    background-color: var(--color-light-light);
    height: 3em;
    padding: 1em 0;
    text-align: center;
    margin-bottom: 1em;
}

.recentHours > div > strong {
    display: block;
    color: var(--color-black);
}

#create_invoice_panel div.flex {
	border-top: 1px solid var(--color-mid);
	padding-top: 2rem;
}

table#owed_work_table {
	padding-bottom: 2rem;
}

table#owed_work_table tr td {
	opacity: 0.3;
}

table#owed_work_table tr.selected td {
	opacity: 1;
}

table#invoice_work tr td:nth-of-type(3) {
    text-align: right;
}

#invoice_work tr td.note {
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-light-light);
}

table#owed_work_table tr td:nth-of-type(4) {
    width: 1rem;
    padding: 0 0.5rem !important;
}

table#owed_work_table tr td:nth-of-type(5) {
	text-align: right;
	padding: 0 1em !important;
    width: 1rem;
}

label.filters {
    line-height: calc(2.5rem + 2px);
    font-weight: bolder;
    text-align: right;
    display: block;
}

.green,
tr.workrow.today td.green {
    color: var(--color-green-dark);
    padding: 0 0.5rem;
    text-align: center;
}

tr td.green, .invoiced {
    text-align: center;
    width: 2em;
    padding: 0 !important;
}

.chart-options span {
    display: block;
    background-color: var(--color-light-light);
    text-align: center;
    text-decoration: none;
    color: var(--color-dark);
    line-height: 3rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.chart-options span.selected,
.chart-options span:hover {
    background-image: var(--image-hover);
    color: var(--color-black);
}

.chart-options span.selected {
    font-weight: bolder;
}

.ct-chart {
    width: 100%;
    height: 20em;
    margin-bottom: 2em;
    background-color: var(--color-light-light);
    padding: 1em 0;
}

.ct-bar {
    stroke-width: 1rem;
    cursor: pointer;
    opacity: 0.8;
}

.ct-bar.hover {
    opacity: 1;
}

.ct-series-a .ct-bar {
    stroke: var(--color-green-dark);
}

.ct-series-b .ct-bar {
    stroke: var(--color-dark);
}

.ct-label {
    color: var(--color-dark);
}

.chartist-tooltip {
    position: absolute;
    font-size: 0.8rem;
    background-color: var(--color-black);
    color: var(--color-white);
    opacity: 0.8;
    display: inline-block;
    margin-bottom: 0.5rem;
    pointer-events: none;
    opacity: 0; 
    padding: 0.5rem 1rem;
    z-index: 2;
}

.chartist-tooltip:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -15px;
    border: 15px solid transparent;
    border-top-color: var(--color-black); 
}

.chartist-tooltip.tooltip-show {
   opacity: 0.8; 
}

.chartist-tooltip-meta strong {
    margin-bottom: 0.5rem;
    display: block;
}

.chartist-tooltip-meta span {
    float: right;
    margin-left: 0.5rem;
}

.ct-area {
    pointer-events: none;
}

span.create-invoice,
div#existing_projects h3:hover {
    cursor: pointer;
    text-decoration: underline;
    background-image: var(--image-hover);
}

span.create-invoice {
    text-align: right;
    text-transform: uppercase;
    line-height: 2rem;
    padding: 0 1rem;
    width: auto;
}

tr.workrow.today td {
    color: var(--color-black);
}

nav[role=panel] {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2rem;
}

.toolbar.active {
    display: block;
}

nav[role=panel] button {
    float: left;
    display: block;
    margin: 0 0 0 1rem;
    line-height: 3rem;
    line-height: calc(3rem - 2px);
    width: 3rem;
    width: calc(3rem - 2px);
    height: calc(3rem - 2px);
    padding: 0;
    text-align: center;
}

.toolbar {
    width: 100%;
    display: none;
}

.clickable {
    cursor: pointer;
}

#stats_hours_owed,
.invoice_stats tbody tr:nth-child(2),
.report_stats tbody tr:nth-child(2) {
    background-color: var(--color-green-light);
}

#hours_owed {
    opacity: 0.8;
}

.pagination {
    background-color: var(--color-light-light);
    margin: 0 2px 0 2px;
    width: 100%;
    width: calc(100% - 4px);
    position: relative;
    z-index: 1;
}

.pagination span {
    color: var(--color-mid);
    text-indent: 1rem;
}

.pagination span,
.pagination div {
    display: inline-block;
    line-height: 2rem;
}

.pagination span.total {
    text-indent: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: -1;
}

.pagination div {
    float: right;
    width: 3rem;
    opacity: 0.2;
    text-align: center;
    z-index: 2;
}

.pagination div.enabled {
    opacity: 1;
    cursor: pointer;
    color: var(--color-dark);
}

.recentHours > div:hover,
.project_work tr.blank:hover,
.work tr.blank:hover,
.report_work tr.blank:hover,
.invoices tr.blank:hover,
#owed_work_table tr.blank:hover,
h4:hover,
#stats_hours_owed:hover,
.pagination div.enabled:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Cpath fill-opacity='.02' d='M0 0h1v1H0z'/%3E%3C/svg%3E");
}

@keyframes blinking {
    0% {
        background-color: var(--color-white);
        color: var(--color-black);
    }
    50% {
        background-color: var(--color-black);
        color: var(--color-white);
    }
}

@media only screen and (min-width: 1000px) {
    .half,
    .flex.two > * {
        width: 47%;
        width: calc(50% - 0.5rem);
    }

    .flex.two > input {
        width: 47%;
        width: calc(50% - 0.5rem - 2px - 1rem);
    }
}
