/* Setting up Colors */
:root {
  --primary-color: #2563EB;
  --dark-bg: #111827;
  --light-bg: #f8fafc;
}

/* Changing the BG Color of body and fonts */
body {
  background-color: #e9ecef; /* Light grey background for the body */
  font-family: "Poppins", serif;
  padding-top: 0; /* Remove padding-top from body */
}

/* Navbar Styling  */
/* Main Navigation Styles */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111827;
  padding: 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Nav Container for Both Navs */
.nav-container {
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation Layout Adjustments */
.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-right {
  display: flex;
  align-items: center;
}

/* Logo container */
.nav-left .logo {
  display: flex;
  align-items: center;
}

/* Logo image */
.nav-left .logo img {
  height: 40px; /* or 50px depending on your nav height */
  width: auto;  /* keeps aspect ratio */
  object-fit: contain;
  display: block;
}

/* Nav Link Styling */
.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links .active a {
  color: white;
  font-weight: 500;
  border-bottom: 3px solid var(--primary-color);
}

.notification-dropdown .badge {
  font-size: 0.6rem;
  padding: 4px 6px;
  border-radius: 50%;
}

/* Icons */
.fas {
  font-size: 14px;
  width: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links a {
    padding: 15px;
    font-size: 0.9rem;
  }

  /* If you have a wrapper around both navs */
  .nav-wrapper {
    flex-direction: column;
  }
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
  cursor: pointer;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.2s;
}

.profile-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  display: none;
  z-index: 1000;
}

.profile-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  color: #334155;
  padding: 10px 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #3b82f6;
}

.dropdown-item i {
  width: 18px;
  text-align: center;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hide regular navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 15px 20px;
    justify-content: flex-start;
  }

  .nav-links .active a {
    border-bottom: none;
    background: rgba(255, 255, 255, 0.05);
  }

  /* Show hamburger menu */
  .hamburger-menu {
    display: block;
  }

  /* Adjust sub-nav position when menu is open */
  .nav-links.active + .sub-nav {
    top: calc(100% + 60px); /* Adjust based on your header height */
  }

  /* Profile dropdown adjustments */
  .profile-dropdown {
    position: static;
  }

  .dropdown-menu {
    right: 20px;
    left: auto;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-end;
    padding: 10px 0;
  }
}
/* Navbar Styling Ends Here */

/* Summary Card Styling */
/* Inquiry Page Summary to Show Count of Inquiries Stage Wise */
.summary-container {
  display: flex;
  gap: 15px;
  padding: 20px;
  overflow-x: auto;
}

