html {
  font-size: 16px;
}

body {
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  /*font-weight: 700;*/
  color: #18223c;
}

label {
  color: #758390;
}

td i {
  cursor: pointer;
}

/* PAGE */

.wrapper {
  margin-left: 0px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 2rem 2.5rem;
}

.page-title {
  font-size: 1.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.form-control {
  font-size: 0.7rem;
  color: #324050;
}

.form-check {
  font-size: 0.7rem;
  margin-top: 10px;
}

.form-check-input {
  margin-top: 0.2rem;
}

.form-group label {
  font-size: 0.8rem;
}

.form-check-label {
  font-size: 0.7rem !important;
  line-height: 1.2rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border-radius: 50%;
  display: inline-block;
  background: #ced4da no-repeat center/cover;
  position: relative;
  text-align: center;
  color: #868e96;
  font-weight: 600;
  vertical-align: bottom;
  font-size: 0.675rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.circle-border {
  border: 1px solid #121635;
  border-radius: 50%;
  padding: 8px;
}

.pointer {
  cursor: pointer;
}

.nav-link {
  cursor: pointer;
}

.pace .pace-progress {
  background: #316aff;
}

.alert {
  border-left-width: 2px;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  font-size: 0.7rem;
}

.alert .close {
  font-size: 1rem;
}

.hidden {
  display: none;
}

/*.sub-text {
    color:#aaa;
    font-family:verdana;
    font-size: 0.7rem;
}
*/

.messages {
  padding: 0;
}

.message-list {
  height: calc(90vh - 23rem - 58px);
  margin: 0;
  border: 1px solid #dee2e6;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  padding: 10px 5px 5px 10px;
  list-style: none;
  overflow-y: scroll;
}

.message-list.disabled {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9ecef;
}

.disabled-editor {
  height: calc(90vh - 23rem - 58px);
  margin: 0;
  border: 1px solid #dee2e6;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  padding: 10px 5px 5px 10px;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9ecef;
}

.message-list li {
  padding: 0.7rem 0 0.1rem 0;
}

.bubble {
  display: inline-block;
}

.message {
  position: relative;
  display: block;
  color: #000;
  font-size: 0.7rem;
  font-weight: 200;
  border: 1px solid #959595;
  border-radius: 0 6px 6px 6px;
  padding: 0.7rem;
  background-color: #f5f5f5;
  min-width: 300px;
}

.message.user,
.message.master,
.sub-text.user,
.sub-text.master {
  background-color: #fef8f8;
  border-color: #edaaaa;
}

.message.supplier,
.sub-text.supplier {
  background-color: #f6fcff;
  border-color: #7fc3f3;
}

.sub-text {
  display: inline;
  color: #000;
  font-size: 0.7rem;
  background-color: #f5f5f5;
  border-color: #edaaaa;
  border: 1px solid #959595;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 0.3rem 0.7rem 0.3rem 0.7rem;
}

.sub-text .date {
  font-size: 0.7rem;
  font-weight: 200;
}

.input-message {
  padding: 0;
}

.input-message textarea {
  border-radius: 0 0 0 0;
}

.input-options {
  display: flex;
  overflow: auto;
  background-color: #f6f9fc;
  border: 1px solid #dee2e6;
  border-radius: 0 0 5px 5px;
  padding: 2px 2px 2px 0.7rem;
  align-items: center;
}

.input-options button {
  display: inline-block;
  margin-left: auto;
}

.commentList {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

/*
.commentList li:nth-child(even) .comment {
    background: #f6f9fc;
}
*/

.commentAuthor {
  font-weight: 700;
  font-size: 1rem;
}

.commentList li {
  padding: 0.25rem 1rem;
}

.comment {
  display: inline-block;
  background: #f3f3f3;
  padding: 1rem 2rem;
  border-radius: 0 1rem 1rem 1rem;
  border: 1px solid #dee2e6;
}

.comment.supplier {
  background: #b3d1ff;
}

.comment.user {
  background: #ff9393;
}

.comment.master {
  background: #ff9393;
}

.comment p {
  margin-top: 3px;
  margin-bottom: 4px;
}

.commentNew {
  padding: 1rem;
}

.commentNew textarea {
  width: 100%;
  padding: 1rem;
  color: #72777a;
}

.commentNew textarea::placeholder {
  color: #c8c8c8;
}

/* NAVBAR TOP */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  height: 3rem;
  background-color: #fff;
  border-bottom: 1px solid #dee2ed;
}

.navbar .nav-items {
  display: flex;
  align-items: center;
}

.navbar .nav-link {
  font-size: 0.7rem;
}

.navbar .brand {
  font-size: 2rem;
  color: #4688ff;
  margin-left: 1.3rem;
  margin-right: 1.3rem;
}

.has-search .form-control {
  padding-left: 2.375rem;
}

.form-group.has-search {
  margin-bottom: 0;
}

.has-search .form-control-feedback {
  position: absolute;
  z-index: 2;
  display: block;
  width: 2.375rem;
  height: 2.75rem;
  line-height: 13.5rem;
  text-align: center;
  pointer-events: none;
  color: #aaa;
}

/* SIDEBAR */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1010;
  width: 200px;
  margin-left: -200px;
  background-color: #171e45;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  height: 4rem;
  align-items: center;
  border-bottom: 1px solid #2b3259;
}

.sidebar-brand i {
  color: #366af4;
}

.sidebar-brand .brand-logo {
  color: #fff;
  font-size: 1rem;
  margin-left: 2rem;
}

.sidebar .nav {
  margin-top: 0.65rem;
}

.sidebar .nav-item i {
  display: inline-block;
  width: 15px;
}

.sidebar .nav-item {
  color: #fdffff; /* #889295 */
  font-size: 0.7rem;
}

.sidebar .nav-link:hover {
  cursor: pointer;
  background-color: #121635;
}

.sidebar .nav-item.active {
  background-color: #121635; /* #f2f0fe */
  border-left: 2px solid #366af4; /* #8063f3 */
  /*color: #8063f3;*/
}

.sidebar .nav-link {
  display: block;
  padding: 0.65rem 2rem 0.65rem 2rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar .nav-link:hover {
  cursor: pointer;
  background-color: #121635;
}

.sidebar .divider {
  display: block;
  border-bottom: 1px solid #2b3259;
  margin: 0.5rem 2rem 0.5rem 2rem;
}

.sidebar .nav-menu-text {
  display: block;
  color: #838aa3;
  padding: 0.65rem 2rem 0.65rem 2rem;
  text-transform: uppercase;
}

.nav-container {
  flex: 1;
  overflow-y: auto;
}

.sidebar-footer {
  margin-top: auto;
}

.wrapper,
.sidebar,
.navbar {
  transition: margin-left 0.25s, margin-right 0.25s, width 0.25s, flex 0.25s;
  transition: margin-left 0.25s, margin-right 0.25s, width 0.25s, flex 0.25s,
    -ms-flex 0.25s;
}

.sidebar-show {
  margin-left: 0;
}

.sidebar-lg-show .sidebar {
  margin-left: 0;
}

.sidebar-lg-show .wrapper,
.sidebar-lg-show .navbar {
  margin-left: 200px;
}

/* BUTTONS */

.btn {
  border-radius: 2px;
}

.btn-primary {
  background-color: #316aff;
  border-color: #b9d1fa;
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #2d77fd;
  border-color: #b9d1fa;
  color: #fff;
}

.btn-primary:active {
  background-color: #0f65ff !important;
  border-color: #b9d1fa !important;
  color: #fff !important;
}

.btn-primary.btn-pressed {
  background-color: #0d3fbe;
}

.btn-secondary {
  background-color: #fff;
  border-color: #d0d4d7;
  color: #9aa3ac !important;
  font-size: 0.7rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: #f8f8f8;
  border-color: #d0d4d7;
  color: #9aa3ac;
}

.btn-secondary:active {
  background-color: #f2f2f2 !important;
  border-color: #d0d4d7 !important;
  color: #9aa3ac !important;
}

.btn-outline-primary {
  background-color: #fff;
  border-color: #d6d9dc;
  color: #4688ff !important;
  font-size: 0.7rem;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: #f8f8f8;
  color: #4688ff;
}

.btn-outline-primary:active {
  background-color: #f2f2f2 !important;
  color: #4688ff !important;
}

.btn-dot {
  background-color: #fff;
  border-color: #d0d4d7;
  color: #c4c7cc;
  font-size: 0.7rem;
  font-weight: 500;
}

.btn-dot:hover {
  background-color: #f8f8f8;
  color: #c4c7cc;
}

.btn-dot:active {
  background-color: #f2f2f2 !important;
  color: #c4c7cc !important;
}

/* CARDS */

.card {
  background-color: #fff;
  border: 1px solid #f1f2f6;
  border-radius: 2px;
  margin: 1.5rem;
}

.card-title {
  color: #263443;
  font-weight: 600;
}

/* MODALS */

.modal-header {
  border-bottom: none;
}

.modal-title {
  color: #263443;
  font-size: 1rem;
  font-weight: 600;
}

.modal-content {
  border: 1px solid #dfe0e4;
  border-radius: 2px;
}

.modal-footer {
  background-color: #f5f6fa;
}

.modal-backdrop.show {
  opacity: 0.5;
}

/* DROPDOWN MENU */

.dropdown-menu {
  position: absolute;
  top: 100%;
  z-index: 1000;
  display: none;
  float: left;
  width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.9375rem;
  color: #495057;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 40, 100, 0.12);
  border-radius: 3px;
}

.dropdown-menu-arrow:before {
  position: absolute;
  top: -6px;
  left: 12px;
  display: inline-block;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(0, 40, 100, 0.12);
  border-left: 5px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  content: "";
}

.dropdown-menu-arrow:after {
  position: absolute;
  top: -5px;
  left: 12px;
  display: inline-block;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #fff;
  border-left: 5px solid transparent;
  content: "";
}

.dropdown-menu-arrow.dropdown-menu-right:before,
.dropdown-menu-arrow.dropdown-menu-right:after {
  left: auto;
  right: 12px;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-size: 0.7rem;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f8f8;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #0f65ff;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
  color: #868e96;
  pointer-events: none;
  background-color: transparent;
}

.dropdown-icon {
  color: #212529;
  margin-right: 0.5rem;
  margin-left: -0.5rem;
  width: 1em;
  display: inline-block;
  text-align: center;
  vertical-align: -1px;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid #e9ecef;
}

/* BADGE */

.badge {
  padding: 0.4rem;
  font-size: 0.7rem;
  white-space: normal;  /* Allow text to wrap */
  word-wrap: break-word;  /* Break long words */
  height: auto;  /* Allow height to adjust */
  display: inline-block;  /* Enable block properties while keeping inline behavior */
  max-width: 100%;
}

.badge-expired {
  background-color: #fffeac;
  color: #000000;
}

.badge-warning {
  background-color: #ffe7e9;
}

.badge-success {
  background-color: #eaf7ed;
}

.badge-inactive {
  background-color: #f3f4f5;
}

.badge-nominated {
  background-color: #e8f3ff;
}

/* BREADCRUMB */

.breadcrumb {
  background-color: inherit;
  font-size: 0.6rem;
  color: #5c5f67;
  text-transform: uppercase;
  padding-top: 0.75rem;
  padding-right: 0rem;
  padding-bottom: 0rem;
  padding-left: 0rem;
}

.breadcrumb .breadcrumb-item {
  color: #5c5f67;
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: 1rem;
  padding-left: 0.5rem;
  color: #5c5f67;
  content: "/";
}

.breadcrumb .breadcrumb-item.active {
  color: #a4a7b0;
}

.breadcrumb .breadcrumb-item a {
  color: inherit;
}

/* SELECTIZE */

.selectize-dropdown .option,
.selectize-dropdown [data-disabled],
.selectize-dropdown [data-disabled] [data-selectable].option {
  cursor: pointer;
}

.selectize-input {
  font-size: 0.7rem;
  z-index: 0;
}

.selectize-input input {
  font-size: 0.7rem;
}

.selectize-dropdown-content {
  font-size: 0.7rem;
}

.selectize-dropdown .active {
  background-color: #eaf5ff;
  color: #495c68;
}

.bi {
  position: relative;
  top: 2px;
}

.sticky-top {
  z-index: 1000 !important;
}

.notify-dot {
  position: absolute;
  top: 1px;
  right: 13px;
  padding: 4px 4px;
  border-radius: 50%;
  background-color: #dc3545;
  color: white;
}

.notify-dot.blue {
  background-color: #007bff;
}

.input-group-text {
  font-size: 0.7rem;
}

.notification-wrap .dropdown-menu {
  min-width: 22rem;
  font-size: 0.7rem;
  font-weight: 400;
  border-radius: 3px;
  padding: 0;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.125);
}

.notification-wrap .notification-header {
  padding: 10px;
  border-bottom: 1px solid #d7d7d7;
}

.notification-wrap .notification-footer {
  font-size: 0.6rem;
  background-color: #f5f6fa;
  padding: 10px;
}

.notification-wrap .notification-title {
  color: #5c5f67;
  font-weight: 700;
  text-transform: uppercase;
}

.notification-wrap .dropdown .notification-items {
  max-height: 400px;
  overflow-y: auto;
}

.notification-wrap .dropdown .notification-item {
  display: flex;
  flex-direction: row;
  justify-content: start;
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid #d7d7d7;
}

.notification-wrap .dropdown .notification-item.new {
  background-color: #ecf8fe;
}

.notification-wrap .dropdown .notification-item:hover,
.notification-wrap .dropdown .notification-item.new:hover {
  background-color: #f3f7ff;
}

.notification-wrap .notification-item .notification-info {
  color: #b1b3b3;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 0 0 0;
}

.notification-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 5px;
  height: 5px;
  padding: 6px;
  border-radius: 18px;
  background-color: #e60323;
  color: #fff;
  font-size: 0.5rem;
}

