body {
    overflow-x: hidden;
}

a {
    color: green;
}

.clear-fix {
    clear: both;
}

label,
main h4.label,
.field-group-html-element h3,
.seven-details__summary,
#scheduled-payment-amount,
#edit-group-address-label,
#edit-group-job-creation-prediction-label,
.edit-group-full-time-employees-label,
.edit-group-part-time-employees-label,
.edit-group-ft-benefits-offered-label,
.edit-group-pt-benefits-offered-label {
    color: #0074BD;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
}

.path-businesses .tabs a {
    font-size: 11px;
    letter-spacing: -0.5px;
    padding: 5px 6px !important;
}

.tabledrag-toggle-weight-wrapper {
    display: none !important;
}

.layout-container {
    margin: 0 1em !important;
}

.layout-region-node-main {
    float: none !important;
    width: 100% !important;
    padding-right: 0 !important;
}

.layout-region-node-secondary {
    float: none !important;
    width: 100% !important;
}

.layout-region-node-footer__content {
    border-top: 0 none;
    padding-top: 0;
    margin-top: 0;    
}

.is-horizontal .tabs__tab {
    border-bottom: none;
}

.tabs.primary a {
    background: url(../images/icons/cccccc/chevron-right.svg) 99% center no-repeat;
}

.region-content {
    clear: both;
}

.region-breadcrumb {
    margin-top: 10px;
    height: 45px;
}

.region-breadcrumb::after{
    clear: both;
}

.ief-entity-operations {
    white-space: nowrap !important;
}

#block-searchform {
    float: right;
    height: 45px;
    line-height: 45px;
}

#block-searchform .form-item {
    margin: 0;
}

#block-searchform + #block-seventeen-breadcrumbs {
    float: left;
    height: 45px;
    line-height: 45px;
}

#block-searchform + #block-seventeen-breadcrumbs::after {
    clear: both;
}

#block-searchform + #block-seventeen-breadcrumbs .breadcrumb {
    padding: 0;
    line-height: 45px;
}

/** NOTES FORM **/

#node-notes-form {
    margin-top: 1em;
}

#node-notes-form .layout-region-node-secondary {
    display: none;
}

#node-notes-form #edit-field-notes-wrapper {
    margin-bottom: 0;
}

/** LABELS */

.form-item label {
    margin-bottom: 8px;
}

#edit-field-repayment-status-wrapper label {
    color: red;
}

#homepage {
    text-align: center;
}

#user-login-form {
    width: 600px;
    margin: 0 auto;
}

#user-login-form .form-text {
    width: 100%;
}

#user-login-form p,
#user-login-form #edit-actions {
    text-align: center;
}

.view-id-business {
    margin-top: 20px;
}

.view-id-business th {
    text-transform: uppercase;
    background: #3A5795;
    color: #fff;
    font-weight: normal;
    border: 1px solid #bebfb9;
    padding: 3px 10px;
}

.view-id-business td {
    vertical-align: top;
}

.view-id-business .view-content > table {
    border: 1px solid #bebfb9;
}

.views-field-field-business-owner .item-list ul li {
    list-style-type: none;
    margin: 0;
}

.views-field-field-business-owner .item-list ul li tr:last-child {
    border: 0;
}

.views-field-field-business-owner .item-list ul li td {
    padding: 5px;
}

.views-field-field-business-owner .item-list ul li td:first-child {
    padding-left: 0;
}

.views-field-field-business-owner .item-list ul li td:nth-child(2) {
    width: 140px;
}

#business-defaulted {
    display: none;
    padding: 10px;
    background: #f5f5f2;
}

#business-banner {
    padding: 10px; 
    color: #013161; 
    margin: 20px 0; 
    background-color: #DFE9F5; 
    border: 1px solid #BAC9DB;
    line-height: 1.25;
}

#business-additional-details,
#business-additional-details table {
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #e6e4df;
}

#business-additional-details th {
    text-transform: uppercase;
    background: #3A5795;
    color: #fff;
    font-weight: normal;
    border-width: 1px;
    border-style: solid;
    border-color: #bebfb9;
    padding: 3px 10px;
}

#business-additional-details .fs-collapsible {
    display: block;
    color: #0074bd;
    cursor: pointer;
    background: #efefef;
    padding: 5px 10px;
    margin-left: 30px;    
}

#business-additional-details .fs-collapsible:hover {
    text-decoration: underline;
}

#business-additional-details tr.detail {
    background: url(../images/icons/left-arrow-right-th.png) no-repeat 10px center;
}

