body {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  margin: 0px;
  padding: 0px;
  background-color: #f2f2f2;
  height: 100%;
  overflow-x: hidden;
}

/* Email Section Styles */
.email-section {
  background: #f8f9fa;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  height: 32px; /* Slightly smaller than button */
  display: flex;
  align-items: center;
  font-size: 11px;
}

.email-label {
  color: #6c757d;
  margin-right: 4px;
}

.copyable-email {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.copyable-email:hover {
  opacity: 0.8;
}

.email-address {
  font-weight: 300;
  color: #3f3f3f;
}

.copy-icon {
  font-size: 10px;
  opacity: 0.7;
}

.btn-custom {
  background-color: #f88257; /* Your desired color */
  color: white; /* Ensure text is readable */
  border: none; /* Remove border if needed */
}

.alignRight {
  text-align: right;
}
.alignLeft {
  text-align: left;
}

.loginBody {
  text-align: center;
  padding-top: 10%;
}

.loginLogo img {
  max-width: 150px;
}
.loginBody h3 {
  font-size: 1.5em;
  font-weight: 300;
  color: #1c1c1c;
}

#loginTitle {
  color: #1c1c1c;
}

#loginSubtitle {
  font-size: 14px;
  font-weight: 400;
  color: #7b7b7b;
  margin-bottom: 32px;
  margin-top: 0;
}
.loginBody input {
  background-color: rgb(248, 249, 250);
  border: none;
  font-size: 1.1em;
  padding: 8px;
  width: 90%;
  max-width: 300px;
  margin-bottom: 1em;
  border-radius: 10px;
  font-weight: 400;
  outline: none;
  box-shadow: none;
}

.loginBody input:focus,
.loginBody input:active {
  border: 1px solid #f88257;
  box-shadow: 0 0 0 0.2rem rgba(248, 130, 87, 0.2);
}

/* Password input container with toggle button */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 300px;
  margin: 0 auto 1em;
}

.password-input-container > div {
  position: relative;
  width: 100%;
}

.password-input-container input {
  padding-right: 40px; /* Make space for the toggle button */
  width: 100%;
}

.password-toggle-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 16px;
  z-index: 10;
}

.password-toggle-icon i {
  width: 16px;
  height: 16px;
}
.loginAlert {
  width: 90%;
  max-width: 350px;
}

/* Global button border-radius (based on Clear Filter button = 6px) */
.btn,
.loginBody button,
.clear-filters-button,
#addItemBtn {
  border-radius: 6px !important;
}

.loginBody button {
  color: #fff;
  background-color: #f88257;
  font-size: 1.1em;
  padding: 8px;
  width: 90%;
  max-width: 300px;
  margin-bottom: 1em;
  font-weight: 400;
  border: 0px;
  cursor: pointer;
}
.loginBody button:hover {
  background-color: #db5049;
}
.loginBody .loginFooter {
  margin-top: 2em;
  font-weight: 400;
  color: #7b7b7b;
  font-size: 0.9em;
}

.loginBody .loginFooter .license-company {
  font-weight: 400;
  color: #1c1c1c;
}
.dashboardBody {
  margin: 0px;
  padding: 0px;
  height: 100vh;
}
.dashboardBody .navigationLeft {
  background-color: #ffffff;
  float: left;
  width: 80px;
  text-align: center;
  height: 100%;
  margin-right: 0px;
  position: relative;
  border-right: 1px solid #e5e7eb; /* Subtle border to differentiate from content */
  box-shadow: none;
  transition: transform 0.3s ease;
}

/* Header row: branch title + sidebar toggle (toggle visible only at 768px and below) */
.header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-toggle-btn:hover {
  background-color: #f8f9fa;
  color: #f88257;
}

.sidebar-toggle-btn .sidebar-toggle-icon {
  width: 20px;
  height: 20px;
}

.sidebar-toggle-btn .sidebar-toggle-icon svg {
  width: 20px;
  height: 20px;
}

/* Overlay when sidebar is open (only visible at 768px and below, see media query) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.logo-container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #dee2e6;
  padding: 8px 0;
}

.navigationLeft .mainLogo {
  width: 40px;
  height: auto;
  max-width: 60%;
  margin-top: 0;
  object-fit: contain;
}
.navigationLeft .navigationIcon {
  margin: 15%;
  padding: 15px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

/* Default icon color - dark gray */
.navigationLeft .navigationIcon i[data-lucide] {
  color: #1f2937;
}

.navigationLeft .navigationIcon i[data-lucide] svg {
  color: #1f2937;
  stroke: currentColor;
}

.navigationLeft .navigationIcon i[data-lucide] svg * {
  stroke: currentColor;
  fill: none;
}
.navigationLeft .navigationIcon:hover {
  background-color: transparent;
}

/* Hover state - Orange icons */
.navigationLeft .navigationIcon:hover {
  background-color: transparent;
  color: #f88257;
}

.navigationLeft .navigationIcon:hover i[data-lucide] {
  color: #f88257;
}

.navigationLeft .navigationIcon:hover i[data-lucide] svg {
  color: #f88257;
  stroke: currentColor;
}

.navigationLeft .navigationIcon:hover i[data-lucide] svg * {
  stroke: currentColor;
  fill: none;
}

/* Active state - Orange icons */
.navigationLeft .navigationIcon.active {
  background-color: transparent;
  color: #f88257;
}

.navigationLeft .navigationIcon.active i[data-lucide] {
  color: #f88257;
}

.navigationLeft .navigationIcon.active i[data-lucide] svg {
  color: #f88257;
  stroke: currentColor;
}

.navigationLeft .navigationIcon.active i[data-lucide] svg * {
  stroke: currentColor;
  fill: none;
}
.navigationLeft .navigationIcon i {
  font-size: 18px;
  color: #1f2937; /* Dark color for icons on white background */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* Ensure SVG display for Lucide icons */
.dashboardBody .navigationLeft .navigationIcon i[data-lucide] svg {
  display: block;
  margin: 0 auto;
}
.navigationLeft .nav-label {
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f88257;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 1000;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  font-weight: 400;
  pointer-events: none;
}
.navigationLeft .nav-label::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #f88257 transparent transparent;
}
.navigationLeft .navigationIcon:hover .nav-label {
  opacity: 1;
  visibility: visible;
}
/* Special positioning for Copilot label */
.navigationIcon.copiloticon .nav-label {
  left: 130%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1500;
  background-color: #f88257;
  color: white;
  font-weight: bold;
}
/* Ensure the Copilot label appears on hover */
.navigationIcon.copiloticon:hover .nav-label {
  opacity: 1;
  visibility: visible;
}
.navigationLeft .copiloticon {
  position: absolute;
  bottom: 10px;
  left: 0;
}
.navigationLeft .copilotbubble {
  background-color: #f88257;
  text-align: center;
  width: 2em;
  padding-top: 3px;
  height: 26px;
  color: #fff;
  font-size: 13px;
  border-radius: 2em;
  position: absolute;
  top: 0;
  right: 0;
}

.dashboardBody .dashboardContent {
  background-color: #ffffff;
  height: 100%;
  width: calc(100% - 80px);
  float: left;
  margin-left: 0px;
  overflow-y: scroll;
  text-align: left;
  border-left: none;
}
.dashboardBody .header {
  background-color: #ffffff;
  width: 100%;
  margin-left: 0px;
  padding: 8px 15px;
  padding-top: 15px;
  padding-bottom: 8px;
  font-weight: 300;
  margin: 0px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
}
.header .poweredby {
  font-size: 0.8em;
}
.header .profilePic {
  width: 40px;
  height: 40px;
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  padding: 8px;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 10px;
}

.header .profilePic svg {
  width: 1em;
  height: 1em;
}
.header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.dashboardBody .dashboardMainContent {
  padding-left: 2em;
  padding-bottom: 1em;
  overflow: auto;
}

.dashboardBody .sampleDash {
  width: 80%;
  margin-top: 20px;
}

.reservationsList {
  background-color: #fff;
  width: 80%;
  padding: 2em;
  margin-top: 2em;
  margin-right: 2em;
  margin-bottom: 2em;
  border-radius: 15px;
  overflow: auto;
  float: left;
}
.reservationsHeader .titleLeft {
  float: left;
  width: 35%;
  height: 2em;
  margin: 0px;
}
.reservationsHeader .titleLeft h3 {
  color: #f88257;
  font-size: 1.4em;
  font-weight: 400;
}
.reservationsHeader .reservationsFilterRight {
  float: left;
  width: 65%;
  margin: 0px;
  height: 2em;
  padding: 3px;
  text-align: right;
  z-index: 100;
}
.reservationsHeader .reservationsFilterRight .viewtoggle {
  float: right;
}

.viewtoggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 0px;
  width: fit-content;
  margin-left: 10px;
  border: 0.8px solid #c8c8c8;
}

