/* ------------------------------
   GLOBAL
------------------------------*/
body {
  background-color: #f9f9f9;
}

.chat-panel {
  height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ------------------------------
   CHAT INPUT FIELD
------------------------------*/
.chat-input {
  background: #fff;
}

.chat-input input:focus {
  box-shadow: none !important;
}

#filterBtn {
  width: 28px;
  height: 28px;
  font-weight: bold;
  padding: 0;
}


/* ===========================================================
   GPT-STYLE FILTER BADGE (Animated)
=========================================================== */
.active-filter-badge {
  background: #e7f1ff;
  color: #0d6efd;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.25s ease-out;
}

.active-filter-badge.show {
  opacity: 1;
  transform: translateX(0);
}

.active-filter-badge .badge-icon {
  margin-right: 6px;
  font-size: 1rem;
}

.active-filter-badge .btn-close {
  width: 10px;
  height: 10px;
  filter: invert(30%) brightness(70%);
}

.active-filter-badge:hover {
  background: #d8e9ff;
  cursor: pointer;
  transform: translateX(2px);
}


/* ===========================================================
   SUGGESTION DROPDOWN
=========================================================== */
.suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 6px 18px rgba(11,35,75,0.06);
  z-index: 50;
  animation: suggestionFade 0.15s ease-in-out;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-size: 0.9rem;
  color: #222;
}

.suggestion-item:hover {
  background: #f0f4ff;
  color: #0d47a1;
}

@keyframes suggestionFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===========================================================
   COMPACT PRODUCT CARD
=========================================================== */
.chat-panel .chat-compact-card {
  max-width: 220px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  border-radius: 10px !important;
  background: #fff;
}

.chat-panel .chat-compact-card .product-image-wrapper {
  height: 90px !important;
  padding: 4px !important;
  display: flex;
  justify-content: flex-start;
}

.chat-panel .chat-compact-card .product-img-floating {
  max-height: 70px !important;
  width: auto !important;
  object-fit: contain;
}

.chat-panel .chat-compact-card .card-body {
  padding: 0.45rem !important;
}

.chat-panel .chat-compact-card h6 {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.chat-panel .chat-compact-card .btn-outline-secondary.btn-sm {
  padding: 1px 4px !important;
  font-size: 0.7rem !important;
  border-radius: 6px !important;
}

.chat-panel .chat-compact-card .text-muted {
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  margin-bottom: 4px !important;
}

.chat-panel .chat-compact-card p.text-uppercase {
  font-size: 0.65rem !important;
  margin-bottom: 2px !important;
}

.chat-panel .chat-compact-card h6.fw-bold {
  font-size: 0.9rem !important;
  margin-bottom: 1px !important;
}

.chat-panel .chat-compact-card p.text-muted.small {
  font-size: 0.7rem !important;
}

.chat-panel .chat-compact-card .btn-sm {
  padding: 2px 6px !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
}


/* ===========================================================
   CARD ALIGNMENT RULES
=========================================================== */
#chat-messages > div {
  text-align: left !important;
}

#chat-messages .chat-result-wrapper {
  text-align: right !important;
}


/* ===========================================================
   📄 INVOICE STYLING (Matches PDF Look)
=========================================================== */

.invoice-wrapper {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  min-height: 85vh;
  overflow-y: auto;
}

.company-logo {
  width: 160px;
}

.invoice-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;   
    border-radius: 4px;
    padding: 0;
}

.invoice-banner-img {
    width: 100%;             
    height: auto;            
    object-fit: cover;       
    display: block;          
    border-radius: 4px;
}


.invoice-banner h5 {
  color: white;
  font-weight: 700;
  margin: 0;
}

.invoice-title {
  color: #283593;
  font-weight: 700;
}
