body {
    font-size: 14px;
}

.inline-block {
    display: inline-block;
}

.inline-block-top {
    display: inline-block;
    vertical-align: top;
}

.margined {
    margin-right: 16px;
    margin-bottom: 16px;
    vertical-align: top;
}

.margined-full {
    margin: 16px;
}

.btn {
    height: 25px;
    padding: 1px 12px 2px;
    background-color: white;
    border: 1px solid #33436A;
    border-radius: 12px;
    color: #33436A;
    transition: all 0.3s;
}

.btn:hover:enabled {
    background-color: #33436A;
    color: white;
    transition: all 0.3s;
}

.logo-img {
    vertical-align: bottom;
    height: 50px;
    margin-right: 16px;
}

.splash-logo-img {
    position: absolute;
    top: 50%;
    left: 128px;
    transform: translateY(-50%);
    height: 200px;
}

.splash-powered-by {
    color: #B3BFDB;
    font-size: 16px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);    
}

.splash-nfpsp-logo-img {
    vertical-align: bottom;
    margin-bottom: -4px;
    height: 100px;
}

.splash-container {
    position: absolute;
    background: #33436A;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: 1s all;
    opacity: 1;
}

.splash-container-fading {
    opacity: 0;
    pointer-events: none;
    transition: 1s all;
}

.loading-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.spinner {
    display: inline-block;
    height: 28px;
    width: 28px;
    animation: spinnerrotate 0.8s infinite linear;
    border: 3px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: bottom;
}

@keyframes spinnerrotate {
  0%    { transform: rotate(0deg); }
  100%  { transform: rotate(360deg); }
}

.splash-right {
    min-width: 360px;
    position: absolute;
    right: 128px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;

    animation-name: splashRightFade;
    /*animation-delay: 2s;*/
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes splashRightFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }   
}

.splash-welcome {
    color: white;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 16px;
}

.loading-overlay {
    position: absolute;
    background: #FFFFFF;
    opacity: 0.7;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 49;
    transition: 0.5s all;
}

.loading-overlay-fading {
    opacity: 0;
    pointer-events: none;
    transition: 0.5s all;
}

.loading-overlay-spinner-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.loading-overlay-spinner {
    height: 100px;
    width: 100px;

    animation: loadingspinnerrotate 0.8s infinite linear;
    border: 6px solid #33436A;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: bottom;
}

@keyframes loadingspinnerrotate {
  0%    { transform: rotate(0deg); }
  100%  { transform: rotate(360deg); }
}

.header-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 0px;
}

.header-item-link {
    transition: all 0.3s;
}

.header-item-link:hover {
    color: gray;
    cursor: pointer;
    transition: all 0.3s;
}

.demo {
    display: inline-block;
    font-size: 20px;
}

.demo-hidden {
    color: white;
}

#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 5;
}

#container {
    text-align: left;
    margin: 0 16px;
    top: 75px;
    position: relative;
}

.top-buttons {
    position: fixed;
    left: 16px;
    top: 67px;
    width: 100%;
    background-color: white;
    z-index: 5;
}

.top-buttons h2 {
    margin-top: 0;
}

.clickable {
    display: inline-block;
    border: solid 1px black;
    padding: 16px;
    margin-right: 8px;
    transition: 0.3s all;
}

.client-category {
    display: inline-block;
    margin-right: 16px;
    vertical-align: top;
}

.client-category-link {
    color: blue;
    transition: all 0.3s;
    margin-right: 8px;
}

.client-category-link:hover {
    color: orange;
    cursor: pointer;
    transition: all 0.3s;
}

.user-table-cell {
    border: 1px solid #ccc;
    border-collapse: collapse;
    padding: 4px;
}

ul {
    padding: 0;
}

.cell input {
    width: 85%;
}

.label-row .cell {
    padding: 16px 4px 12px;
}

.label-row .row-description {
    background-color: white;
}

.cell {
    padding: 0 4px;
    min-width: 100px;
    width: 100px;
    height: 42px;
    vertical-align: top;
}

.row .cell {
    transition: 0.5s all;
}

.row-collapsed .cell, .row-collapsed .fixed-left-column-cell {
    line-height: 0;
    height: 0;
    opacity: 0;
    padding: 0;
    border: none;
}

.cagr-cell {
    background-color: #e0f0ff;
}

/* TODO: Figure out how to push the row up. */
.label-row .push-up-row {
    /*position: relative;*/
    /*top: -20px;*/
    /*padding-top: 0px;*/
}

.row-expanded {
}

.row-light {
    background-color: white;
}

.row-dark {
    background-color: #f1f1f1;
}

.period-header {
    vertical-align: bottom;
    border-bottom: 1px solid black;
}

.description-label {
    max-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 250px;
    max-width: 250px;
}

