/** Override Theme */

.sidebar .block {
    background: #fffbf6 !important;
    border: 1px solid #6C757D;
    color: #4a4a4a !important;
}
.sidebar .block h1,
.sidebar .block h2,
.sidebar .block h3,
.sidebar .block h4 {
  color: #4a4a4a !important;
}

.header, .footer {
	background-color: #1f2433 !important;
}

.node-meta {
	background-color: #1f2433 !important;
}
.node-author-date i {
	color: #fff !important; 
}


body {
  font-size: .8rem !important;
}

.page-tabs li a {
    background: var(--color-secondary) !important;
}
ul.page-tabs li.active-page-tab a {
    background: var(--color-primary) !important;
}
.page-tabs li a:hover {
    background: var(--color-primary) !important;
}

.sidebar .form-wrapper fieldset.form-item { display: block !important; }

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e1eeff;
    color: #000;
}

h2 {
    font-size: 1rem !important;
}

.node-form #edit-submit,
.node-form #edit-delete {
    display: inline !important;
}

.comments {
    /** border-top: 4px dashed var(--border) !important; */
    border-top: 0 !important;
}
.comment-body .links {
    margin-top: 10px !important;
}

.comment-default-comments-form #edit-subject-wrapper,
.comment-default-comments-form #edit-comment-body-0-format {
    display: none;
}

.comment-picture img {
    border-radius: 50% !important;
}

.comment-picture {
    height: auto !important;
    width: 3.5rem !important;
    background-color: transparent !important;
    margin-bottom: 5px;
}

.comment-picture mark {
    position: absolute;
    top: 15px;
    font-size: 10px;
    width: inherit;
    text-align: center;
    opacity: 35%;
}

.view-comments-modal .views-row {
    margin-bottom: 20px;
}

.node-header .node-author-img {
    display: none;
}

.node-content .field-group-table table tbody tr th {
	width: max-content;
    display: inline-block;
}

.message-status a {
    color: #1f2432 !important;
    text-decoration: underline;
}



@media (max-width: 1023px) {
    .primary-menu-wrapper {
        max-width: 280px !important;
        font-size: 12px;
    }
    .region-primary-menu .menu-main ul.menu ul.submenu li a {
        font-size: 12px;
    }
	.region-primary-menu .menu a {
		color: #1f2433 !important;
	}
}
.region-primary-menu .menu-main ul.menu ul.submenu li a {
    font-size: 14px;
}

.close-mobile-menu {
	color: #000 !important;
}

/**
.sidebar ul li a {
	font-weight: bold;
}
*/

/** Views with aggregation / total rows */
.view-content .view-totals td { background-color: #d8e0ef; }


.view-display-ready_for_tr tr.flag td {
    background-color: #f3e0e0;
}

/**
* 
* Accounting View
*
*/
.view-accounting table tbody tr._95 td {
    background-color: #e0e0e0;
}
.view-accounting table tbody tr._96 td {
    background-color: #a3c2e0;
}
.view-accounting table tbody tr._97 td {
    background-color: #efb67c;
}
.view-accounting table tbody tr._98 td {
    background-color: #c99;
}
.view-accounting table tbody tr._99 td {
    background-color: #ffefac;
}


.field-total-fees .field--name-field-total-fees,
.field-total-gp .field--name-field-total-gp.negative {
  color: white;
  background-color: #c43e3ed6;
  padding: 0px 10px;
}
.field-total-gp .field--name-field-total-gp.positive {
  color: white;
  background-color: green;
  padding: 0px 10px;
}

.field--name-field-quote-fees table tbody tr > td:nth-child(2) {
    color: red;
}

.field-entire-quote-markup .field--name-field-entire-quote-markup {
  color: #000;
  background-color: #9fd89f8f;
  padding: 0px 10px;
  width: min-content;
}


.field-entire-quote-markup .field--name-field-entire-quote-markup a {
    color: #4a4a4a !important;
}


/**
* 
* NODE & USER EDIT FORM 
*
*/
.path-user .page-content .user-form,
.path-node .page-content .node-form {
    padding: 0.5rem 1rem;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.path-node .page-content .node-form .field-group-tabs-wrapper,
.path-node .page-content .node-form .form-type-vertical-tabs {
	background-color: #fff;
}


.path-node .page-content .node-form h4 {
	font-size: 0.8rem !important;
}

.path-node .page-content .node-form .field--type-text-long #edit-field-renewal-notes-0-format{
	display: none;
}

.path-node .page-content .node-form .select2-container {
	width: unset !important;
	min-width: 468px;
	max-width: 100%;
}


.path-node .page-content .node-form .field--widget-options-select select {
	min-width: 468px;
	max-width: 100%;
}

.path-node .page-content .node-form input[type=date] {
	min-width: 468px;
	max-width: 100%;
}


.node-clin-list-edit-form .form-item-field-quote-price-0-value label {
    pointer-events: none;
}
.node-clin-list-edit-form .form-item-field-quote-price-0-value #edit-field-quote-price-0-value {
    pointer-events: none;
    background-color: #efefef;
}

