@media (max-width: 767px) {
  .main-header .navbar-custom-menu {
    float: none !important;
    display: block !important;
  }

  .main-header .navbar-custom-menu .dropdown-menu {
    left: auto !important;
  }

  .skin-blue-light .main-header .navbar .dropdown-menu li a {
    color: #777;
  }

  .main-header .navbar {
    height: auto;
  }
}

.bg-danger {
  background-color: #f2dede !important;
}

.btn-big {
  padding: 10px 30px;
  font-size: 18px;
  line-height: 1.3333333;
}

.of-visible {
  overflow: visible !important;
}

.bootstrap-datetimepicker-widget td {
  min-width: 0px !important;
}

.daterangepicker td {
  min-width: 0px !important;
}

#online_indicator {
  font-size: 8px;
  vertical-align: middle;
}

.pt-0 {
  padding-top: 0px;
}

.pt-5 {
  padding-top: 5px !important;
}

.pt-10 {
  padding-top: 10px !important;
}

.pt-15 {
  padding-top: 15px !important;
}

.pt-20 {
  padding-top: 20px !important;
}

.f-right {
  float: right;
}

.mb-10 {
  margin-bottom: 10px;
}

.discount-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 18px;
  padding: 7px;
}

.discount-badge-small {
  position: absolute;
  top: -2px;
  left: 10px;
  font-size: 12px;
  padding: 6px;
}

.product-info-table td,
.product-info-table th {
  font-size: 12px;
}

.catalogue {
  max-height: 127px;
  margin: auto;
  margin-bottom: 18px;
}

.catalogue-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
  margin-bottom: 10px;
}

.bg-light-gray {
  background-color: #f8f8f8 !important;
}

.p-5-5 {
  padding: 5px 5px !important;
}

.m-4 {
  margin: 4px;
}

.skin-black .main-header,
.skin-black-light .main-header {
  color: #525f7f !important;
}

.skin-black .main-header .navbar .nav .open>a {
  color: #999 !important;
}

.skin-black .main-header .navbar .nav>li>a:hover {
  color: #999 !important;
}

.skin-black .main-header .navbar>.sidebar-toggle:hover {
  color: #999 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.table-pdf thead tr {
  background-color: #357ca5 !important;
  color: #fff;
}

.table-pdf thead tr th {
  color: #fff !important;
}

.blue-heading {
  background-color: #357ca5;
  color: #fff;
}

.table-pdf .odd {
  background-color: #DCE6F1;
}

.p-4 {
  padding: 4px;
}

.p-10 {
  padding: 10px !important;
}

.jquery-top-scrollbar {
  height: 6px !important;
}

.jquery-top-scrollbar div {
  height: 6px !important;
}

.scroll-top-bottom {
  width: 100%;
  overflow: scroll;
}

.scroll-top-bottom::-webkit-scrollbar {
  height: 6px;
}

.scrolltop {
  display: none;
  width: 100%;
  margin: 0 auto;
  position: fixed;
  bottom: 20px;
  right: 10px;
}

.scroll {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: #b2b2b2;
  background: rgba(178, 178, 178, 0.7);
  padding: 7px;
  text-align: center;
  margin: 0 0 0 0;
  cursor: pointer;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  border-radius: 6px;
}

.scroll:hover {
  background: rgba(178, 178, 178, 1.0);
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
}

.scroll:hover .fas {
  padding-top: -10px;
}

.scroll .fas {
  font-size: 25px;
  margin-top: -5px;
  margin-left: 1px;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
}

.f-left {
  float: left;
}

.align-left {
  text-align: left;
}

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

.table-pdf {
  border-collapse: collapse;
  width: 100%;
  border-spacing: 8px 10px;
}

.td-border td,
.td-border th {
  border-bottom: 1px solid lightgrey;
  padding: 8px 5px;
}

.ws-nowrap {
  white-space: nowrap;
}

.btn-app>.fas,
.btn-app>.fab {
  font-size: 20px;
  display: block;
}

.dropdown-menu>li>a>.fas {
  margin-right: 6px;
}

.mt-5 {
  margin-top: 5px !important;
}

.pos-form-actions {
  height: auto;
  padding-top: 12px;
  padding-bottom: 20px;
  position: fixed;
  bottom: 0px;
  /* background-color: #D1D5DC; */
  width: 100%;
  z-index: 1000;
}

.mb-12 {
  margin-bottom: 12px !important;
}

.pb-0 {
  padding-bottom: 0px !important;
}

.pr-12 {
  padding-right: 12px !important;
}

.main-header .sidebar-toggle:before {
  content: "" !important;
}

.ui-autocomplete {
  max-height: 300px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
}

.margin-bottom-20 {
  margin-bottom: 20px !important;
}

.text-white {
  color: #fff;
}

.wizard>.steps>ul>li {
  width: 33.33% !important;
}

.wizard>.content {
  /* background: #445867 !important; */
}

legend {
  color: #fff;
  margin-bottom: 6px;
  border-bottom: none;
}

.left-col {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(51, 51, 51, 0.32)), url(../img/home-bg.jpg);
  text-align: center;
  background-size: cover;
  background-position: center;
}

.left-col-content {
  color: #1A7BF9;
  width: 100%;
}

.login-header {
  font-size: 27px;
  font-weight: 600;
}

.login-header a {
  color: #fff;
}

.form-header {
  font-size: 18px;
  margin: 16px 0;
}

.btn-login {
  padding: 6px 52px !important;
}

/* .right-col {
  background-color: #243949;
  height: 100%;
  min-height: 100vh;
} */

/* Background color added by Prashant */
.right-col {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  height: 100%;
}

/* .right-col label {
  color: #fff;
}

.right-col a, .text-white a {
  color: #fff;
  font-weight: 600;
  font-size: 15px
}
.right-col a:hover, .text-white a:hover {
  color: #ccc;
}
.right-col-content {
  padding: 10% 16%;
  padding-bottom: 3%;
}
.right-col-content-register {
  padding: 2% 8%;
} */

.input_inline {
  width: 100%;
  display: inline-flex;
}

.input_inline input,
.input_inline span {
  width: 50%;
}

.bg-manufacturing {
  background-color: #ff851b;
}

