/**
 */
/* */
body {
  text-align: center;
}

header {
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
}

th.dtfc-fixed-left {
  background-color: #343a40 !important;
  border-color: #454d55 !important;
  color: #fff !important;
}

.navbar {
  margin-bottom: 2%;
}



.csv-picker {
    min-width: 300px;
}

#filterModal .modal-content {
  color: #62636f
}

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

.bills-table th, .bills-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    text-overflow: ellipsis;
    /*white-space: nowrap;*/
}

.topGroup {
    display: flex; /* Aligns children horizontally */
    justify-content: flex-start; /* Aligns children to the start of the container */
    align-items: baseline; /* Aligns items based on text  */
    gap: 60px; /* Optional: adds some space between the groups */
    padding-top: 40px;
}

.billsHeaderLeft {
  display: grid;
  justify-items: start;
}

.billsHeaderCenter {
  display: grid;
  justify-items: center;
}

.th, .td {
    border: 1px solid #ddd;
    padding: 8px;
    text-overflow: ellipsis;
}

/* Set a fixed width for the x column */
/* Measure Title optimized for 3 words*/
/* Measure title */
#checkbox-col {
  min-width: 25px;
}

#clients-col {
  min-width: 100px;
}

#measure-title-col {
  min-width: 150px;
}

#report-title-col {
  min-width: 200px;
}

#description-col {
  min-width: 350px;
}

#bill-health-col {
  min-width: 100px
}

#companions-col {
  min-width: 75px;
}

#recent-status-col {
  min-width: 250px;
}

#status-group-col {
  min-width: 150px;
}

#intro-col {
  min-width: 200px;
}

#notes-col {
  min-width: 350px;
  cursor: pointer;
}

.notes-data {
  cursor: pointer;
}

.action-data {
  cursor: pointer;
}

.categories-data {
  cursor: pointer;
}

.priority-data {
  cursor: pointer;
}

#action-col {
  min-width: 150px;
}

#categories-col {
  min-width: 150px;
}

#priority-col {
  min-width: 150px;
}

ion-icon {
  --ionicon-stroke-width: 32px;
  font-size: 32px;
}

.checkbox-container {
    text-align: left;
    padding-left: 10px; /* Adjust padding as needed */
}

.dropdown-menu {
  z-index: 1050;
  position: absolute !important; /* Position relative to parent */
  transform: translate3d(0px, 38px, 0px) !important; /* Offset from the toggle button */
  white-space: nowrap;
  padding-right: 1rem;
}

#clientFilterDropdown .dropdown-menu {
  max-height: 500px; /* Adjust this value as needed */
  overflow-y: auto; /* Enables vertical scrolling */
}

#statusGroupDropdown .dropdown-menu {
  max-height: 500px; /* Adjust this value as needed */
  overflow-y: auto; /* Enables vertical scrolling */
}

#categoryFilterDropdown .dropdown-menu {
  max-height: 500px; /* Adjust this value as needed */
  overflow-y: auto; /* Enables vertical scrolling */
}

.select-clear-link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.select-clear-link:hover {
    cursor: pointer;
}


tr:hover {
    background-color: #f5f5f5;
}

table.dataTable tbody td.editable-cell {
  cursor: pointer !important;
}

table.dataTable tbody td.editable-cell:hover {
  cursor: pointer;
  background-color: #f5f5f5 !important;
  box-shadow: inset 0 0 0 1px #ddd !important;
  cursor: pointer !important;
}

/* CSS to add padding to the bottom of the container */
.bottom-padding {
    padding-bottom: 60px; /* Adjust the value as needed */
}

.center-text {
    width: 550px; /* Set the maximum width */
    /* border: 1px solid #ccc; */
    /* white-space: normal; /* Ensure text wraps */
    text-align: justify;
    text-justify: inter-word;
}

.beta-ribbon {
  position: fixed;
  top: 55px;
  right: -25px;
  z-index: 10000;
  display: inline-block;
  background-color: #f05f40;
  color: #fff;
  text-align: center;
  padding: 5px 40px;
  transform: rotate(45deg);
  transform-origin: top right;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
}

.error-image {
    max-width: 25%;
    height: auto;
    align-self: center;
    padding-top: 1%;
    padding-bottom: 2%;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

#edit-cbd-form {
    display: grid;
    gap: 15px;
    padding: 20px;
}

.form-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.grid-container {
    display: contents; /* This will make the grid-container not create its own grid */
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 3fr;
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 10px;
}

.grid-header .grid-label,
.grid-header .grid-input {
    padding: 5px;
    text-align: left; /* Align text to the left for both headers */
}

.grid-header .grid-label {
    grid-column: 1 / 2;
}



#bill_id {
    display: none;
}

.submit-button {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 20px;
}

.client-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 10px;
}

.grid-row {
    display: contents;
}

.grid-cell {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.header .grid-cell {
    background-color: #f8f9fa;
}

.grid-cell select,
.grid-cell textarea {
    width: 100%;
}

.grid-cell textarea {
    min-height: 60px;
}

/* Custom checkbox styles - for datatable select */

/* Override DataTables selected row style */
table.dataTable>tbody>tr.selected>* {
  box-shadow: inset 0 0 0 9999px #d6d1d1;
  color: inherit !important;
}

/* Override hover state for both selected and unselected rows */
table.dataTable>tbody>tr:hover>*,
table.dataTable>tbody>tr.selected:hover>* {
  box-shadow: inset 0 0 0 9999px #f5f5f5 !important;
  color: inherit !important;
}

/* Base checkbox style */
table.dataTable>tbody>tr>td.select-checkbox:before,
table.dataTable>tbody>tr>th.select-checkbox:before {
  content: '' !important;
  width: 1rem !important;
  height: 1rem !important;
  margin-top: -0.5rem !important;
  margin-left: -0.5rem !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.25rem !important;
  background-color: #fff !important;
}

/* Remove default DataTables checkmark */
table.dataTable>tbody>tr.selected>td.select-checkbox:after,
table.dataTable>tbody>tr.selected>th.select-checkbox:after {
  content: '' !important;
  width: 0.75rem !important;
  height: 0.75rem !important;
  margin-top: -0.375rem !important;
  margin-left: -0.375rem !important;
  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='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}


/* Add spacing for the bulk edit form */
#bulk-edit-clients-form {
  padding: 1rem;
}

/* Add padding to the left of the list items in the alert */
.alert-secondary ul {
  padding-left: 1.2rem;
}

.help-icon {
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  /* This will make it match the text color */
  display: flex;
  /* This helps with vertical alignment */
  align-items: center;
  margin-top: -2px;
  /* Fine-tune vertical alignment if needed */
}

/* Optional hover effect */
.help-icon:hover {
  opacity: 0.7;
}

/* Make sure the alert text color is inherited by the icon */
.alert-info .help-icon {
  color: inherit;
}

/* For the filter row's fixed columns - this ensures dropdowns in sticky rows are not covered by the title header*/
table.dataTable thead tr:first-child th.dtfc-fixed-left {
    position: sticky;
    left: 43px;
    z-index: 4;
}