.togglebutton {
  flex: 1;
  padding: 5px 10px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  font-size: 0.9em;
  color: #333;
  border-radius: 10px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.togglebutton img {
  height: 0.9em;
  margin-bottom: 0.1em;
}

.togglebutton.active {
  background-color: #c8c8c8;
  color: white;
}

.reservationsHolder {
  width: 100%;
  float: left;
  margin-top: 10px;
}

.reservationEntry {
  border: 1px #d9d9d9 solid;
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 20px;
  padding-left: 20px;
  min-height: 6em;
  border-radius: 6px;
  overflow: auto;
}
.reservationEntry:hover {
  background-color: #f0f0f0;
}
.reservationEntry .reservationName {
  float: left;
  width: 40%;
}
.reservationEntry .reservationName h4 {
  font-size: 1.2em;
  font-weight: 400;
  text-transform: capitalize;
}
.reservationEntry .reservationName span {
  font-size: 0.9em;
  color: #5b5b5b;
}
.reservationEntry .reservationServices {
  float: left;
  width: 40%;
  font-size: 0.9em;
  height: 100%;
  margin-top: 1.2em;
}
.reservationEntry .reservationStatus {
  float: left;
  width: 20%;
  height: 100%;
  text-align: center;
  margin-top: 1em;
  font-weight: 600;
}
.reservationEntry .reservationStatus .booked {
  color: #f88257;
}
.reservationEntry .reservationStatus .confirmed {
  color: #f88257;
}
.reservationEntry .reservationStatus .ongoing {
  color: #f1c40f;
}
.reservationEntry .reservationStatus .complete {
  color: #27ae60;
}
.reservationEntry .reservationStatus .canceled {
  color: #c0392b;
}
.reservationMetrics {
  float: left;
  width: 15%;
  padding-top: 2em;
  overflow: auto;
}
.reservationMetrics .metricBlock {
  background-color: #fff;
  text-align: center;
  width: 150px;
  padding: 1em;
  padding-bottom: 1.2em;
  border-radius: 10px;
  margin-bottom: 10px;
  margin-right: 15px;
  overflow: auto;
  float: left;
}
.metricBlock .metricTitle h3 {
  font-size: 0.85em;
  margin-bottom: 0px;
  padding: 0px;
  font-weight: 600;
  color: #f88257;
}
.metricBlock .metricTitle span {
  font-size: 0.85em;
  margin-top: 0px;
  color: #f88257;
}
.metricBlock .metricNumTrended {
  font-size: 2em;
  color: #4b4b4b;
}
.metricNumTrended .metricLeft {
  float: left;
  width: 50%;
  text-align: right;
}
.metricNumTrended .metricRight {
  float: left;
  width: 50%;
  text-align: left;
  font-size: 14px;
  padding-top: 1.3em;
  padding-left: 10px;
}
.metricNumTrended .metricRight img {
  width: 14px;
}
.trendup {
  color: #03b47f;
}
.trenddown {
  color: #ff3a3a;
}
.actionHolder {
  margin-top: 20px;
  padding: 15px;
}

.actionHolder .actionItem {
  padding: 15px;
  width: 50%;
  margin-bottom: 15px;
  border-radius: 10px;
  background-color: #fff;
  border: #fff 1.7px solid;
}

.actionHolder .actionItem:hover {
  background-color: #fff7f7;
  cursor: pointer;
  border: #f88257 1.7px solid;
}

.actionItem .actionHeader {
  margin-bottom: 10px;
  height: auto;
}
.actionItem .actionHeader .actionLeft {
  float: left;
  overflow: hidden;
  width: 90%;
}
.actionItem .actionHeader .actionLeft h3 {
  font-size: 1.2em;
  color: #00d393;
}
.actionItem .actionHeader .actionRight {
  float: left;
  height: 1.2em;
  width: 10%;
  text-align: right;
}
.actionItem .actionHeader .actionRight img {
  height: 0.9em;
  margin-top: -10px;
  margin-right: 10px;
}
.actionItem .actionBody {
  font-size: 0.9em;
  color: #4b4b4b;
  padding-bottom: 10px;
  display: block;
}
.actionItem .actionBody h3 {
  color: #4b4b4b;
  font-size: 1.2em;
  font-weight: 400;
  margin-top: 7px;
  display: block;
}

.actionHolder .active {
  border: #f88257 1.7px solid;
}
.actionHolder .active .actionLeft h3 {
  color: #f88257;
}

/* =============== START: COPILOT MODAL DESIGN SYSTEM ============= */
.copilotModalHeader {
  background: linear-gradient(135deg, #f88257 0%, #ff6b6b 100%);
  color: #fff;
  border-radius: 6px 6px 0 0;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Minimized Header Animation */
.copilotModalHeader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* SVG background removed - using Lucide icons instead */
  opacity: 0.1;
  background-size: 30px;
  animation: floatStars 30s linear infinite;
}

/* Modal Container with Sparkles */
.modal-content.copilot-modal {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: visible;
  position: relative;
}

/* Sparkles around the modal */
.modal-content.copilot-modal::before,
.modal-content.copilot-modal::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Top-left sparkle */
.modal-content.copilot-modal::before {
  top: -20px;
  left: -20px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0) 50%
  );
  width: 40px;
  height: 40px;
  animation: sparkle 3s ease-in-out infinite;
}

/* Bottom-right sparkle */
.modal-content.copilot-modal::after {
  bottom: -20px;
  right: -20px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0) 50%
  );
  width: 40px;
  height: 40px;
  animation: sparkle 3s ease-in-out infinite 1.5s;
}

/* Additional Sparkle Elements */
.modal-content.copilot-modal .sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
  pointer-events: none;
}

/* Position sparkles around the modal */
.modal-content.copilot-modal .sparkle:nth-child(1) {
  top: -10px;
  left: 20%;
  animation-delay: 0s;
}

.modal-content.copilot-modal .sparkle:nth-child(2) {
  top: -10px;
  right: 20%;
  animation-delay: 0.5s;
}

.modal-content.copilot-modal .sparkle:nth-child(3) {
  bottom: -10px;
  left: 20%;
  animation-delay: 1s;
}

.modal-content.copilot-modal .sparkle:nth-child(4) {
  bottom: -10px;
  right: 20%;
  animation-delay: 1.5s;
}

.modal-content.copilot-modal .sparkle:nth-child(5) {
  top: 50%;
  left: -10px;
  animation-delay: 0.25s;
}

.modal-content.copilot-modal .sparkle:nth-child(6) {
  top: 50%;
  right: -10px;
  animation-delay: 0.75s;
}

/* Additional sparkles for corners */
.modal-content.copilot-modal .sparkle:nth-child(7) {
  top: -10px;
  left: -10px;
  animation-delay: 0.1s;
}

.modal-content.copilot-modal .sparkle:nth-child(8) {
  top: -10px;
  right: -10px;
  animation-delay: 0.3s;
}

.modal-content.copilot-modal .sparkle:nth-child(9) {
  bottom: -10px;
  left: -10px;
  animation-delay: 0.7s;
}

.modal-content.copilot-modal .sparkle:nth-child(10) {
  bottom: -10px;
  right: -10px;
  animation-delay: 0.9s;
}

/* Upload Button Sparkle Effect */
.copilotFeedback .primaryFeedback {
  position: relative;
  overflow: hidden;
}

.copilotFeedback .primaryFeedback::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0) 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copilotFeedback .primaryFeedback:hover::before {
  opacity: 0.5;
}

.copilotFeedback .primaryFeedback .button-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.copilotFeedback .primaryFeedback:hover .button-sparkle {
  animation: buttonSparkle 1s ease-in-out forwards;
}

.copilotFeedback .primaryFeedback .button-sparkle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0.1s;
}

.copilotFeedback .primaryFeedback .button-sparkle:nth-child(2) {
  top: 20%;
  right: 20%;
  animation-delay: 0.2s;
}

.copilotFeedback .primaryFeedback .button-sparkle:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 0.3s;
}

.copilotFeedback .primaryFeedback .button-sparkle:nth-child(4) {
  bottom: 20%;
  right: 20%;
  animation-delay: 0.4s;
}

@keyframes buttonSparkle {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes floatStars {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 300px 300px;
  }
}

/* Modal Header Content */
.copilotModalHeader h5 {
  display: flex;
  align-items: center;
  font-size: 1.4em;
  font-weight: 600;
  margin: 0;
  position: relative;
  z-index: 1;
}

.copilotModalHeader h5 img {
  height: 1.2em;
  margin-right: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.copilotModalHeader .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.copilotModalHeader .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Recommendation Section */
.copilotRecommendation {
  padding: 25px;
  background: #fff;
  position: relative;
}

.copilotRecommendation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 130, 87, 0.3),
    transparent
  );
}

.copilotRecommendation .smallBreakdown {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  border-left: 4px solid #f88257;
}

/* Feedback Section */
.copilotFeedback {
  padding: 25px;
  text-align: center;
  background: #f8f9fa;
}

.copilotFeedback h3 {
  color: #f88257;
  font-size: 1.4em;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.copilotFeedback h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f88257, transparent);
}

/* Input Fields */
.copilotFeedback input {
  width: 80%;
  max-width: 300px;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1.2em;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.copilotFeedback input:focus {
  border-color: #f88257;
  box-shadow: 0 0 0 3px rgba(248, 130, 87, 0.1);
  outline: none;
}

/* Buttons */
.copilotFeedback .primaryFeedback {
  background: linear-gradient(135deg, #f88257 0%, #ff6b6b 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(248, 130, 87, 0.3);
}

.copilotFeedback .primaryFeedback:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 130, 87, 0.4);
}

.copilotFeedback .secondaryFeedback {
  color: #6c757d;
  background: none;
  border: none;
  padding: 8px 20px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.copilotFeedback .secondaryFeedback:hover {
  color: #f88257;
}

/* Modal Animation */
.modal.fade .modal-dialog.copilot-dialog {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog.copilot-dialog {
  transform: scale(1);
}

/* =============== END: COPILOT MODAL DESIGN SYSTEM ============= */

/* At 768px and below: sidebar hidden by default, toggle opens it with smooth animation */
@media (max-width: 768px) {
  .sidebar-toggle-btn {
    display: flex;
  }

  .dashboardBody .navigationLeft {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    float: none;
    z-index: 1051;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .dashboardBody .navigationLeft.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .dashboardBody .dashboardContent {
    width: 100%;
  }

  .dashboardBody.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 435px) {
  .dashboardBody .dashboardContent {
    width: 100%;
  }
}

/* ######## Table header - no background (applies to all tables) ########## */
table thead th,
table th {
  background-color: transparent;
}

/* ######## Transaction List Table ########## */
/* Table Styles */
#transactiontable {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", sans-serif;
}

#transactiontable th,
#transactiontable td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

/* Column Widths */
#transactiontable th:nth-child(1),
#transactiontable td:nth-child(1) {
  width: 10%; /* Date and Time */
  line-height: 1.1em;
  font-size: 0.8em;
  color: #5a5a5a;
}

#transactiontable th:nth-child(2),
#transactiontable td:nth-child(2) {
  width: 20%; /* Name */
}

#transactiontable th:nth-child(3),
#transactiontable td:nth-child(3) {
  width: 30%; /* Services */
}

#transactiontable .usericon {
  height: 1em;
  margin-top: -2px;
}

#transactiontable th:nth-child(4),
#transactiontable td:nth-child(4) {
  width: 10%; /* Status */
}

#transactiontable th:nth-child(5),
#transactiontable td:nth-child(5) {
  width: 15%; /* Payment Method */
}

#transactiontable th:nth-child(6),
#transactiontable td:nth-child(6) {
  width: 15%; /* Amount */
  text-align: right;
  padding-right: 15px;
}

/* Status Styles */
#transactiontable .tableAmount {
  border: 0px;
  margin: 0px;
  padding: 0px;
  padding-right: 15px;
  width: 7em;
  text-align: right;
}

/* Ensure table cells in the amount column still have bottom borders */
#transactiontable td.tableAmount {
  border-bottom: 1px solid #dee2e6 !important;
}

#transactiontable .status {
  text-transform: capitalize;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: #fafafa;
}

#transactiontable .status.ongoing {
  color: #ffa500; /* Orange for Pending */
}

#transactiontable .status.confirmed {
  color: #5b5b5b;
}

#transactiontable .status.complete {
  color: #28a745; /* Green for Completed */
}

#transactiontable .status.canceled {
  color: #dc3545; /* Red for Cancelled */
}

#transactiontable .cancellationReason {
  font-size: 0.7em;
  color: #5c5c5c;
  margin-top: 2px;
  font-style: italic;
}

#transactiontable .tableTotal {
  font-size: 1.15em;
  background-color: #f8f8f8;
}

#transactiontable .tableTotal td {
  border-bottom: 1px solid #dee2e6;
}

#transactiontable .tableTotal .alignRight {
  text-align: right;
}

#transactiontable .tableTotal span {
  font-weight: 600;
  padding-right: 5px;
}
#transactiontable .tableORinput {
  width: 5em;
  padding: 0px;
  margin: 0px;
  text-align: left;
  border: 0px;
}
#transactiontable .tableORinput:active {
  border-bottom: 1px solid #b6b6b6;
}
#transactiontable .tableORinput:hover {
  border-bottom: 1px solid #b6b6b6;
}