.img-thumbnail {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border .2s ease-in-out;
  padding: 4px;
  margin: 3px;
  text-align: center;
}

.img-thumbnail>.badge {
  position: absolute;
  top: -5px;
  right: -7px;
  font-size: 9px;
  font-weight: 400;
  cursor: pointer;
}

.navbar-nav>.notifications-menu>.dropdown-menu>li .menu {
  max-height: 350px;
}

.bg-aqua-lite {
  background-color: #7FFFD4;
}

.navbar-nav>.notifications-menu>.dropdown-menu>li .menu>li>a {
  white-space: normal;
}

.spacer {
  margin-top: 20px;
}

#product_list_body {
  max-height: 485px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.div-overlay {
  cursor: not-allowed;
  background: #e9e9e9;
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.5;
}

.d-inline-table {
  display: inline-table;
}

.label-round {
  font-size: 8px;
  border-radius: 44%;
}

.table>tbody+tbody {
  border-top: 0;
}

.table-pl-12 td,
.table-pl-12 th {
  padding-left: 12px !important;
}

table tbody td.pl-20-td {
  padding-left: 20px !important;
}

table.table-border-center>tbody>tr>td:first-child,
table.table-border-center>thead>tr>th:first-child,
table.table-border-center>tfoot>tr>td:first-child {
  border-right: 1px solid darkgray;
}

table.table-border-center-col>tbody>tr>td:nth-child(2),
table.table-border-center-col>thead>tr>th:nth-child(2),
table.table-border-center-col>tfoot>tr>td:nth-child(2) {
  border-right: 1px solid darkgray;
  border-left: 1px solid darkgray;
}

.bg-transparent {
  background-color: transparent !important;
}

.mb-0 {
  margin-bottom: 0;
}

.nav-tabs>li>a {
  font-size: 18px;
  font-weight: 600;
}

.table-transparent,
.table-transparent th {
  background-color: transparent !important;
  color: #000 !important;
}

.td-full-width {
  white-space: nowrap;
}

.font-17 {
  font-size: 17px !important;
}

table.dataTable tbody>tr.selected {
  background-color: #B0BED9;
}

tr.footer-total>td {
  vertical-align: middle !important;
}

.error {
  color: red !important;
}

/*  pos tab */
div.pos-tab-container {
  z-index: 10;
  background-color: #ffffff;
  padding: 0 !important;
  border-radius: 4px;
  -moz-border-radius: 4px;
  border: 1px solid #ddd;
  margin-bottom: 28px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  background-clip: padding-box;
}

div.pos-tab-menu {
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
}

div.pos-tab-menu div.list-group {
  margin-bottom: 0;
}

div.pos-tab-menu div.list-group>a {
  margin-bottom: 0;
}

div.pos-tab-menu div.list-group>a .glyphicon,
div.pos-tab-menu div.list-group>a .fa {
  color: #5A55A3;
}

div.pos-tab-menu div.list-group>a:first-child {
  border-top-right-radius: 0;
  -moz-border-top-right-radius: 0;
}

div.pos-tab-menu div.list-group>a:last-child {
  border-bottom-right-radius: 0;
  -moz-border-bottom-right-radius: 0;
}


/* div.pos-tab-menu div.list-group>a.active,
div.pos-tab-menu div.list-group>a.active .glyphicon,
div.pos-tab-menu div.list-group>a.active .fa{
  background-color: #3c8dbc;
  color: #ffffff;
    border-color: #3c8dbc;
} */

div.pos-tab-menu div.list-group>a.active,
div.pos-tab-menu div.list-group>a.active .glyphicon,
div.pos-tab-menu div.list-group>a.active .fa {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  color: #ffffff;
  border-color: transparent;
}


div.pos-tab-menu div.list-group>a.active:after {
  /* content: ''; */
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -13px;
  border-left: 0;
  border-bottom: 13px solid transparent;
  border-top: 13px solid transparent;
  border-left: 10px solid #3c8dbc;
}

div.pos-tab-content {
  background-color: #ffffff;
  /* border: 1px solid #eeeeee; */
  padding-left: 20px;
  padding-top: 20px;
}

div.pos-tab div.pos-tab-content:not(.active) {
  display: none;
}

.add-product-price-table th {
  background-color: #5cb85c;
  color: white;
}

.blue-header th {
  background-color: #3c8dbc;
  color: white;
}

