.form {
    position: relative;
    padding: 45px 15px 15px;
    margin: 0 -15px 15px;
    border-color: #e5e5e5 #eee #eee;
    border-style: solid;
    border-width: 1px 0;
    -webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
    box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
}

.container {
    max-width: 970px;
    margin: 0 auto;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.home_icons {
    margin: 30px 0;
}

.home_icons h3 {
    text-align: center;
}

.home_icons p {
    text-align: center;
}
.home_icons .btn {
    min-width: 400px;
}

.larger {
    font-size: 1.2em;
}

.smaller {
    font-size: 0.9em;
    color: #999999;
}

.show-grid {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #eee;
    background-color: rgba(86,61,124,.15);
    border: 1px solid #ddd;
    border: 1px solid rgba(86,61,124,.2);
}

.show-border {
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #ddd;
    border: 1px solid rgba(86,61,124,.2);
}

.save_table > div {
    display: flex;
    flex-direction: row;
    padding: 10px;
}

.save_table.twocol > div > div {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}

.save_table h5 {
    margin: 0;
}

.start_hidden {
    display: none;
}

/*.core_company_selector {*/
/*    width: 80%;*/
/*}*/


.fee_template h4 {
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #ccc;
}

.preview_template section h5 {
    font-size: 22px;
    font-weight: bold;
    padding: 10px 0;
}
.preview_template section section h5 {
    font-size: 18px;
    padding: 8px 0;
}
.preview_template section section section h5 {
    font-size: 15px;
    padding: 6px 0;
}

.preview_template section {
    border: 1px dotted #ccc;
    margin: 10px 5px;
    padding: 12px 6px;
}

section.preview_stages,
section.preview_subconsultants,
section.preview_assumptions {
    margin: 20px 0;
    border-left: 5px solid #ccc;
    padding: 5px 5px 5px 20px;
}

section.preview_groups {
    margin: 35px 0 25px 5px;
    border-left: 1px solid #ddd;

}

.fee_group input.fee_hours_input {
    width: 42px;
    text-align: right;
}

td.fee_hours_input {
    vertical-align: center;
}

.feecat_header {
    text-align: center;
}

.feecat_header_amount {
    font-size: 8px;
    color: #aaa;
}

td.fee_item_name {
    font-size: 13px;
}

.fee_total_hours, .fee_total_amount {
    font-weight: bold;
    text-align: right;
}

#total_hours_opt,
#total_amount_opt {
    color: #aaa;
}

.preview_fee section h5 {
    font-size: 22px;
    font-weight: bold;
    padding: 10px 0;
}
.preview_fee section section h5 {
    font-size: 18px;
    padding: 8px 0;
}
.preview_fee section section section h5 {
    font-size: 15px;
    padding: 6px 0;
}

.preview_fee {
    margin-bottom: 150px;
}

.bottom_total_container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px dashed #222;
    background-color: #fff;
    padding: 20px;
    font-size: 24px;
}

.bottom_total {
    /*display: flex;*/
    /*justify-content: space-between;*/
}

.fee_group tfoot td {
    font-size: 16px;
}

.fee_disbursement_input {
    width: 50px;
}

.fee_group tfoot tr:first-of-type td {
    padding-top:20px;
}

.fee_group .group_total_row {
    font-weight: bold;
}

.fee_group tfoot tr:last-of-type {
    background-color: #efefef;
}

.fee_group tfoot .fee_total_amount_group,
.fee_group tfoot .fee_total_hours_group,
.fee_group tfoot .fee_total_amount_group_discount,
.fee_group tfoot .fee_total_amount_group_contingency_fee,
.fee_group tfoot .fee_total_amount_with_disbursement {
    text-align: right;
}

.fee_group .fee_total_amount_group_discount,
#bottom_total_discount {
    color: red;
}

#bottom_total_discount {
    font-size: 14px;
}

.fee_group tfoot label {
    padding-right: 5px;
}

.fee_group .fee_disbursement_input {
    text-align: right;
}

.fee_group textarea,
.fee_assumptions textarea,
.fee_subconsultants textarea {
    width: 100%;
}

.fee_subconsultants td.controls_rhs {
    width: 30px;
}