.cashBreakdown {
  text-align: right;
}
.cashBreakdown table {
  float: right;
  margin-right: 5%;
  margin-top: 20px;
  color: #626262;
  font-size: 0.9em;
}

.cashBreakdown table td:nth-child(2) {
  text-align: left;
  padding-left: 15px;
}

/* ### CALENDAR BLOCK ### */

.calendarControls {
  padding-top: 15px;
  overflow: auto;
  padding-bottom: 5px;
}
.calendarControls .calendarLegend {
  height: 15px;
  margin-left: 90px;
  margin-top: 10px;
}
.calendarControls .buttonSet {
  text-align: right;
  padding-right: 40px;
}
.calendarControls .buttonSet button {
  background-color: #c7465c;
  border: 0px;
  font-size: 0.9em;
  padding: 5px;
  padding-left: 12px;
  padding-right: 12px;
  color: #fff;
  border-radius: 3px;
}
.calendarControls .buttonSet input {
  border: 1px #c7465c solid;
  font-size: 0.9em;
  padding: 4px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 3px;
}

/* Duplicate .navigationLeft styles removed - main sidebar styles are at line 134 */

.calendarHolder {
  overflow: auto;
  margin-top: 50px;
  position: relative;
  display: block;
  height: 430px;
}

.calendarBlock {
  z-index: 0;
  width: 100%;
}
.calendar {
  font-size: 0.9em;
  padding: 5px;
  padding-bottom: 7px;
  border: #e3e3e3 1px solid;
  overflow: auto;
  width: 940px;
  border-radius: 5px;
}
.calendar table tr {
  height: 40px;
  max-height: 40px;
}
.calendar .calendarTime {
  margin-top: 18px;
  padding: 0px;
  text-align: right;
  height: auto;
  overflow: auto;
  float: left;
  color: #808080;
  font-weight: 500;
  font-size: 0.9em;
  width: 70px;
  padding-right: 2px;
  position: relative;
}
.calendar .calendarTime table {
  float: right;
  margin-right: 5px;
}
.calendar .calendarSchedule {
  padding: 0px;
  text-align: left;
  height: auto;
  overflow: auto;
  overflow-x: scroll;
  float: left;
  max-width: 930px;
  -webkit-overflow-scrolling: touch;
  overflow-x: scroll;
  white-space: nowrap; /* Optional for proper horizontal scrolling */
}

.calendar .calendarSchedule table {
  width: 850px;
  text-align: center;
}
.calendar .calendarSchedule .scheduleHeader {
  font-weight: 600;
  color: #c7465c;
}
.calendar .calendarSchedule td {
  border-bottom: 1px #bfbfbf solid;
  max-height: 25px;
  overflow: hidden;
}

.entryconfirmed {
  border-left: #ff7a00 2px solid;
}
.entryongoing {
  border-left: #f8bd00 2px solid;
}
.entrycomplete {
  border-left: #34be5a 2px solid;
}
.entrycanceled {
  border-left: #d94c64 2px solid;
}

.entry {
  background-color: #ededed;
  position: absolute;
  min-height: 25px;
  width: 180px;
  z-index: 100;
  /* margin-top: -12px; */
  text-align: left;
  font-size: 1em;
  padding-left: 10px;
  overflow: scroll;
  font-weight: 500;
  border-top: 1px solid #fff;
  scrollbar-width: none; /* Hide Scrollbar in Firefox */
  -ms-overflow-style: none; /* Hide Scrollbar in Internet Explorer 10+ */
}

.entry::-webkit-scrollbar {
  display: none; /* Hide Scrollbar in Chrome, Safari, and Edge */
}

.entry h3 {
  padding-top: 8px;
  font-size: 1em;
  margin-bottom: -5px;
}
.entry h3 img {
  width: 14px;
  float: left;
  padding-right: 2px;
  margin-top: 1px;
}
.entry .listofservices {
  margin-top: 3px;
  font-size: 0.85em;
  line-height: 1.1em;
  padding-left: 4px;
  padding-right: 6px;
}
.entry .entryNotes {
  font-size: 0.85em;
  padding-left: 4px;
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 1.1em;
  font-style: italic;
}
.entry .entryNotes strong {
  font-weight: 600;
  color: #c7465c;
}
.entry .blockTimedisplay {
  font-size: 0.7em;
  color: #323232;
}

/* ####### END: CALENDAR BLOCK ######### */
/* ####### CALENDAR MODAL DESIGN ####### */
.titleLeft h3 {
  float: left;
}
.addReservationBtn {
  background-color: #efefef;
  color: #585858;
  float: left;
  font-weight: 400;
  border: 0px;
  border-radius: 7px;
  font-size: 0.8em;
  padding: 2px;
  padding-left: 13px;
  padding-right: 13px;
  margin-left: 10px;
  margin-top: 2px;
}
.addReservationBtn:hover {
  background-color: #e3e3e3;
  cursor: pointer;
}

/* Duplicate .entry styles removed - using definitions from lines 1226-1280 */

/* ###### MODAL ####### */
/* Center modal in viewport (vertical + horizontal) - only when shown so we don't override display:none when closed */
.modal {
  border-radius: 6px;
}

.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem;
}

.modal-dialog {
  margin: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  transform-origin: center center;
}

/* All modals: shadcn-style pop from center (scale + fade), override Bootstrap slide-from-top */
.modal.fade .modal-dialog {
  transform: scale(0.96) !important;
  opacity: 0;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease-out;
}

.modal.show.fade .modal-dialog {
  transform: scale(1) !important;
  opacity: 1;
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
  border: none !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.125),
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Transaction modal background */
#transactionModal .modal-content {
  background-color: #ffffff;
  border-radius: 12px;
}

/* Transaction modal sizing + equal columns (grid) */
#transactionModal .transaction-modal-dialog {
  width: 90vw;
  max-width: 1400px;
}

#transactionModal .transaction-modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 100%;
}

/* Make borders match old Bootstrap col borders */
#transactionModal .transaction-modal-col.border-right {
  border-right: 1px solid #dee2e6;
}

/* At 1024px and below: single column + scrollable modal */
@media (max-width: 1024px) {
  #transactionModal .transaction-modal-dialog {
    width: 95vw;
    max-width: none;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
  }
  #transactionModal .modal-content {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #transactionModal .modal-body {
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
  }
  #transactionModal .transaction-modal-columns {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  #transactionModal .transaction-modal-col.border-right {
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }
  #transactionModal .transaction-modal-col:last-child {
    border-bottom: none;
  }
  /* Prevent video column from collapsing: give containers and wrappers explicit height so video shows */
  #transactionModal .transaction-modal-col .video-players-container {
    height: auto !important;
    min-height: 0;
    flex: 0 0 auto !important;
  }
  #transactionModal .transaction-modal-col .video-player-wrapper {
    flex: 0 0 auto !important;
    min-height: 200px !important;
  }
  #transactionModal .transaction-modal-col .video-player-wrapper video {
    height: auto !important;
    max-height: 320px;
    object-fit: contain;
  }
}
.modalHeader {
  background-color: #f8f8f8;
}
.modalHeader h4 {
  font-size: 1.3em;
}
.modalHeader .statusIndicator {
  margin-top: 5px;
  font-size: 0.8em;
  color: #fff;
  text-align: center;
  padding: 4px;
  border-radius: 1em;
}
.modalConfirmed {
  background-color: #ff7a00;
}
.modalOngoing {
  background-color: #f8bd00;
}
.modalComplete {
  background-color: #34be5a;
}
.modalCanceled {
  background-color: #d94c64;
}

.modalHeader .dateTime {
  font-family: "DM Sans", sans-serif;
  font-size: 0.8em;
  margin-top: -6px;
}

.modalBlock {
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #bcbcbc;
}
.modalBlockNoline {
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 0px;
}
.modalBlock h3 {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0px;
}
.modalBlock #modalLogs {
  padding: 10px;
  font-size: 0.75em;
  height: 100px;
  overflow-y: scroll;
}
.modalFooterTotal {
  color: #c7465c;
  font-size: 0.8em;
  margin-top: -8px;
}

.modalFooterBtns {
  text-align: right;
}
.modalFooterBtns .btn-primary {
  background-color: #f88257; /* Primary button color */
  border: 0px;
}
.modalFooterBtns .btn-primary:hover {
  background-color: #e86738;
}
.modalFooterBtns .btn-secondary {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  color: #212529;
  font-weight: 300;
}
.modalFooterBtns .btn-secondary:hover {
  background-color: #f88257;
  color: white;
}
.modalFooterBtns .btn-secondary img {
  height: 1em;
}
textarea::-webkit-scrollbar {
  width: 10px;
}
textarea::-webkit-scrollbar-thumb {
  background-color: #ccc;
}
#customerServices {
  width: 100%;
  border: 0px;
  padding: 0px;
  overflow: visible; /* hide the extra content */
  min-height: 5em; /* set a minimum height */
}
#customerServices:focus {
  overflow: auto; /* show the extra content on focus */
}
#addRelatedReservationModal {
  overflow: scroll;
}
/* .addReservationModal .modalHeader{
    background-color:#C7465C;
    color: #fff;
} */
.addReservationModal .inputLabel {
  background-color: #d8d8d8;
  font-size: 0.7em;
  color: #585858;
  padding: 3px;
  padding-left: 8px;
  padding-bottom: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  width: 10em;
  margin-top: 15px;
  margin-bottom: -3px;
}
.addReservationModal .modalBlock input {
  font-size: 0.9em;
  width: 95%;
  border-radius: 4px;
  border: 1px #6a6a6a solid;
  margin-bottom: 2px;
  background-color: #fff;
  padding: 5px;
  padding-left: 8px;
}
.addReservationModal .modalBlock textarea {
  font-size: 0.9em;
  width: 95%;
  border-radius: 4px;
  border: 1px #6a6a6a solid;
  margin-bottom: 2px;
  background-color: #fff;
  padding: 5px;
  padding-left: 8px;
}
.addReservationModal .modalBlock select {
  font-size: 0.9em;
  width: 95%;
  border-radius: 4px;
  border: 1px #6a6a6a solid;
  margin-bottom: 2px;
  background-color: #fff;
  padding: 5px;
  padding-left: 8px;
  padding-right: 8px;
}
#detailsPrice {
  color: #c7465c;
  font-size: 1.3em;
  border: 0px;
  width: 120px;
  padding: 0px;
  margin-top: -5px;
}
.checkboxBlock {
  text-align: left;
  height: auto;
  overflow: auto;
  margin-bottom: -14px;
}
.checkboxBlock input {
  float: left;
  clear: none;
  width: 10px;
  margin-top: 2px;
  margin-right: 5px;
}
.checkboxBlock div {
  float: left;
  clear: none;
  width: 80%;
  margin-top: -2px;
}
.bookingNotice {
  margin-top: 10px;
  margin-bottom: 0px;
}
.form_error {
  display: none;
}
.loadingElement {
  font-size: 0.8em;
  float: right;
  font-weight: 400;
  overflow: auto;
  height: auto;
}
.loadingElement .saving {
  color: #d73600;
  display: none;
}
.saving {
  animation: fade-in-out-animation 2s infinite;
}