#business-additional-details .fs-collapsible + div {
    display: none;
    margin-left: 30px;
}

/** DATE FIELDS **/

.field--type-datetime fieldset {
    border: 0;
    padding: 0;
    background: none;
}

.field--type-datetime fieldset legend {
    position: relative !important;
    color: #0074BD !important;
    font-weight: 600 !important;
    font-size: 1rem;
    text-transform: none !important;
    top: 0 !important;
    border: 0 none !important;
    padding: 0 !important;
}

.field--type-datetime fieldset .fieldset-wrapper {
    padding: 0 !important;
}

/** TABLE DRAG DROP */

#edit-group-q2 thead th,
#edit-group-q4 thead th,
.full-time-benefits-others thead th,
.part-time-benefits-others thead th,
#edit-field-business-practice-others-wrapper  thead th {
    border: 0 none;
    background: transparent;
    padding: 5px 0;
}

#edit-group-q2 thead > tr,
#edit-group-q4 thead > tr,
.full-time-benefits-others thead > tr,
.part-time-benefits-others thead > tr,
#edit-field-business-practice-others-wrapper thead > tr {
    border: 0 none;
}

#edit-group-q2 td,
#edit-group-q4 td,
.full-time-benefits-others td,
.part-time-benefits-others td,
#edit-field-business-practice-others-wrapper td {
    padding: 5px 0;
}

#edit-group-q2 td.field-multiple-drag,
#edit-group-q4 td.field-multiple-drag,
.full-time-benefits-others td.field-multiple-drag,
.part-time-benefits-others td.field-multiple-drag,
#edit-field-business-practice-others-wrapper td.field-multiple-drag {
    display: none;
}

#edit-group-q2 .form-item > .form-text,
#edit-group-q4 .form-item > .form-text,
.full-time-benefits-others .form-item > .form-text,
.part-time-benefits-others .form-item > .form-text,
#edit-field-business-practice-others-wrapper .form-item > .form-text {
    width: calc(100% - 15px);
}

/** ENVIRONMENTAL RESPONSIBILITIES */

.environmental-responsibilities::before {
    content: "Environmental Responsibilities";
    color: #0074BD;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.environmental-responsibilities > div {
    background: #f8f8f8;
    padding: 0;
}

.environmental-responsibilities > div > .fieldgroup {
    margin: 0;
}

.environmental-responsibilities legend {
    display: block;
    font-weight: 600;
    background: #eee;
    margin: 0 0 10px;
    padding: 5px 20px;
    width: 100%;
    color: #0074BD;
}

.environmental-responsibilities .form-checkboxes {
    padding: 0 20px;
}

#edit-field-business-practice-others-wrapper,
#edit-field-q2-env-responsibilities-2-wrapper,
#edit-field-q4-env-responsibilities-2-wrapper {
    background: #f8f8f8;
    padding: 0 20px 20px;
}

#edit-field-business-practice-others-wrapper > div > .form-item,
#edit-field-q2-env-responsibilities-2-wrapper > div > .form-item,
#edit-field-q4-env-responsibilities-2-wrapper > div > .form-item {
    margin: 0;
}

/** FINAL LOAN AMOUNT */

#edit-group-loan-amount {
    border: 1px solid #CCC;
    padding-bottom: 10px;
    margin-bottom: 30px;
    border-top: 0 none;
}

#edit-group-loan-amount > div {
    margin: 0;
}

#edit-group-loan-amount > legend {
    display: block;
    text-transform: none;
    background-color: #f5f5f2;
    border: 1px solid #CCC;
    border-bottom: 1px solid #bfbfba;
    position: relative;
    font-weight: 600;
    width: 100%;
    padding: 10px 26px 10px 10px;
    top: auto;
    color: #0074BD;
    margin: 0 -19px;
    box-sizing: content-box;
}

#edit-group-loan-amount > .fieldset-wrapper > div {
    float: left;
    width: 33%;
}

#edit-group-loan-amount > .fieldset-wrapper > div:nth-child(3n+1) {
    clear: both;
}

#edit-group-loan-amount::after {
    content: " ";
    clear: both;
}

#edit-field-loan-type-other-wrapper {
    padding-right: 20px;
}

/** PHOTO */

#edit-field-photo-link-wrapper {
    border: 1px solid #CCC;
    padding-bottom: 10px;
    margin-bottom: 30px;
    border-top: 0 none;
}

#field-photo-link-add-more-wrapper > div {
    margin: 0;
}

