@import "variables.css";
@import "text.css";
@import "forms.css";
@import "template.css";
@import "nav.css";
@import "tables.css";
@import "utilities.css";
@import "modal.css";
@import "sales-orders/sales-orders.css";
@import "sales-orders/sales-order-items.css";
@import "items/items.css";
@import "skeleton.css";
@import "responsive.css";
@import "components.css";
@import "warehouse/picklist.css";
@import "warehouse/receiving.css";

body {
    margin: 0px;
    box-sizing: border-box;
    padding: 0px;
    font-family: Molde, -apple-system, BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
    letter-spacing: .04em;
    font-weight: 300;
    height: 100%;
    width: 100%;
    background-color: var(--background-color);
}

hr {
    border: 0px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

#app {
    width: 100%;
    height: 100%;
}

.login-view {
    display: grid;
    grid-template-columns: auto 250px auto;
    grid-template-rows: auto 400px auto;
    text-align: center;
    width: 100%;
    height: 100%;
}

.form-view {
    display: grid;
    grid-template-columns: auto 350px auto;
    grid-template-rows: auto 500px auto;
    text-align: left;
    width: 100%;
    height: 100%;
}

.login-view.center-view {
    grid-template-columns: auto 400px auto;
}

.forgot-password-container {
    margin: 100px auto;
    width: 350px;
}


.form-view .login-container, .login-view .login-container {
    grid-column-start: 2;
    grid-row-start: 2;
}

img.login-logo {
    margin-bottom: 16px;
}

.login-view .login-container .input-group, .login-view .login-container .input-group input {
    text-align: center;
}

.view {
    position: relative;
}

pre.chat-message {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 15px;
    background-color: var(--white);
    color: var(--very-dark-grey);
    border: 1px solid var(--light-grey);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
}

pre.chat-message:hover {
    opacity: .75;
    cursor: pointer;

}

pre.chat-message.muted {
    background-color: var(--light-grey);
    color: var(--dark-grey)
}

pre.chat-message.user {
    background-color: var(--highlight-on-light);
    
}

/* Customize scrollbar for WebKit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 4px; /* Width of the scrollbar */
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: var(--very-dark-grey); /* Color of the scrollbar thumb */
    border-radius: 0px; /* Rounded corners for the thumb */
  }

.section {
    
    padding: 16px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0px 0px 16px #dfdfdf;
    margin-bottom: 15px;
}

.modal .section {
    padding: 0px;
    box-shadow: none;
}

.section dl {
    margin: 0px;
}

.report-content-scrollable {
    width: max-content;
    min-width: 100%;
}

.cost-details {
    background-color: var(--error-light);
}

.revenue-details {
    background-color: var(--success-light);
}

.report-stat {
    background-color: var(--light-grey);
    border-radius: var(--border-radius);
    padding: 16px;
    color: var(--dark-grey);
    font-size: 28px
}

.report-stat h4, .report-stat h3 {
    font-size: 14px;
    color: var(--very-dark-grey);
    font-weight: 200;
}

.cases-detail-view:has(.case-con-wrap) {
    display: flex;
    gap: 20px;
}

.case-detail-view-wrap {
    position: relative;
    flex: 2;
}

.case-con-wrap {
    flex: 1
}

.case-con-wrap .message-date-header {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.case-con-wrap .message-date-header span {
    background: #ddd;
    padding: 3px 6px;
    border-radius: 5px;
}

.case-con-wrap .message-time-header{
    /* text-align: center; */
    padding: 2px;
    font-size: 13px;
    margin-top: 2px;
    margin-bottom: 10px;
}

.message-time-header.outbound {
    margin-left: 10%;
}

.case-con-wrap #heading-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-con-wrap h2 {
    margin-bottom: 15px;
    font-size: 20px;
}

.case-con-wrap #heading-wrap h2 span {
    display: block;
    font-size: 16px;
    font-weight: 400;
}

.case-con-wrap #action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.case-con-wrap #action-buttons svg.play-svg{
    transform: rotate(193deg);
}
.case-con-wrap #action-buttons svg.play-svg polygon{
    transform: rotate(294deg);
    transform-origin: center;
}

#messages-wrap {
    max-height: calc(100svh - 360px);
    overflow: auto;
}