.nav.nav-tabs .nav-item .nav-link {
  font-size: 0.7rem;
  color: inherit;
}

.invalid-feedback {
  font-size: 0.7rem;
  font-weight: 400;
}

.gj-picker-bootstrap {
  font-size: 0.7rem;
}

.gj-datepicker .btn {
  padding: 0 !important;
}

.gj-picker-bootstrap table tr td.selected.gj-cursor-pointer div {
  color: #fff;
  background-color: #316aff;
  border-color: #b9d1fa;
  border-radius: 4px;
}

.toast {
  width: auto;
  max-width: auto;
  font-size: .675rem;
  pointer-events: auto;
  background-color: rgba(232, 242, 253, 0.85);
  background-clip: padding-box;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  border-radius: .25rem;
  opacity: 100;
  margin: 3px;
  margin-bottom: 1rem;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: .5rem .75rem;
  color: #6c757d;
  background-color: rgba(255,255,255,.85);
  background-clip: padding-box;
  border-bottom: 1px solid rgba(0,0,0,.05);
  border-top-left-radius: calc(.25rem - 1px);
  border-top-right-radius: calc(.25rem - 1px);
}

.toast-body {
  padding: .75rem;
  /*word-wrap: break-word;*/
}

.me-auto {
  margin-right: auto !important;
}