@keyframes fade-in-out-animation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.loadingElement .saved {
  color: #00a452;
  display: none;
}
#formconnect_mainbooking {
  padding-bottom: 20px;
}
#relatedbookingdetails {
  display: none;
}
#notifyrelateduserblock {
  display: none;
}
#connectedtoSelector {
  display: none;
}
.tooltiptime {
  display: none;
  font-size: 0.7em;
  padding-left: 4px;
  color: #323232;
}

.transactionbreakdown {
  background-color: #fff;
}
.transactionbreakdown table {
  width: 94%;
  margin: 3%;
}
.transactionbreakdown table {
  border: 0px;
}
.transactionbreakdown table tr {
  border: 1.2px solid #dadada;
  font-size: 0.8em;
  line-height: 1.1em;
  color: #323232;
}
.transactionbreakdown table td {
  padding: 10px;
  padding-left: 12px;
  padding-bottom: 13px;
}
.transactionbreakdown h5 {
  font-size: 1.2em;
  margin-bottom: 2px;
}
.transactionbreakdown table tr td:nth-child(2) {
  width: 30%;
  text-align: center;
}
.transactionbreakdown table input {
  width: 100%;
  text-align: right;
  font-size: 1em;
  border: 0px;
}
.grandTotal {
  text-align: right;
  margin-right: 4%;
}
.grandTotal input {
  text-align: right;
  border: 0px;
}
.paymentTypeselect {
  margin-top: 20px;
}
.paymentTypeselect div {
  font-size: 0.9em;
  padding: 8px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 6px;
  float: right;
  border: 1px #c2c2c2 solid;
  background: #f4f4f4;
  margin-right: 10px;
  cursor: pointer;
}
.receiptNo div {
  font-size: 0.8em;
}
.receiptNo input {
  width: 150px;
  font-size: 0.8em;
  padding: 0px;
  border: 0px;
  border-bottom: #bfbfbf solid 1px;
}
.configBlock input {
  width: 100%;
}

#refreshBtn {
  background-color: #a4a4a4;
  padding-left: 8px;
  padding-right: 8px;
}
#refreshBtn img {
  width: 20px;
}
.deleteIcon {
  height: 1em;
  margin-left: 8px;
  margin-top: -3px;
}

/* ####### END: CALENDAR MODAL DESIGN #### */
.payrollHeader {
  display: block;
  overflow: auto;
  padding-bottom: 25px;
}

.payrollHeader .titleLeft {
  float: left;
  width: 35%;
  height: 2em;
  margin: 0px;
}
.payrollHeader .titleLeft h3 {
  color: #f88257;
  font-size: 1.4em;
  font-weight: 400;
}
.payrollHeader .reservationsFilterRight {
  float: left;
  width: 65%;
  margin: 0px;
  height: 2em;
  padding: 3px;
  text-align: right;
  z-index: 100;
}
.payrollHeader .reservationsFilterRight .viewtoggle {
  float: right;
}

.payrollBlock {
  width: 100%;
  max-width: 750px;
  margin-bottom: 20px;
  background-color: #ffffff;
  padding-bottom: 15px;
  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
  border-radius: 12px;
  border: 1px #f1f1f1 solid;
  display: block;
}
.payrollTable {
  width: 100%;
  font-size: 0.85em;
}
.payrollTable th {
  color: #6f6f6f;
  padding: 5px;
  padding-left: 7px;
  font-weight: 500;
}
.payrollTable tr {
  border-bottom: 1px #d1d1d1 solid;
}
.payrollTable td {
  padding: 5px;
  padding-left: 7px;
}
.payrollTable .employeeRow {
  font-size: 1.1em;
  font-weight: 600;
  padding-left: 7px;
  background-color: #f4f4f4;
}

.payrollTable .timeinput {
  border: 0px;
}

.payrollTable .hourinput,
.minuteinput {
  border: 0px;
  padding: 0px;
  width: 1.3em;
  text-align: right;
}

/* ######### START: PAYROLL ######### */

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

/* Badge rounding (global) */
.badge {
  border-radius: 10px !important;
}

.small-pill {
  font-size: 0.7em;
  margin-left: 5px;
  padding: 2px 2px;
}

.payrollTable button {
  background-color: #f8f8f8;
  color: #3a87f2;
  border: 0px;
  border-radius: 4px;
  font-size: 0.75em;
  padding: 1px 10px;
  margin: 0 4px;
  font-weight: normal;
}

.payrollTable button:hover {
  background-color: #efefef;
  cursor: pointer;
}

.payrollTable button.activateBtn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
}

.payrollTable button.deactivateBtn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
}

.payrollTable button.activateBtn:hover {
  background-color: #45a049;
}

.payrollTable button.deactivateBtn:hover {
  background-color: #da190b;
}

/* ######### END: PAYROLL ######### */

/* ######### START: ACCOUNTING ######### */

.accountingHeader {
  display: block;
  overflow: auto;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accountingHeader .titleLeft {
  float: left;
  width: 35%;
  height: 2em;
  margin: 0px;
}
.accountingHeader .titleLeft h3 {
  color: #f88257;
  font-size: 1.4em;
  font-weight: 400;
}

.accountingHeader .date-range-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accountingHeader .date-range-filter label {
  font-size: 0.85em;
  color: #585858;
}

.accountingHeader .date-range-filter input[type="date"] {
  border: 1px solid #c8c8c8;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.85em;
}

.accountingBlock {
  width: 100%;
  max-width: 750px;
  margin-bottom: 20px;
  background-color: #ffffff;
  padding-bottom: 15px;
  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
  border-radius: 12px;
  border: 1px #f1f1f1 solid;
  display: block;
}
.accountingTable {
  width: 100%;
  font-size: 0.85em;
}
.accountingTable th {
  color: #6f6f6f;
  padding: 5px;
  padding-left: 7px;
  font-weight: 500;
}
.accountingTable tr {
  border-bottom: 1px #d1d1d1 solid;
}
.accountingTable td {
  padding: 5px;
  padding-left: 7px;
}
.accountingTable .summary-row {
  background-color: #f8f8f8;
}
.accountingTable .balance-row {
  background-color: #f0f7ff;
  font-weight: 600;
}

.accountingTable button {
  background-color: #f8f8f8;
  color: #3a87f2;
  border: 0px;
  border-radius: 4px;
  font-size: 0.75em;
  padding: 1px 10px;
  margin: 0 4px;
  font-weight: normal;
}

.accountingTable button:hover {
  background-color: #efefef;
  cursor: pointer;
}

.accountingTable button.btn-danger {
  color: #dc3545;
}

.noaccountingresult {
  text-align: center;
  color: #888;
  padding: 20px;
  font-style: italic;
}

/* ######### END: ACCOUNTING ######### */

/* Accounting Tabs Styling */
.accounting-tabs {
  margin-top: 15px;
  margin-bottom: 20px;
  clear: both;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accounting-tabs .viewtoggle {
  width: auto;
  display: inline-flex;
  margin-left: 0;
}

.accounting-tabs .togglebutton {
  min-width: 100px;
  text-align: center;
  font-weight: 500;
}

.accounting-tabs .togglebutton.active {
  background-color: #f88257;
  color: white;
}

/* Tab Actions Styling */
.tab-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.secondary-action {
  padding: 0 15px;
}

.date-range-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-range-filter label {
  font-size: 0.85em;
  color: #585858;
}

.date-range-filter input[type="date"] {
  border: 1px solid #c8c8c8;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.85em;
}

.filter-btn,
.add-action-btn {
  background-color: #f88257;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 0.85em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-btn:hover,
.add-action-btn:hover {
  background-color: #e76a3a;
}

.add-action-btn {
  padding: 6px 15px;
  font-weight: 500;
}

/* ######### END: ACCOUNTING ######### */

/* Text alignment helpers - Removed duplicate Bootstrap classes */
/* .text-right and .text-muted are provided by Bootstrap */

.small {
  font-size: 0.875em;
}

/* Table customizations for Revenue section */
.revenue-table th,
.revenue-table td,
#expensestable th,
#expensestable td {
  vertical-align: middle;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

#expensestable {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", sans-serif;
}

/* Column widths for expenses table */
#expensestable th:nth-child(1),
#expensestable td:nth-child(1) {
  width: 12%; /* Date */
  line-height: 1.1em;
  font-size: 0.8em;
  color: #5a5a5a;
}

#expensestable th:nth-child(2),
#expensestable td:nth-child(2) {
  width: 15%; /* Category */
}

#expensestable th:nth-child(3),
#expensestable td:nth-child(3) {
  width: 20%; /* Vendor/Payee */
}

#expensestable th:nth-child(4),
#expensestable td:nth-child(4) {
  width: 38%; /* Note */
}

#expensestable th:nth-child(5),
#expensestable td:nth-child(5) {
  width: 15%; /* Amount */
  text-align: right;
  padding-right: 15px;
}

#expensestable .tableAmount {
  border: 0px;
  margin: 0px;
  padding: 0px;
  padding-right: 15px;
  width: 7em;
  text-align: right;
}

/* Ensure table cells in the amount column still have bottom borders */
#expensestable td.tableAmount {
  border-bottom: 1px solid #dee2e6 !important;
}

#expensestable .tableTotal {
  font-size: 1.15em;
  background-color: #f8f8f8;
}

#expensestable .tableTotal td {
  border-bottom: 1px solid #dee2e6;
}

#expensestable .tableTotal .alignRight {
  text-align: right;
}

#expensestable .tableTotal span {
  font-weight: 600;
  padding-right: 5px;
}

.revenue-table .btn-sm,
#expensestable .btn-sm {
  font-size: 0.75em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.2rem;
  background-color: #f8f8f8;
  color: #3a87f2;
  border: 0px;
  margin: 0 2px;
}

.revenue-table .btn-sm:hover,
#expensestable .btn-sm:hover {
  background-color: #efefef;
  cursor: pointer;
}

.revenue-table .btn-danger,
#expensestable .btn-danger {
  color: #dc3545;
}

/* Card styling for summary sections - Removed duplicate Bootstrap classes */
/* .card, .card-body, .shadow-sm, .mb-3, .mb-2, .mt-4, .row, .col-md-6, .table-responsive are provided by Bootstrap */

.table-sm td,
.table-sm th {
  padding: 0.3rem;
}

/* Tab Content Styling */
.tab-content {
  transition: opacity 0.3s ease;
  width: 100%;
}

.tab-content.fade {
  opacity: 0;
  display: none;
}

.tab-content.fade.show {
  opacity: 1;
  display: block;
}

/* Tax Calendar and Reminders Styling */
.tax-calendar .list-group-item {
  padding: 10px;
  margin-bottom: 5px;
  border-left: none;
  border-right: none;
  border-radius: 4px !important;
}

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