.bordered {
    border-right: 1px solid #aaa;
    border-collapse: collapse;
}

.sum-bordered {
    border-top: 1px solid #aaa;
    border-bottom: 2px solid #aaa;
    border-color: #aaa;
}

.current-bordered {
    border-right: 2px solid #aaa;
    background-color: #eee;
}

.sum-row {
    font-weight: bold;
    background-color: #e8f2fc;
}

.clickable:hover {
    background-color: #ddd;
    cursor: pointer;
}

.section-outer {
    margin-bottom: 8px;
}

.section-inner {
    display: inline-block;
    border: solid 1px gray;
    padding: 16px;
}

.section-inner li {
    list-style: none;
}

.amounts-table {
    /*width: 100%;*/
}

.amount, .percent {
    /*padding: 4px;*/
}

.negative-amount {
    color: red;
}

.modified-amount {
    background-color: yellow;
}

.centered {
    text-align: center;
}

.righted {
    text-align: right;
}

.client-tool-line-label {
    background-color: #fff5b5;
}

.client-tool-line-value {
    background-color: #b4d7ff;
}

.client-tool-line-sum {
    background-color: #d8b3ff;
}

.amount, .future-amount-cell-calculated-input {
    text-align: right;
}

.cell-selected {
    background-color: #cfe0fc;
}

span.grippy {
  content: '....';
  width: 14px;
  height: 27px;
  display: inline-block;
  overflow: hidden;
  line-height: 5px;
  padding: 3px 4px;
  cursor: move;
  vertical-align: middle;
  margin-top: -.7em;
  margin-right: .3em;
  font-size: 12px;
  font-family: sans-serif;
  letter-spacing: 2px;
  color: #222;
  text-shadow: 1px 0 1px black;
}
span.grippy::after {
  content: '.. .. .. ..';
}

.line-input[disabled] {
    background-color: #d8d8d8;
}

.client-tool-title {
    display: inline-block;
}

.flex-container {
    display: flex;
    flex-flow: row;
}

.client-tool-blank {
    flex: 0 0 300px;
}

.client-tool-periods {
    flex: 1 auto;
}

.client-tool-lines {
    flex: 0 0 350px;
}

.client-tool-bu {
    flex: 0 auto;
}

.top-percentage-button {
    width: 140px;
}

.top-expand-button {
    width: 96px;
}

.top-cagr-button {
    width: 110px;
}

.setup-periods-container {
    overflow-x: scroll;
    width: 900px;
    white-space: nowrap;
}

.period {
    display: inline-block;
    transition: all 0.3s;
}

.current-period {
    background-color: #cfe0fc;
}

.currentlylabeled-period {
    background-color: #fccff2;
}

.selecting-period:hover {
    background-color: #fff7aa;
}

.clear {
    clear: both;
}

.minus-row-checkbox {
    text-align: right;
}

.table-container {
    width: 100%;
    top: 60px;
    position: relative;
    /*overflow-x: scroll;*/
}

.row-description {
    min-width: 250px;
    width: 250px;
}

.label-description {
    text-align: center;
}

.sum-description {
    text-align: right;
}

.negative-description {
    color: red;
}

.audit-table, .audit-table-cell {
    border: 1px solid #aaa;
    border-collapse: collapse;
    padding: 4px;
}

.toggle-expand-icon {
    float: left;
    color: gray;
    display: inline-block;
    height: 20px;
    width: 20px;
    transition: all 0.3s;
}

.toggle-expand-icon:hover {
    cursor: pointer;
    color: black;
    transition: all 0.3s;
}

.sum-collapseable {
    transition: all 0.3s;
}

.sum-collapseable:hover {
    background-color: #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.original-description-visible {
    opacity: 1;
}

.row-collapsed .original-description-visible {
    opacity: 0;
}

.original-description-hidden {
    opacity: 0;
}

.fixed-top-row {
    display: none;
    position: fixed;
    top: 135px;
    left: 0px;
    padding-left: 275px;
    background-color: white;
    font-weight: bold;
    z-index: 3;
}

.fixed-top-row-cell {
    display: table-cell;
    border-bottom: 1px solid black;
}

.fixed-left-column {
    display: none;
    position: fixed;
    top: 177px;
    left: 0px;
    padding-left: 16px;
    width: 266px;
    background-color: white;
    z-index: 4;
}

.fixed-left-column-row {
    display: table-row;
}

.fixed-left-column-cell {
    display: table-cell;
    border-right: 1px solid black;
}

.top-left-corner {
    position: fixed;
    height: 42px;
    width: 275px;
    top: 135px;
    left: 0px;
    z-index: 5;
    background-color: white;
}

.scenarios-module {
    display: inline-block;
}

