.insights-header {
   padding: 20px 24px;
    font-family: Montserrat;

  }
  
  .insights-header h2 {
      margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: rgb(31, 41, 55);
   
  }
  
  .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
  }
  
  .tab {
    height: auto;
    border: none;
    border-radius: 999px;
    background-color: transparent;
    color: rgb(45, 49, 55);
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: Montserrat;
    word-break: break-word;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .tab.active {
    background-color: rgb(31, 41, 55);
    color: white;
    border-color: rgb(31, 41, 55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .tab:hover:not(.active) {
    background-color: #f1f5f9;
  }
  
  
  /* Secciones de contenido */
  .tab-content {
    margin: 10px;

  }
  
  .tab-section {
    display: none;
  }
  
  .tab-section.active {
    display: block;
  }
  
  .styled-table {
   
    width: 100%;
    margin: auto;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
  }
  
  .styled-table th, .styled-table td {
    font-family: Montserrat;
    color: #555;
    font-size: 12px;
  }
  .th-content {
    text-align: center;
    display: flex

  }
  
  .th-content span,
  .th-content img {
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
  }

  .input_search_add_transaction{
    background-color: #f3f4f6;
    border: none;
    padding: 10px 14px;
    border-radius: 9999px;
    font-size: 14px;
    color: gray;
    box-shadow: inset 0 0 0 1px #d1d5db;
    width: calc(100% - 28px);
    font-family: Montserrat;
  }

  .input_notes_add_transaction{
    background-color: #f3f4f6;
    border: none;
    padding: 10px 14px;
    border-radius: 9999px;
    font-size: 14px;
    color: gray;
    box-shadow: inset 0 0 0 1px #d1d5db;
    width: calc(100% - 28px);
    font-family: Montserrat;
  }
  

  .table_header tr{
    display: grid;
    grid-template-columns: repeat(9, 1fr);
  }
  
  .sort-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    filter: opacity(0.6);
    transition: transform 0.2s ease;
  }
  
  .fill-space {
    flex-grow: 1;
  }
  
  
  
  
  .dots-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }


#modalPreview{
  background-color: white;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  object-fit: contain;
  border: 2px solid rgb(41 51 65);
  flex-shrink: 0;
}

  .customer-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .customer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    object-fit: contain;
  }
  
  .styled-table th:nth-child(6),
.styled-table td:nth-child(6) {
  width: 60px; /* o menos si querés */
  text-align: center;
}


.add-transaction-bar {
  margin-bottom: 1rem;
  text-align: right;
}


/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background-color: #f5f4f1;
  padding: 20px;
  width: 400px;
  border-radius: 25px;
}
.modal-content h3 {
  margin-top: 0;
}

.modal-content label {
  color: gray;
  text-align: start;
  margin-left: 5%;
}

.modal-buttons {
  text-align: right;
}


.transactions-wrapper {
  max-height: 950px;
  overflow-y: auto;
  margin-top: 10px;
  border-radius: 8px;
}

/* Para que el header quede fijo */
.styled-table thead.table_header {
  display: block;
  position: sticky;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Scroll bonito (opcional) */
.transactions-wrapper::-webkit-scrollbar {
  width: 6px;
}
.transactions-wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}



/* ----------------------------FORMULARIOS ADD ------------------------------*/


.add-transaction-placeholder-row td {
  padding: 0; /* quitar padding para que el div ocupe todo */
}

.add-transaction-placeholder {
  border: 4px dashed rgba(31, 41, 55, 0.4);
  opacity: 0.4;
  border-radius: 12px;
  height: 66px;
  margin-top: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-transaction-placeholder:hover {
  opacity: 1.0;
  border-color: rgba(31, 41, 55, 1.0);
}

.add-transaction-content {
  display: flex;
  align-items: center;
  gap: 12px;
}



.add-product-placeholder {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    height: 66px;
    border: 4px dashed rgba(31, 41, 55, 0.4);
    border-radius: 12px;
    opacity: 0.4;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: rgb(41 51 65);
}
.add-product-placeholder:hover {
  border: 4px dashed rgba(31, 41, 55, 1);
  opacity: 1;
}

.add-transaction-placeholder img {
  margin-right: 5px;
  height: 24px;
  width: 24px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.add-transaction-placeholder:hover img {
  opacity: 1;
}

.add-transaction-text {
  min-width: 103px;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(31, 41, 55);
}



.category-btn:hover {
  background-color: #e0e7ff;
}

.category-btn.active {
  background-color: rgb(41 51 65);
  color: white;
  border-color: rgb(41 51 65);
}

select {
  font-family: Montserrat;
  color: gray;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f3f4f6; 
  border: none;
  padding: 10px 14px;
  padding-right: 36px; /* espacio para la flecha */
  border-radius: 9999px;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px #d1d5db;
  background-image: url('/assets/down-chevron.png');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  width: 100%;
}

select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #2563eb;
  background-color: #fff;
}
.category-buttons {
  display: grid;
      grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

.category-btn {
  padding: 8px 16px;
  border: none;
  color: gray;
  font-family: Montserrat;
  background-color: #e8e9eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.form_save_button {
  font-family: Montserrat;
  background-color: rgb(41, 51, 65);
  color: white;
  height: 50px;
  border-radius: 9999px;
  border: none;
  width: 100%;
  margin: auto;
  cursor: pointer;
}

.form_trash_button:hover {
  scale: 1.05;
}
.form_save_button:hover {
 
  scale: 1.05;
}

.modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1rem;
}



.form_trash_button {
  background-color: rgb(230, 230, 230);
  height: 50px;
  width: 100%;
  border: none;
  margin: auto;
  border-radius: 9999px;
  cursor: pointer;
}
.form_trash_button img{
  filter: invert(0.5);
width: 24px;
height: auto;
}


input[type="number"]::placeholder{
  color: #9ca3af;
}


input[type="number"]:focus,
input[type="password"]{
  outline: none;
 
  background-color: #fff;
}

.add-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
}
.table_header_activity tr {
  display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    margin-bottom: 5px;
}
.table_header_3 tr{
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}
.table_header_2 tr{
  display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.transaction-line {

  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: center;
  background-color: #f5f4f1;
  border-radius: 12px;
  margin-bottom: 10px;
  height: 75px;
  gap: 10px;
  padding: 0 10px; /* opcional para dar algo de espacio */
}
.transaction-line_2 {

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  background-color: #f5f4f1;
  border-radius: 12px;
  margin-bottom: 10px;
  height: 75px;
  gap: 10px;
  padding: 0 10px; /* opcional para dar algo de espacio */
}
.transaction-line_3 {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background-color: #f5f4f1;
  border-radius: 12px;
  margin-bottom: 10px;
  height: 75px;
  gap: 10px;
  padding: 0 10px; /* opcional para dar algo de espacio */
}


.table_header{
  background-color: #d9d7dc;
  color: #555;
  font-family: Montserrat;
}

.add_transactions_date_input{
  margin-bottom: 16px;
  margin-bottom: 16px;
    color: gray;
    background-color: #f3f4f6;
    border: none;
    padding: 10px 14px;
    border-radius: 9999px;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px #d1d5db;
    width: calc(100% - 28px);
    font-family: Montserrat;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Igual ancho que el input */
  max-height: 150px;
  overflow-y: auto;
  background: white;
  z-index: 1000;
  box-sizing: border-box;
  border-radius: 4px;
}

.autocomplete-suggestions div {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-suggestions div:hover {
  background-color: #f0f0f0;
}