.pagination-button {
  padding: 2px 4px;
  font-size: 12px;
  background-color: #e0e0e0;
  color: #4a4a4a;
  border-radius: 5px;
  cursor: pointer;
}

.pagination-button:hover {
  background-color: #b0b0b0;
}

.pagination-button.active {
  /* background-color: #007bff; */
  background-color: #2563eb;
  color: white;
}

.pagination-button:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}


/* Custom styling for pagination number */
.pagination-number {
  padding: 6px 12px; /* More padding for the page number buttons */
  font-size: 12px;    /* Larger font size */
  min-width: 30px;    /* Ensure a minimum width for the button */
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Optional: Style for active page number */
.pagination-number.active {
  background-color: #007bff;
  color: white;
}


/* Calendar container */
/* General Calendar Container */
.rdp-root {
  padding: 1rem; /* Padding around the calendar */
  display: flex;
  flex-direction: column;
}

/* Caption (Month-Year) Layout */
.rdp-caption {
  display: flex;
  justify-content: space-between; /* Align chevrons and month-year header */
  align-items: center;
  width: 100%;
}

.rdp-month_caption {
  font-size: 1rem;
  font-weight: 500;
  flex-grow: 1; /* Takes up space between chevrons */
  text-align: center;
}

.rdp-month_caption span {
  font-size: 1rem;
  font-weight: 500;
}

/* Navigation Buttons (Chevron Previous/Next) */
.rdp-nav {
  display: flex;
  gap: 8px; /* Space between the chevrons */
  align-items: center;
}

.rdp-button_previous,
.rdp-button_next {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rdp-button_previous svg,
.rdp-button_next svg {
  width: 1.5rem; /* Chevron icon size */
  height: 1.5rem;
  fill: #000; /* Chevron color */
}

/* Table (Days Grid) */
.rdp-month_grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

/* Days of the Week Header */
.rdp-weekdays {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rdp-weekday {
  text-align: center;
  width: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Individual Days */
.rdp-week {
  display: flex;
  justify-content: space-between;
}

.rdp-day_button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  width: 2rem;
  height: 2rem;
  text-align: center;
  color: #333; /* Default text color */
}

.rdp-day_button:hover {
  background-color: #f0f0f0;
}

.rdp-day_button:focus {
  outline: none;
  border: 2px solid #007bff;
  background-color: #f0f0f0;
}

/* Selected Day */
.rdp-day_selected {
  background-color: #007bff;
  color: white;
}

.rdp-day_today {
  background-color: #f0f0f0;
  color: #007bff;
}

/* Disabled and Outside Days */
.rdp-day_disabled {
  color: #b0b0b0;
}

.rdp-day_outside {
  color: #d0d0d0;
}

/* Styling for the previous and next chevrons */
.rdp-button_previous svg,
.rdp-button_next svg {
  fill: #007bff; /* Chevron color */
}

.rdp-button_previous {
  margin-right: 0.5rem;
}

.rdp-button_next {
  margin-left: 0.5rem;
}

/* Add spacing between weeks */
.rdp-week {
  margin-bottom: 0.5rem;
}

.rdp-week .rdp-day_button {
  font-size: 0.875rem; /* Adjust day size */
  text-align: center;
  line-height: 2rem;
}

/* Styling for the whole calendar */
.rdp-root {
  border: 1px solid #ddd; /* Add border around the calendar */
  border-radius: 8px;
  background-color: white;
}

.rdp-caption {
  padding: 0.5rem;
  border-bottom: 1px solid #eee; /* Divider line under month-year */
}

/* Optional: Hover effect for the calendar */
.rdp-root:hover {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}


/* For previous and next month days */
.rdp-outside .rdp-day_button{
  color: #c8c8c8;
}

/* Optional: Style when hovering over the outside days */
.rdp-outside .rdp-day_button:hover {
  background-color: #f0f0f0; /* Optional: Light hover effect */
}

/* Target the <td> with the data-selected attribute */
.rdp-root td[data-selected="true"] .rdp-day_button {
  background-color: #2563eb !important; /* Change to your desired color */
  color: white !important; /* Ensures the text is visible */
  border-radius: 50%; /* Optional: make the selected date more circular */
}

/* Optional: Add a different color when hovering over the selected day */
.rdp-root td[data-selected="true"]:hover .rdp-day_button {
  background-color: #2563eb !important; /* Slightly darker shade on hover */
}

.bg-table-header{
  background: linear-gradient(to right, #0077B6, #1E88E5);
  color: #fff;
  text-transform: uppercase;
}
.bg-table-header th {
  color: #fff;
}

input[data-slot="input"].text-right {
  /*padding-right: 0 !important;  Removes extra padding */
  text-align: right !important; /* Ensures the text aligns to the right */
}

input[data-slot="input"].rate-input {
  background-color: aliceblue !important;
}

/* Editable inputs → white */
input[data-slot="input"]:not([readonly]):not(:disabled) {
  background-color: white ;
  border:1px solid #ccc;
  height: 32px !important;
  min-height: 32px !important;
}

/* Readonly inputs → muted gray */
input[data-slot="input"][readonly] {
  background-color: #f1f1f1 !important;
  border:1px solid #ccc;
  height: 32px !important;
  min-height: 32px !important;
}

/* Disabled inputs → lighter gray */
input[data-slot="input"]:disabled {
  background-color: hsl(var(--muted) / 0.5) !important;
  border:1px solid #ccc;
  height: 32px !important;
  min-height: 32px !important;
}

/* Make Select (dropdown) triggers white like inputs */
button[data-slot="select-trigger"]:not(:disabled) {
  background-color: white !important;
  border:1px solid #ccc;
  height: 32px !important;
  min-height: 32px !important;
}

button[data-slot="select-trigger"]:disabled {
  background-color: #f1f1f1 !important;
  height: 32px !important;
  min-height: 32px !important;
}

button[role="combobox"] {
  height: 32px !important;
  min-height: 32px !important;
}

button[data-slot="popover-trigger"] {
  height: 32px !important;
  min-height: 32px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* CONTROL (FOR REACT-SELECT) */
/* CONTROL */
.select__control {
  min-height: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
  font-size: 12px !important;

  display: flex !important;
  align-items: center !important;  
}

.select__value-container {
  height: 32px !important;
  padding: 0 8px !important;

  display: flex !important;
  align-items: center !important;   
}

/* placeholder + selected value */
.select__placeholder,
.select__single-value {
  line-height: 32px !important;    
  margin: 0 !important;
  font-size: 12px;;
}

/* input text typing position */
.select__input-container {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
}

.select__input {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 32px !important;    
}

/* indicator (arrow + clear button) alignment */
.select__indicators {
  height: 32px !important;
}

.select__indicator {
  padding: 0 6px !important;       
}


/* DROPDOWN MENU */
.select__menu {
  font-size: 12px !important;
  z-index: 50 !important;
}

/* OPTIONS */
.select__option {
  font-size: 12px !important;
  padding: 6px 10px !important;
}

/* OPTION HOVER */
.select__option--is-focused {
  background-color: #eff6ff !important;
}

/* OPTION SELECTED */
.select__option--is-selected {
  background-color: #2563eb !important;
  color: white !important;
}



/* Radio outer circle */
[role="radio"] {
  width: 16px;
  height: 16px;
  border: 2px solid #6b7280; /* gray-500 */
  border-radius: 9999px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Checked state */
[role="radio"][data-state="checked"] {
  border-color: #2563eb; /* blue-600 */
}

.bg-input-background{
  background-color: #ffffff;
  border-color: #ccc;  
}

[data-state="checked"] svg {
    color: #2563eb !important;
    stroke: #2563eb !important;
}

.swal2-icon {
  display: none !important;
}
.swal2-icon.swal2-error {
  display: none !important;
}
.swal2-title{
  padding: 6px 4px!important;
  background-color: #b53434!important;
  color: white!important;  
  font-size: 1.4rem;
}
.swal2-confirm{
  background-color: #b53434;
}
.swal2-html-container{
  font-size: 14px;
}

@media (width >= 64rem) {
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.swal2-container {
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.swal2-popup {
  z-index: 100000 !important;
  pointer-events: auto !important;
}

@media (width >= 48rem) {
    .md\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* FOR CALENDAR */
.rdp-weekdays { height: 5px;}
.cal-week-fonts{
  font-size:0.9rem;
}

.mt-5 {
    margin-top: calc(var(--spacing) * 5);
}