.case-con-wrap .message {
    background-color: #ffffff;
    padding: 10px;
    /* margin-bottom: 10px; */
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.case-con-wrap .message .att-img {
    display: block;
}

.case-con-wrap .message .att-img img {
    max-width: 30%;
}

.case-con-wrap .message.outbound {
    max-width: 90%;
    margin-left: 10%;
}

.case-con-wrap .message.inbound {
    max-width: 90%;
    margin-right: 10%;
}

.case-con-wrap .message.outbound.type_sms {
    background-color: #05d;
    color: white;
}

.case-con-wrap .message.inbound.type_sms {
    background-color: #dbdbdb;
}

.case-con-wrap .message i {
    color: #05d;
    font-size: 12px;
}

.case-con-wrap .message .doc-link {
    background: white;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 4px;
    text-align: center;
    max-width: 110px;
}

.case-con-wrap .send-text-wrap textarea {
    width: 100%;
    height: 100px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbcbcb;
}

.case-con-wrap .send-btn-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-con-wrap .send-btn-wrap #goFile {
    display: none;
}

.campaigns-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaigns-wrap .input-group {
    margin-top: 0
}

.workflow-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-top:15px;
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.5s ease-in;
}

.workflow-wrap.hidden {
    display: none;
    /* opacity: 0; */
}

.workflow-wrap .input-group {
    margin-top: 0;
    flex: 1;
}

#file-view-wrap {
    
}

#file-view-wrap:has(img) {
    padding: 10px;
    background: #efefef;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ded9d9;
}

#file-view-wrap .selected-img{
    display: inline-block;
    position: relative;
    margin: 5px;
}

#file-view-wrap .selected-img .remove-button{
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

.send-btn-wrap button,
#btn-add-workflow {
    display: flex;
    gap: 6px;
}

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

.loader-icon {
    /* display: inline-block; */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: none;
}

.loader-icon.active {
    display: inline-block;
}

.notifications-container {
    position: fixed;
    right: 10px;
    top: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notifications-container .notification-single {
    cursor: pointer;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    /* Basic styling */
    background-color: #333;
    color: #fff;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    position: relative;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.notifications-container .notification-single h2 {
    color: white;
    font-size: 18px;
}

.notifications-container .notification-close {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 5px 10px;
    color: white;
}

.notification-single.show {
  opacity: 1;
  transform: translateX(0);
}

.notifications-container .notification-single .text {
    margin-bottom: 10px;
}

.case-detail-view-wrap .rating-area {
    position: absolute;
    top: 23px;
    left: 215px;
}

.case-detail-view-wrap .refer-area {
    position: absolute;
    top: 18px;
    left: 287px;
}

.case-detail-view-wrap .refer-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 0 5px #ddd;
    min-width: 400px;
    /* transform: translate(-50%, 10px); */
}

.case-detail-view-wrap .refer-box.hidden {
    display: none;
}

.case-detail-view-wrap .refer-box input,
.case-detail-view-wrap .refer-box textarea{
    padding: 8px
}

.name-suggetion-box {
    background: #dddddd59;
    position: relative;
    top: -9px;
    margin: 0px;
    padding: 0px;
    max-height: 200px;
    overflow-y: scroll;
}

.name-suggetion-box p.attorney-suggetion-name {
    background: #ddd;
    padding-inline: 20px;
    padding-block: 8px;
    cursor: pointer;
    color: #000;
    font-weight: 500;
    margin-block: 2px;
}

.refer-action-area {
    display: flex;
    justify-content: space-between;
}

.lead-scoring {
    cursor: pointer;
}

.lead-scoring i{
    color: #b2b2b2;
}

.lead-scoring i:hover{
    color: #000000;
}

.lead-scoring i.hovered{
    color: #000000;
}

.lead-scoring i.active{
    color: #494949;
}

.conversations-wrap {
    display: flex;
    gap: 10px;
}

.conversations-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 250px;
    max-height: 500px;
    overflow-y: auto;
}

.conversations-box .conversation-list-content {
    font-size: 0.9em;
}

.conversations-box .conversation-list-single {
    background: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-box .conversation-list-single .conversation-list-count {
    background: #05d;
    padding: 2px 7px;
    color: white;
    border-radius: 6px;
    font-size: 12px;
}

.conversations-box .conversation-list-single p {
    margin: 0
}

.conversations-box .conversation-list-single .heading{
    font-weight: 400;
}

div#addNoteBox {
    gap: 10px;
    display: flex;
    justify-content: end;
}

#addLeadNoteHeader {
    position: absolute;
    left: 266px;
    top: 10px;
    /* background-color: #392e33; */
    opacity: 0.75;
    padding: 10px 12px;
}

.refer-preview-area {
    max-width: 550px;
}