#edit-field-photo-link-wrapper button[data-drupal-selector="tabledrag-toggle-weight"] {
    display: none;
}

#edit-field-photo-link-wrapper [name="field_photo_link_add_more"] {
    margin-left: 12px;
}

#edit-field-photo-link-wrapper .form-item > .form-text {
    width: calc(100% - 100px);
}

/** EMPLOYEE INFORMATION + IMPROVING TREATMENT OF AND BENEFITS TO EMPLOYEES */

#edit-group-employee-information,
#edit-group-improving-treatment {
    border: 1px solid #CCC;
    padding-bottom: 10px;
    margin-bottom: 30px;
    border-top: 0 none;
}

#edit-group-employee-information > div,
#edit-group-improving-treatment > div {
    margin: 0;
}

#edit-group-employee-information > legend,
#edit-group-improving-treatment > legend {
    display: block;
    text-transform: none;
    background-color: #f5f5f2;
    border: 1px solid #CCC;
    border-bottom: 1px solid #bfbfba;
    position: relative;
    font-weight: 600;
    width: 100%;
    padding: 10px 26px 10px 10px;
    top: auto;
    color: #0074BD;
    margin: 0 -19px;
    box-sizing: content-box;
}

.edit-group-full-time-employees > .fieldset-wrapper > div,
.edit-group-part-time-employees > .fieldset-wrapper > div,
.edit-group-ft-benefits-offered > .fieldset-wrapper > div,
.edit-group-pt-benefits-offered > .fieldset-wrapper > div {
    float: left;
    width: 40%;
}

.edit-group-full-time-employees > .fieldset-wrapper > div:nth-child(2n+1), 
.edit-group-part-time-employees > .fieldset-wrapper > div:nth-child(2n+1),
.edit-group-ft-benefits-offered > .fieldset-wrapper > div:nth-child(2n+1), 
.edit-group-pt-benefits-offered > .fieldset-wrapper > div:nth-child(2n+1) {
    clear: both;
}

.edit-group-full-time-employees::after,
.edit-group-part-time-employees::after {
    content: " ";
    clear: both;
}

.full-time-pto,
.part-time-pto,
.full-time-benefits-others,
.part-time-benefits-others {
    background: #ffd;
    border: #ccc;
    margin-left: -18px;
    padding-left: 20px;
    margin-right: 18px;
    padding-top: 10px;
    margin-bottom: 10px;
    width: calc(40% - 20px) !important;
}

/** ADDRESS + EMPLOYEE INFORMATION **/

#edit-group-address,
#edit-group-job-creation-prediction,
.edit-group-full-time-employees,
.edit-group-part-time-employees,
.edit-group-ft-benefits-offered,
.edit-group-pt-benefits-offered {
    padding: 18px !important;
    margin-top: 5px !important;
}

#edit-group-address label[for="edit-field-address-0-target-id"] {
    display: none !important;
}

#edit-group-address > legend,
#edit-group-job-creation-prediction > legend,
.edit-group-full-time-employees > legend,
.edit-group-part-time-employees > legend,
.edit-group-ft-benefits-offered > legend,
.edit-group-pt-benefits-offered > legend {
    display: none !important;
}

#edit-group-job-creation-prediction,
.edit-group-full-time-employees,
.edit-group-part-time-employees,
.edit-group-ft-benefits-offered,
.edit-group-pt-benefits-offered {
    background-color: #f5f5f2 !important;
}

#edit-field-job-prediction-full-time-wrapper,
#edit-field-job-prediction-part-time-wrapper {
    display: inline-block;
}

/** INLINE FORMS **/

#inline-entity-form-field_business_owner-form .ief-tabledrag-handle,
#inline-entity-form-field_business_owner-form .ief-tabledrag-header,

#inline-entity-form-field_investment_uses-form .ief-tabledrag-handle,
#inline-entity-form-field_investment_uses-form .ief-tabledrag-header,

#inline-entity-form-field_notes-form .ief-tabledrag-handle,
#inline-entity-form-field_notes-form .ief-tabledrag-header {
    display: none !important;
}

#edit-field-business-owner-wrapper,
#edit-field-investment-uses-wrapper,
#edit-field-notes-wrapper {
    border: 1px solid #bfbfba;
    margin-bottom: 1em;
}

#edit-field-business-owner-wrapper fieldset,
#edit-field-investment-uses-wrapper fieldset,
#edit-field-notes-wrapper fieldset {
    padding: 0;
    border-radius: 0;
    border: 0;
    margin: 0;
}