.scenarios-container, .save-scenario-dialog, .custom-rollup-adder {
    width: 50%;
    overflow-y: scroll;
    background-color: white;
    position: absolute;
    top: 100px;
    z-index: 20;
    left: 25%;
    box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, .5);
    padding: 16px;
}

.client-tool-picker-container {
    top: 150px;
}

.rollup-scenarios-container {
    width: 620px;
    overflow-y: scroll;
    background-color: white;
    position: absolute;
    top: 10vh;
    max-height: 80vh;
    z-index: 20;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, .5);
    padding: 16px;
}

.permissions-container {
    width: 80%;
    overflow-y: scroll;
    background-color: white;
    position: fixed;
    top: 10%;
    max-height: 80%;
    z-index: 20;
    left: 10%;
    box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, .5);
    padding: 16px;
}

.scenarios-close {
    vertical-align: text-bottom;
}

.graph-spacer-col-closed {
    width: 0;
    max-width: 0;
}

.graph-spacer-col-mini {
    width: 620px;
    min-width: 620px;
}

.graph-spacer-col-full {
    width: 1220px;
    min-width: 1220px;
}

.graph-container {
    position: fixed;
    right: -1220px;
    top: 0;
    height: 100%;
    width: 1220px;
    background-color: white;
    transition: all 0.5s;
    box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, .5);
    z-index: 10;
}

.graph-container-content {
    height: 100%;
    overflow-y: scroll;
}

.graph-container-full {
    right: 0;
}

.graph-container-mini {
    right: -600px;
}

.graph-container-mini .graph-container-content:hover {
    cursor: pointer;
}

.graph-container-grabber {
    width: 50px;
    height: 130px;
    font-size: 32px;
    background-color: white;
    position: absolute;
    left: -50px;
    box-shadow: -2px 0px 2px 2px rgba(0, 0, 0, .5);
    padding: 0;
    transition: all 0.3s;
    text-align: center;
    cursor: ew-resize;
}

.graph-grabber-arrow {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.graph-grabber-arrow:hover, .left-grabber:hover {
    background-color: #ddd;
    transition: all 0.3s;
}

.graph-outer {
    display: inline-block;
}

.graph-outer-values {
    position: relative;
    width: 1200px;
}

.line-graph-full {
    width: 600px;
    height: 250px;
}

.hidden {
    display: none;
}

.line-graph-keys {
    position: relative;
    left: 70px;
    width: 530px;
}

.line-graph-keys-table tr {
    display: inline-block;
    width: 265px;
}

.graph-delete {
    position: absolute;
    top: 0;
    left: 510px;
}

.pie-graph-container {
    display: inline-block;
    position: relative;
}

.pie-graph-container-full {
    width: 600px;
}

.pie-graph-container-mini {
    width: 300px;
}

.graph-adder-panel {
    height: 100%;
    margin: 16px;
    overflow-y: scroll;
}

.admin-pie-adder-super-container {
    margin: 16px;  
}

.admin-pie-adder-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.admin-pie-adder-section {
    /*display: inline-block;*/
    min-width: 100px;
    margin-right: 16px;
}

.graphs-column-mini {
    display: inline-block;
    vertical-align: top;
    width: 300px;
}

.graphs-column-full {
    display: inline-block;
    vertical-align: top;
    width: 600px;
}

.left-container {
    position: fixed;
    left: -300px;
    top: 0;
    height: 100%;
    width: 300px;
    background-color: white;
    transition: all 0.5s;
    box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, .5);
    z-index: 15;
}

.left-container:hover {
    left: 0;
    transition: all 0.5s;
}

.left-grabber {
    font-size: 32px;
    font-weight: bold;
    color: #33436A;
    position: absolute;
    right: -40px;
    background-color: white;
    width: 40px;
    text-align: center;
    box-shadow: 2px 0px 2px 1px rgba(0, 0, 0, .5);
}

.left-open {
    left: 0;
    transition: all 0.5s;
}

#left-content {
    overflow-y: scroll;
    height: 100%;
}

.left-panel-title {
    margin-left: 8px;
}

.left-panel-item {
    width: 100%;
    color: #33436A;
    font-size: 16px;
    padding: 4px 16px;
    transition: all 0.3s;
    border-top: #ddd 1px solid;
}

.left-panel-item:hover {
    color: white;
    background-color: #33436A;
    transition: all 0.3s;
}

.left-panel-item-no-access {
    color: #888;
}

.left-panel-item-no-access:hover {
    color: #888;
    background-color: #fff;
}

.left-panel-item-selected {
    color: white;
    background-color: #33436A;
}

.left-panel-hr {
    margin: 0;
    border-top: 2px solid #888;
}

.client-details-part {
    margin-bottom: 8px;
    min-height: 26px;
}