.refer-email-body {
    white-space: normal;
    font-family: inherit;
    display: block;
}

.refer-preview-area table,
.refer-email-body table{
    width: unset;
    padding: 0;
    box-shadow: none;
}

.refer-email-body table tr{
    background: none;
}

.refer-email-body table tbody tr:nth-child(even){
    background: none;
}

.refer-email-body table tr td{
    padding: 0;
    font-size: 14px;
}

#referPreviewArea table tr td:first-child{
    white-space: nowrap;
}

.refer-preview-area table td{
    white-space: normal;
}

.refer-email-body {
    font-size: 14px;
}

.refer-email-body p {
    font-size: 14px;
}

.refer-email-body h3 {
    font-size: 14px;
}

.refer-email-body .section-heading {
    background: #efefef;
    padding: 10px;
}

.refer-email-body span {
    display: block;
    margin-bottom: 10px;
}

.refer-form-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* .refer-form-area {
    display: none;
} */

.refer-box .hidden {
    display: none;
}

/* Attorney Network Area */

.attorney-state-single .state-heading {
    background: #555;
    color: white;
    text-align: center;
    padding: 8px 0;
    margin-bottom: 0;
}

.attorney-state-inner-wrap {
    display: flex;
}

.attorney-state-inner-wrap .firms-area,
.attorney-state-inner-wrap .firms-contact,
.attorney-state-inner-wrap .fee-area {
    flex: 1;
    border: 1px solid #ddd;
    padding: 15px;
}

.tox-tinymce-aux {
    z-index: 9999 !important;
}

.lead_details_summary {
    font-size: 14px;
}

.lead_details_summary #date_of_injury,
.lead_details_summary #location_section,
.lead_details_summary #incident_details,
.lead_details_summary #at_fault_party,
.lead_details_summary #injuries,
.lead_details_summary #medical_treatment,
.lead_details_summary #insurance_info,
.lead_details_summary #legal_representation,
.lead_details_summary #witnesses,
.lead_details_summary #police_report,
.lead_details_summary #date_intake
{
    display: block;
    margin-bottom: 15px;
}




/* new style */
.snippets-table-wraper {
    overflow: scroll;
}
.snippet-main-box {
    position: relative;
    
}
.snippet-main-box .snippet-box {
    position: absolute;
    width: 300px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    word-wrap: break-word;
    height: 278px;
    overflow: scroll;
    box-shadow: 0px 0px 52px -25px #000;
    border-radius: 5px;
    display: none;
}
.snippet-main-box .snippet-box.active{
    display: block !important;
}
.snippet-main-box .snippet-box .snippet-text-box {
    font-size: 14px;
    padding: 5px 15px 14px;
    border-bottom: 1px solid #ddd;
    margin: 0px !important;
    cursor: pointer;
    transition: 0.3s linear;
}
.snippet-main-box .snippet-box .snippet-text-box:hover{
    background: #dddddd66;
}
.snippet-main-box .snippet-box .snippet-title {
    margin-bottom: 0px;
    font-size: 14px;
}
.snippet-main-box .snippet-box .snippet-text-box h5.snippet-text {
    color: #000000;
    font-weight: 400;
    margin-bottom: 0px !important;
}
.snippet-main-box .snippet-box .snippet-text-box p.snippet-link {
    margin-top: 12px;
    font-size: 13px;
    color: #000000c7 !important;
    font-weight: 400;
}

.snippets-table .btn.btn-edit.btn-sm,
.snippets-table .btn.btn-delete.btn-sm {
    
    color: #fff;
    padding: 6px 17px;
}

.snippets-table .btn.btn-edit.btn-sm {
    background: #3eb73e;
}

.snippets-table .btn.btn-delete.btn-sm {
    background: #cd2322;
    margin-left: 8px;
}

.edit-snippet-box {
    position: absolute;
    top: 0;
    width: 285px;
    /* height: 100px; */
    background: #fff;
    left: 50%;
    transform: translateX(-50%);
    top: -121%;
    z-index: 999;
    padding: 0px 0px 5px 9px;
    display: none;
    text-align: right;
}
.edit-snippet-box.active{
    display: block !important;
}

.edit-snippet-box a{
    color: gray;
    text-decoration: none;
    font-size: 13px;
    margin-right: 20px;
}

.edit-snippet-box a:hover{
    text-decoration: underline;
    color: blue !important;
}

.modal-footer.align-right button.submit-btn.btn-primary {
    margin-right: 27px;
}