@font-face {
    font-family: "Montserrat";
    src: url(../font/Montserrat-Regular.ttf);
}
@font-face {
    font-family: "Inter";
    src: url(../font/Inter-Regular.ttf);
}
#orig_image {
    display: block;
    max-width: 100%;
}

.img_preview {
    overflow: hidden;
    width: 160px;
    height: 160px;
    margin: 10px;
    border: 1px solid red;
}
.f-14{
    font-size: 14px;
}
a:hover{text-decoration: none;}
ul{list-style: none;padding-left: 0;margin-bottom: 0;}
.text-white{color: #ffffff!important;}
body{
    padding: 0;
    margin: 0;
    font-family: 'Inter';
    background-color: #E5E5E5;
    position: relative;
}
.login-wrap{
    background-color: #003862;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat';
}
.login-wrap label{
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #D36135;
    margin-bottom: 2px;
}
.login-wrap .form-group {
    margin-bottom: 0.5rem;
}
.login-wrap .form-control{
    height: 56px;
    background: #2A638D;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}
.login-wrap .login-btn{
    border: 0px;
    background: #D36135;
    color: #fff;
    border-radius: 4px;
    width: 145px;
    height: 38px;
    display: block;
    margin: 20px auto;
    text-align: center;
    line-height: 2.2;
}

.header{
    height: 72px;
    background-color: #003862;
    color: #fff;
    position: fixed;
    top:0;
    width: 100%;
    /*/ text-align: center; /*/
    padding: 0 15px;
    z-index: 9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 20%)
}
.header .logout svg{
    width: 26px;
    height: 26px;
}
.header .logout svg path{fill: #fff;}
.header h2{
    margin-bottom: 0;
    /*margin-top: 38px; */
    font-size: 24px;
}
section{padding-top: 72px;padding-bottom: 120px;}
.card-box{margin-top: 30px;border-radius: 5px;box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);background: #FFFFFF;border: 0;}
.card-box .card-head{
    height: 31px;
    background: #D36135;
    border-radius: 5px 5px 0px 0px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.location{font-weight: 500;font-size: 16px;}
.card-box .card-body{
    padding: 10px 10px;

}
.card-box .card-body a{color: #000;}
.dispatch-card-main{
    gap: 10px;
}
.dispatch-card-info{
    min-width: 0;
    flex: 1 1 auto;
}
.dispatch-card-actions{
    flex: 0 0 auto;
}
.dispatch-address-row{
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.25;
    color: #222;
}
.dispatch-address-row i{
    color: #dc3545;
    font-size: 14px;
    line-height: 1.25;
    margin-top: 1px;
    flex: 0 0 auto;
}
.dispatch-address-row span{
    min-width: 0;
    overflow-wrap: anywhere;
}
.card-box .card-body .addr-btn{
    background: #1919EB;
    border-radius: 4px;
    font-size: 14px;
    padding: 8px 12px;
    color: #fff;
    display: flex;
    align-items: center;
}
.addr-btn:hover{color: #fff;}
.addr-btn i{font-size: 22px;}
.card-box .card-body .gps-btn{
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    min-width: 42px;
    justify-content: center;
}
.card-box .card-body .gps-btn:hover{
    color: #dc3545;
}
.sub-header{
    background-color: #d36135;
    display: flex;
    justify-content: space-between;
    padding: 77px 20px 5px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    position: fixed;
    width: 100%;
    z-index: 1;
}
.footer{
    position: fixed;
    width: 100%;
    height: 90px;
    bottom: 0px;
    background: #FFFFFF;
    padding: 15px;
    box-shadow: 0px -4px 4px rgb(0 0 0 / 6%)
}
.action-icons, .footer-action-icon{
    padding-left: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 0;
}
.footer-action-icon{justify-content: space-evenly;}
.action-icons li, .footer-action-icon li{text-align: center;}
.footer-action-icon li{padding: 0 10px;}
.action-icons li a{
    font-size: 12px;
    color: #003862;
}
.footer-action-icon li a{font-size: 12px;color:#003862;font-weight: 700;}
.footer-action-icon li a:hover, .footer-action-icon li a.active{color: #D36135;fill: #D36135;transition: all .2s;}
/* .footer-action-icon li a .icon-repair{background-image: url('../../assets/images/repair.svg'); width: 36px; height: 36px;margin: auto;}
.footer-action-icon li a .icon-purchase{background-image: url('../../assets/images/card.svg'); width: 36px; height: 36px;margin: auto;}
.footer-action-icon li a .icon-timesheet{background-image: url('../../assets/images/timesheet.svg'); width: 36px; height: 36px;margin: auto;}
.footer-action-icon li a .icon-status{background-image: url('../../assets/images/status.svg'); width: 36px; height: 36px;margin: auto;}
*/
.footer-action-icon li a.active .icon-repair path,
.footer-action-icon li a:hover .icon-repair path{fill: #D36135; }
.footer-action-icon li a.active .icon-purchase path,
.footer-action-icon li a:hover .icon-purchase path{fill: #D36135;}
.footer-action-icon li a.active .icon-timesheet path,
.footer-action-icon li a:hover .icon-timesheet path{fill: #D36135;}
.footer-action-icon li a.active .icon-status path,
.footer-action-icon li a:hover .icon-status path{fill: #D36135;}
.action-icons li i{
    width: 50px;
    height: 50px;
    background-color: #003862;
    text-align: center;
    border-radius: 50%;
    display: block;
    color: #fff;
    font-size: 30px;
    line-height: 1.6;
}
.form-group label{margin-bottom: 2px;font-size: 14px;}
.form-control{border-radius: 0;}
.signature-panel {
    width:100%;
    border:solid 1px #ced4da;
    min-height:100px;
}
.controls-panel {
padding: 1rem 0;
}
.jSignature{height: 100px!important}
.upload-block .upload__inputfile{
    display: none;
}
.upload-block .upload_dispatch_doc {
    display: none;
}
.upload-block .img-upload{
    background-color: #003862;
    color: #fff;
    font-size: 14px;
    padding: 5px 15px;
    display: block;
    width:95%;
    border-radius: 5px;
    margin: 25px auto 0;
    text-align: center;
}
.upload-actions{
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.upload-actions li a {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #E5E5E5;
    color: #212529;
}
.upload-actions li .file-upload{
    padding: 20px;
}
.upload-actions li .file-upload .img-upload{display: flex;justify-content: space-between;width: 100%;}
.upload-actions li .file-upload input{
    display: none;
}
.tab-nav{position: fixed;width: 100%;z-index: 9;background: #e5e5e5;}
.tab-content{margin-top: 70px;position: absolute;padding-bottom: 120px;width: 100%;}
#nav-tabPurchase{}
.nav-tabs{
    padding: 0 25px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-bottom: 0;
}
.nav-fill .nav-item, .nav-fill>.nav-link{
    background-color: #fff;
    font-weight: 700;
    color: #000;
}
.nav-fill .nav-item, .nav-fill>.nav-link:nth-child(1){

    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0rem;
    border-bottom-right-radius: 0rem;
    border-bottom-left-radius: 0.25rem;
}
.nav-fill .nav-item, .nav-fill>.nav-link:nth-child(2){
    border-top-left-radius: 0rem;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0rem;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
    background-color: #D36135;
    color: #fff;
}

.purchase-list li{
    display: flex;
    /* justify-content: space-between; */
    border-bottom: 1px solid #E5E5E5;
    padding: 15px;
}

.purchase-list li .amt_img .amount{text-align: right;width: 25%;}
.purchase-list li .details{
    width: 70%;
    margin-left: 15px;
    font-size: 15px;
    flex: 1;
}
.disGenerated li .details{width: 90%;}
.purchase-list li .details .date{
    margin-top: 25px;
    color: #00000070;
    font-size: 14px;
}

/* Purchase Order header + checklist spacing */
.po-header-section{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.po-number-section{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.po-number-section strong {
    font-size: 16px;
    color: #212529;
    font-weight: 600;
    display: block;
}

.ro-number {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.po-notes{
    margin-top: 6px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.35;
}
.po-notes-label{
    font-weight: 600;
    color: #495057;
    margin-right: 6px;
}
.po-checklist{
    margin-left: 0;
    margin-top: 4px;
}

.checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.main-checkbox-container {
    margin-bottom: 0;
}
.sub-checkboxes-container {
    margin-left: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 15px;
    border-left: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checklist-item {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    padding: 5px 0;
    transition: color 0.2s ease;
}
.checklist-item.main-checkbox {
    font-weight: 600;
    font-size: 15px;
}
.checklist-item.sub-checkbox {
    margin-bottom: 8px;
}
.checklist-item:hover {
    color: #D36135;
}
.checklist-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #D36135;
}
.checklist-item span {
    user-select: none;
    line-height: 1.5;
    font-weight: 500;
}
.checklist-item.main-checkbox span {
    font-weight: 600;
}
.memo-container {
    margin-top: 12px;
    margin-bottom: 12px;
}
.memo-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.po-memo {
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.po-memo:focus {
    border-color: #D36135;
    box-shadow: 0 0 0 0.2rem rgba(211, 97, 53, 0.25);
    outline: none;
}
.po-memo::placeholder {
    color: #adb5bd;
}

/* Validation Error Messages */
.error-message-checklist,
.error-message-memo,
.error-message-image {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    padding-left: 5px;
}
.error-message-checklist {
    margin-top: 8px;
}
.error-message-memo {
    margin-top: 5px;
}
.error-message-image {
    margin-top: 8px;
    text-align: left;
}

.day-header .crrDay{
    background: #003862;
    color: #fff;
    text-align: center;
    padding: 10px;
    z-index: 9;
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}
.day-header .crrDay a{
    color: #fff;
}
.week-header{
    z-index: 9;
    position: fixed;
    width: 100%;
}
.week-header .crrDay{
    background: #003862;
    color: #fff;
    text-align: center;
    padding: 10px;
}
.day-header .dates{
    padding: 60px 15px 15px;
    background-color: #fff;
}
.day-header .dates ul{
    display: flex;
    justify-content: space-between;
}
.day-header .dates ul li a{
    color:#000;
    text-align: center;
    font-size: 14px;
}
.day-header .dates ul li a .date{
    margin-top: 8px;
    width: 25px;
    height: 25px;
    line-height: 1.8;
}
.day-header .dates ul li a .date.active{
    background: #d36135;
    border-radius: 50%;
    color: #fff;
}
.day-header .status, .week-header .status{
    background-color: #D36135;
    padding: 5px;
    font-size: 14px;
    color: #fff;
    display: flex;
}
.day-header .status .status-hrs{width: 100%;}
.week-slider{
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
}
.week-slider a{color: #fff;}
.timesheet-day-data, .timesheet-input{margin: 15px 0;}
.dispatch_ro{display: flex;}
.timesheet-day-data .left ul, .timesheet-input .left ul{ width:100% }
.timesheet-day-data .left, .timesheet-input .left{
    width: 40%;
    font-size: 14px;
    border-right: 1px solid #D9D9D9;
    display: flex;
}
.timesheet-day-data .left ul li{
    display: flex;
    justify-content: flex-start;
    padding: 8px 0 8px;
    margin: 0 15px;
}
.timesheet-input .left ul li{
    padding: 8px 0 8px;
}
.timesheet-day-data .left ul li img, .timesheet-input .left ul li img{margin-right: 10px;}
.border-dotted{border-bottom: 1px dashed #D9D9D9;}
.timesheet-day-data .right, .timesheet-input .right{
    width: 60%;
    font-size: 14px;
    padding: 0 15px ;
}
.timesheet-day-data .right textarea, .timesheet-input .right textarea{font-size: 12px;padding: 5px;}
.timesheet-day-data.dispatch_ro .left{width: 60%;}
.timesheet-day-data.dispatch_ro .right{width: 40%;}
.upload__img-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 45px -10px 0;
  }
  .upload__img-box {
    width: 134px;
    padding: 0;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgb(12 56 98 / 22%);
        margin-left: 15px;
        margin-right: 15px;
  }
  .upload__img-close {
width: 30px;
    height: 30px;
    background-color: #dc3545;
    position: absolute;
    top: 5px;
    text-align: center;
    line-height: 30px;
    z-index: inherit;
    cursor: pointer;
    border-radius: 50%;
    right: 5px;
    color: white;
  }
  /* .upload__img-close:after {
    content: "✖";
    font-size: 18px;
    color: white;
  } */

  .img-bg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    padding-bottom: 100%;
  }
  .redirect{width: 100%;display: block;}
.activeIcon{fill: #D36135; stroke:#D36135}
.activeStatus{color: #D36135;}
.back-btn, .back-btn:hover{
    /*position: absolute;
    left: 30px;
    top: 20px;*/
    font-size: 20px;
    color: #fff;
}
.uploadPurchaseImg input{
    display: none;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{border:0}
.close-btn{
    position: absolute;
    right: 10px;
    top: 5px;
}
.img-overlay{
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #00000075;
    top:0;
    z-index: 9;
}
.img-overlay .slider{
    width: 75%;
    height: 90vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-overlay .slider img{
    vertical-align: middle;
    max-height: 350px;
    margin: 0 auto;
    width: 100%;
    object-fit: cover;
}
.img-overlay .slider .actions{
    background: #000;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img-overlay .slider .actions label{
    display: flex;
    width: 10%;
    margin-bottom: 0;
}
.img-overlay .slider .actions label i{
    font-size: 20px;
    position: absolute;
    margin-top: 5px;
}
.img-overlay .slider .actions .addMore{
    opacity: 0;
}

.img-overlay .slider .actions a{
    color: #fff;font-size: 20px;
    position: relative;
    z-index: 9;
}
.img-overlay .close-imgLayout svg{
    position: absolute;
    width: 35px;
    right: 15px;
    top: 15px;
}
.img-overlay .close-imgLayout svg g path{
    fill :#fff;
}
/*.slick-initialized .slick-slide{
    width:auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slick-slider .slick-list{
    height: 550px;
    width: 50%;
}*/
.slick-slide{
    padding: 300px;
}
.sign-style button{
    border: 0;
    border-radius: 50%;
    font-size: 12px;
    /* width: 25px;
    height: 25px; */
    /* padding-top: 2px; */
    margin: 0 3px 10px;
    text-align:center;
    padding: 5px 8px;

}
.sign_remove{
    background-color: red;
    color: #ffffff;
}
.remove_vacation{
    background-color: red;
    color: #ffffff;
}
.remove_non_billable{
    background-color: red;
    color: #ffffff;
}
.remove_shop_hours{
    background-color: red;
    color: #ffffff;
}
.sign_reset{
    background-color: #d36135;
    color: #ffffff;
}
.sign_save{
    background-color: #003862;
    color: #ffffff;
}
.add_parts{
    background-color: #003862;
    color: #ffffff;
}
.load-wrap{
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 99999;
    background: #00000050;
}
.loader {
  border: 5px solid #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #d36135;
  width: 50px;
  height: 50px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

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

.btn-layout button{
    border: 2px solid #003862;
    padding: 5px 20px;
    color: #003862;
}
.action-btn-layout{
    position: absolute;
    right: 10px;
}
.action-btn-layout button{
    border: 0;
}
.timesheet-input .left ul li{}

.break-word {
    word-break: break-all;
    margin-left: 10px;
    font-size: 14px;
}
.upload-file {
    display: flex;

}

.upload__btn-box{
width: 50%;
}

/*#overlay{
position: fixed;
top: 0;
z-index: 100;
width: 100%;
height:100%;
display: none;
background: rgba(0,0,0,0.6);
}
.cv-spinner {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.spinner {
width: 40px;
height: 40px;
border: 4px #ddd solid;
border-top: 4px #2e93e6 solid;
border-radius: 50%;
animation: sp-anime 0.8s infinite linear;
}*/

@media (max-width: 1120px) and (min-width: 1024px) {
    .slick-slide{
        padding: 200px;
    }
}
@media (min-width: 992px) {
    .sub-header, .action-icons{justify-content: space-around;}
    .footer-action-icon{justify-content: center;}
    .footer-action-icon li{padding: 0 40px;}
    .jSignature {height: 150px!important;}
    .nav-tabs{width: 50%; margin: 15px auto;}
    .day-header .dates ul, .day-header .status{justify-content: space-evenly;}
    .day-header .status .status-hrs{width:auto;}
    .card-box .card-head{font-size: 16px;}
    .location, .card-box .card-body{font-size: 14px;}
}

@media (max-width: 993px) and (min-width: 768px){
    .slick-slide{
        padding: 150px;
    }
}


@media (max-width: 480px){
    .upload-block .img-upload {
        width: 90%;
    }

    .upload-file{
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .upload__btn-box{
        width: 100%;
    }
}

@media (max-width: 767px) and (min-width: 320px){
    .slick-slide{
        padding: 20px;
    }
    .dispatch-card-main{
        gap: 8px;
    }
    .dispatch-card-actions .addr-btn{
        padding: 7px 9px;
    }
    .dispatch-address-row{
        font-size: 13px;
    }
    .upload__img-box{
        width: 125px;
    }

    .slick-list {
        height: auto !important;
    }
    .slick-track{display: flex !important;align-items: center;}
    .dispatch_ro{display: block;}
    .timesheet-day-data.dispatch_ro .left{border-right: 0;border-bottom: 1px solid #D9D9D9;}
    .timesheet-day-data .right{padding: 15px}
    .timesheet-input .left, .timesheet-input .right{width: 50%;}
    .timesheet-input input{width: 70% !important;font-size: 10px;}
    .timesheet-day-data.dispatch_ro .left{width: 100%;}
    .timesheet-day-data.dispatch_ro .right{width: 100%;}
}
.cropper-container {
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 141%;
}

.chat-container {
    width: 100%;
    height: 400px; /* Fixed height for the chat area */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Message Box */
.message-box {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
}

.my-message {
    justify-content: flex-end;
}

.user-message {
    justify-content: flex-start;
}

/* Message Content */
.message-content {
    background: #ececec;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 100%;
    position: relative;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.my-message .message-content {
    background: #d1e7ff;
}

/* Timestamp */
.timestamp {
    font-size: medium;
    margin-top: 5px;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

/* Message Input */
.message-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
}

.message-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 14px;
    outline: none;
}

.message-input input:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

/* Send Button */
.send-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.send-btn:hover {
    background: #0056b3;
}

.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    font-weight: bold;
    color: #666;
    position: relative;
    text-transform: uppercase;
}

.date-divider::before,
.date-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
    margin: 0 10px;
}

.no-messages {
    text-align: center;
    color: gray;
    font-style: italic;
    padding: 10px;
}

.error-message {
    text-align: center;
    color: red;
    font-weight: bold;
    padding: 10px;
}


.dispatch_badge  {
    position: absolute;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 0px 4px;
    font-size: 12px;
    margin-left: -24px;
}

.message-badge {
    position: absolute;
        background-color: white;
        color: red;
        border-radius: 50%;
        padding: 0px 4px;
        font-size: 12px;
        margin-left: -20px;
        margin-top: 9px;
        font-weight: 900;
}

.dispatch-message-btn {
    position: relative;
}

.message-button-badge {
    align-items: center;
    background-color: #dc2626;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: -8px;
    top: -8px;
}

.message-text {
    font-family: sans-serif;
    font-size: large;
}
/* Tech chat modal redesign */
.tech-chat-modal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.tech-chat-modal .modal-header {
    align-items: flex-start;
    background: rgba(18, 151, 219, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px 20px;
}

.tech-chat-title {
    color: #003862;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.tech-chat-subtitle {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.tech-chat-container {
    background: #ffffff;
    display: grid;
    grid-template-rows: auto minmax(280px, 48vh) auto;
}

.tech-chat-toolbar {
    align-items: center;
    background: #fbfdff;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 20px;
}

.tech-chat-toolbar-title {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.tech-chat-status {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
}

.tech-chat-status-dot {
    background: #f97316;
    border-radius: 999px;
    height: 8px;
    width: 8px;
}

.tech-chat-status.is-connected .tech-chat-status-dot {
    background: #16a34a;
}

.tech-chat-messages {
    background: #f8fbff;
    overflow-y: auto;
    padding: 16px 20px;
}

.tech-chat-stack {
    display: grid;
    gap: 10px;
}

.tech-chat-loader,
.tech-chat-empty,
.tech-chat-error {
    align-items: center;
    color: #64748b;
    display: grid;
    font-size: 13px;
    font-weight: 800;
    justify-items: center;
    min-height: 180px;
    text-align: center;
}

.tech-chat-loader img {
    height: 48px;
    margin-bottom: 8px;
    object-fit: contain;
    width: 48px;
}

.tech-chat-error {
    align-items: start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    justify-items: start;
    min-height: 0;
    padding: 10px;
}

.tech-chat-date-divider {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

.tech-chat-date-divider span {
    background: #eaf2fb;
    border-radius: 999px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 11px;
}

.tech-chat-row {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    width: 100%;
}

.tech-chat-row.is-mine {
    justify-content: flex-end;
}

.tech-chat-row.is-theirs {
    justify-content: flex-start;
}

.tech-chat-avatar {
    align-items: center;
    border-radius: 50%;
    display: grid;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    height: 30px;
    justify-items: center;
    margin-top: 26px;
    width: 30px;
}

.tech-chat-avatar.is-mine {
    background: #0d9488;
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.25);
    color: #ffffff;
}

.tech-chat-avatar.is-theirs {
    background: #fef3c7;
    color: #92400e;
}

.tech-chat-message-wrap {
    display: grid;
    max-width: min(78%, 520px);
}

.tech-chat-row.is-mine .tech-chat-message-wrap {
    justify-items: end;
}

.tech-chat-row.is-theirs .tech-chat-message-wrap {
    justify-items: start;
}

.tech-chat-author {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
    padding: 0 5px;
}

.tech-chat-bubble {
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    padding: 10px 12px;
}

.tech-chat-row.is-mine .tech-chat-bubble {
    background: #0d9488;
    border: 1px solid #0f766e;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.24);
    color: #ffffff;
}

.tech-chat-row.is-theirs .tech-chat-bubble {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-bottom-left-radius: 4px;
    color: #431407;
}

.tech-chat-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.tech-chat-text + .tech-chat-attachments {
    margin-top: 8px;
}

.tech-chat-text-empty {
    opacity: 0.8;
}

.tech-chat-attachments {
    display: grid;
    gap: 8px;
}

.tech-chat-attachment {
    color: inherit;
    display: block;
    text-decoration: none;
}

.tech-chat-image-link {
    border-radius: 10px;
    line-height: 0;
    overflow: hidden;
}

.tech-chat-image {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    display: block;
    height: auto;
    max-height: 280px;
    max-width: min(320px, 100%);
    object-fit: contain;
}

.tech-chat-file-link {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    padding: 8px 10px;
    overflow-wrap: anywhere;
}

.tech-chat-row.is-theirs .tech-chat-file-link {
    background: #ffffff;
    border-color: #fed7aa;
}

.tech-chat-image-modal .tech-chat-image-dialog {
    max-width: min(680px, calc(100vw - 32px));
    width: 680px;
}

.tech-chat-image-modal .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

.tech-chat-image-modal .modal-header {
    align-items: center;
    background: #fbfdff;
    border-bottom: 1px solid #edf2f7;
    padding: 10px 14px;
}

.tech-chat-image-modal .modal-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tech-chat-image-modal .modal-body {
    background: #0f172a;
    display: grid;
    height: min(520px, calc(100vh - 150px));
    min-height: 320px;
    padding: 12px;
    place-items: center;
}

.tech-chat-modal-image {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.tech-chat-meta {
    color: #64748b;
    font-size: 11px;
    margin-top: 4px;
    padding: 0 5px;
}

.tech-chat-row.is-mine .tech-chat-meta {
    text-align: right;
}

.tech-chat-input {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 16px;
}

.tech-chat-input input[type="text"] {
    border: 1px solid #d7e2ef;
    border-radius: 8px;
    color: #0f172a;
    min-height: 42px;
    outline: 0;
    padding: 9px 12px;
    width: 100%;
}

.tech-chat-input input[type="text"]:focus {
    border-color: #1297db;
    box-shadow: 0 0 0 3px rgba(18, 151, 219, 0.12);
}

.tech-chat-send {
    align-items: center;
    background: #1297db;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.tech-chat-send:hover {
    background: #0f80ba;
}

.tech-chat-send:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .tech-chat-modal .modal-header,
    .tech-chat-toolbar,
    .tech-chat-messages {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tech-chat-message-wrap {
        max-width: min(84%, 520px);
    }

    .tech-chat-image-modal .tech-chat-image-dialog {
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
    }

    .tech-chat-image-modal .modal-body {
        height: min(430px, calc(100vh - 130px));
        min-height: 260px;
        padding: 8px;
    }
}