.subconsultant_fee_entry {
    text-align: right;
    width: 80px;
}

.fee_subconsultants td.fee_name_header {
    width: 100%;
}

.extra_total_info {
    font-size: 14px;
}

.extra_total_info span {
    display: block;
}

.fee_group .section_controls div {
    font-size: 11px;
    display: inline-block;
    padding-right: 5px;
}

.fee_group .section_discounts_controls a {
    color: red;
}
.fee_group .section_contingency a {

}

.fee_group td.section_contingency > * {
    display: inline-block;
}


table.fee_group {
    /*table-layout: fixed;*/
    width: 100%;
}

.fee_group td.controls_lhs, .fee_group td.controls_rhs {
    width: 18px;
}

.fee_group td.controls_lhs .add_row_control {
    position: relative;
    top: -16px;
    color: #aaa;
}

.fee_group td.controls_rhs,
.delete_row_control,
.delete_assumption_control,
.delete_subconsultant_control {
    color: red;
}

.fee_group td.fee_name_header {
    width: auto;
}

.fee_group td.fee_total_amount, .fee_group td.fee_total_hours {
    /*width: 50px;*/
    width: auto;
}

.fee_group td.feecat_header {
    width: 60px;
}

.fee_group thead td.fee_item_controls {
    width: 35px;
}

.fee_group .is_header_row .fee_hours_input {
    display: none;
}

.fee_group tbody tr:not(:hover) .fee_item_controls button {
    visibility: hidden;
}

.fee_group tbody tr:not(:hover) .delete_row_control {
    visibility: hidden;
}

.fee_group .is_header_row .fee_item_name {
    font-weight: bold;
}

.fee_group .is_header_row .fee_total_amount,
.fee_group .is_header_row .fee_total_hours {
    visibility: hidden;
}

.fee_total_hours_group_rate {
    text-align: center;
}

.stage_heading,
.phase_heading,
.subconsultants_heading {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
}


.discount_controls a {
    cursor: default;
}

.stage_description textarea {
    width: 500px;
}

#bottom_hours_count {
    display: inline;
    font-size: 14px;
    color: #777;
}

#bottom_hours_chart {
    display: flex;
    height: 20px;
    width: 100%;
    background-color: #dedede;
    margin: 0 0 7px 0;
    border-radius: 4px;
    border: 1px solid #dedede;
}

#bottom_hours_chart > span {
    display: inline-block;
    background-color: #2aabd2;
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 2px 0 0 0;
    height: 20px;
}

#bottom_hours_chart > span:nth-of-type(1) {
    background-color: #2aabd2;
    color: #fff;
}

#bottom_hours_chart > span:nth-of-type(2) {
    background-color: #8a6d3b;
    color: #fff;
}

#bottom_hours_chart > span:nth-of-type(3) {
    background-color: #5cb85c;
    color: #fff;
}

#bottom_hours_chart > span:nth-of-type(4) {
    background-color: orangered;
    color: #fff;
}

#bottom_hours_chart > span:nth-of-type(5) {
    background-color: yellowgreen;
    color: #fff;
}

#bottom_hours_chart > span:nth-of-type(6) {
    background-color: purple;
    color: #fff;
}

#bottom_hours_chart > span:nth-of-type(7) {
    background-color: darkturquoise;
    color: #fff;
}

#bottom_hours_chart > span:nth-of-type(8) {
    background-color: mediumpurple;
    color: #fff;
}

.fee_group .fee_total_amount_group_disbursement {
    vertical-align: bottom;
}

input.disbursement_item_name {
    width: 100%;
    font-size: 12px;
}

input.disbursement_item_fee {
    width: 60px;
    font-size: 12px;
}

input.disbursement_text {
    width: 100%;
}

.fee_group .group_total_hours,
.fee_group .fee_total_contingency_rategroup,
.fee_group .fee_total_amount_group_contingency {
    font-weight: normal;
    text-align: right;
}

.fee_group .group_total_hours,
.fee_group .fee_total_contingency_rategroup {
    text-align: center;
}


.hidden {
    display: none;
}

.fee_template_holder,
.fee_preview_holder {
    margin-bottom: 150px;
}

.bottom_flex {
    display: flex;
}

.bottom_flex > div {
    flex-grow: 1;
}