.modal {
  /*height: auto !important; this might break the test comments when disabled*/
  overflow-y:auto;
}

.customer-pincode-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 15vh;
}

.customer-pincode-input {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 3px;
  text-align: center;
  font-size: 1.5rem;
}

.customer-pincode-input:not(:last-child) {
  margin-right: 1rem;
}

.customer-pincode-container {
  height: 5rem;
  border-radius: 5px;
  cursor: pointer;
  background-color: #173642;
  color:#bdd0d6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-pincode {
  font-size: 2.5rem;
  letter-spacing:1em;
  margin-right:-1em;
  text-align:right;
}

.radio {
  display: inline-block;
  border-radius: 5px;
  border: 2px solid #e0e0e0;
  color: #e0e0e0;
  cursor: pointer;
  font-weight: 500;
}


.radio:hover {
  background-color: #e8f0ff;
}

.radio.selected {
  border-color: #316aff;
  color: #316aff;
}

.bi-disabled {
  color: #c2c2c2;
}

#msgBlock {
  min-height: 45px;
}

.form-control-selectize {
  border: 1px solid #d0d0d0;
  padding: 8.5px 8px;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.1);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.1);
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  top: -4px;
  text-align: center; 
}

.form-control-selectize:focus {
  outline: none !important;
  -webkit-box-shadow: 0 0 5px rgba(49, 187, 255, 0.22);
  box-shadow: 0 0 5px rgba(49, 187, 255, 0.22);
}