#edit-field-business-owner-wrapper legend,
#edit-field-investment-uses-wrapper legend,
#edit-field-notes-wrapper legend {
    display: block;
    text-transform: none;
    background-color: #f5f5f2;
    border-bottom: 1px solid #bfbfba;
    position: relative;
    font-weight: 600;
    width: 100%;
    padding: 10px 12px;
    top: auto;
    color: #0074BD;
}

#edit-field-business-owner-wrapper .fieldset-wrapper,
#edit-field-investment-uses-wrapper .fieldset-wrapper,
#edit-field-notes-wrapper .fieldset-wrapper {
    padding: 10px 12px;
}

#edit-field-business-owner-wrapper .tabledrag-toggle-weight,
#edit-field-investment-uses-wrapper .tabledrag-toggle-weight,
#edit-field-notes-wrapper .tabledrag-toggle-weight {
    display: none;
}

#edit-field-business-owner-wrapper thead th,
#edit-field-investment-uses-wrapper thead th,
#edit-field-notes-wrapper thead th {
    text-transform: none;
    color: #008000;
}

#inline-entity-form-field_business_owner-form fieldset[data-drupal-selector="edit-field-business-owner-form"] {
    background-color: #f5f5f2;
    border-radius: 3px;    
}

#inline-entity-form-field_business_owner-form fieldset[data-drupal-selector="edit-field-business-owner-form"] > legend::before {
    content: "Add new owner";
}

#inline-entity-form-field_investment_uses-form fieldset[data-drupal-selector="edit-field-investment-uses-form"] {
    background-color: #f5f5f2;
    border-radius: 3px;    
}

#inline-entity-form-field_investment_uses-form fieldset[data-drupal-selector="edit-field-investment-uses-form"] > legend::before {
    content: "Add new item";
}

#inline-entity-form-field_notes-form fieldset[data-drupal-selector="edit-field-notes-form"] {
    background-color: #f5f5f2;
    border-radius: 3px;    
}

#inline-entity-form-field_notes-form fieldset[data-drupal-selector="edit-field-notes-form"] > legend::before {
    content: "Add new note";
}

/** product_detail FORM */

div.description[id*="edit-field-product-details-form-0-field-reducing-poverty-with"] > ul {
    margin-left: 0;
    padding-left: 2em;
}

/** ADDED-INCOME INSTRUCTION */

.dms-message,
#added-income-instruction-message {
    padding: 15px; 
    border: 1px solid #ed541d; 
    background: #fef5f1; 
    color: #8c2e0b
}

.dms-message span,
#added-income-instruction-message span {
    font-weight: 600;
    color: red;
}

div[data-drupal-selector="edit-field-added-income-instruction-form-entities-0-form-message"] {
    margin: 1em 0;
    color: red;
}

/** MENU **/

.content-header {
    overflow: visible;
}

#block-custom-menu {
    position: relative;
    padding-top: 10px;
}

#custom-menu {
    position: relative;
    margin: 10px 0;
    padding: 0;
    background-color: #013161 !important;
    z-index: 99;
    border-left: #0074BD solid 10px;
}

#custom-menu li {
    display: inline-block;
    list-style: none;
    position: relative;
    white-space: nowrap;
}

#custom-menu li:hover {
    background-color: #22476b;
}

#custom-menu li a {
    display: block;
    padding: 7px 15px;
    color: #fff;
    text-decoration: none;
}

#custom-menu li.separator {
    margin: 10px 0;
    border-top: 1px solid #ccc;
    height: 1px;
}

#custom-menu li ul {
    display: none;
    position: absolute;
    top: 34px;
    left: 0;
    background-color: #22476b;
    margin: 0;
    padding: 0;
}

#custom-menu li ul li {
    display: block;
}

#custom-menu li ul li:hover {
    background-color: #5b7a99;
}

#custom-menu > li.active > ul {
    display: block;
}

#custom-menu li:hover ul {
    display: block;
}

/** DATA LOCKING */

#dms-data-locking-form .lock {
    color: red !important;
}

/** ADDRESS EDITOR */

#taxonomy-term-address-form #edit-relations {
    display: none;
}

/** REPAYMENTS - CASH */

#node-cash-form .details-wrapper > .form-wrapper {
    float: left;
    width: 40%;
    margin: 0;
}

#node-cash-form .details-wrapper > .form-wrapper:nth-child(2n+1) {
    clear: both;
}

#node-cash-form #edit-field-late-payment-fee-amount-wrapper::after {
    clear: both;
    content: ' ';
}

#scheduled-payment-amount b {
    color: red;
}