/* Global Styles */

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Sidebar Styles - Teal Theme */
.sidebar {
    min-height: 100vh;
    height: auto;
    background-color: #006D77 !important;
    color: white;
    position: fixed;
    width: 250px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar .sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sidebar .nav {
    list-style-type: none;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.sidebar .nav-link {
    color: #e0f2f1;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: #005F6A !important;
}
.sidebar .nav-link i {
    margin-right: 10px;
    width: 24px;
    font-size: 1.2rem;
}

/* Logout Button Styles */
#logoutBtn {
    margin-top: auto;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background-color: #da2a3b;
    color: white !important;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#logoutBtn:hover {
    background-color: #fc142b !important;
    color: white !important;
}
#logoutBtn i {
    color: white;
    margin-right: 10px;
}

/* Main Content Styles */
.main-content {
    /* margin-left: 250px; Matches sidebar width */
    padding: 2rem;
}

/* Dashboard Card Styles */
.dashboard-card {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.dashboard-card:hover {
    transform: translateY(-5px);
}
.card-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}
.card-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    padding-top: 20px;
}

/* Login Page Styles */
/* .login-container {
    max-width: 400px;
    margin: 100px auto;
} */

/* Additional global styles can be added here */

/* Responsive sidebar and mobile navbar */
@media (max-width: 768px) {
  /* Hide sidebar by default */
  .sidebar {
    position: fixed;
    top: -1px;
    left: -250px;
    width: 250px;
    height: 100%;
    z-index: 1100;
    background-color: #343a40;
    transition: left 0.3s ease;
  }
  .sidebar.active {
    left: 0;
    z-index: 1100;
  }
  /* Show mobile navbar */
  .mobile-navbar {
     
    display: flex !important;
    align-items: center;
    background-color: #006D77 !important;
    color: #fff;
    padding: 0.5rem 1rem;
    position: sticky !important;
    top: -1px;
    width: 100%;
    z-index: 1050;
  }
  .mobile-navbar .navbar-brand {
    color: #fff;
  }
  .mobile-navbar .btn-outline-primary {
    border-color: #fff;
    color: #fff;
  }
  .mobile-navbar .btn-outline-primary:hover {
    background-color: rgba(255,255,255,0.2);
  }
  /* Adjust main content full width */
  #layout {
    margin-left: 0;
  }
  .main-content {
    padding: 1rem;
  }
}
@media (min-width: 769px) {
  /* Hide mobile navbar */
  .mobile-navbar {
    display: none !important;
    
  }
  /* Sidebar fixed full-height column */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
  }
  /* Layout: sidebar + content */
  #layout {
    display: flex;
  }
  .main-content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
  }
}

/* General improvements */
.sidebar {
  background-color: #343a40;
  color: #fff;
}
.sidebar .nav-link {
  color: rgba(255,255,255,0.9);
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
  background-color: rgba(255,255,255,0.1);
}
/* Increase touch target and spacing for mobile */
@media (max-width: 768px) {
  .sidebar .nav-link {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* Reset default html/body spacing to eliminate top whitespace */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}
/* Honor device notch safe-area inset, push content down under header */
@supports(padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top) !important;
  }
}
/* Custom Select2 dropdown background and style */
.select2-container--bootstrap-5 .select2-dropdown {
  background: #f0f4fa !important; /* Soft blue-gray */
  border: 1px solid #b6c6e3;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(80,140,255,0.10);
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

.select2-container--bootstrap-5 .select2-results__option {
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  margin: 0.15rem 0.4rem;
  font-size: 1.1rem;
  color: #1a237e;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background: #dbeafe !important;
  color: #0d47a1 !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
  background: #b3e5fc !important;
  color: #01579b !important;
}

.select2-container--bootstrap-5 .select2-results__options {
  max-height: 260px;
  overflow-y: auto;
}

/* --- Report Statement Styles --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Fira+Mono:wght@400;500&display=swap');

.report-heading,
.report-metadata,
.report-summary,
.report-table,
.report-table th {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
} 


/* Custom Dropdown Styling */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-select {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa;
  background-clip: padding-box;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.custom-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}

.custom-select-wrapper::after {
  content: "\25BC"; /* Down arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: #007bff;
  pointer-events: none;
}

.custom-select option {
  background-color: #ffffff;
  color: #333;
}

.custom-select option:hover {
  background-color: #e9ecef;
  color: #007bff;
}

.custom-select option:checked {
  background-color: #007bff;
  color: #fff;
}
.custom-select-wrapper::after {
  content: "\f078"; /* Font Awesome down arrow */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

#clientInfoBalance{
  padding: 15px;
  font-size: 1.2rem;
}
#clientInfoCard{
  background-color: #006D77;
  color: white;
}   
#clientInfoPhone{
  color: rgb(248, 246, 246) !important;
}
/* Active menu */
.nav-menu-item.active {
  background: #e9f5ff;
  border-left: 4px solid #007bff;
  font-weight: bold;
}