.bottom_flex .bf_right {
    text-align: right;
}

.project_stats_list span {
    font-weight: bold;
}

.project_details {
    margin: 0 0 20px 0;
}

.clickable {
    cursor: pointer;
}

textarea.stage_description_editor, textarea.phase_description_editor {
    width: 100%;
    border: 1px solid #ddd;
    padding: 7px 15px;
}

.add_disbursement_item {
    font-size: 11px;
}

.preflight_section {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 20px;
    padding: 20px;
    background-color: #efefef;
}

.preflight_section.preflight_active {
    border-color: #5cb85c;
    background-color: #fff;
    border-width: 3px;
}

.preflight_section h2 {
    font-size: 22px;
    color: #555;
    margin: 10px 0 30px;
}

.preflight_section.preflight_active h2 {
    color: #5cb85c;
}

.fee_table_controls {
    margin: 10px 0 20px;
}

section.is_locked .controls_lhs,
section.is_locked .controls_rhs,
section.is_locked .fee_item_controls,
section.is_locked .stage_controls,
section.is_locked .assumption_controls,
section.is_locked .subconsultant_controls,
section.is_locked .discount_controls,
section.is_locked .add_disbursement_item,
section.is_locked .section_controls_row,
section.is_locked .delete_stage_container
{
display: none;
}


.delete_stage_container {
    float: right;
}

form.project_assessment_form {
    margin: 0 25px;
}



td.commentary {
    width: 180px;
}

.hide_comments td.commentary, .hide_comments th.commentary {
    display: none;
}

td.commentary textarea.commentary_text {
    width:100%;
}

.fee_group td.controls_rhs {
    width: 32px;
    max-width: 32px;
}

.fee_total_cell {
    text-align: right;
}

.disbursements_total_amount_group {
    text-align: right;
}

section.variation_content {
    padding-left: 20px;
    border-left: 5px solid #ccc;
    margin-bottom: 50px;
}

p.reviewer_note {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ccc;
    border-left: 5px solid red;
    font-size: 18px;
}

.pdf_file_wrapper {
    margin: 50px auto;
    background-color: #efede2;
    border: 1px solid #ccc;
    padding: 30px;
    box-shadow: 0 0 10px 0 #BFBFBF;
    line-height: 140% !important;
}

section.pdf_file table {
    margin-left: 5px;
}

.pill_container {
    width: 400px;
    font-size: 18px;
    margin: 0 auto;
}

.facts span {
    font-size: 16px;
}

.fee_display_nav a {
    text-decoration: underline;
}

body.fee_table .fee_group tr:hover {
    background-color: #fafafa;
}

.fee_filters {
    border: 1px solid #dddddd;
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
    font-size: 13px;
}

.fee_filters:first-of-type {
    margin-left: 0;
}

.fee_filters:last-of-type {
    margin-right: 0;
}

.fee_filters_submit {
    border: none;
}

.fee_filters_title {
    font-weight:bold;
    padding-right: 10px;
    font-size: 11px;
}

body.fee_table {
    --colcount: 6;
}

table.fee_group {
    /*display: grid;*/
    grid-template-rows: 50px fit-content(70vh) 1fr;
}

table.fee_group th, table.fee_group td {

}

table.fee_group thead th {
    position: sticky;
    top: 0;
    background-color:#fff;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);

}

table.fee_group thead,
table.fee_group tbody,
table.fee_group tfoot,
table.fee_group tr {
    /*display: grid;*/
    grid-template-columns: subgrid;
    grid-column: 1 / var(--colcount);
}
table.fee_group tbody {
    overflow: auto;
}

table.fee_group thead,
table.fee_group tfoot {
    position: sticky;
    bottom: 0;
}

table.fee_group tfoot tr {
    background-color: #fff;
}

table.fee_group tr.ui-sortable-helper {
    display: block;
}

section.budget_row {
    display: flex;
}

section.budget_row > div {
    flex-grow:1;
    padding: 5px 15px;
    text-align: center;
    font-size: 16px;
    width: 150px;
}

section.budget_row > div:not(:first-of-type) {
    border-left: 1px solid #ccc;
}

.budget_item_title {
    font-weight: bold;
}

