/* AccountSearchModal.css */

/* Main Button */
.change-account-btn {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  color: white;
  border-radius: 0.25rem;
  cursor: pointer;
}

.change-account-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.icon-space {
  margin-right: 0.5rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  overflow: hidden;
  outline: 0;
}

.custom-modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: 800px;
  max-width: 800px;
  margin: 1.75rem auto;
  pointer-events: none;
}

.modal-content {
  /* For Mobile */
  height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  outline: 0;
  pointer-events: auto;
}
/* For Desktop   */
@media (min-width: 768px) {
  .modal-content {
    height: 90vh;
  }
}
/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8f9fc 0%, #eaecf4 100%);
  border-bottom: 1px solid #e3e6f0;
  padding: 1rem 1.5rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modal-title {
  font-weight: 600;
  color: #3a3b45;
  margin: 0;
}

.modal-title i {
  color: #4e73df;
}

.btn-close {
  padding: 0.5rem;
  background-color: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-close:hover {
  transform: scale(1.1);
}

/* Modal Body */
.modal-body {
  padding: 1.5rem;
  flex: 1 1 auto;
}

/* Search Row */
.search-row {
  display: flex;
  margin-bottom: 1rem;
}

.search-col {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
  padding: 0 0.5rem;
}

.search-button-col {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
  padding: 0 0.5rem;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6e707e;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #d1d3e2;
  border-radius: 0.35rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  border: none;
  border-radius: 4px;
  color: white;
  height: 100%;
  width: 100%;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Search Results Info */
.search-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.match-count {
  font-size: 0.875rem;
  color: #6c757d;
}

.success-icon {
  color: #1cc88a;
}

.filter-toggle {
  margin-left: auto;
}

.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 0.5rem;
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
}

/* Loading */
.loading-container {
  text-align: center;
  padding: 3rem 0;
}

.spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 0.25rem solid rgba(78, 115, 223, 0.25);
  border-right-color: #4e73df;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 1rem;
  color: #5a5c69;
}

/* Table */
.table-container {
  max-height: 400px;
  overflow-y: auto;
}

.accounts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.accounts-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.accounts-table th {
  padding: 12px 16px;
  font-weight: 600;
  color: #5a5c69;
  border-bottom: 2px solid #e3e6f0;
  background-color: #f8f9fc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.accounts-table td {
  padding: 10px 16px;
  vertical-align: middle;
}

.accounts-table tr {
  cursor: pointer;
  transition: all 0.2s;
}

.accounts-table tr:hover {
  background-color: rgba(78, 115, 223, 0.05);
}

.selected-row {
  background-color: rgba(78, 115, 223, 0.1) !important;
  border-left: 4px solid #4e73df;
}

.acc-id {
  font-weight: 500;
}

.selected-badge {
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  background-color: #4e73df;
  color: white;
  border-radius: 0.2rem;
  vertical-align: middle;
}

.balance {
  font-weight: 500;
}

.positive {
  color: #1cc88a;
}

.negative {
  color: #e74a3b;
}

/* Empty Results */
.empty-results {
  border-top: none;
  text-align: center;
  padding: 2rem 0;
}

.no-results {
  color: #858796;
}

.no-results-icon {
  display: block;
  font-size: 2rem;
  color: #dddfeb;
  margin-bottom: 1rem;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e3e6f0;
}

.close-btn {
  background-color: #6c757d;
  border: none;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
  margin-right: 0.5rem;
}

.close-btn:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.confirm-btn {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  border: none;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.navbar_org{
  display: block !important;
  --bs-navbar-padding-x: 1 !important;
  background-color: #f8f8f8!important;
  border-color: #e7e7e7!important;
  margin-bottom: 0px !important;
}

.navbar_i{
  
  padding: 15px 15px !important;
}


 
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent gray */
  z-index: 1040; /* Make sure it's behind the modal content */
}

.big_font_text {
 font-size: 16px !important;
}

.big_font_input {
  font-size: 16px !important;
}

.no_flex{
  display: block !important;
}

.margin_btm_up{
  margin-bottom: 4px !important;
}

.divide_btn{
  margin-bottom: 8px !important;
  text-align: right !important;
}
/* Container around the date input */
 
 .body_msg{
 display: flex;
  align-items: flex-start;
   
  font-family: "Segoe UI", sans-serif;
  box-sizing: border-box;
   
  display: flex;
  align-items: center;
  padding: 20px 15px;
  gap: 10px;
  justify-content: center;
  align-content: flex-start;
  flex-wrap: wrap;
  min-height: 100px;
 }


 .tree-list ul {
  list-style-type: none;
  margin: 0;
  padding-left: 1.5em;
  position: relative;
}

