.income_and_expences_container h2,
.income_and_expences_container h3 {
  text-align: center;
  margin: 0.5rem 0;
}

/* ====================== CONTAINER====================== */
.income_and_expences_container {
  max-width: 1200px;
  width: 100%;
  margin: 1rem auto;
  border: 1px solid rgb(0, 0, 255);
  border-radius: 12px;
  padding: 0.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ======================SECTION====================== */
.income_and_expences_container .section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ====================== TABLE WRAPPER ====================== */
.income_and_expences_container .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* ======================TABLE====================== */
.income_and_expences_container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.income_and_expences_container th,
.income_and_expences_container td {
  border: 1px solid #000;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}

.income_and_expences_container th {
  background: #f0f4ff;
  font-weight: bold;
  transition: all 3s linear;
}


/* ======================IDENTITY====================== */
.income_and_expences_container .identity {
  display: none;
  justify-content: flex-end;
  font-size: 0.9rem;
}

/* ======================BUTTONS====================== */
.income_and_expences_container .print {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.income_and_expences_container .print button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  background: #1e40af;
  color: white;
  cursor: pointer;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.income_and_expences_container .print button:hover {
  background: #1e3a8a;
}

/* ======================MOBILE====================== */
@media (max-width: 768px) {
  .income_and_expences_container h2 {
    font-size: 1rem;
  }

  .income_and_expences_container h3 {
    font-size: 0.8rem;
  }

  .income_and_expences_container th,
  .income_and_expences_container td {
    font-size: 0.6rem;
    padding: 10px 0px 10px 0px;
    width: fit-content;
  }

 .income_and_expences_container table {
    min-width: 90vw;
  }

  .income_and_expences_container .print {
    display: none;
  }
}

/* ======================PRINT ====================== */
@media print {
  .income_and_expences_container * {
    background: white !important;
    color: black !important;
    font-size: larger;
  }

  .income_and_expences_container {

    margin-top: 0;
    border: transparent 1px solid;
    width: 100%;
  }

  .income_and_expences_container table {
    width: 100%;
    min-width: auto;
  }
 .income_and_expences_container h2,
.income_and_expences_container h3 {
  text-align: center;
  margin: -0.5rem 0rem;
}
  .income_and_expences_container th,
  .income_and_expences_container td {
    padding: 2px;
    font-size: 1rem !important;
  }

  .income_and_expences_container .print {
    display: none;
  }

  .income_and_expences_container .identity {
    display: flex;
  }
}