.budget_item_percent {
    font-size: 24px;
}

.budget_item_actual {
    font-size: 20px;
}

.budget_item_amount {
    color: #777;
    font-size: 16px;
}

.budget_red {
    /*background-color: #eee;*/
}

.budget_green {
    /*background-color: #40ff40;*/
    background-color: #e9f8e9;
}

/*.budget_green .budget_split_title,
.budget_green .budget_item_amount {
    color: #000;
}*/

.budget_item_heading {
    font-size: 22px;
}

.budget_item_manual {
    font-style: italic;
}

.budget_item_deleted {
    text-decoration: line-through;
}

.budget_amounts_split {
    display: flex;
    font-size: 12px;
    padding-top: 6px;
}

.budget_amounts_split > div {
    flex: 1;
}

.budget_amounts_split .budget_item_actual {
    font-size:15px;
}

.budget_amount_split_item:not(:first-of-type) {
    border-left: 1px solid #ccc;
}

.budget_split_title {
    font-size: 6px;
    color: #999;
    text-transform: uppercase;
}

.month_unset {
    font-style: italic;
}




.budget_container {  display: grid;
    grid-template-columns: 180px 2fr 2fr 2fr 10px 2fr 2fr 1fr 1fr 10px 1fr 1fr 1fr 1fr;
    grid-template-rows: 25px 25px 25px 400px;
    grid-auto-rows: 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
    ". Submissions Submissions Submissions . OrderIntake OrderIntake OrderIntake OrderIntake . CancellationsLosses CancellationsLosses CancellationsLosses CancellationsLosses"
    ". SubmissionsNew SubmissionsVariation SubmissionTotal . OrderIntakeNew OrderIntakeVariations OrderIntakeTotal OrderIntakeTotal . Cancellations Cancellations Losses Losses"
    ". SubmissionsNewTop SubmissionsVariationTop SubmissionsTotalTop . OrderIntakeNewTop OrderIntakeVariationsTop OrderIntakeTotalTop1 OrderIntakeTotalTop2 . CancellationsTop1 CancellationsTop2 LossesTop1 LossesTop2"
    "RowTitle SubmissionsNewVals SubmissionsVariationVals SubmissionsTotalVals . OrderIntakeNewVals OrderIntakeVariationsVals OrderIntakeTotalVals1 OrderIntakeTotalVals2 . CancellationsVals1 CancellationsVals2 LossesVals1 LossesVals2";
    height: 300px;
}

.Submissions { grid-area: Submissions; }

.OrderIntake { grid-area: OrderIntake; }

.CancellationsLosses { grid-area: CancellationsLosses; }

.SubmissionsNew { grid-area: SubmissionsNew; }

.SubmissionsVariation { grid-area: SubmissionsVariation; }

.SubmissionTotal { grid-area: SubmissionTotal; }

.OrderIntakeNew { grid-area: OrderIntakeNew; }

.OrderIntakeVariations { grid-area: OrderIntakeVariations; }

.OrderIntakeTotal { grid-area: OrderIntakeTotal; }

.Cancellations { grid-area: Cancellations; }

.Losses { grid-area: Losses; }

.SubmissionsNewTop { grid-area: SubmissionsNewTop; }

.SubmissionsVariationTop { grid-area: SubmissionsVariationTop; }

.SubmissionsTotalTop { grid-area: SubmissionsTotalTop; }

.OrderIntakeNewTop { grid-area: OrderIntakeNewTop; }

.OrderIntakeVariationsTop { grid-area: OrderIntakeVariationsTop; }

.OrderIntakeTotalTop1 { grid-area: OrderIntakeTotalTop1; }

.OrderIntakeTotalTop2 { grid-area: OrderIntakeTotalTop2; }

.CancellationsTop1 { grid-area: CancellationsTop1; }

.CancellationsTop2 { grid-area: CancellationsTop2; }

.LossesTop1 { grid-area: LossesTop1; }

.LossesTop2 { grid-area: LossesTop2; }

.RowTitle { grid-area: RowTitle; }

.SubmissionsNewVals { grid-area: SubmissionsNewVals; }

.SubmissionsVariationVals { grid-area: SubmissionsVariationVals; }