.tree-list ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0.5em;
  width: 0;
  height: 100%;
  border-left: 1px dashed #ccc;
}

.tree-list li {
  margin: 0;
   
  position: relative;
}

.tree-list li::before {
  content: '';
  position: absolute;
  top: 1.2em;
  left: 0;
  width: 0.5em;
  height: 0;
  border-top: 1px dashed #ccc;
}

/* 🛠️ Hide left line below the last child */
.tree-list ul > li:last-child::after {
  content: '';
  position: absolute;
  left: 0.5em;
  top: 1.2em;
  height: calc(100% - 1.2em);
  width: 1px;
  background-color: white; /* Match the background */
  z-index: 1;
}

/* Optional: selected node style */
.tree-list .selected {
  background-color: #eef5ff;
  border-radius: 4px;
  padding: 0.25em 0.5em;
}


 





/* ——— Utility: visually hidden for screen readers ——— */
.visually-hidden {
  position: absolute !important;
  height: 1px; 
  width: 1px; 
  overflow: hidden; 
  clip: rect(1px, 1px, 1px, 1px); 
  white-space: nowrap; /* added line */
}

/* ——— Page & Wrapper ——— */
.login-wrapper {
  min-height: 50vh;
  display: flex;
  justify-content: left;
  align-items: left;
  padding-left: 20px;
  padding-right: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

/* ——— Card Container ——— */
.login-card {
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 12px;
  box-shadow: -1px 16px 20px 20px rgba(0, 0, 0, 0.08);
  max-width: 440px;
  width: 100%;
}

/* ——— Title ——— */
.login-title {
 
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* ——— Section Label ——— */
.section-label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

/* ——— Filter Input (for years) ——— */
.db-filter-input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.db-filter-input:focus {
  border-color: #007bff;
  outline: none;
}

/* ——— Year Buttons Container ——— */
.db-buttons-scroll {
  max-height: 140px; /* slightly taller */
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* ——— Year Buttons ——— */
.db-button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fafafa;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease-in-out;
}

.db-button:hover,
.db-button:focus {
  background-color: #eef5ff;
  border-color: #88b6ff;
  outline: none;
}

.db-button.active {
  background-color: #007bff;
  color: #fff;
  border: 2px solid #0056b3;
}

.db-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* ——— Input Groups ——— */
.input-group {
  margin-bottom: 16px;
}

.login-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  color: #333;
  transition: border-color 0.2s;
}

.login-input:focus {
  border-color: #007bff;
  outline: none;
}

/* ——— Login Button + Spinner ——— */
.login-button {
  position: relative;
  padding: 12px 0;
  width: 100%;
  font-size: 16px;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.login-button:hover:not(:disabled) {
  background-color: #0056b3;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button Text (so spinner + text align properly) */
.button-text {
  display: inline-block;
}

/* ——— Message Area ——— */
.login-message {
  margin-top: 16px;
  color: #28a745;
  font-weight: 500;
  text-align: center;
}

/* ——— No Results ——— */
.no-results {
  color: #888;
  padding: 10px;
  font-style: italic;
  font-size: 14px;
}

.form-control {
font-size: 14px !important;
}

.form-select {
  font-size: 14px !important;
}



html, body {
  overscroll-behavior-y: contain;
}

 
.select_like{
  width: 80px !important;
  flex: none !important;
}

.text-danger {
  font-size: large !important;

}
.btn-primary{
  font-size: 12px !important;
}














/* --- General ledger--- */
/* This div centers the single form component on the page */
.app-container-pure-form {
   
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 100vh; /* Take full viewport height */
  
  background-color: #f0f2f5; /* Consistent background */
  overflow-y: auto; /* Allow scrolling within this container if content is too tall */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* --- Main Form Container (The actual form content area) --- */
.app-main-form-container {
  background-color: #ffffff; /* Pure white background for the form */
  border: 1px solid #e0e0e0; /* Very light border */
  border-radius: 4px; /* Slightly rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Soft, subtle shadow */
  padding: 20px; /* More padding inside the form container */
  width: 100%;
  max-width: 900px; /* Consistent max-width for the form */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Increased gap between major sections */
  flex-shrink: 0; /* Prevent it from shrinking if content is too tall */
}

/* Form Header (Acc No, Name, Select, Year) - Internal to the white box */
.form-header {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0; /* Lighter, solid line */
  gap: 8px;
}

.header-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  font-size: 0.95em;
  color: #444;
}

.header-label-value {
  white-space: nowrap;
}

.header-select-button {
  background-color: #007bff; /* Blue button */
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
  margin-right: auto; /* Push year info to right */
}

.header-select-button:hover {
  background-color: #0056b3;
}

.header-year-info {
  white-space: nowrap;
  font-size: 0.95em;
  color: #444;
}

/* Main Form Content (Left Column & Right Column) */
.form-main-content {
  display: flex;
  flex-wrap: wrap; /* Allow columns to wrap below each other on smaller screens */
  gap: 20px; /* Increased gap between columns */
  flex: 1; /* Allows columns to take available space */
}

.left-column, .right-column {
  flex: 1; /* Allow columns to grow/shrink */
  min-width: 380px; /* Minimum width before wrapping */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Increased gap between sections within a column */
}

/* Generic Form Section Styling (Date Range, Cost Center, Report Options, JV Type) */
.form-section {
  border: 1px solid #e9e9e9; /* Very light border */
  border-radius: 4px;
  
  background-color: #ffffff; /* White background */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for definition */
}

.section-title {
  font-size: 1em; /* Slightly larger font for titles */
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0; /* Very light separator */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-all-label {
  font-size: 0.9em;
  font-weight: normal;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

/* Date Range Picker Specific Styles */
.date-picker-group {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between date input rows */
}

.date-input-line {
  display: flex;
  align-items: center; /* Align label and input horizontally */
  gap: 15px;
}

.date-label {
  font-weight: normal;
  color: #555;
  white-space: nowrap;
  font-size: 0.95em;
  flex-shrink: 0;
  width: 90px; /* Fixed width for labels for alignment */
 padding: 10px;
}

.date-input-display-wrapper {
  display: flex;
  flex-direction: column; /* Stack input and display value */
  flex-grow: 1;
  gap: 5px; /* Gap between input and potential display value (now removed) */
}

.date-input-field {
  padding: 8px 10px; /* More padding */
  border: 1px solid #ced4da; /* Light border */
  border-radius: 4px; /* Rounded corners */
  font-size: 0.9em;
  outline: none;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.075); /* Subtle inner shadow */
  width: 100%; /* Make input fill available width */
  max-width: 130px; /* Keep max-width for consistency if screen is wide */
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 15px;
}

.date-input-field:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Removed .date-display-value as per the red 'X' on it in image_c81533.png */


/* Cost Center Table */
.cost-center-table-container {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #e9e9e9;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); /* Subtle inset shadow */
}

.cost-center-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.cost-center-table th, .cost-center-table td {
  border: 1px solid #f0f0f0; /* Very light borders */
  padding: 10px 15px;
  text-align: left;
}

.cost-center-table th {
  background-color: #f8f8f8; /* Very light header background */
  font-weight: 600;
  color: #444;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.cost-center-table .cost-center-col { width: 40%; }
.cost-center-table .last-import-col { width: 35%; }
.cost-center-table .selected-col { width: 25%; text-align: center; }

.cost-center-table tbody tr:nth-child(even) {
  background-color: #fdfdfd; /* Even more subtle alternating rows */
}

.cost-center-table tbody tr:hover {
  background-color: #eaf6ff; /* Light blue hover */
}

.cost-center-table td input[type="checkbox"] {
  transform: scale(1.1); /* Slightly larger checkbox */
  accent-color: #007bff; /* Blue color for modern consistency */
  margin: 0 auto;
  display: block;
}

/* Report Options Checkboxes (top group) */
.checkbox-group.top-checkboxes {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  font-size: 0.95em;
  color: #333;
  cursor: pointer;
  padding-left: 10px;
}

.checkbox-line input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
  accent-color: #007bff;
}

/* Report Options Radio Buttons */
.report-options-group {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  gap: 10px 25px; /* Row gap and column gap */
  max-height: 250px;
  overflow-y: auto;
  padding-right: 15px;
  font-size: 0.95em;
  color: #333;
  padding-left: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}

.radio-option input[type="radio"] {
  margin-right: 10px;
  transform: scale(1.1);
  accent-color: #007bff;
}

/* JV Type Section */
.jv-type-options-container {
  border: 1px solid #e9e9e9; /* Light border */
  background-color: #ffffff; /* White background */
  padding: 10px 15px;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); /* Subtle inset shadow */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jv-type-options-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e0e0e0; /* Light dashed line */
}

.jv-type-list-wrapper {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 10px;
}

.jv-type-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jv-type-item {
  display: flex;
  align-items: center;
  font-size: 0.95em;
  color: #333;
}

.jv-type-item input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
  accent-color: #007bff;
}

.only-imported-checkbox-row {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0; /* Solid line */
  font-size: 0.95em;
}

/* Form Footer Buttons */
.form-footer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0; /* Light border */
  margin-top: auto;
}

.ok-button, .exit-button {
  padding: 10px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 120px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.ok-button {
  background-color: #007bff; /* Blue for primary action */
  color: white;
}

.ok-button:hover {
  background-color: #0056b3;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.exit-button {
  background-color: #f8f9fa; /* Light grey/white for secondary action */
  color: #333;
  border: 1px solid #ced4da; /* Light border */
}

.exit-button:hover {
  background-color: #e2e6ea;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* --- Responsive Adjustments --- */

/* Tablet and smaller laptops */
@media (max-width: 992px) {
  
  .app-main-form-container {
    margin: 0; /* Remove margin when centered */
  }
  .form-main-content {
    flex-direction: column;
  }
  .left-column, .right-column {
    min-width: unset;
    width: 100%;
  }
  .report-options-group {
    grid-template-columns: 1fr;
  }
  .date-input-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .date-label {
    width: auto;
    text-align: left;
    padding-top: 0;
  }
  .date-input-display-wrapper {
    width: 100%;
  }
  .date-input-field {
    width: 100%;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  
  .app-main-form-container {
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
  }
  .form-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .header-select-button {
    margin-right: 0;
    align-self: flex-start;
  }
  .header-year-info {
    margin-left: 0;
    align-self: flex-end;
  }
  .form-footer-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .ok-button, .exit-button {
    width: 100%;
    padding: 12px 20px;
  }
  .cost-center-table th, .cost-center-table td {
    padding: 8px 10px;
    font-size: 0.85em;
  }
  .section-title, .select-all-label,
  .checkbox-line, .radio-option, .jv-type-item {
    font-size: 0.9em;
  }
}


.select-all-label 
{
  color: white;
}
.app-container-pure-form 
  {
  background-color: white;
}
 .section-title{
  padding: 7px;
  color: black;
  background-color: #f8f8f8 !important;
  font-size:  1.5rem;
 }

 .account-details-group{
padding: 7px;
 
 }

 .id_name{
  width: max-content;
 }
 .lbl{
  font-weight: normal !important;
 }
 .flxx{
  display: flex;
 }
 .btn{
  font-size: 12px !important;
  
 }
 .mar_zero{
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 10px;
  text-align: center;
 }

 @media (min-width: 992px) {  
  .modal_rpt {
   max-width: 90vw !important;
   width: 100% !important;
 
  }
  
}
@media (max-width: 992px) {
.modal_rpt2{
height: fit-content !important;
  }
}


.second-modal {
  z-index: 1060 !important; /* Higher than the default Bootstrap modal (1050) */
}
 

/* Custom Focus Effect for Checkboxes */
.custom-checkbox-focus:focus {
  /* Remove default outline */
  outline: none;
  /* Add a custom box-shadow for a clean blue glow */
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.5); /* A standard blue focus ring */
  /* You can also change the border color on focus if desired */
  border-color: #007bff;
}

/* To potentially override Bootstrap's default focus, you might need higher specificity */
/* If the above doesn't work, try this (more specific): */
.form-check-input.custom-checkbox-focus:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.5) !important; /* Use !important if necessary */
  border-color: #007bff !important;
}

/* If the "black circle" persists, it's likely Bootstrap's indeterminate style.
 You might need to explicitly override its background-image for indeterminate.
 Add this if the black circle is still there: */
.form-check-input:indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e") !important;
  background-color: #007bff !important; /* Ensure it's blue, not black */
  border-color: #007bff !important;
}