.form-control:focus {
  outline: none !important;
  -webkit-box-shadow: 0 0 5px rgba(49, 187, 255, 0.22);
  box-shadow: 0 0 5px rgba(49, 187, 255, 0.22);
}

textarea.form-control.default-height {
  min-height: 75px;
}

.popover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1090;
  display: block;
  max-width: 500px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: 0.6rem;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #dee2e6;
  border-radius: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 18rem;
  overflow: visible;
}

.popover-header {
  padding: .5rem .75rem;
  margin-bottom: 0;
  font-size: 0.6rem;
  background-color: #f6f9fc;
  border-bottom: 1px solid #ebebeb;
}

.tooltip-text {
  color:#007bff;
  cursor: pointer;
}

.tooltip-text:hover {
  color:#007bff;
}

.card-text {
  font-size: 0.6rem;
}


.with-border {
  border: 1px solid #f1f2f6;
  border-radius: 2px;
}

.card {
  display: flex; 
  flex-direction: column; 
  height: 100%; 
}

.card-body {
  padding: 1rem;
  /*flex-grow: 1;*/
}

.cards-wrapper {
  border: 1px solid #f1f2f6;
  border-radius: 5px;
  overflow: hidden;
  padding-bottom: 25px;
}

.card-wrapper {
  margin-bottom: 20px;
}

.counter {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 22px;
  right: -8px;
  min-width: 5px;
  height: 16px;
  padding: 6px;
  border-radius: 18px;
  background-color: #007bff;
  color: #fff;
  font-size: 0.5rem;
}