.badge.bg-warning {
  background-color: #ffc107 !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
}

.badge.text-white {
  color: #fff !important;
}

.badge.text-dark {
  color: #212529 !important;
}

.badge.rounded-pill {
  border-radius: 50rem !important;
  padding: 4px 8px;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.tax-note {
  background-color: #f8f9fa;
  border-left-width: 4px !important;
}

/* Border utilities - Removed duplicate Bootstrap classes */
/* .border-warning, .border-info, .border-success, .border-3 are provided by Bootstrap */

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

/* Tax table styling */
#taxestable {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", sans-serif;
}

#taxestable th,
#taxestable td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

/* Column widths for tax table */
#taxestable th:nth-child(1),
#taxestable td:nth-child(1) {
  width: 15%; /* Date */
  line-height: 1.1em;
  font-size: 0.8em;
  color: #5a5a5a;
}

#taxestable th:nth-child(2),
#taxestable td:nth-child(2) {
  width: 25%; /* Tax/Form */
}

#taxestable th:nth-child(3),
#taxestable td:nth-child(3) {
  width: 45%; /* Note */
}

#taxestable th:nth-child(4),
#taxestable td:nth-child(4) {
  width: 15%; /* Amount */
  text-align: right;
  padding-right: 15px;
}

#taxestable .tableAmount {
  border: 0px;
  margin: 0px;
  padding: 0px;
  padding-right: 15px;
  width: 7em;
  text-align: right;
}

/* Ensure table cells in the amount column still have bottom borders */
#taxestable td.tableAmount {
  border-bottom: 1px solid #dee2e6 !important;
}

#taxestable .tableTotal {
  font-size: 1.15em;
  background-color: #f8f8f8;
}

#taxestable .tableTotal td {
  border-bottom: 1px solid #dee2e6;
}

#taxestable .tableTotal .alignRight {
  text-align: right;
}

#taxestable .tableTotal span {
  font-weight: 600;
  padding-right: 5px;
}

/* ######### FINANCIAL METRICS STYLES ######### */

.financial-metric {
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 110px;
  border-radius: 6px;
  padding: 15px;
  background-color: #fff;
}

.financial-metric-title {
  text-align: left;
  margin-bottom: 5px;
}

.financial-metric-title h3 {
  color: #f88257;
  font-size: 1.1em;
  margin-bottom: 2px;
  font-weight: 500;
}

.financial-metric-title span {
  color: #888;
  font-size: 0.85em;
}

.financial-metric-value {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.financial-metric-amount {
  font-size: 1em;
  font-weight: 500;
  color: #333;
  flex-grow: 1;
}

.financial-metric-trend {
  display: inline-flex;
  align-items: center;
  font-size: 0.75em;
  margin-left: 5px;
  position: relative;
  top: -5px;
}

.financial-metric-trend img {
  height: 12px;
  margin-left: 2px;
}

.financial-metric-trend.up {
  color: #03b47f;
}

.financial-metric-trend.down {
  color: #ff3a3a;
}

/* Accounting List Styling */
.accountingList {
  background-color: #fff;
  width: 95%; /* Wider than reservationsList's 80% */
  padding: 2em;
  margin-top: 2em;
  margin-right: 2em;
  margin-bottom: 2em;
  border-radius: 15px;
  overflow: auto;
  float: left;
}

/* Override width only when both classes are present */
.accountingList.reservationsList {
  width: 95%;
}

/* Alert Modal Styles */
#alertModal .modal-content {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
}

#alertModal .modal-header {
  padding: 1.5rem;
  position: relative;
  border-bottom: none;
}

#alertModal .modal-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

#alertModal .modal-title {
  margin-left: 3rem;
  font-weight: 600;
  color: #2c3e50;
}

#alertModal .modal-body {
  padding: 0 1.5rem 1.5rem;
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.5;
}

#alertModal .modal-footer {
  padding: 0 1.5rem 1.5rem;
  border-top: none;
}

#alertModal .btn-primary {
  background: #3498db;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#alertModal .btn-primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

#alertModal .close {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#alertModal .close:hover {
  opacity: 1;
}

/* Copilot Facility Recommendation 
TODO: For removal later on */
.copilotFacilityRecommendation {
  padding: 20px;
}

.copilotFacilityRecommendation .cctvHolder {
  margin-top: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

.copilotFacilityRecommendation .cctvImage {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px 6px 0 0;
}

.copilotFacilityRecommendation .cctvAnnotation {
  padding: 15px;
  background: #f1f3f5;
  color: #495057;
  font-size: 0.8em;
  line-height: 1.4;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.copilotFacilityRecommendation .cctvAnnotation .annotationIcon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.copilotFacilityRecommendation .cctvAnnotation span {
  flex: 1;
}

.payrollTable input[type="number"].hour-input,
.payrollTable input[type="number"].minute-input {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.9em;
  text-align: center;
  background-color: #f8f9fa;
}

.payrollTable input[type="number"].hour-input:focus,
.payrollTable input[type="number"].minute-input:focus {
  outline: none;
  border-color: #3a87f2;
  background-color: #fff;
}

/* Remove spinner buttons from number inputs */
.payrollTable input[type="number"]::-webkit-inner-spin-button,
.payrollTable input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.payrollTable input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Saving Indicator */
.saving-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.saving-indicator.saved {
  background-color: #2196f3;
}

.saving-text {
  display: inline-block;
  margin-right: 8px;
}

/* =============== START: COPILOT MODAL DESIGN SYSTEM ============= */
/* ... existing code ... */

/* Copilot Action Confirmation Modal */
.copilotProcessing {
  text-align: center;
  padding: 40px;
  display: none;
}

.copilotProcessing .processingIcon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border: 4px solid #f88257;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.copilotProcessing h3 {
  color: #f88257;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.copilotProcessing p {
  color: #666;
  margin-bottom: 20px;
}

.copilotSuccess {
  text-align: center;
  padding: 40px;
  display: none;
}

.copilotSuccess .successIcon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #f88257 0%, #ff6b6b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(248, 130, 87, 0.3);
}

.copilotSuccess h3 {
  color: #f88257;
  margin-bottom: 10px;
  font-size: 1.5em;
  position: relative;
  display: inline-block;
}

.copilotSuccess h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f88257, transparent);
}

.copilotSuccess p {
  color: #666;
  margin-bottom: 20px;
}

/* Lucide icon animation for loading spinners */
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Smaller icons for buttons in transaction modal */
#quickApproveBtn i[data-lucide],
.quick-actions .btn-outline-dark i[data-lucide],
#addItemBtn i[data-lucide] {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Match toast loader icon size for SVGs */
#quickApproveBtn svg,
.quick-actions .btn-outline-dark svg,
#addItemBtn svg {
  width: 14px;
  height: 14px;
}

/* Ensure buttons use flexbox for proper icon alignment */
#quickApproveBtn,
.quick-actions .btn-outline-dark,
#addItemBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Add Item Button - subtle border, black text (outline style) */
#addItemBtn {
  background-color: white !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

#addItemBtn:hover {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}

#addItemBtn:active {
  background-color: #e9ecef !important;
}

/* Quick-actions outline buttons - subtle border, black text */
.quick-actions .btn-outline-dark {
  background-color: white !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
}
.quick-actions .btn-outline-dark:hover {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}

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

.copilotProcessing.show {
  display: block;
}

.copilotSuccess.show {
  display: block;
}

/* =============== END: COPILOT MODAL DESIGN SYSTEM ============= */

/* Unposted transaction styles */
.unposted-transaction {
  background-color: #f8f8f8;
  color: #666;
}

.unposted-transaction td {
  border-bottom: 1px solid #e0e0e0;
}

.unposted-amount-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.unposted-amount {
  width: 100px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: right;
  background-color: #fff;
}

.unposted-actions {
  display: flex;
  gap: 5px;
  position: relative;
}

.btn-accept,
.btn-reject {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-accept {
  background: linear-gradient(135deg, #f88257, #ff6b6b);
  box-shadow: 0 2px 4px rgba(248, 130, 87, 0.3);
}

.btn-reject {
  background-color: #999;
}

.btn-accept:hover {
  background: linear-gradient(135deg, #ff6b6b, #f88257);
  transform: scale(1.1);
}

.btn-reject:hover {
  background-color: #777;
}

/* AI-powered button animation */
.btn-accept::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: sparkle 2s infinite;
  opacity: 0;
}

.btn-accept::after {
  content: "✨";
  position: absolute;
  font-size: 8px;
  animation: float 2s infinite;
  opacity: 0;
}

@keyframes sparkle {
  0% {
    transform: rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) rotate(360deg);
    opacity: 0;
  }
}

/* AI Fridge Transaction Processing Styles - Optimized for Mass Processing */
.fridge-transaction-content {
  padding-top: 20px;
  padding-right: 20px;
  max-width: 100%;
  font-size: 13px;
}

/* Compact Header */
.batch-header {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.batch-header h3 {
  font-weight: 600;
  font-size: 1.1rem;
}

.batch-header .header-left h3 {
  margin-bottom: 12px !important;
}

.shortcuts-bar {
  display: flex;
  gap: 12px;
}

.shortcut-item {
  font-size: 11px;
  color: #6c757d;
}

.shortcut-item kbd {
  background: #f88257;
  color: white;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 10px;
  margin-right: 2px;
}

.batch-controls .batch-btn {
  font-size: 12px;
  padding: 4px 8px;
  font-weight: 600;
}

.status-counters {
  text-align: center;
}

.counter {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #f88257;
}

.counter.pending-counter {
  color: #fd7e14;
  font-weight: 600;
  font-size: 16px;
  margin-right: -10px;
}

/* Date Filter - Shadcn UI Style */
.date-filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Dashboard filters wrap below 1024px */
@media (max-width: 1024px) {
  .date-filter-container {
    flex-wrap: wrap;
  }
  .date-filter-wrapper {
    flex-shrink: 0;
  }
}

.date-filter-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.date-filter-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.2;
  white-space: nowrap;
}

.date-filter-input-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.date-filter-input {
  height: 36px;
  width: 300px;
  padding: 8px 36px 8px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: transparent;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  cursor: pointer;
}

/* Make text visible for search input (text type) */
#customerSearch.date-filter-input,
.date-filter-input[type="text"] {
  color: #111827;
  cursor: text;
}

.date-filter-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.date-filter-input:hover {
  border-color: #9ca3af;
}

.date-filter-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-filter-display {
  display: none !important;
}

.date-filter-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none !important;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 2;
  transition: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.date-filter-button:hover {
  color: #374151;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.date-filter-button:active {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: translateY(-50%) !important;
}

.date-filter-button:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.date-filter-icon {
  width: 15px;
  height: 15px;
}

/* Clear Filters Button - subtle border, black text (outline style) */
.clear-filters-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: #212529;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 36px;
}

.clear-filters-button:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #212529;
}

.clear-filters-button:active {
  background-color: #e9ecef;
  transform: scale(0.98);
}