.bg-primary {
  color: #f0ad4e;
}
 
.card_font_size{
  font-size: 13px;
}

.lbl_font_size{
  font-size: 11px !important;
}

.p-3_v1{
  padding: 0px !important ;
}

 
.p-3_e{
  min-width: 80px !important;
}



.tbody, td, tfoot, th, thead, tr {
  font-size: 11px !important;
}
.jv-type-list{
  font-size: 11px !important;
}
.form-label {
  font-size: 11px !important;
}
.date-label {
  font-size: 11px !important;
}

.radio-option { 
  font-size: 11px !important;
}
.checkbox-line 
{
  font-size: 11px !important;
}

.jv-type-item {
  font-size: 11px !important;
}




/* dash index start */

.react-select__control {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.1rem rgba(13,110,253,.25);
  
}

 

.padding-custom{
  padding: 2px !important;
}

.font12{
  font-size: 12px !important;
}

.chart-container {
  background-color: #fffef7; /* like the image */
  padding: 20px;
  border-radius: 8px;
}

.text-modalstyle
{
  color: #000000ff !important;
  font-Size:12px !important;
  font-weight:50px !important
 

}

.ApplyButton{
       width: 175px;
       background-color: #3db8f5;
       color: #fff;
       font-size: 18px;
       font-Weight: bold;
       padding: 10px 30px;
       border: none;
       border-radius: 6px;
       cursor: pointer;
}
 