.summary-card {
  flex: 1;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.summary-card:hover {
  transform: translateY(-3px);
}

/* Summary Card Color Coding */
.total::before {
  background: #3b82f6;
}
.new::before {
  background: #d2d426;
}
.qualified::before {
  background: #f59e0b;
}
.visit::before {
  background: #9c27b0;
}
.negotiation::before {
  background: #ef4444;
}
.converted::before {
  background: #10b981;
}

.card-content h3 {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.count {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.percentage {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .summary-container {
    flex-wrap: wrap;
  }

  .summary-card {
    min-width: calc(50% - 10px);
  }
}

/* Improved Responsive Sizing */
.summary-container {
  gap: 15px;
  padding: 15px;
}

.summary-card {
  min-width: 200px;
  flex: 1 1 calc(16.66% - 15px);
}

.action-bar {
  margin: 15px;
  padding: 12px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .summary-card {
    flex: 1 1 calc(50% - 15px);
  }

  .action-bar {
    flex-direction: column;
    gap: 10px;
  }

  .action-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1 1 100%;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
  }

  .nav-links a {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .sub-nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .summary-card {
    flex: 1 1 100%;
  }

  .profile-toggle span {
    display: none;
  }

  .nav-left {
    gap: 15px;
  }

  .stage-timeline .stage-label {
    font-size: 0.9rem;
  }
}
/* Summary Card Sytling Ends Here */

/* Buttons Stylings */
.btn {
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn.primary {
  background: var(--primary-color);
  color: white;
}

.btn.success {
  background: #4caf50;
  color: white;
}

.btn.danger {
  background: #f44336;
  color: white;
}

.btn.secondary {
  background: #c9cfd4;
  color: #495057;
}

a {
  text-decoration: none;
}

a .btn {
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary:hover {
  background: #2563eb;
}

.btn.secondary:hover {
  background: #d5d9dd;
}

/* Action Buttons (Icons) */
.action-btn {
  border: none;
  background: none;
  padding: 5px;
  margin: 0 3px;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  transition: all 0.2s;
}

.action-btn.edit {
  color: #2196f3;
}
.action-btn.delete {
  color: #f44336;
}

.action-btn.comments {
  color: #207b81;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.fas {
  font-size: 14px;
}
/* Action Button Ends */
/* Buttons Styling Ends Here */

/* Search Bar Styling */
.search-container {
  flex-grow: 1;
  max-width: 300px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.search-input {
  flex: 1;
  padding: 8px 15px;
  border: none;
  background: transparent;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 8px 15px;
  border: none;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #2563eb;
}

.fa-search {
  font-size: 14px;
}
/* Search Bar Styling Ends Here */


/* Alerts Styling */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  width: 90%;
}

.alert {
  position: relative;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  transform: translateX(110%);
  animation: slideIn 0.3s ease-out forwards;
  word-wrap: break-word;  /* Ensures text wraps */
  word-break: break-word; /* For really long words or URLs */
  white-space: normal;    /* Allows multiline wrapping */
}

.alert-import {
  position: relative;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  transform: translateX(110%);
  animation: slideIn 0.3s ease-out forwards;
}

.alert.success {
  border-color: #10b981;
  background: #f0fdf4;
}

.alert-import.success {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.alert.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.alert-import.error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert.warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.alert-import.warning {
  background-color: #fefce8;
  border-color: #eab308;
  color: #854d0e;
}

.alert-import.info {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-icon {
  font-size: 1.5rem;
}

.alert.success .alert-icon {
  color: #10b981;
}

.alert.error .alert-icon {
  color: #ef4444;
}

.alert-content {
  flex-grow: 1;
}

.alert-message {
  margin: 0;
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.4;
}

.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #6b7280;
  transition: color 0.2s;
}

.alert-import-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.alert-import-close:hover {
  opacity: 1;
}

.alert-import-close .fa-times {
  font-size: 1rem;
}

.alert-import.slide-out {
  animation: slideOut 0.3s ease-in forwards;
}

/* Add smooth fade-out transition */
.alert-import {
  transition: opacity 1s ease-out;
}

.alert-close:hover {
  color: #374151;
}

@keyframes slideIn {
  from {
    transform: translateX(110%);
  }
  to {
    transform: translateX(0);
  }
}

.alert.slide-out {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(110%);
  }
}
/* Alerts Styling Ends Here */


/* Action Bar Contains Create Button, Filter Button, Download Button and Search Bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin: 20px 20px;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 15px;
}

.action-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .action-bar {
    margin: 10px;
    padding: 12px;
  }

  .action-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn {
    flex-grow: 1;
    justify-content: center;
  }

  .search-container {
    max-width: 100%;
    width: 100%;
  }
}
/* Action Bar Ends Here */

.setting-table {
  width: 100%;
  border-collapse: collapse;
}

.setting-table th,
.setting-table td {
  white-space: nowrap;
  padding: 12px 15px;
}

.setting-table thead {
  background-color: #f0f5ff;
  border-bottom: 2px solid #3b82f6;
  color: #1e40af;
}

.setting-table th {
  padding: 7px;
  text-align: left;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.80rem;
}

.setting-table td {
  padding: 10px 10px;
  color: #212529;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.setting-table tr.data:hover {
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
  .table-container {
    margin: 10px;
    border-radius: 8px;
  }
}
/* Inquiry Table Ends Here */

/* Footer Styling */
.main-footer {
  background: var(--dark-bg);
  color: #ffffff;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #334155;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section {
  display: flex;
  gap: 25px;
}

.footer-text {
  font-size: 0.9rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-text:before {
  content: "•";
  margin-right: 8px;
  color: #3b82f6;
}

.footer-section:first-child .footer-text:first-child:before {
  content: "";
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column; /* Stack items vertically */
    text-align: center; /* Center text */
  }

  .footer-section {
    flex-direction: column; /* Stack footer sections vertically */
    gap: 10px; /* Reduce gap between items */
    width: 100%; /* Ensure sections take full width */
  }

  .footer-text:before {
    display: none; /* Hide bullet points on mobile */
  }

  .footer-text {
    justify-content: center; /* Center text in footer */
  }
}

@media (max-width: 480px) {
  .footer-text {
    font-size: 0.8rem; /* Slightly smaller font size for very small screens */
  }
}
/* Footer Ends Here */

@media (max-width: 768px) {
  .model-form-settings {
    flex-direction: column;
    align-items: stretch;
  }

  .form-control-settings {
    width: 100%;
  }

  .model-table th,
  .model-table td {
    padding: 0.75rem;
  }
}
/* Import Ends Here */

/* Create Container for Creating Inquiry/Followups */
.container-create {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
}

.card.create {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.card-body {
  padding: 2rem;
}
/* Create Containers Ends Here */

/* Breadcrumb Styling */
.breadcrumb {
  background-color: var(--light-bg);
  padding: 1rem 1.5rem;
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-item {
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: #2563eb;
}

.breadcrumb-item.active {
  color: #64748b;
}
/* Breadcrumb Ends Here */

/* Responsive design */
@media (max-width: 768px) {
  .card-body {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    padding: 0.75rem 1rem;
  }

  .card-body {
    padding: 1rem;
  }
}

/* Followups Page (Inquiry Detailed) Styling */
.inquiry-container {
  max-width: 100%;
  margin: 20px auto;
  padding: 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  text-decoration: none;
  margin-bottom: 30px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #f1f5f9;
}

.detail-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border-radius: 6px;
}

.detail-item label {
  color: #64748b;
  font-weight: 500;
}

.detail-item span {
  color: #1e293b;
  font-weight: 500;
}

.detail-card h3 {
  margin: 0 0 15px 0;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0; /* Optional: Add a bottom border for separation */
  padding-bottom: 10px; /* Optional: Add some padding */
}

.detail-card h5 {
  margin: 0 0 15px 0;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0; /* Optional: Add a bottom border for separation */
  padding-bottom: 10px; /* Optional: Add some padding */
}

.inquiry-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Center items vertically */
  margin: 0; /* Remove default margin */
}

.inquiry-title {
  display: flex;
  align-items: center; /* Center the icon and text vertically */
}

.inquiry-title i {
  margin-right: 8px; /* Space between icon and text */
}

.edit-inquiry-btn {
  color: #3b82f6; /* Primary color */
  cursor: pointer;
  display: flex; /* Ensure the icon is centered */
  align-items: center; /* Center the icon vertically */
}

.edit-inquiry-btn:hover {
  color: #1d4ed8; /* Darker blue on hover */
}

.inquiry-icon {
  font-size: 0.83em; /* Adjust the size of the icons */
}

.disabled-link {
  pointer-events: none;
  cursor: default;
}

.disabled-link i {
  color: grey;
}
/* Followup Page Ends Here */

/* Booking Unit Process Header   */
.booking-stepper {
  padding: 2rem 0;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}

.step {
  position: relative;
  flex: 1;
  padding: 0 15px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: #0d6efd;
  color: white;
  transform: scale(1.1);
}

.step.completed .step-circle {
  background: #198754;
  color: white;
}

.step-label {
  margin-top: 0.5rem;
  text-align: center;
  color: #6c757d;
}

.step.active .step-label {
  color: #0d6efd;
  font-weight: 500;
}

.progress-line {
  position: absolute;
  height: 2px;
  background: #dee2e6;
  top: 20px;
  left: -50%;
  right: 50%;
  z-index: -1;
}

.step:first-child .progress-line {
  display: none;
}
/* Booking Unit Ends Here   */

.tab-content {
  background: white;
  border-radius: 0.5rem;
  /* box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05); */
  padding: 2rem;
  margin-top: 2rem;
}

.form-navigation {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .step-label {
      font-size: 0.8rem;
  }
}

.container.container-select-project {
  height: 450px;
}

#emailFields {
  transition: all 0.3s ease;
}
  
:root {
  /* Base (unscaled) sizes */
  --col1: 220px;  /* Charge Type */
  --col2: 140px;  /* Container */
  --col3: 160px;  /* # of Containers */
  --ff-mincol: 140px; /* forwarder column min width */
  --h1: 52px; /* header row 1 height */
  --h2: 44px; /* header row 2 height */

  /* Global scale (adjust this) */
  --scale: 0.85;
}

/* Scope derived vars to the table wrapper so you can override per table via inline style */
.grid-wrap {
  --col1-s: calc(var(--col1) * var(--scale));
  --col2-s: calc(var(--col2) * var(--scale));
  --col3-s: calc(var(--col3) * var(--scale));
  --ff-mincol-s: calc(var(--ff-mincol) * var(--scale));
  --h1-s: calc(var(--h1) * var(--scale));
  --h2-s: calc(var(--h2) * var(--scale));
  --row-h: calc(44px * var(--scale));
}

.grid-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  max-height: 65vh;
}

.grid-table {
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: minmax(var(--row-h), auto);
  width: max-content;
  background: #fff;

  /* scale text and line-height */
  font-size: calc(0.95rem * var(--scale));
  line-height: calc(1.25rem * var(--scale));
}

/* Draw table-like cell borders */
.grid-table .cell {
  box-sizing: border-box;
  border: 1px solid #dee2e6;
  /* optional: scale padding so the table gets denser as you scale */
  padding: calc(.5rem * var(--scale)) calc(.75rem * var(--scale));
  background: #fff;
}

/* Header styling */
.grid-table .header { background: #f8f9fa; font-weight: 600; }

.grid-table .header.row-1 {
  height: var(--h1-s);
  position: sticky;
  top: 0;
  z-index: 5;
}

.grid-table .header.row-2 {
  height: var(--h2-s);
  position: sticky;
  top: var(--h1-s);
  z-index: 5;
}

/* First 3 columns sticky to the left (use scaled widths) */
.sticky-1, .sticky-2, .sticky-3 {
  position: sticky;
  z-index: 3;
  background: inherit;
}
.sticky-1 { left: 0; }
.sticky-2 { left: var(--col1-s); }
.sticky-3 { left: calc(var(--col1-s) + var(--col2-s)); }

/* Corner cells */
.header.sticky-1, .header.sticky-2, .header.sticky-3 { z-index: 7; }

/* Left header cells that span both header rows */
.header-span-2 {
  grid-row: 1 / span 2;
  height: calc(var(--h1-s) + var(--h2-s));
  position: sticky;
  top: 0;
  z-index: 7;
}

/* Optional highlight */
.header-l1 { background: #d1e7dd; }

/* Alignment helpers */
.text-end { text-align: right; }
.fw-bold { font-weight: 700; }
.small { font-size: 0.85em; color: #6c757d; }

/* Column anchors (only used in charge rows for clarity) */
.col-1 { grid-column: 1; }
.col-2 { grid-column: 2; }
.col-3 { grid-column: 3; }

/* Footer labels: merge first 3 columns */
.span-3 { grid-column: 1 / span 3; }

/* Logical rows */
.grid-row { display: contents; }

/* Smooth transition + hover */
.grid-table .cell { transition: background-color 120ms ease-in-out; }

.body-row:hover > .cell { background-color: var(--bs-table-hover-bg, #c5d1dd); }

.body-row:hover > .cell.sticky-1,
.body-row:hover > .cell.sticky-2,
.body-row:hover > .cell.sticky-3 {
  background-color: var(--bs-table-hover-bg, #c5d1dd);
}

.footer-row:hover > .cell {
  background-color: var(--bs-table-hover-bg, #c5d1dd);
}

/* minor fix: semicolon instead of comma */
.ff-icon { color: #f6c343; }

/* If you keep per-cell scaling, you can remove it now or leave as-is */
.cell .scaled-content {
  transform: scale(0.85);
  transform-origin: top left;
  display: inline-block;
}

#rfqTable td:last-child .btn {
  display: inline-flex;       /* keep buttons inline but allow flex properties */
  align-items: center;        /* vertically center icons/text inside buttons */
  margin-right: 6px;          /* space between buttons */
  padding: 4px 8px;           /* smaller padding for compact buttons */
  font-size: 0.85rem;         /* smaller font for icons */
  white-space: nowrap;        /* prevent buttons from wrapping */
}

#rfqTable td:last-child .btn:last-child {
  margin-right: 0;            /* no margin on last button */
}

.small-text {
  font-size: 0.875rem; /* Approx. 14px */
}

.client-selection-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 10px;
  position: static !important;
  z-index: auto !important;
}

@media (max-width: 1480px) {
  .client-selection-container {
      margin: 2rem 40px;
  }
}

@media (max-width: 992px) {
  .client-selection-container {
      margin: 1.5rem;
      padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .client-selection-container {
      margin: 1rem;
      padding: 1rem;
      border-radius: 8px;
  }
}


.card-dashboard-container {
  padding: 20px;
}

.card-chart-container {
  padding: 0;
}

.sleek-card {
  border: none; /* Remove default border */
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition */
}

.sleek-card:hover {
  transform: translateY(-5px); /* Lift card slightly on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.card-dashboard-body {
  padding: 25px;
}

.card-dashboard-title {
  font-size: 1rem;
  color: #6c757d; /* Muted color for title */
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 5px;
}

.card-footer-text {
  font-size: 0.85rem;
  color: #28a745; /* Green for positive change */
  font-weight: 500;
}

/* Custom color classes for icons/accents */
.icon-dashboard-primary { color: #007bff; }
.icon-dashboard-success { color: #28a745; }
.icon-dashboard-warning { color: #ffc107; }
.icon-dashboard-info { color: #17a2b8; }
.icon-dashboard-large { font-size: 2rem; }