.node-meeting-form .field--name-field-meeting-date .fieldset-wrapper > div:first-child {
    display: flex;
}

.node-meeting-form .field--name-field-meeting-date .fieldset-wrapper .form-item {
    padding: 0 5px;
}

.node-meeting-form .field--name-field-meeting-date .fieldset-wrapper .form-item input {
    height: 40px;
}

/** Custom */

tr.has-renewal-opp td {
    background-color: #daf0ff;
}
tr.no-renewal-opp td {
    background-color: #ffeaea;
}

.page-content #block-mahi-latestunreadmail {
    padding: 0.5rem 1rem;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.page-content #block-mahi-checkccinfoblock {
    padding: 0.5rem 1rem;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

body.page-type-product .node-content .field--name-field-description {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

body.path-user #block-mahi-content .field--name-user-picture {
    float: right;
}
body.path-user #block-mahi-content form .field--name-user-picture {
    float: unset !important;
}
body.path-user .field--name-user-picture img {
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.node-sewp-request-view th {
    white-space: nowrap;
}

.node-form .field--type-data-field {
    display: inline flex !important;
}


#edit-account { display: block !important; }
textarea {
  line-height: 1 !important;
}

.page-header {
   padding: 5px 0px !important;
}
.container {
   max-width: 95% !important;
}
.amia-add-node {
   float: right;
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.2rem !important;
    margin-bottom: 5px;
    border-radius: 6px;
    margin-left: 5px;
}
.amia-add-node:hover {
    background-color: #c73c5d;
    color: #fff;
}

.view-display-rep_forecast .view-content {
    overflow-x: auto;
}

.view-display-opp_report .view-content {
    overflow-x: auto;
}
.view-display-opp_report .view-header {
    display: flex;
}
.view-display-opp_report .view-header .amia-add-node {
    margin-left: auto !important;
}

.page-type-accounting-record .vertical-tabs { 
    margin-top: 0 !important;
}

.page-type-contact .block-content nav ul.page-tabs,
.page-type-account .block-content nav ul.page-tabs,
.page-type-opportunity .block-content nav ul.page-tabs,
.page-type-accounting-record .block-content nav ul.page-tabs,
.page-type-quote .block-content nav ul.page-tabs { display: none !important; }

.view-content tr.primary-row td { background-color: #c9e3ff; }
 
.node-form .field-multiple-table th { background-color: #fff !important; color: #000 !important; }
.node-form .field-multiple-table h4.label { display: contents !important; }
.node-form .field-multiple-table .field-label::before { content: "# " !important; }

/* .node-form .field--type-text-long .js-filter-wrapper { display: none; } */

table caption { text-align: left; }

.node-content { gap: 5px !important; }

.view-quote-queue .views-field-nothing { text-align: center; }
.quote-queue-options{
    background-color: var(--color-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    display: inline-block;
    margin-bottom: 2px;
    margin-top: 2px;
    font-size: 14px;
}
.quote-queue-options:hover{
    background-color: #c03e5d;
    color: #fff;
}

/** Field Group Tables */
.field-group-table {
    display: grid; 
    width: fit-content; 
}
.field-group-table table td { 
    padding: 2px;
    vertical-align:top;
}
.field-group-table table th { 
    background-color: #fff;
    color: #000;
    border: 0;
    padding: 2px 25px 2px 2px;
    vertical-align:top;
}
.field-group-table table td { 
    border: 0;
}
.field-group-table table th::before {
    content: "#";
    color: var(--color-primary);
}

/** CLIN List VIEW */

.view-clin-list table { font-size: 15px; }
.view-clin-list table td { padding: 2px 5px !important; }

/** Inputs for 'Filter Results' blocks */
.views-exposed-form input { width: 100%; }
.views-exposed-form select { width: 100%; height: 50px; }

.views-exposed-form .shs-widget-container { width: 100%; }
.views-exposed-form .shs-addnew-container .add-another { 
    width: 100%; 
    text-align: center; 
    font-size: 14px;
    cursor: pointer;
}

.views-exposed-form [name="reset"] {
    margin-top: 10px;
}

#vbo-action-form-wrapper .form-actions { margin-bottom: 10px; }
.vbo-multipage-selector { display: none; }

/** Override theme */
button::before,
.button::before,
.button-primary::before,
.button-secondary::before,
.button-dark::before {
  display: none !important;
}
button {
  display: inline !important;
}

.node-links-container { display: none; }

@media screen and (max-width: 768px) {
    .priority-low {
        display: none !important;
    }
    .responsive-enabled{
        font-size: 14px !important;
    }
    .horizontal-tabs {
        border: 0 !important;
    }

    table.tablesaw tr { padding-top: 20px; }
    
    table.tablesaw tr td:first-child {
        border-radius: 6px 6px 0px 0px;
    }
    table.tablesaw tr td:last-child {
        border-radius: 0px 0px 6px 6px;
    }
  
    .tablesaw-stack td .tablesaw-cell-label, .tablesaw-stack th .tablesaw-cell-label {
        width: 45% !important;
    }
    .tablesaw-cell-content {
        width: 45% !important;
    }
    .tablesaw th, .tablesaw td {
        text-align: left !important;
    }
  
    .view-quote-queue .views-field-nothing { 
        display: inline-grid; 
        
    }
    .view-quote-queue .views-field-nothing .tablesaw-cell-content { 
        width: 100% !important;
        max-width: 100% !important; 
    }
    .view-quote-queue .quote-queue-options {
        text-align: center !important;
    }
    
    .vbo-view-form .form-actions input[type=submit].button {
        margin-top: 5px;
        width: 48%;
    }
}

.tableresponsive-toggle-columns { display: none !important; }

#quote-line-items-form { overflow: auto; }

.field--type-data-field .field-items { display: flex; }
.field--type-data-field .field-items .field-item { width:100%; }

.field--name-field-entire-quote-markup  .field-item { padding: 0px 10px; background-color:#ccc; font-weight: bold; }


.simplelogin-form { border-radius: 8px; }
.simplelogin-form #block-mahi-primary-local-tasks {
    display: none;
}
.simplelogin-logo h1 { display: none; }
.simplelogin-logo { padding-bottom: 35px; }

.simplelogin-form .forgot-password {
    display: none;
}

.simplelogin-form .button-o365-sso {
    width: 100%;
    text-align: center;
}

.simplelogin-form .button-o365-sso:active,
.simplelogin-form .button-o365-sso:hover{
    background-color: #fb933b;
}

form.user-login-form {
    margin-bottom: 0 !important;
}


.view-content .tablesaw { font-size: 13px; }
.view-content .tablesaw td { padding: 10px 5px; }

.table-no-borders th,
.table-no-borders td {
    border: 0;
}

.ui-dialog-titlebar {
    background-color: #1f2433;
    color: #fff;
}

.node-opportunity-form .field--name-field-win-chance,
.node-opportunity-form .field--name-field-expected-close-date,
.node-opportunity-edit-form .field--name-field-win-chance,
.node-opportunity-edit-form .field--name-field-expected-close-date {
    display: block !important;
}

.view-opportunities table tr.yellow td { background-color: #feffd6; }
.view-opportunities table tr.blue td { background-color: #AEEFF1; }
.view-opportunities table tr.green td { background-color: #c9eccf; }
.view-opportunities table tr.red td { background-color: #CC9999; }
.view-opportunities table tr.gray td { background-color: #ebebeb; }

.view-quotes table tr.yellow td { background-color: #feffd6; }
.view-quotes table tr.blue td { background-color: #AEEFF1; }
.view-quotes table tr.green td { background-color: #c9eccf; }
.view-quotes table tr.red td { background-color: #CC9999; }
.view-quotes table tr.gray td { background-color: #ebebeb; }


.node-quote-edit-form .field--name-field-ship-to-phone table tr th {
    background: transparent;
    color: #000;
    border: 1px solid #b5b6be;
}


.node-quote-edit-form .field--name-field-ship-to-phone table tr td {
    border: 1px solid #b5b6be;
}

.node-quote-edit-form .field--name-field-ship-to-phone table caption {
    display: none;
}

#block-mahi-quotequeueblock details {
    padding: 10px !important;
}
#block-mahi-quotequeueblock details summary {
    padding: 0px !important;
    background-color: transparent !important;
}

#block-mahi-quotequeueblock details a {
    display: block;
    width: 100%;
    text-align: center;
    background: #3d6790;
    color: #fff;
    border-radius: 8px;
    padding: 5px;
    margin-top: 5px;
}
#block-mahi-quotequeueblock details a:hover {
    background: #6eabe2;
}


.ui-autocomplete .ui-autocomplete-content .ui-state-disabled,
.ui-autocomplete .ui-autocomplete-container-more_results {
    display: none !important;
}


#block-mahi-views-block-management-forecast-block-1 table {
    margin-bottom: 0 !important;
}
#block-mahi-views-block-management-forecast-block-1 table thead,
#block-mahi-views-block-management-forecast-block-1 table tbody {
    display: none;
}

#block-mahi-views-block-management-forecast-block-1 table tfoot td {
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
}