.client-details-description {
    display: inline-block;
    width: 130px;
    font-weight: bold;
    vertical-align: top;
}

.client-details-contact {
    border-top: 1px solid #dadada;
    padding: 8px 0;
}

.client-details-contact-margin-right {
    margin-right: 16px;
}

.client-details-contact-description {
    display: inline-block;
    width: 125px;
}

.bolded {
    font-weight: bold;
}

.scenarios-column {
    display: inline-block;
    width: 64px;
    text-align: center;
}

.scenarios-gray {
    color: #888;
    font-size: 30px;
    vertical-align: middle;
}

.scenarios-amber {
    color: #b77133;
    font-size: 30px;
    vertical-align: middle;
}

.scenarios-green {
    color: #2a9128;
    font-size: 30px;
    vertical-align: middle;
}

.scenarios-white {
    color: white;
}

.shared-green {
    color: #2a9128;
    font-size: 24px;
    vertical-align: middle;
}

.shared-gray {
    color: #888;
    font-size: 24px;
    vertical-align: middle;
}

.shared-white {
    color: white;
}

.scenarios-title-shifted-64 {
    margin-left: 64px;
}

.scenarios-title-shifted-128 {
    margin-left: 128px;
}

.scenarios-col-title {
    display: inline-block;
    width: 64px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

.print-container {
    position: absolute;
    left: -2000px;
    top: -30000px;
}

@page {
    size: 11in 8.5in /*letter*/ landscape;
    
    @bottom-left {
        content: counter(page) "/" counter(pages);
    }

}

@media print {
    body {
      margin: 25mm 25mm 25mm 25mm;
    }

    .print-container {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*min-width: 4000px;*/
        display: block;
        z-index: 100;
        visibility: visible;
    }

    .zoomed-out {
        zoom: 79%;
    }

    .print-header {
        margin-top: -80px;
    }

    .row-description {
        display: inline-block;
        height: 39px;
        padding: 2px 4px;
        vertical-align: top;
    }

    .print-line {
        height: 39px;
        display: inline-block;
    }

    .print-cell {
        display: inline-block;
        height: 39px;
        min-width: 87px;
        border-right: 1px solid #aaa;
        padding: 2px 4px;
    }

    .sum-row .print-cell {
        padding: 0 4px;
    }

    .print-corner {
        width: 250px;
        border-right: none;
    }

    .last-row {
        page-break-after: always;
    }

    .grid-page {
        /*position: absolute;
        top:0px;
        bottom:0px;
        margin: auto;
        margin-top: 0px !important;*/
        
        height: 7in;
        max-height: 7in;
        max-width: 90%;
        font-size: 13px;
    }

    .print-footer {
        position: absolute;
        display: block;
        page-break-before: always;
        page-break-after: always;
        width: 100%;
    }

    .print-logo {
        display: inline-block;
        float: right;
    }

    .print-footer-text {
        display: inline-block;
        font-size: 14pt;
        line-height: 75px;
        vertical-align: bottom;
    }

    .break-before {
        page-break-before: always;
    }

    .business-unit {
        visibility: hidden;
    }

    #header, .left-container {
        display: none;
    }

    .row-dark {
        background-color: #f1f1f1 !important;
    }

    .current-bordered {
        border-left: 1px solid #aaa;
        background-color: #eee !important;
    }

    .period-headers-container {
        margin-top: 20px;
    }

    .period-header {
        display: table-cell;
    }

    .sum-row {
        background-color: #e8f2fc !important;
    }

    .sum-row .current-bordered, .sum-row .cagr-cell {
        border-top: 1px solid #aaa;
        border-bottom: 2px solid #aaa;
        height: 39px;
    }

    .label-description {
        padding-top: 16px;
    }

    .negative-amount {
        color: red !important;
    }

    .cagr-cell {
        background-color: #e0f0ff !important;
        vertical-align: top;
    }

    .print-graphs-container {
        page-break-before: always;
    }

    .print-graph-first {
        padding-top: 32px;
    }

    .print-graph-row {
        margin-top: 16px;
    }

    .pie-graphs-container-full {
        display: inline-block;
        vertical-align: top;
        width: 750px;
    }

    .pie-graph-container-full {
        width: 750px;        
    }

    .pie-keys-print {
        position: absolute;
        top: 50%;
        left: 350px;
        transform: translateY(-50%);
        max-height: 250px;
        font-size: 8pt;
    }

    .pie-key-line {
        max-height: 20px;
        white-space: nowrap;
    }

    .pie-key-line-split {
        width: 200px;
        float: left;
    }

    .pie-key-box {
        font-size: 24px;
        display: inline-block;
        vertical-align: middle;
    }

    .pie-key-label {
        display: inline-block;
        vertical-align: middle;
    }
}