.table-th-green th {
  background-color: #5cb85c;
  color: white;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

.active-cell {
  border: 2px dotted #3c8dbc !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

.pos_product_div {
  /* min-height: 47vh;
    max-height: 57vh; */
  overflow-y: auto;
  /* margin-bottom: 20px; */
  height: 40vh !important;
}

.bg-lightgray {
  background-color: #F0EDED !important;
}

.balance_due_box>li {
  padding: 11px 5px 0px 5px;
}

.option-div {
  padding: 15px;
  background-color: #d2d6de;
  color: #333;
  border: 1px solid #d2d6de;
  cursor: pointer;
}

.option-div input[type="radio"] {
  display: none;
}

.option-div-group .icon {
  color: #d33724;
  display: none;
}

.option-div-group .option-div:hover {
  border: 1px solid gray;
}

.option-div-group .active .icon {
  display: block;
}

.margin-left-10 {
  margin-left: 10px;
}

.margin-bottom-12 {
  margin-bottom: 12px;
}

.bg-info {
  background-color: #00c0ef !important;
}

.bg-info>a {
  color: #FFFFFF !important;
}

.bg-info>a:hover {
  background-color: #337ab7 !important;
}

ul.dt-button-collection {
  background-color: #00c0ef;
}

td.details-control {
  background: url('/img/details_open.png') no-repeat center center;
  cursor: pointer;
}

tr.details td.details-control {
  background: url('/img/details_close.png') no-repeat center center;
}

.icheckbox_square-blue,
.iradio_square-blue {
  margin-right: 10px;
}

.header-right-div {
  right: 10px;
  float: right;
  position: absolute;
  top: 15px;
}

.header-left-div {
  margin-top: 15px;
  display: inline-flex;
}

.m-8 {
  margin: 8px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.m-5 {
  margin: 5px;
}

.icon-link {
  text-align: center;
  display: block;
  margin-bottom: 18px;
}

.icon-link>a {
  display: grid;
}

.icon-link>.badge {
  position: absolute;
  top: 20px;
  right: 67px;
}

.link-des {
  display: inline-block;
  text-align: left;
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>img {
  border: none;
  height: auto;
  width: 100%;
  max-height: 120px;
}

.bg-light-green {
  background-color: #98D973 !important;
  color: #fff !important
}

.hover-q {
  font-size: 16px;
  margin-left: 3px;
  cursor: help;
}

.input-group-addon .hover-q {
  margin-left: 0px;
}

.text-bold {
  font-weight: bold;
}

.tour .popover-content {
  padding: 18px 14px;
}

.table-slim>tbody>tr>td,
.table-slim>tbody>tr>th,
.table-slim>tfoot>tr>td,
.table-slim>tfoot>tr>th,
.table-slim>thead>tr>td,
.table-slim>thead>tr>th {
  padding: 1px;
}

/* Custom scroll bar start*/

/* width */
/* ::-webkit-scrollbar {
    width: 7px;
} */

/* Track */
/* ::-webkit-scrollbar-track {
    background: #f1f1f1; 
} */

/* Handle */
/* ::-webkit-scrollbar-thumb {
    background: #888; 
} */

/* Handle on hover */
/* ::-webkit-scrollbar-thumb:hover {
    background: #555; 
} */

/* Custom scroll bar end*/

.product_cell {
  height: 100px;
  padding: 1%;
}

.product_cell_div {
  height: 100% !important;
  width: 100% !important;
  text-align: center;
  vertical-align: middle;
  padding-top: 5px;
  cursor: pointer;
  overflow: hidden;
}

/*CSS to print receipts*/
.print_section {
  display: none;
}

@media print {
  .print_section {
    display: inline !important;
  }

  .modal-xl {
    width: 100% !important;
  }

  ::-webkit-scrollbar {
    display: none !important;
  }

  #toast-container {
    display: none !important;
  }

  .side-bar {
    display: none !important;
  }

  #sales_order_list_table {
    width: 100% !important;
    table-layout: auto !important;
  }

  #sales_order_list_table th,
  #sales_order_list_table td {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-size: 10px !important;
  }

  #sales_order_list_table {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

.input-number .btn-default {
  background-color: white;
  padding: 6px 9px;
}

.width-50 {
  width: 50% !important;
}

.width-40 {
  width: 40% !important;
}

.width-60 {
  width: 60% !important;
}

.width-100 {
  width: 100% !important;
}

.font-30 {
  font-size: 30px !important;
}

.font-23 {
  font-size: 23px !important;
}

.padding-5 {
  padding: 5px !important;
}

.padding-10 {
  padding: 10px !important;
}

.padding-side-15 {
  /*padding-left: 15px !important;
    padding-right: 15px !important;*/
}

.text-muted-imp {
  color: #A3A3A3 !important;
}

.table-no-top-cell-border td {
  border-top: 0px !important;
  border-bottom: 0px !important;
}

.table-no-top-cell-border th {
  border-top: 0px !important;
  border-bottom: 0px !important;
}

.table-no-side-cell-border td {
  border-left: 0px !important;
  border-right: 0px !important;
}

.table-no-side-cell-border th {
  border-left: 0px !important;
  border-right: 0px !important;
}

.color-555 {
  color: #555555 !important;
}

.color-555 * {
  color: #555555 !important;
}

.color-white {
  color: white !important;
}

.col-no-padding {
  padding-left: 0px;
  padding-right: 0px;
}

.col-2px-padding {
  padding: 2px;
}

.pos-express-btn {
  font-size: 23px !important;
  overflow: hidden !important;
  height: 73px !important;
  white-space: normal;
}

.word-wrap {
  word-wrap: break-word !important;
}

.modal-xl {
  width: 90%;
  /* respsonsive width */
  margin-left: auto !important;
  margin-right: auto !important;
}

table.ajax_view tbody tr {
  cursor: pointer;
}

.bg-white {
  background-color: #fff;
}

.product-thumbnail-small {
  height: 50px;
  width: 50px;
}

table.table-text-center td,
table.table-text-center th {
  vertical-align: middle !important;
}

.product_list {
  padding-left: 3px;
  padding-right: 3px;
}

.product_box {
  width: 100%;
  /*padding-top: 5px;
  padding-bottom: 2px;*/
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer;
  /*border: 1px solid darkgray;*/
  font-weight: 600;
  background-color: #fff;
  border-radius: 12px;
  padding: 8px;
}

.product_box .image-container {
  height: 50px;
  margin: auto;
  width: 100%;
  margin-bottom: 4px;

}

.product_box .image-container img {
  height: 100%;
  width: 100%;
  border-radius: 12px;
}

.eq-height-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
}

.eq-height-col {
  display: flex;
}

.product_box .text_div {
  margin-top: 3px;
}

.product_box .text {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  /* number of lines to show */
  line-height: 14px;
  /* fallback */
  max-height: 14px;
  /* fallback */
}

.small-box.bg-gray:hover {
  color: #000;
  text-decoration: none;
}

#calendar table tbody td {
  cursor: pointer;
}

.min-height-90hv {
  min-height: 90vh !important;
}

/* Grow Shadow */
.hvr-grow-shadow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow, transform;
  transition-property: box-shadow, transform;
}