.modal-fix-padding {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  height: auto !important;
}

.no-padding-card {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.no-padding-card .card-body {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.total-value{
  font-size: 13px !important;
}

.small_modal{
  height: 400px;
}
/* dash index End */


.monthly-tree-scroll-container {
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: auto; /* Keep vertical scrolling */
}

.monthly-tree-scroll-container ul {
  /* Ensure the list is always wide enough to trigger the scrollbar */
  width: max-content; 
  min-width: 100%;
}

.form-check-input:focus,
.form-check-input:hover,
.form-check-input:active,
.form-check-input:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}
.add_margin{
  margin-top: 75px;
}

.sidebar-wrapper .metismenu a{
 text-decoration: none !important;
}

.dropdown-menu {
height:200px;
}

/* Define the keyframe animation for blinking */
@keyframes blink {
  0%, 100% {
    opacity: 1; /* Fully visible */
  }
  50% {
    opacity: 0.2; /* Less visible (blinking effect) */
  }
}

/* Apply the animation to the menu icon */
.blink-menu-icon {
  /* Apply the animation: name, duration, timing-function, iteration-count */
  animation: blink 1.5s linear infinite;
  
  /* Optional: Enhance visibility */
  font-size: 1.5rem; 
  cursor: pointer;
}

.dropdown-menu-end[data-bs-popper] {
 
  font-size: 14px;
}

.logo-link {
  text-decoration: none; /* Removes the underline from the link itself */
}

/* Target the anchor tag when the user hovers over it */
.logo-link:hover {
  text-decoration: none; /* Explicitly ensures no underline appears on hover */
}

/* Optional: If the link is active or focused, keep the underline removed */
.logo-link:focus,
.logo-link:active {
  text-decoration: none;
}

 

/* Ensure the page wrapper allows sticky elements to work */
.page-wrapper {
  overflow: visible !important;
}

@media (max-width: 991px) {
  .user-box .user-info {
      display: block !important;
  }
}


/* --- Desktop View (Default) --- */
.sidebar-wrapper {
  z-index: 1200 !important;
  position: fixed !important;
  left: 0;
  top: 0;
  height: 100vh !important;
  width: 250px;
  overflow-y: auto !important;
  overflow-x: hidden;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Custom Scrollbar for the Sidebar */
.sidebar-wrapper::-webkit-scrollbar {
  width: 5px;
}
.sidebar-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* --- Mobile View Fix (Screen width < 768px) --- */
@media (max-width: 767px) {
  .sidebar-wrapper {
      left: -250px; /* Hide sidebar off-screen by default */
      width: 250px;
  }

  /* When the wrapper has the 'toggled' class on mobile, show the sidebar */
  .wrapper.toggled .sidebar-wrapper {
      left: 0; /* Slide in on mobile */
      box-shadow: 5px 0 15px rgba(0,0,0,0.3);
  }
  
  /* Ensure the main page content doesn't shift on mobile, just gets covered */
  .page-wrapper {
      margin-left: 0 !important;
  }
}

/* Desktop Toggled State (Minimized Icons) */
@media (min-width: 768px) {
  .wrapper.toggled .sidebar-wrapper {
      width: 70px;
  }
  .wrapper.toggled .page-wrapper {
      margin-left: 70px;
  }
}
 /* Sidebar is at 1200 - DO NOT change this or it will cover modals again */
.sidebar-wrapper {
  z-index: 1200 !important;
}

/* Force the backdrop to be higher than the sidebar */
.modal-backdrop {
  z-index: 2000 !important;
}

/* Force the modal container to be higher than the backdrop */
.modal {
  z-index: 2001 !important;
}

/* If you are using 'd-block' manually in React, ensure it respects z-index */
.modal.d-block {
  z-index: 2001 !important;
  display: block !important;
}

/* Ensure the modal dialog (the actual white box) is visible */
.modal-dialog {
  z-index: 2002 !important;
}

/* Optional: If you use Select2 or Datepickers inside modals, they might also need a boost */
.select2-container--open {
  z-index: 9999 !important;
}