.SubmissionsTotalVals { grid-area: SubmissionsTotalVals; }

.OrderIntakeNewVals { grid-area: OrderIntakeNewVals; }

.OrderIntakeVariationsVals { grid-area: OrderIntakeVariationsVals; }

.OrderIntakeTotalVals1 { grid-area: OrderIntakeTotalVals1; }

.OrderIntakeTotalVals2 { grid-area: OrderIntakeTotalVals2; }

.CancellationsVals1 { grid-area: CancellationsVals1; }

.CancellationsVals2 { grid-area: CancellationsVals2; }

.LossesVals1 { grid-area: LossesVals1; }

.LossesVals2 { grid-area: LossesVals2; }



.Submissions, .OrderIntake, .CancellationsLosses {
    text-align: center;
    border: 1px solid #000;
    background-color: #1b6d85;
    color: #fff;
}

.SubmissionsNew, .SubmissionsVariations, .SubmissionsTotal {
    text-align: center;
    border: 1px solid #000;
}

.OrderIntakeNew, .OrderIntakeVariations, .OrderIntakeTotal {
    text-align: center;
    border: 1px solid #000;
}

.Cancellations, .Losses {
    text-align: center;
    border: 1px solid #000;
}

.SubmissionsNewTop, .SubmissionsVariationsTop, .SubmissionsTotalTop {
    text-align: center;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

.OrderIntakeNewTop, .OrderIntakeVariationsTop, .OrderIntakeTotalTop1, .OrderIntakeTotalTop2 {
    text-align: center;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

.CancellationsTop1, .CancellationsTop2, .LossesTop1, .LossesTop2 {
    text-align: center;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

.SubmissionsNewVals, .SubmissionsVariationsVals, .SubmissionsTotalVals {
    text-align: center;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
}

.OrderIntakeNewVals, .OrderIntakeVariationsVals, .OrderIntakeTotalVals1, .OrderIntakeTotalVals2 {
    text-align: center;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
}

.CancellationsVals1, .CancellationsVals2, .LossesVals1, .LossesVals2 {
    text-align: center;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
}


table.budget_table {
    width: 100%;
    table-layout: fixed;
    font-size: 13px;
}

table.budget_table thead tr th {
    /*background: white;*/
    position: sticky;
    top: 0; /* Don't forget this, required for the stickiness */
    /*box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);*/
    z-index: 100;
}

table.budget_table thead tr:first-of-type th {
    top: 0;
}

table.budget_table thead .RowTitle {
    background: transparent !important;
}

table.budget_table thead tr:nth-of-type(2) th {
    top: 26px;
    background: white;
}
table.budget_table thead tr:nth-of-type(3) th {
    top: 52px;
    background: white;
}

.budget_table tr {
    height: 27px;
    overflow-y: auto;
}

.budget_filler {
    width: 10px;
}

.RowTitle {
    width: 130px;
    text-align: right;
    padding-right: 10px;
}

.budget_figure, .budget_percent {
    color: #888;
    font-weight: normal;
}
.budget_percent {
    padding-top: 5px;
    font-size: 10px;
    position: absolute;
    top: 0;
    text-align: center;
    left: 0;
    width: 100%;
}
.actual_figure {

}

.budget_wrapper {
    width: 100%;
    background-color: #fff;
    height: 20px;
    position: relative;
}
.budget_wrapper > div {
    max-width: 100%;
}
.budget_bar {
    background-color: #e9f8e9;
    height: 20px;
}

.RowTotal {
    font-weight: bold;
}

.budget_item td div {
    display: inline-block;
}

.fee_link {
    padding-left: 10px;
    font-size: 11px;
}

.budget_item .variation_text {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    background-color: #888;
    text-transform: uppercase;
    padding: 1px 6px;
    margin-left: 6px;
}


.global_banner {
    position: fixed;
    width: calc(100% - 20px);
    background-color: #2aabd2;
    margin: 10px;
    padding: 12px 20px;
    left: auto;
    z-index: 100;
    border-radius: 6px;

}
.global_banner .banner_message {
    font-size: 16px;
    color: #fff;

}

.banner_success {
    background-color: limegreen;
}

.banner_error {
    background-color: red;
}

.banner_info {
    background-color: #2aabd2;
}