.hvr-grow-shadow:hover,
.hvr-grow-shadow:focus,
.hvr-grow-shadow:active {
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.text-link {
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

.v-center {
  vertical-align: middle !important;
}

.bg-woocommerce {
  background-color: #9E458B !important;
}

/*.box, .info-box, .nav-tabs-custom, .external-event{
  box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2) !important;
}*/

.user_avatar {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  margin: 1px;
}

.fs-10 {
  font-size: 10px;
}

.timeline-lode-more-btn {
  margin-left: 50px;
  margin-top: 25px;
  padding-right: 12px;
  padding-left: 12px;
}

.pa-0 {
  padding: 0px !important;
}

.mt-56 {
  margin-top: 56px !important;
}

.m-2 {
  margin: 2px !important;
}

.treeview-menu i {
  display: none !important;
}

.treeview-menu a {
  padding-left: 25px !important;
  font-size: 95% !important;
}

.treeview-menu a::before {
  content: "\2192 ";
}

@media only screen and (max-width: 600px) {
  .pos-form-actions {
    position: absolute;
  }
}

.mr-8 {
  margin-right: 8px !important;
}

@media (max-width: 1024px) {
  .pos_form_totals {
    margin-bottom: 40px;
  }
}

.swal-modal .swal-text {
  text-align: center;
}

/* Used for bulk-action warning/confirm dialogs whose "title" is a full
   sentence (or a multi-line list of names) rather than a short heading -
   the default swal title size is made for 2-3 words and looks oversized
   here. */
.swal-modal.swal-bulk-warning .swal-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.swal-modal.swal-bulk-warning .swal-text {
    font-size: 14px !important;
    text-align: left !important;
    white-space: pre-line !important;
    display: block !important;
    max-width: 100% !important;
}

.swal-modal.swal-bulk-warning {
    width: 440px;
}

.swal-modal.swal-bulk-warning .swal-text p {
    margin: 0 0 6px;
}

.swal-modal.swal-bulk-warning .swal-name-list {
    list-style: none;
    margin: 8px 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.swal-modal.swal-bulk-warning .swal-name-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.swal-modal.swal-bulk-warning .swal-name-list li:last-child {
    border-bottom: none;
}

.pos-total {
  /* display: inline-block; */
  padding: 8px 10px;
  vertical-align: middle;
  margin-left: 5px;
  margin-right: 5px;
}

.pos-total span.number {
  font-size: 26px;
  vertical-align: middle;
  font-weight: bolder;
}

.pos-total span.text {
  font-weight: bolder;
  display: inline-block;
  width: 60px;
  vertical-align: middle;
}

.mb-40 {
  margin-bottom: 40px !important;
}

@media print {
  a:after {
    content: '';
  }

  a[href]:after {
    content: none !important;
  }
}

.fa-times {
  font-size: 30px
}

.mb-5 {
  margin-bottom: 5px !important;
}

.tree-actions {
  margin-left: 20px;
  display: none;
}

.jstree-hovered .tree-actions {
  display: inherit;
}

/* Advance Search Text box for all listing pages */
.table-bordered input[type="text"] {
  padding: 0px 10px !important;
  border: 1px solid #80808054 !important;
  border-radius: 5px !important;
  color: #5e5959 !important;
  font-weight: normal !important;
}

#botmanWidgetRoot>div:first-child {
  min-width: 100px !important;
  z-index: 10 !important;
}

/* Business Settings Custom label style - ENU 164 */
.custom_label_product_dropdown textarea {
  width: 100%;
  margin-top: 5%;
  padding: 5%;
  border: 1px solid #ccd1d8;
}

thead input {
  width: 100%;
  min-width: 100px !important;
}

.custom-align .dt-buttons {
  float: right !important;
}

thead,
td {
  font-size: 14px !important;
  min-width: 100px !important;
}


/* Main Chat Container */
.chat-container {
  background-color: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #ddd;
  height: 400px;
  /* Adjust height as needed */
  overflow-y: auto;
  padding: 15px;
}

/* Chat Messages */
.chat-messages {
  display: flex;
  flex-direction: column;
}

/* Individual Chat Message */
.chat-message {
  max-width: 50%;
  /* Message container takes half the width */
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Different Backgrounds for Sent and Received Messages */
.from-user {
  align-self: flex-end;
  background-color: #d1f5d3;
  /* Light green for sent messages */
}

.from-other {
  align-self: flex-start;
  background-color: #f1f1f1;
  /* Light grey for received messages */
}

/* FontAwesome User Icon */
.user-icon {
  font-size: 40px;
  color: #888;
}

/* User Name */
.user-name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-left: 5px;
}

/* Message Body */
.message-body {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
}

/* Message Data Table (4 columns) */
.message-data-table {
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
  border-collapse: collapse;
  background-color: #f9f9f9;
}

.message-data-table th,
.message-data-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

.message-data-table th {
  background-color: #f1f1f1;
  font-weight: bold;
}

.message-data-table td a {
  color: #007bff;
  /* Link color */
  text-decoration: none;
}

.message-data-table td a:hover {
  text-decoration: underline;
}

/* Message Timestamp */
.message-timestamp {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
  position: absolute;
  right: 10px;
  bottom: 0px;
}

.message-header {
  display: flex;
  align-items: center;
}

/* Centered No Reply Message */
.no-reply-found {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #888;
  font-size: 18px;
}

.no-padding .sm .tw-px-5 {
  padding: 0px !important;
}

.sm\:tw-p-3 {
  padding: 10px 0px 0px 0px !important
}

.hrm-content table {
  table-layout: fixed;
}

.color-badge {
  vertical-align: middle;
  padding: 7px 12px;
  font-weight: 600;
  letter-spacing: .3px;
  border-radius: 30px;
  font-size: 0px;
}

.custom-shadow {
  box-shadow: 0 2px 8px #cacdcd;
}

.color-badge-status {
  vertical-align: middle;
  padding: 7px 12px;
  font-weight: 600;
  letter-spacing: .3px;
  border-radius: 30px;
  font-size: 12px;
}

.rounded-circle {
  border-radius: 50% !important;
}

.ticket-sender-picture {
  width: 90% !important;
}

.ticket-divider {
  height: 1px;
  width: 100%;
  display: inline-block;
  background-color: #f2f2f2;
}

.inline-block {
  display: inline-block;
}

.font-weight-600 {
  font-weight: 600 !important;
}

.bullet,
.slash {
  display: inline;
}

.bullet:before {
  content: "• ";
  font-size: 20px;
  color: black;
}

.float-right {
  float: right !important;
}

.bg-light {
  background-color: #e3eaef !important;
}

.btn-previous-mail-cc {
  color: #007bff;
  /* Bootstrap Primary Blue */
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.btn-previous-mail-cc:hover {
  color: #0056b3;
  /* Darker Blue */
  text-decoration: underline;
}

.btn-previous-mail-cc:active {
  color: #004085;
}

.notification-badge {
  display: block;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
}

.message-data-table th:first-child,
.message-data-table td:first-child {
  width: 50px;
  text-align: center;
}

.highest-price {
  background-color: #ffcccc !important;
}

.lowest-price {
  background-color: #ccffcc !important;
}

.bid_1_detail {
  background-color: #eddaf77d;
  border-right: 1px solid #dcc8c8;
  padding: 0px !important;
}

.bid_1_detail h5 {
  border-radius: unset !important;
  justify-content: center;
}

.bid_1_detail .row {
  padding: 8px !important;
  margin: 0px !important;
}

.bid_2_detail .row {
  padding: 8px !important;
  margin: 0px !important;
}

.bid_2_detail h5 {
  border-radius: unset !important;
  justify-content: center;
}

.bid_2_detail {
  background-color: #dfebf6;
  padding: 0px !important;
}

.compare_bid_modal .sub-heading {
  background: #643af0;
  color: #FFF;
  height: 60px;
  font-weight: bolder;
  text-align: center;
}

.compare_bid_modal h5 {
  font-size: 20px;
  color: #FFF;
}

.compare_bid_modal .row {
  border-bottom: 1px solid #8080802e;
}

.compare_bid_modal .custom-modal-label {
  font-weight: bold;
}

th input {
  background-color: white !important;
  color: black !important;
  border: 1px solid #ccc;
  padding: 5px;
}

.select2-search__field {
  background: white !important;
  color: black !important;
}

.hrm_setting_block {
  background-color: #efefef;
  border: 1px solid #00000024;
}

.hrm_setting_block h4 {
  margin-top: 0px !important;
}

.hrm_instruction {
  padding: 0px 10px 15px 10px;
  font-size: 15px;
  font-weight: 500;
}

.thead-dark {
  background-color: #4f4b4bfc;
  color: #fff;
}

.thead-dark th {
  text-align: center;
}

.declarations_table td {
  text-align: center;
}

.declaration_main_component label {
  font-weight: bold;
  color: #093b9f;
}

.declaration_sub_component label {
  font-weight: normal !important;
  padding-left: 30px;
}

.allowed_error,
.disallowed_error {
  color: #ed1515;
  font-weight: 600;
  font-size: 12px;
}

.d-none {
  display: none;
}

.product-serial-block {
  padding: 20px;
}

.windows-download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 2px solid #085d3a;
  background: #085d3a;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 10px;
  transition: 0.2s;
}

.windows-download-btn:hover {
  background: #128555;
  border-color: #24a56f;
  color: #fff;
}

.os-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
    .header-left,
    .header-right {
        position: static !important;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .header-left a,
    .header-right a {
        font-size: 12px;
    }
}
/* ------------------------------------------------------------------
 * Sidebar v2 - grouped sections + per-user favourites
 *
 * Hand-written rather than Tailwind: tw-group, group-hover:*, tw-opacity-0
 * and tw-text-amber-500 are not in the compiled tailwind build, and that
 * build is frozen. app.css loads after it, so these win without !important.
 * ------------------------------------------------------------------ */
#side-bar a {
    position: relative;
}

#side-bar .sb-pin {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    line-height: 0;
    color: #9ca3af;
    cursor: pointer;
    transition: opacity .15s ease, color .15s ease;
}