.clear-filters-icon {
  width: 14px;
  height: 14px;
  color: #212529;
  stroke: #212529;
}

.clear-filters-text {
  line-height: 1;
}

/* Status Filter – smooth custom dropdown */
.status-filter-dropdown-wrapper {
  position: relative;
}

.status-filter-dropdown {
  position: relative;
}

.status-filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  min-width: 160px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
  font-family: inherit;
}

.status-filter-trigger:hover {
  border-color: #9ca3af;
}

.status-filter-trigger:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.status-filter-trigger[aria-expanded="true"] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.status-filter-trigger-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.status-filter-dropdown.open .status-filter-trigger-icon {
  transform: rotate(180deg);
}

.status-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  min-width: 100%;
  padding: 4px 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  max-height: 240px;
  overflow-y: auto;
}

.status-filter-dropdown.open .status-filter-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.status-filter-option {
  padding: 8px 12px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.status-filter-option:hover {
  background-color: #f3f4f6;
}

.status-filter-option.selected {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 500;
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
  font-family: "DM Sans", sans-serif;
  border-radius: 8px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.flatpickr-months {
  background-color: #f88257;
  border-radius: 8px 8px 0 0;
  padding: 10px;
}

.flatpickr-month {
  color: white;
}

.flatpickr-current-month {
  color: white;
  font-weight: 600;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: white;
  fill: white;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.flatpickr-weekdays {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.flatpickr-weekday {
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
}

.flatpickr-day {
  border-radius: 4px;
  color: #374151;
}

.flatpickr-day:hover {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background-color: #f88257;
  border-color: #f88257;
  color: white;
}

.flatpickr-day.today {
  border-color: #f88257;
  color: #f88257;
  font-weight: 600;
}

.flatpickr-day.today.selected {
  background-color: #f88257;
  color: white;
}

/* Dashboard stat cards - top of filter section */
.dashboard-cards-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pending-card,
.completed-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 250px;
  height: 80px;
  padding: 0 20px;
  border-radius: 12px;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
}

.pending-card-icon-wrap,
.completed-card-icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pending-card-icon-wrap {
  background-color: rgba(248, 130, 87, 0.12);
}

.completed-card-icon-wrap {
  background-color: rgba(34, 197, 94, 0.12);
}

.pending-card-icon-wrap .pending-card-icon,
.pending-card-icon-wrap i[data-lucide],
.pending-card-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: #f88257;
  stroke: currentColor;
}

.completed-card-icon-wrap .completed-card-icon,
.completed-card-icon-wrap i[data-lucide],
.completed-card-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: #22c55e;
  stroke: currentColor;
}

.pending-card-content,
.completed-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.pending-card-value,
.completed-card-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.pending-card-subtitle,
.completed-card-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.2;
}

.counter-label {
  font-size: 10px;
  color: #6c757d;
  font-weight: 600;
}

/* Compact Transaction Table */
.transaction-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  background: white;
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
}

.transaction-table th {
  padding: 10px 8px;
  border-bottom: 1px solid #dee2e6 !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  font-weight: 600;
  font-size: 11px;
  color: #495057;
  text-align: left;
}

.transaction-table td {
  padding: 8px;
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6 !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  vertical-align: middle;
}

.transaction-table tr:last-child td {
  border-bottom: none !important;
}

.transaction-row.pending-row,
.transaction-row[data-status="pending"],
.transaction-table tr[data-status="pending"] td {
  background-color: #fff8f5;
}

.transaction-row:hover {
  background-color: #f8f9fa;
}

/* Keep same background for pending status rows on hover */
.transaction-row[data-status="pending"]:hover,
.transaction-row.pending:hover,
.transaction-row.pending-row:hover,
.transaction-table tr[data-status="pending"]:hover td {
  background-color: #fff8f5 !important;
}

/* Transaction queue: ID column width */
.transaction-table th:nth-child(2),
.transaction-table td:nth-child(2) {
  width: 110px;
  min-width: 110px;
}

.transaction-id-cell {
  font-family: monospace;
  font-weight: bold;
  color: #f88257;
}

/* Transaction queue: action column hugs button, no wrap */
.transaction-table .action-cell {
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}

.customer-cell {
  font-weight: 600;
}

.branch-cell {
  width: 120px;
  min-width: 120px;
  white-space: nowrap;
  color: #6b7280;
  font-weight: 500;
}

.device-cell {
  width: 120px;
  min-width: 120px;
  white-space: nowrap;
  color: #6b7280;
  font-weight: 500;
}

.time-cell {
  width: 120px;
  min-width: 120px;
  white-space: nowrap;
  color: #6b7280;
  font-weight: 500;
}

.amount-cell {
  font-weight: bold;
  text-align: left;
  width: 120px;
  min-width: 120px;
}

.items-cell {
  width: 120px;
  min-width: 120px;
  text-align: left;
  color: #6b7280;
  font-weight: 500;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  border: none;
}