table.dataTable td.dt-control::before {
  color: #dee2e6;
  border: .15em solid #dee2e6;
  content: "+";
  background-color: rgb(0, 105, 217);
}

table.dataTable tr.dt-hasChild td.dt-control::before {
  content: "-";
  background-color: rgb(0, 105, 217);
}

table.dataTable td.dt-control {
  text-align:center;
  cursor:pointer
 }
 
 table.dataTable td.dt-control:before {
  height:1em;
  width:1em;
  margin-top:-9px;
  display:inline-block;
  color:white;
  border:.15em solid white;
  border-radius:1em;
  box-shadow:0 0 .2em #444;
  box-sizing:content-box;
  text-align:center;
  text-indent:0 !important;
  font-family:"Courier New",Courier,monospace;
  line-height:1em;
  content:"+";
  background-color:#2c4d73
 }

 table.dataTable tr.dt-hasChild td.dt-control:before {
  content:"-";
  background-color:#2c4d73
 }

.custom-control span {
  display: inline-block;
  vertical-align: middle;
  margin-top: 3px;
}

.custom-checkbox .custom-control-input {
  opacity: 0; /* Keep the default behavior */
}

.custom-checkbox .custom-control-label::before {
  border-width: 1px !important; /* Thinner border */
  border-color: #b9d1fa !important; /* Lighter border color */
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  border-color: #316aff !important; /* Change border color when checked */
  background-color: #316aff !important; /* Change background color when checked */
}

.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 5px rgba(49, 106, 255, 0.5) !important; /* Add focus effect */
}

table td.editable-comment {
  vertical-align: top;
}

.comment-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-cell {
  max-width: 400px; /* Adjust the max-width as needed */
}

.inactive-hide {
  display: none;
}

.dropdown-menu.custom-shadow {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
  width: 200px;
}

.dropdown-menu .dropdown-header {
  padding: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.chat-box {
  font-size: 0.7rem;
  font-weight: 200;
  max-width: 100%;
  height: 600px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  position: relative;
}

.indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 10px;
  height: 10px;
  background-color: blue;
  border-radius: 50%;
  display: none;
}

.chat-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.messageV2 {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

.messageV2 .content {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 8px;
  position: relative;
}

.messageV2 .name-timestamp {
  display: flex;
  width: 100%;
  position: relative;
  margin-bottom: 5px;
}

.messageV2 .name {
  font-size: 14px;
  color: #7898ac;
  margin-right: 5px;
}

.messageV2 .timestamp {
  font-size: 14px;
  color: #bfd2de;
}

.messageV2.sent {
  align-items: flex-end;
}

.messageV2.sent .name-timestamp {
  justify-content: flex-end;
}

.messageV2.sent .content {
  background: linear-gradient(135deg, #50acff 0%, #77befc 25%);
  color: #fff;
  box-shadow: 0 0 10px rgba(80, 172, 255, 0.5);
}

.messageV2.sent .content::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 10px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #77befc transparent;
}

.messageV2.received {
  align-items: flex-start;
}

.messageV2.received .name-timestamp {
  justify-content: flex-start;
}

.messageV2.received .content {
  background-color: #EAF3FA;
  color: #6D90A7;
}

.messageV2.received .content::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 10px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #EAF3FA transparent;
}

.new-sub-supplier-form {
  background: #f8f9fa;
  padding: 20px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.new-sub-supplier-form h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #324050;
  margin-bottom: 8px;
}

.new-sub-supplier-form p {
  font-size: 0.7rem;
  color: #758390;
  margin-bottom: 15px;
}

.new-sub-supplier-form input {
  font-size: 0.7rem;
  color: #324050;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
}

.new-sub-supplier-form .mt-2.d-flex {
  margin-top: 1.2rem !important;
}

.new-sub-supplier-form .btn-link {
  color: #0072bc;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  padding-left: 0;
}

.new-sub-supplier-form .btn-secondary {
  background-color: #e9ecef;
  border: none;
  color: #495057;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
}

.new-sub-supplier-form .btn-secondary:hover {
  background-color: #dee2e6;
}

.add-new-supplier-btn {
  color: #0072bc;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: auto;
}

.add-new-supplier-btn:hover {
  color: #005289;
  text-decoration: none;
}

.add-new-supplier-btn i {
  font-size: 1.2em;
}

.text-right {
  text-align: right !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

.contact-info-box {
  background-color: #f8f9fa;
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 2px;
  margin: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.6rem;
  color: #324050;
}

.contact-info-box strong {
  font-weight: 600;
}

.edited-indicator {
  color: #6c757d;
  font-size: 0.6rem;
  margin-left: 8px;
  font-style: italic;
}