#side-bar a:hover .sb-pin,
#side-bar .sb-pin.is-on {
    opacity: 1;
}

#side-bar .sb-pin:hover {
    color: #6b7280;
}

#side-bar .sb-pin.is-on,
#side-bar .sb-pin.is-on:hover {
    color: #eab308;
}

/* Clear the dropdown chevron. */
#side-bar .drop_down .sb-pin {
    right: 1.75rem;
}

#side-bar .chiled .sb-pin {
    right: .25rem;
}

#side-bar [data-fav-kind="frequent"] {
    opacity: .72;
    font-style: italic;
}

/* Collapsible sections
   Each group is a tinted card, so its items visibly belong to a category.
   Dashboard and Analytics sit above the first header and stay on the plain
   white background - that contrast is what marks them as ungrouped. */
#side-bar .sb-section {
    background: #f7f8fa;
    border: 1px solid #eceff3;
    border-radius: 0.625rem;
    padding: 0.25rem;
}

#side-bar .sb-section-header {
    background: none;
    border: 0;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: inherit;
}

#side-bar .sb-section-header:hover {
    color: #6b7280;
    background: #e9ecf1;
}

#side-bar .sb-section-caret {
    transition: transform .2s ease;
}

#side-bar .sb-section.is-collapsed .sb-section-caret {
    transform: rotate(-90deg);
}

/* #side-bar carries tw-space-y-3; restore that rhythm inside a section, since
   its items are no longer direct children of the scroll container. */
#side-bar .sb-section-items {
    margin-top: 0.375rem;
    padding-bottom: 0.125rem;
}

#side-bar .sb-section-items > * + * {
    margin-top: 0.75rem;
}

/* Tailwind's hover:tw-bg-gray-100 (#f3f4f6) is almost invisible against the
   card, so top-level rows inside a section get a slightly deeper hover. These
   selectors outweigh the utility class on specificity - no !important needed.
   Scoped to direct children so the plain text links inside an open dropdown
   keep their existing text-only hover. */
#side-bar .sb-section-items > a:hover,
#side-bar .sb-section-items > div > a.drop_down:hover {
    background-color: #e4e8ee;
}

/* Lift the current page clear of the card it sits on. Deliberately scoped to
   direct children: tw-bg-gray-200 is also the colour of the vertical rail
   inside .chiled, which must keep it. */
#side-bar .sb-section-items > a.tw-bg-gray-200,
#side-bar .sb-section-items > div.tw-bg-gray-200 {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* An active dropdown carries the shade on both its wrapper and its toggle;
   the wrapper above already provides it, so clear the duplicate. */
#side-bar .sb-section-items > div.tw-bg-gray-200 > a.drop_down {
    background-color: transparent;
}

/* Touch has no hover, so keep the stars discoverable on the mobile drawer. */
@media (max-width: 991px) {
    #side-bar .sb-pin {
        opacity: .45;
    }
}

/* Manage favourites modal */
.sb-fav-modal .sb-fav-row {
    padding: 5px 8px;
    border-radius: 4px;
    line-height: 1.6;
}