.status-new {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.status-pending {
  background-color: #fff3e0;
  color: #e65100;
}

.status-completed {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-adjusted {
  background-color: #f3e5f5;
  color: #4a148c;
}

.status-cancelled {
  background-color: #ffebee;
  color: #b71c1c;
}

.status-refunded {
  background-color: #e8f5e9;
  color: #33691e;
}

.status-default {
  background-color: #f5f5f5;
  color: #424242;
}

/* Sortable ID header: center icon and text vertically */
.sortable-th {
  vertical-align: middle !important;
}
.sortable-th i[data-lucide] {
  vertical-align: middle;
  display: inline-block;
}

/* Users page: taller rows */
#usersQueue .users-table td,
#usersQueue .users-table th {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Users page: No. column - semibold, primary color */
.users-no-cell {
  font-weight: 600;
  color: #f88257;
}
.users-fullname-cell {
  font-weight: 600;
}

/* Users table: subtle columns */
.users-mobile-cell,
.users-date-created-cell {
  color: #6b7280;
  font-weight: 500;
}

/* Users page: account status badge (green, same look as transaction status-badge) */
.account-status-badge {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.btn-compact {
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid #dee2e6;
  background: white;
  color: #212529;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-compact:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #212529;
}

/* Transaction queue review button: match size of transaction details modal buttons */
.btn-review {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
}

/* Streamlined Modal */
.modal-header-compact {
  padding: 8px 16px;
  border-bottom: 2px solid #f88257;
  background: #ffffff;
  flex-shrink: 0;
}

.modal-header-compact .d-flex.justify-content-between {
  flex-wrap: nowrap;
}

.modal-header-compact .transaction-id-header {
  min-width: 0;
}

.transaction-id-header .transaction-id {
  font-size: 16px;
  font-weight: bold;
  color: #f88257;
  font-family: monospace;
}

.quick-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quick-actions .btn {
  font-size: 12px;
  padding: 6px 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.quick-approve {
  background: #28a745;
  border-color: #28a745;
}

.quick-reject {
  background: #dc3545;
  border-color: #dc3545;
}

/* Compact Video Panel */
.video-compact {
  background: #f8f9fa;
}

.events-compact {
  border-top: 1px solid #dee2e6;
  min-height: 0; /* Allow flex shrinking */
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.events-title {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}

.events-count {
  font-size: 11px;
  background: #f88257;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
}

.event-list-compact {
  overflow-y: auto;
  min-height: 0; /* Allow flex shrinking */
  padding: 8px 0;
  flex: 1;
}

/* Removed conflicting event-item rule - using the one below */

/* Data Panel */
.data-panel {
  background: #ffffff;
  overflow-y: auto;
  max-height: 100%;
}

.critical-info-bar {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  font-size: 0.75rem;
}

.critical-info-bar .total-amount,
.critical-info-bar .total-amount-large {
  font-size: 1.5rem !important;
}

.transaction-meta-compact {
  font-size: 11px;
  font-weight: 600;
  color: #495057;
}

.meta-separator {
  margin: 0 6px;
  color: #dee2e6;
}

.total-amount-large {
  font-size: 24px;
  font-weight: bold;
  color: #28a745;
}

/* Items Section (card list wrapper) */
.items-section {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  flex: 1 1 auto;
}

.btn-minimal {
  background: none;
  border: 1px solid #f88257;
  color: #f88257;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
}

.btn-minimal:hover {
  background: #f88257;
  color: white;
}

/* Dense Table */
.items-table-compact {
  max-height: none;
  overflow: hidden;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

/* Items (cards) */
.items-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.item-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 16px;
}

.item-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.item-card-name,
.item-card-name-input {
  flex: 1;
  font-weight: 600;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
}

.item-card-name-input {
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
}

.item-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-card-grid {
  display: grid;
  grid-template-columns: 64px 56px 1fr 56px 88px;
  gap: 8px;
  align-items: center;
}

.item-card-grid-header {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.item-card-grid-values {
  font-size: 12px;
  color: #111827;
}

.item-card-grid-values .input-compact,
.item-card-grid-values .form-control-sm {
  width: 100%;
}

/* Item card inputs: borderless + transparent (display + add item) */
#transactionModal .item-card .input-compact,
#transactionModal .item-card .form-control-sm,
#transactionModal .item-card-name-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#transactionModal .item-card .input-compact,
#transactionModal .item-card .form-control-sm {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.item-card-grid-values .item-card-col {
  white-space: nowrap;
}

.item-card .remove-item-btn {
  border-radius: 10px;
}

.table-dense {
  width: 100%;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  flex: 0 0 auto;
  align-self: flex-start;
  border-bottom: none !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  border-radius: 12px;
}

.table-dense th {
  background: #fafbfd;
  padding: 8px 12px;
  border-bottom: 1px solid #dee2e6 !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  font-weight: 600;
  font-size: 11px;
  color: #495057;
  text-align: left;
}

/* Compact items table: fixed narrow columns */
.items-table-compact .table-dense th:nth-child(2),
.items-table-compact .table-dense td:nth-child(2),
.items-table-compact .table-dense th:nth-child(3),
.items-table-compact .table-dense td:nth-child(3),
.items-table-compact .table-dense th:nth-child(4),
.items-table-compact .table-dense td:nth-child(4),
.items-table-compact .table-dense th:nth-child(5),
.items-table-compact .table-dense td:nth-child(5) {
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
  white-space: nowrap;
}

.items-table-compact .table-dense thead th:first-child {
  border-top-left-radius: 12px;
}

.items-table-compact .table-dense thead th:last-child {
  border-top-right-radius: 12px;
}

.items-table-compact .table-dense tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.items-table-compact .table-dense tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.table-dense td {
  padding: 8px 12px;
  border-bottom: 1px solid #dee2e6 !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  vertical-align: middle;
  font-size: 14px;
}

.table-dense tr:last-child td {
  border-bottom: none !important;
}

.input-compact {
  width: 100%;
  padding: 2px 4px;
  border: 1px solid #ced4da;
  border-radius: 2px;
  font-size: 12px;
}

.confidence-value {
  font-weight: bold;
  font-size: 14px;
}

.status-compact {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

/* Transaction modal: AI/HUM badge colors (subtle backgrounds) */
.status-compact.badge-primary {
  background-color: rgba(0, 123, 255, 0.12) !important;
  color: #007bff !important;
}

.status-compact.badge-warning {
  background-color: rgba(255, 193, 7, 0.18) !important;
  color: #b45309 !important;
}

.btn-icon {
  background: none !important;
  border: none !important;
  color: #dc3545 !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
  line-height: 1 !important;
}

.btn-icon:hover {
  background: #dc3545 !important;
  color: white !important;
  border-radius: 2px !important;
}

.btn-icon i {
  font-size: 14px !important;
}

/* Static row remove button styling - matches dynamic row */
.remove-item-btn {
  background: none !important;
  border: none !important;
  color: #dc3545 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
  line-height: 1 !important;
  transition: color 0.3s ease;
}

.remove-item-btn:hover {
  background: none !important;
  color: #c82333 !important;
}

.remove-item-btn:focus,
.remove-item-btn:active,
.remove-item-btn:focus-visible,
.remove-item-btn:focus:active,
.remove-item-btn.active,
.remove-item-btn.active:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Override Bootstrap btn-secondary active/focus states for remove-item-btn */
.btn-secondary.remove-item-btn:focus,
.btn-secondary.remove-item-btn:active,
.btn-secondary.remove-item-btn:focus:active,
.btn-secondary.remove-item-btn.active,
.btn-secondary.remove-item-btn.active:focus,
.btn-sm.remove-item-btn:focus,
.btn-sm.remove-item-btn:active,
.btn-sm.remove-item-btn:focus:active,
.btn.remove-item-btn:focus,
.btn.remove-item-btn:active,
.btn.remove-item-btn:focus:active {
  outline: none !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  background: none !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

.remove-item-btn:hover i[data-lucide] svg {
  stroke: #c82333 !important;
}

.remove-item-btn i {
  font-size: 14px !important;
}

/* Ensure consistent action cell width and centering - only for transaction details table */
#itemsTableBody .action-cell {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 3px 6px !important;
}

/* Modal Header outline buttons - subtle border, black text */
.modal-header-compact .btn-outline-secondary {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
  font-weight: 600 !important;
}

.modal-header-compact .btn-outline-secondary:hover {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}

.modal-header-compact .btn-outline-dark {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
}

.modal-header-compact .btn-outline-dark:hover {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}

/* Set orange border on button focus/active states */
.btn:focus,
.btn:focus-visible,
button:focus,
button:focus-visible,
.btn-primary:focus,
.btn-primary:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #f88257 !important;
  border: 1px solid #f88257 !important;
}

/* Remove active animation and borders from pagination buttons */
.pagination-controls .btn,
.pagination-controls button {
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  line-height: 1.5 !important;
  height: auto !important;
}

.pagination-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  gap: 4px !important;
}

.pagination-btn i {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
}

.pagination-btn span {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

.pagination-controls .btn:hover,
.pagination-controls button:hover {
  border: none !important;
  box-shadow: none !important;
}

.pagination-controls .btn:active,
.pagination-controls button:active {
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
  border: none !important;
}

.pagination-controls .btn:focus,
.pagination-controls button:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Remove active animation from all buttons */
.btn:active,
button:active,
.btn-primary:active {
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
}

/* Status Bar */

.kbd-shortcut {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.75em;
  color: #495057;
  font-family: "DM Sans", monospace;
}

.badge-pending {
  background-color: #ffc107;
  color: #212529;
}

.transaction-card {
  transition: all 0.2s ease;
  border: 1px solid #dee2e6;
}

.transaction-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.transaction-card.border-warning {
  border-left: 4px solid #f88257 !important;
}

.empty-state {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Override Bootstrap `py-*` utilities (they use `!important`) */
  padding: 96px 20px !important;
  /* Ensure the empty state feels as tall as the table area */
  min-height: 590px;
  box-sizing: border-box;
  color: #6c757d;
}

/* When an empty state is rendered inside a queue/table wrapper */
.transaction-queue .empty-state {
  margin-bottom: 0;
}

/* Modal Styles */
.modal-xl {
  max-width: 95% !important;
}

.video-player-container {
  background-color: #f8f9fa;
  border-radius: 12px;
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper video {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Transaction modal: actual video wrapper used in markup */
.video-player-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.video-player-wrapper video {
  display: block;
  width: 100% !important;
  height: auto;
  border-radius: 0 !important; /* wrapper handles clipping */
}

/* Removed conflicting event-item rule - using the comprehensive one below */

.transaction-details-container {
  background-color: #ffffff;
  border-radius: 12px;
}

.transaction-header {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
}

.items-section .table {
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.items-section .table th {
  background-color: #f8f9fa;
  border-top: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
}

.items-section .table thead th:first-child {
  border-top-left-radius: 12px;
}

.items-section .table thead th:last-child {
  border-top-right-radius: 12px;
}

.items-section .table td {
  vertical-align: middle;
  font-size: 0.75rem;
}

.items-section .form-control-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

.transaction-footer {
  background-color: #f8f9fa;
}

/* Removed duplicate badge styles - only keeping event-label specific ones */

/* Confidence Score Colors */
/* Text color utilities - Removed duplicate Bootstrap classes */
/* .text-success, .text-warning, .text-danger are provided by Bootstrap */

/* Button Styles */
.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

/* Removed scrollbar styles */

/* =============== START: TRANSACTION REVIEW MODAL STYLES ============= */

/* Video Players Container - Full Height Distribution */
.video-players-container {
  background-color: #ffffff;
  border-radius: 6px;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  gap: 12px !important;
  overflow: visible !important;
  max-height: 100%;
}

.video-player-wrapper {
  background-color: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
}

.video-player-wrapper:last-of-type {
  margin-bottom: 0 !important;
}

.video-player-wrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block !important;
  border-radius: 6px;
  background-color: #000 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.video-controls {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  padding-top: 4px;
}

.video-controls .btn {
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none !important;
}

.video-controls .btn:hover {
  transform: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

.video-controls .btn:hover i {
  color: inherit !important;
}

.video-controls #videoPlayPauseBtn:hover i {
  color: #f88257 !important;
}

.video-controls .btn:active {
  transform: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

.video-controls .btn:active i {
  color: inherit !important;
}

.video-controls .btn:focus {
  box-shadow: none !important;
  color: inherit !important;
}

.video-controls .btn:focus i {
  color: inherit !important;
}

.video-controls .btn i {
  font-size: 20px;
  transition: none !important;
}

.video-controls #videoPlayPauseBtn {
  color: #f88257 !important;
  border: none !important;
  background-color: transparent !important;
}

.video-controls #videoPlayPauseBtn i,
.video-controls #videoPlayPauseBtn #playPauseIcon {
  color: #f88257 !important;
}

.video-controls #videoPlayPauseBtn:hover {
  color: #f88257 !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

.video-controls #videoPlayPauseBtn:hover i,
.video-controls #videoPlayPauseBtn:hover #playPauseIcon {
  color: #f88257 !important;
}

.video-controls #videoPlayPauseBtn:active {
  color: #f88257;
  border: none !important;
  background-color: transparent;
}

.video-controls #videoPlayPauseBtn:active i,
.video-controls #videoPlayPauseBtn:active #playPauseIcon {
  color: #f88257 !important;
}

.video-controls #videoPlayPauseBtn:focus {
  color: #f88257;
  border: none !important;
  background-color: transparent;
  box-shadow: none !important;
}

.video-controls #videoPlayPauseBtn:focus i,
.video-controls #videoPlayPauseBtn:focus #playPauseIcon {
  color: #f88257 !important;
}

.video-controls #videoForwardBtn,
.video-controls #videoBackwardBtn {
  border: none !important;
  background-color: transparent;
  color: #6c757d;
}

.video-controls #videoForwardBtn:hover,
.video-controls #videoBackwardBtn:hover {
  border: none !important;
  background-color: transparent;
  color: #6c757d !important;
}

.video-controls #videoForwardBtn:hover i,
.video-controls #videoBackwardBtn:hover i {
  color: #6c757d !important;
}

.video-controls #videoForwardBtn:active,
.video-controls #videoBackwardBtn:active {
  border: none !important;
  background-color: transparent;
  color: #6c757d !important;
}

.video-controls #videoForwardBtn:active i,
.video-controls #videoBackwardBtn:active i {
  color: #6c757d !important;
}

.video-controls #videoForwardBtn:focus,
.video-controls #videoBackwardBtn:focus {
  border: none !important;
  background-color: transparent;
  box-shadow: none !important;
  color: #6c757d !important;
}

.video-controls #videoForwardBtn:focus i,
.video-controls #videoBackwardBtn:focus i {
  color: #6c757d !important;
}

/* Events Timeline Container */
.events-timeline-container {
  background-color: #ffffff;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 100%;
}

/* Custom scrollbar for events timeline - subtle styling */
.events-timeline-container::-webkit-scrollbar {
  width: 6px;
}

.events-timeline-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.events-timeline-container::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}

.events-timeline-container::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* Firefox scrollbar styling */
.events-timeline-container {
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}

.events-header h5 {
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
}

.event-list {
  max-height: calc(100vh - 200px);
}

.event-item {
  background-color: #ffffff;
  border: 1px solid #dee2e6 !important;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 12px;
}

.event-item .d-flex {
  align-items: flex-start;
}

.event-item:hover {
  background-color: #fafbfc;
}

.event-item .event-number {
  font-weight: 400;
  color: #666;
  font-size: 14px;
  min-width: 24px;
  display: inline-block;
  text-align: left;
}

.event-highlight {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: inherit !important;
}

/* Item Add Error */
#addItemError.input-error {
  font-size: 12px;
  font-weight: 600;
  color: #dc3545;
  padding-bottom: 8px;
}

/* Item Suggestions Dropdown – smooth open/close (same feel as status filter) */
.suggestions-dropdown {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 99999 !important;
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  overflow-y: auto;
  margin-top: 4px;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease,
    max-height 0.2s ease;
}

.suggestions-dropdown.show {
  max-height: 250px;
  padding: 4px 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Custom scrollbar for suggestions dropdown - subtle styling */
.suggestions-dropdown::-webkit-scrollbar {
  width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* Firefox scrollbar styling */
.suggestions-dropdown {
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}

/* Fixed width for item input fields to match dropdown - moved below to override .table-dense input */

/* Make table fully responsive - remove all fixed widths */
.table-dense {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: visible;
  flex: 0 0 auto;
  align-self: flex-start;
}

.table-dense th {
  background: #fafbfd;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 11px;
  color: #495057;
  text-align: left;
}

.table-dense td {
  padding: 8px 12px;
}

.table-dense th,
.table-dense td {
  border-bottom: 1px solid #dee2e6;
  border-right: none;
  border-left: none;
  border-top: none;
  vertical-align: middle;
  white-space: nowrap;
}

/* Set fixed widths for columns to prevent resizing */
.table-dense th:first-child,
.table-dense td:first-child {
  width: calc(100% - 250px) !important;
  min-width: 250px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.table-dense th:nth-child(2),
.table-dense td:nth-child(2) {
  width: 80px !important;
}

.table-dense th:nth-child(3),
.table-dense td:nth-child(3) {
  width: 50px !important;
}

.table-dense th:nth-child(4),
.table-dense td:nth-child(4) {
  width: 80px !important;
}

.table-dense th:nth-child(5),
.table-dense td:nth-child(5) {
  width: 80px !important;
}

.table-dense th:nth-child(6),
.table-dense td:nth-child(6) {
  width: 40px !important;
}

.table-dense th:last-child,
.table-dense td:last-child {
  width: 50px !important;
}

/* Ensure all inputs are responsive */
.table-dense input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  padding: 2px 4px !important;
}

/* Ensure add item input stays full width without resizing */
#addItemRow #newItemName {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#addItemRow #newItemPrice,
#addItemRow #newItemQuantity {
  font-size: 14px !important;
}

/* Ensure dropdown matches input width */
#addItemRow + #itemSuggestions {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Active/Focus color for all inputs */
input:focus,
input:active,
input:focus-visible,
.form-control:focus,
.form-control:active,
.form-control:focus-visible,
input[type="text"]:focus,
input[type="text"]:active,
input[type="text"]:focus-visible,
input[type="number"]:focus,
input[type="number"]:active,
input[type="number"]:focus-visible {
  border-color: #f88257 !important;
  box-shadow: 0 0 0 0.2rem rgba(248, 130, 87, 0.25) !important;
  outline: none !important;
}

/* Ensure the input container can accommodate the dropdown */
#addItemRow td:first-child {
  position: relative;
  overflow: visible;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: white !important;
  color: #495057 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: background-color 0.15s ease;
}

.suggestion-item:hover {
  background-color: #f3f4f6 !important;
}

.suggestion-item.active {
  background-color: #f3f4f6 !important;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item .item-name {
  font-weight: 500;
  color: #495057;
}

.suggestion-item .item-price {
  font-weight: 600;
  color: #28a745;
}

/* Event label styles for timeline (transaction modal) */
.event-label {
  border-radius: 10px;
}

.event-label.badge-hand-in {
  background-color: #f1f8f4;
  color: #155724;
}

.event-label.badge-hand-out {
  background-color: #fef5f5;
  color: #721c24;
}

.event-label.badge-door-open {
  background-color: #6cc06c;
  color: #ffffff;
}

.event-label.badge-door-close {
  background-color: #6cc06c;
  color: #ffffff;
}

.event-label.badge-payment {
  background-color: #007bff;
  color: #ffffff;
}

.event-item .event-time {
  font-size: 0.75rem !important;
  font-weight: bold !important;
  color: #f88257 !important;
}

/* More specific selector to override any Bootstrap text-muted or other classes */
.event-item span.event-time,
.event-list .event-time,
.events-timeline-container .event-time {
  color: #f88257 !important;
  font-weight: bold !important;
  font-size: 0.75rem !important;
}

/* Override Bootstrap text-muted specifically for event-time */
.event-time.text-muted,
.small.text-muted {
  color: #f88257 !important;
  font-weight: bold !important;
}

/* Target the dynamically generated timestamps with small text-muted classes */
.event-item .small.text-muted,
.event-list .small.text-muted,
.events-timeline-container .small.text-muted {
  color: #f88257 !important;
  font-weight: bold !important;
  font-size: 0.75rem !important;
}

.event-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  align-items: flex-start;
}

.event-label {
  font-size: 0.75rem;
  padding: 1px 6px;
  font-weight: 600;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 0;
  flex-shrink: 0;
}

.event-description {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  flex: 1;
}

.event-badge-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 4px;
}

/* Transaction Details Container */
.transaction-details-container {
  background-color: #ffffff;
  border-radius: 6px;
}

.transaction-details-header .btn-outline-dark {
  background-color: white !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
}
.transaction-details-header .btn-outline-dark:hover {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}

.transaction-details-header h5 {
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
}

.transaction-header h6 {
  color: #495057;
  font-size: 1rem;
}

.total-amount {
  font-size: 1.5rem;
  color: #28a745 !important;
}

.items-section h6 {
  color: #495057;
  font-size: 1rem;
}

.items-section .table {
  font-size: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.items-section .table th {
  background-color: #f8f9fa;
  border-top: none;
  font-weight: 600;
  color: #495057;
  font-size: 0.75rem;
  padding: 8px 6px;
}

.items-section .table thead th:first-child {
  border-top-left-radius: 12px;
}

.items-section .table thead th:last-child {
  border-top-right-radius: 12px;
}

.items-section .table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.items-section .table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.items-section .table td {
  padding: 6px;
  vertical-align: middle;
  font-size: 0.75rem;
}

.items-section .badge {
  font-size: 0.7rem;
  padding: 2px 6px;
}

.items-section .btn-sm {
  font-size: 0.75rem;
  padding: 2px 8px;
}

/* Removed scrollbar styles */

/* Removed unused badge styles - keeping only the ones used in event timeline */

/* Responsive adjustments */
@media (max-width: 768px) {
  .fridge-transaction-content .row .col-md-8,
  .fridge-transaction-content .row .col-md-2 {
    margin-bottom: 1rem;
  }

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

  /* Modal column sizing - make columns 1&2 smaller, column 3 bigger */
  .modal-body .row .col-lg-4:first-child,
  .modal-body .row .col-lg-4:nth-child(2),
  .modal-body .row .col-lg-4.border-right {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }

  .modal-body .row .col-lg-4:last-child,
  .modal-body .row .col-lg-4:not(.border-right) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  /* More specific targeting for modal columns */
  #transactionModal .modal-body .row .col-lg-4:first-child,
  #transactionModal .modal-body .row .col-lg-4:nth-child(2) {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }

  #transactionModal .modal-body .row .col-lg-4:last-child {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  /* Force override Bootstrap's col-lg-4 in modal */
  #transactionModal .col-lg-4 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }

  #transactionModal .col-lg-4:last-child {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  .event-list {
    max-height: 300px;
  }
}

/* =============== END: TRANSACTION REVIEW MODAL STYLES ============= */

/* Add Row Styling - Compact and Fixed */
.add-row {
  background-color: #fff3cd !important;
  border: 1px solid #ffc107 !important;
}

.add-row td {
  padding: 4px 6px !important;
  vertical-align: middle !important;
  height: 32px !important;
}

.add-row .input-compact {
  padding: 2px 4px !important;
  font-size: 11px !important;
  height: 24px !important;
}

.add-row .btn-icon {
  width: 18px !important;
  height: 18px !important;
  font-size: 12px !important;
  padding: 0 !important;
  margin: 0 1px !important;
  display: inline-block !important;
}

.add-row .btn-icon i {
  font-size: 10px !important;
}

.add-row .status-compact {
  padding: 1px 3px !important;
  font-size: 8px !important;
}

/* Action buttons container - side by side layout */
.add-row td:last-child {
  white-space: nowrap !important;
  width: 60px !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 4px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.add-row .btn-icon {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Add row button styles - more specific */
.add-row .btn-icon.btn-success,
.add-row .btn-icon[class*="success"] {
  background-color: #28a745 !important;
  color: white !important;
}

.add-row .btn-icon.btn-danger,
.add-row .btn-icon[class*="danger"],
.add-row .btn-icon:last-child {
  background-color: #dc3545 !important;
  color: white !important;
}

/* Force add row buttons to be horizontal and styled */
.add-row td:last-child .btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 2px !important;
  border: none !important;
  border-radius: 2px !important;
}

/* Specific styling for add row buttons */
.add-row td:last-child .btn-icon:first-child {
  background-color: #28a745 !important;
  color: white !important;
}

/* Add row input fields - full width */
.add-row .input-compact {
  width: 100% !important;
  padding: 2px 4px !important;
  font-size: 11px !important;
  height: 24px !important;
  box-sizing: border-box !important;
}

/* Add item row (card version) */
#transactionModal #addItemRow.item-card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
}

/* Add item row inputs */
#transactionModal #addItemRow #newItemName,
#transactionModal #addItemRow #newItemQuantity {
  background-color: rgb(248, 249, 250) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  box-shadow: none !important;
  min-width: 0 !important;
}

/* Price input: no bg, no border */
#transactionModal #addItemRow #newItemPrice {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
}

/* Ensure all input types in addItemRow are full width */
#transactionModal #addItemRow input[type="text"],
#transactionModal #addItemRow input[type="number"],
#transactionModal #addItemRow input {
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

#addItemRow .btn-icon {
  width: 16px !important;
  height: 16px !important;
  font-size: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}

#addItemRow .btn-icon i {
  font-size: 10px !important;
}

#addItemRow .status-compact {
  padding: 1px 3px !important;
  font-size: 8px !important;
}

/* Action buttons container for addItemRow - match other table cells */
#addItemRow td:last-child {
  padding: 3px 6px !important;
  vertical-align: middle !important;
  text-align: center !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}

#addItemRow #confirmAddItem,
#addItemRow #cancelAddItem {
  background: none !important;
  border: none !important;
  color: #dc3545 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
  line-height: 1 !important;
}

/* Check button - green color */
#addItemRow #confirmAddItem {
  color: #28a745 !important;
  transition: color 0.3s ease;
}

/* Cancel button - red color */
#addItemRow #cancelAddItem {
  color: #dc3545 !important;
  transition: color 0.3s ease;
}

/* Hover effects for add/remove item buttons - darker colors, no background */
#addItemRow #confirmAddItem:hover {
  background: none !important;
  color: #1e7e34 !important;
}

#addItemRow #confirmAddItem:hover i[data-lucide] svg {
  stroke: #1e7e34 !important;
}

#addItemRow #cancelAddItem:hover {
  background: none !important;
  color: #c82333 !important;
}

#addItemRow #cancelAddItem:hover i[data-lucide] svg {
  stroke: #c82333 !important;
}

#addItemRow #confirmAddItem i,
#addItemRow #cancelAddItem i {
  font-size: 14px !important;
}

/* Override Bootstrap button classes for dynamic row buttons */
#addItemRow .btn,
#addItemRow .btn-sm,
#addItemRow .btn-success,
#addItemRow .btn-secondary {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* =============================================================================
   TRANSACTION QUEUE STYLES
   ============================================================================= */

.transaction-queue {
  padding: 0;
  border: 1px solid #dee2e6 !important;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.transaction-queue .transaction-table {
  min-width: 100%;
  width: max-content;
}

/* Empty State Styles */

#emptyState,
#usersEmptyState {
  display: none;
}

.empty-state .empty-icon {
  margin-bottom: 16px;
  color: #dee2e6;
}

.empty-state .empty-icon svg {
  width: 3rem;
  height: 3rem;
}

.empty-state h4 {
  color: #495057;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.5;
}

/* Status Counter Styles */
.status-counters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter {
  background-color: var(--green-dark);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  min-width: 24px;
  text-align: center;
}

.counter-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}