.sb-fav-modal .sb-fav-row:hover {
    background: #f5f5f5;
}

.sb-fav-modal .sb-fav-sortable .sb-fav-row {
    cursor: move;
    border: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.sb-fav-modal .sb-pin {
    display: inline-block;
    width: 18px;
    color: #cbd5e1;
    cursor: pointer;
}

.sb-fav-modal .sb-pin.is-on {
    color: #eab308;
}

.sb-fav-modal .sb-fav-section {
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
}

.sb-fav-modal .sb-fav-all {
    max-height: 55vh;
    overflow-y: auto;
}

/* ------------------------------------------------------------------
 * Sidebar menu search
 *
 * tw-transition-colors, placeholder:tw-text-gray-400 and
 * hover:tw-text-gray-600 are absent from the frozen Tailwind build, so
 * they are hand-written here.
 * ------------------------------------------------------------------ */
#sidebar-search::placeholder {
    color: #9ca3af;
    opacity: 1;
}

#sidebar-search-clear {
    transition: color .2s ease;
    cursor: pointer;
}

#sidebar-search-clear:hover {
    color: #4b5563;
}

/* Filtering is purely class-based. Collapse state in this sidebar IS an inline
 * `display` (written by the presenter, the pre-paint restore script and
 * slideToggle), so the filter must never write inline styles - otherwise the
 * `is-collapsed` class and the real display diverge and the next header click
 * animates the wrong way. The rules below override the inline display for the
 * duration of a search; clearing the query removes the class and the user's
 * own collapse state reappears untouched.
 *
 * Results are ranked, not grouped: the section cards and headers step out of
 * the way (display: contents / none) so every row becomes a direct flex item
 * of #side-bar, and sb_filter's rank classes order them - groups whose own
 * title matched, then pages whose title matched, then rows found only through
 * their sub-page / tab labels. Rows of equal rank keep their usual order. */
#side-bar.sb-searching {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

#side-bar.sb-searching .sb-section,
#side-bar.sb-searching .sb-section-items {
    display: contents !important;
}

#side-bar.sb-searching .sb-section-header {
    display: none;
}

#side-bar.sb-searching .chiled {
    display: block !important;
}

/* The flex gap replaces tw-space-y-3 and the in-section rhythm. */
#side-bar.sb-searching > *,
#side-bar.sb-searching .sb-section-items > * {
    flex: none;
    margin-top: 0;
}

#side-bar.sb-searching .sb-rank-1 { order: 1; }
#side-bar.sb-searching .sb-rank-2 { order: 2; }
#side-bar.sb-searching .sb-rank-3 { order: 3; }

#side-bar .sb-hidden {
    display: none !important;
}

/* No pin stars in a result list - the favourites block is out of the search
 * (sb_filter), and a star beside a hit reads as a match marker. */
#side-bar.sb-searching .sb-pin {
    display: none;
}

/* Sub-page label(s) that matched the query, injected by sb_filter as the last
 * child of the row link and removed on every pass. The row is a nowrap flex
 * line, so the link is allowed to wrap and the hint takes a full-width second
 * line under the title - beside it there is only room for "Journal E...".
 * tw-gap-3 would also open a .75rem row gap once wrapping kicks in; that is
 * zeroed here. The left padding lines the hint up with the title (icon
 * 1.25rem + gap .75rem); pins are hidden while searching, so nothing sits
 * on the right. */
#side-bar a.sb-has-hit {
    flex-wrap: wrap;
    row-gap: 0;
}

#side-bar .sb-search-hit {
    flex: 0 0 100%;
    min-width: 0;
    padding-left: 2rem;
    font-size: .6875rem;
    font-weight: 400;
    line-height: 1rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown children carry no icon and are already indented by .chiled, so the
 * hint sits flush under their title. */
#side-bar .chiled .sb-search-hit {
    padding-left: 0;
}

/* ------------------------------------------------------------------
 * To Do - custom recurrence panel
 *
 * Shown inside the task modal when a Repeat type is chosen. Plain
 * Bootstrap 3 controls (the task form is a Bootstrap form); the panel
 * frame, the label-beside-controls rows and the "Repeat on" weekday
 * chips are hand-written, in the AdminLTE primary blue (#3c8dbc) the
 * rest of the admin uses. The modal is 600px wide, so the rows are a
 * flex stack rather than nested grid cells, and they collapse to full
 * width on small screens.
 * ------------------------------------------------------------------ */
.recur-panel {
    border: 1px solid #d2d6de;
    border-radius: 3px;
    background: #f9f9f9;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.recur-panel-heading {
    font-weight: 600;
    color: #555555;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e4e7ea;
}

.recur-panel-heading .fa-sync-alt {
    color: #3c8dbc;
    margin-right: 4px;
}

.recur-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.recur-row:last-child {
    margin-bottom: 0;
}

.recur-row-label {
    flex: 0 0 105px;
    width: 105px;
    margin: 0;
    padding-top: 7px;
    padding-right: 10px;
    font-weight: 600;
    color: #555555;
}

.recur-row-controls {
    flex: 1 1 auto;
    min-width: 0;
}

/* Interval number + unit select read as one phrase: "every 2 weeks". */
.recur-every {
    display: flex;
}

.recur-every input[type="number"] {
    flex: 0 0 75px;
    width: 75px;
    margin-right: 8px;
}

.recur-every select {
    flex: 0 0 140px;
    width: 140px;
}

.recur-days {
    display: flex;
    flex-wrap: wrap;
    padding-top: 2px;
}

.recur-day {
    width: 32px;
    height: 32px;
    margin: 0 5px 5px 0;
    border-radius: 50%;
    background: #eceff1;
    color: #555555;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, color .15s ease;
}

.recur-day:hover {
    background: #dde3e7;
}

.recur-day.active {
    background: #3c8dbc;
    color: #ffffff;
}

/* The checkbox itself stays in the form - it is what gets submitted. */
.recur-day input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.recur-end-row {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 6px;
}

.recur-end-row:last-child {
    margin-bottom: 0;
}

.recur-end-label {
    flex: 0 0 85px;
    width: 85px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.recur-end-label input[type="radio"] {
    margin-right: 6px;
    vertical-align: middle;
}

.recur-end-input {
    flex: 0 0 200px;
    width: 200px;
}

.recur-end-count {
    display: flex;
    align-items: center;
}

.recur-end-count input[type="number"] {
    flex: 0 0 85px;
    width: 85px;
    margin-right: 8px;
}

.recur-end-suffix {
    color: #808080;
}

/* Disabled ending inputs stay visible but clearly inactive. */
.recur-end-input input[disabled] {
    background: #f4f4f4;
    color: #999999;
}

.recur-skip {
    margin-top: 0;
    margin-bottom: 6px;
}

.recur-summary-help {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .recur-row {
        display: block;
    }

    .recur-row-label {
        width: auto;
        padding-top: 0;
        margin-bottom: 4px;
    }

    .recur-end-input,
    .recur-every select {
        flex: 1 1 auto;
        width: auto;
    }
}

/* ------------------------------------------------------------------
   Header bell: Notifications + Messages tabs.
   Plain CSS on purpose: the Tailwind build is frozen and pre-purged, so
   tw-max-h-*, tw-sticky and arbitrary values are absent from it.
   Namespaced under .bell-dropdown so nothing leaks into other dropdowns.
   ------------------------------------------------------------------ */
.bell-dropdown { width: 340px !important; }

.bell-dropdown .bell-tabs { margin-bottom: 6px; }
.bell-dropdown .bell-tabs > li > a { padding: 6px 10px; font-size: 13px; }
.bell-dropdown .bell-tab-count {
    display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px;
    font-size: 11px; line-height: 16px; text-align: center;
    color: #fff; background: #f39c12; border-radius: 8px;
}
.bell-dropdown .bell-tab-count:empty { display: none; }

/* The panes own the scrolling; a cap with overflow:hidden here just clipped them. */
.bell-dropdown .bell-tab-content { overflow: visible; }
.bell-dropdown .bell-scroll {
    max-height: 300px; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
/* The main header has no .navbar-nav ancestor, so the legacy .menu cap in
   custom.css never applies there and this list had no scroll region at all. */
.bell-dropdown #notifications_list {
    max-height: 300px; overflow-y: auto; overflow-x: hidden;
    margin: 0; padding: 0; list-style: none;
    -webkit-overflow-scrolling: touch;
}
.bell-dropdown #chat_thread_messages { min-height: 120px; }

/* Footer links ("Load more" / "View all messages"). The custom.css rule for these
   is scoped to .navbar-nav > ... > li.footer, so it never applies in the main header. */
.bell-dropdown .footer {
    margin-top: 6px; padding-top: 8px;
    border-top: 1px solid #eceff1; text-align: center;
}
.bell-dropdown .footer > a {
    display: block; padding: 4px 0;
    font-size: 13px; font-weight: 600; color: #3c8dbc; text-decoration: none;
}
.bell-dropdown .footer > a:hover { color: #2b6f96; text-decoration: none; }

/* The CRM header nests the bell inside .navbar-nav, where custom.css forces a
   325px width and caps .menu at 230px. Normalise so the panes own the scroll. */
.navbar-nav > .notifications-menu > .bell-dropdown { width: 325px !important; }
.navbar-nav > .notifications-menu > .bell-dropdown .bell-scroll,
.navbar-nav > .notifications-menu > .bell-dropdown #notifications_list { max-height: 240px; }
.navbar-nav > .notifications-menu > .bell-dropdown li .menu { max-height: none; }

/* ------------------------------------------------------------------
   /essentials/messages chat.
   Plain CSS: the Tailwind build here is frozen and pre-purged.
   ------------------------------------------------------------------ */
.chat-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.chat-row-mine { flex-direction: row-reverse; }

.chat-avatar {
    /* Same reason as .chat-group-avatar: centre with flex, not line-height. */
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    color: #fff; font-size: 12px; font-weight: 600;
    line-height: 1; text-align: center; text-transform: uppercase;
    user-select: none;
}
.chat-avatar-c0 { background: #3c8dbc; }
.chat-avatar-c1 { background: #00a65a; }
.chat-avatar-c2 { background: #f39c12; }
.chat-avatar-c3 { background: #d81b60; }
.chat-avatar-c4 { background: #605ca8; }
.chat-avatar-c5 { background: #00c0ef; }

.chat-bubble {
    position: relative; max-width: 72%;
    padding: 8px 12px; border-radius: 12px;
    background: #fff; border: 1px solid #e6e9ed;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.chat-row-mine .chat-bubble {
    background: #e8f5e9; border-color: #cde9d1;
}

.chat-bubble-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 2px;
}
.chat-name { font-size: 12px; font-weight: 600; color: #3c8dbc; }
.chat-row-mine .chat-name { color: #00733e; }
.chat-time { font-size: 11px; color: #98a6ad; white-space: nowrap; }

.chat-text { font-size: 13.5px; line-height: 1.5; color: #2f3d44; word-wrap: break-word; }

@media (max-width: 767px) {
    .chat-bubble { max-width: 85%; }
}


/* ==================================================================
   Internal chat (Essentials): shared shell for the page and the widget,
   conversation rows also reused by the header bell.
   Plain CSS: the Tailwind build here is frozen and pre-purged.
   ================================================================== */

/* Conversation rows (page, widget and bell) */
.ess-conv {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 9px; margin-bottom: 2px; border-radius: 8px;
    color: #444; text-decoration: none;
}
.ess-conv:hover, .ess-conv:focus { background: #f2f4f7; text-decoration: none; color: #444; }
.ess-conv.is-unread { background: #f6faff; }
.ess-conv.active { background: #e8f1fa; }
.ess-conv-avatar, .ess-thread-avatar {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 600; line-height: 1;
}
.ess-conv-avatar-general { background: #3c8dbc !important; }
.ess-conv-avatar-sos { background: #dd4b39 !important; }
.ess-conv-avatar-ai { background: #605ca8 !important; }
.ess-conv-main { flex: 1 1 auto; min-width: 0; }
.ess-conv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ess-conv-name { font-weight: 600; font-size: 13px; color: #2f3d44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ess-conv.is-unread .ess-conv-name { color: #111; }
.ess-conv-time { flex: 0 0 auto; font-size: 11px; color: #98a6ad; }
.ess-conv-preview { display: block; font-size: 12px; color: #7d8c95; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ess-conv-sender { color: #56646c; font-weight: 600; }
.ess-conv-badge {
    flex: 0 0 auto; min-width: 20px; padding: 0 6px;
    font-size: 11px; font-weight: 600; line-height: 20px; text-align: center;
    color: #fff; background: #00a65a; border-radius: 10px;
}
.ess-empty { padding: 26px 10px; text-align: center; color: #98a6ad; font-size: 13px; }
.ess-empty i { display: block; font-size: 26px; margin-bottom: 8px; opacity: .5; }
.ess-scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

/* Shell */
.ess-chat { display: flex; background: #fff; position: relative; }
.ess-pane { display: flex; flex-direction: column; min-width: 0; }
.ess-pane-list { position: relative; border-right: 1px solid #eceff1; }
.ess-toolbar { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid #eceff1; }
.ess-toolbar .ess-search { flex: 1 1 auto; }
.ess-toolbar-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.ess-list { flex: 1 1 auto; padding: 6px; }

.ess-picker { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; z-index: 2; }
.ess-picker-head { display: flex; align-items: center; gap: 8px; padding: 10px; font-weight: 600; border-bottom: 1px solid #eceff1; }
.ess-picker-head a { color: #7d8c95; font-size: 16px; }
.ess-picker-search { margin: 8px; width: auto !important; }
.ess-picker-list { flex: 1 1 auto; padding: 4px 8px; }
.ess-pick-user { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: #2f3d44; text-decoration: none; }
.ess-pick-user:hover { background: #f2f4f7; text-decoration: none; color: #2f3d44; }
.ess-pick-user .chat-avatar { flex: 0 0 30px; width: 30px; height: 30px; font-size: 11px; }
.ess-pick-name { font-size: 13px; font-weight: 600; }

.ess-pane-thread { flex: 1 1 auto; background: #f7f8fa; }
.ess-thread-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #eceff1; }
.ess-back { display: none; color: #7d8c95; font-size: 20px; line-height: 1; text-decoration: none; }
.ess-thread-title { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; color: #2f3d44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ess-edit-group { color: #7d8c95; }
.ess-thread { flex: 1 1 auto; padding: 14px 16px; }
.ess-thread .chat-row-sos .chat-bubble { background: #fdecea; border-color: #f5c6c2; }
.ess-thread .chat-row-sos .chat-name { color: #c0392b; }
.ess-thread .ess-sos-acks { display: inline-block; margin-top: 4px; font-size: 12px; color: #c0392b; }
.ess-thread .chat-row-ai .chat-bubble { background: #f1effa; border-color: #d9d4f0; }
.ess-thread .chat-row-ai .chat-name { color: #605ca8; }
.ess-thread .chat-text table { width: 100%; margin: 6px 0; font-size: 12px; }
.ess-thread .chat-text th, .ess-thread .chat-text td { padding: 3px 6px; border: 1px solid #e6e9ed; }
.ess-ai-typing { color: #98a6ad; }

.ess-composer { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #eceff1; }
.ess-composer .ess-input { flex: 1 1 auto; resize: none; min-height: 38px; max-height: 120px; border-radius: 18px; padding: 8px 14px; line-height: 1.4; }
.ess-composer .ess-send { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border-radius: 50%; line-height: 38px; }

/* Page mode: two columns, fixed height */
.ess-chat-page { height: 72vh; min-height: 480px; }
.ess-chat-page .ess-pane-list { flex: 0 0 300px; }
.ess-chat-page .ess-list, .ess-chat-page .ess-thread { min-height: 0; }
@media (max-width: 767px) {
    .ess-chat-page { height: auto; min-height: 0; }
    .ess-chat-page .ess-pane-list { flex: 1 1 100%; }
    .ess-chat-page .ess-pane-thread { display: none; }
    .ess-chat-page.ess-show-thread .ess-pane-list { display: none; }
    .ess-chat-page.ess-show-thread .ess-pane-thread { display: flex; height: 72vh; }
    .ess-chat-page .ess-back { display: inline; }
}

/* Widget mode: one pane at a time */
#ess-widget-toggle {
    position: fixed; right: 24px; bottom: 24px; z-index: 9999;
    width: 54px; height: 54px; border: 0; border-radius: 50%;
    background: #3c8dbc; color: #fff; font-size: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer;
}
#ess-widget-toggle:hover { background: #367fa9; }
.ess-widget-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; padding: 0 6px;
    font-size: 11px; font-weight: 600; line-height: 20px; border-radius: 10px;
    background: #dd4b39; color: #fff;
}
#ess-widget {
    position: fixed; right: 24px; bottom: 90px; z-index: 9998;
    width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px);
    display: none; flex-direction: column;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
#ess-widget.open { display: flex; }
.ess-widget-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #2c3e50; color: #fff; font-weight: 600; }
.ess-widget-header a { color: #cfd8dc; margin-left: 10px; }
.ess-widget-header a:hover { color: #fff; }
.ess-chat-widget { flex: 1 1 auto; min-height: 0; }
.ess-chat-widget .ess-pane { flex: 1 1 100%; }
.ess-chat-widget .ess-pane-list { border-right: 0; }
.ess-chat-widget .ess-pane-thread { display: none; }
.ess-chat-widget.ess-show-thread .ess-pane-list { display: none; }
.ess-chat-widget.ess-show-thread .ess-pane-thread { display: flex; }
.ess-chat-widget .ess-back { display: inline; }
.ess-chat-widget .ess-toolbar .ess-btn-new span { display: none; }
.ess-chat-widget .ess-list, .ess-chat-widget .ess-thread { min-height: 0; }
@media print { #ess-widget, #ess-widget-toggle { display: none !important; } }

/* SOS modal */
.ess-sos-modal .modal-header.bg-red { color: #fff; }
.ess-sos-from { font-weight: 600; color: #c0392b; }
.ess-sos-text { font-size: 16px; line-height: 1.5; padding: 10px 12px; background: #fdecea; border-radius: 8px; }
.ess-sos-modal .modal-footer { text-align: center; }
