﻿#company {
  margin-top: 0.8em;
  margin-left: 1.2em;
}

#mainContainer {
  /* overflow: auto;*/
  margin-left: 15%;
  margin-right: 15%;
  /* padding-top: 1em;*/
  padding-bottom: 1em;
  border: none;
  box-shadow: none;
}
#Revenue_Heading,
#Expense_Heading {
  padding: 5px;
  margin-bottom: 0;
}
#printButton,
#compareButton {
  background-color: transparent;
  border: 2px solid #3d85c6;
  border-radius: 10px;
  width: fit-content;
  color: #3d85c6;
  height: 35px;
  font-weight: 600;
  transition: ease-in 0.3s;
  float: right;
  margin-right: 5px;
}

.tab-content {
  overflow-x: auto;
  margin-top: 5px;
}

.tab-content th {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  background-color: white;
  z-index: 1;
  border-bottom: 2px solid grey;
}

@media screen and (max-width: 581px) {
  #mainContainer {
    margin-left: 0;
    margin-right: 0;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }

  #fromDateLabel {
    padding-right: 0.5em;
  }

  #toDateLabel {
    padding-right: 1.8em;
  }

  /* New code */
  #printButton,
  #compareButton {
    font-size: 12px;
    padding: 2px 8px;
    height: 30px;
    margin-top: 5px;
    display: inline-block;
  }
  #header > h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }
  td:first-child {
    width: 1% !important;
    /* white-space: nowrap !important; */
  }
}

@media screen and (min-width: 581px) and (max-width: 643px) {
  #mainContainer {
    margin-left: 8%;
    margin-right: 8%;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }
}

@media screen and (min-width: 643px) and (max-width: 679px) {
  #mainContainer {
    margin-left: 12%;
    margin-right: 12%;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }
}

@media screen and (min-width: 680px) and (max-width: 821px) {
  #mainContainer {
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (min-width: 821px) and (max-width: 993px) {
  #mainContainer {
    margin-left: 3%;
    margin-right: 3%;
  }
}

@media screen and (min-width: 993px) and (max-width: 1003px) {
  #mainContainer {
    margin-left: 12%;
    margin-right: 12%;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }
}

@media screen and (min-width: 1003px) and (max-width: 1048px) {
  #mainContainer {
    margin-left: 0%;
    margin-right: 0%;
  }
}

@media screen and (min-width: 1048px) and (max-width: 1227px) {
  #mainContainer {
    margin-left: 3%;
    margin-right: 3%;
  }
}

@media screen and (min-width: 1227px) and (max-width: 1300px) {
  #mainContainer {
    margin-left: 12%;
    margin-right: 12%;
  }
}
/* Updated Css for filters */
.col-sm-4 {
  position: relative;
}
label {
  position: absolute;
  top: -17px;
  background: white;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  margin-left: 4px;
}
#changeDate_options_div label {
  top: -22px;
}
input[type="date"],
select {
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  height: 32px;
  margin-top: 5px;
}
/* Medium screens (481px to 768px) */
@media screen and (max-width: 768px) {
  .col-sm-4 {
    width: 100%;
    margin-bottom: 15px;
  }

  label {
    font-size: 13px;
    margin-left: 3px;
    top: -16px;
  }

  input[type="date"],
  select {
    font-size: 13px;
    height: 30px;
  }
}

/* Large screens (769px and up) */
@media screen and (min-width: 769px) {
  .col-sm-4 {
    flex: 1;
  }

  label {
    font-size: 14px;
    top: -17px;
  }

  input[type="date"],
  select {
    font-size: 14px;
    height: 32px;
  }
}

/* New code */

#company {
  margin-top: 0.8em;
  margin-left: 1.2em;
}

#mainContainer {
  /* overflow: auto;*/
  margin-left: 15%;
  margin-right: 15%;
  /* padding-top: 1em;*/
  padding-bottom: 1em;
  border: none;
  box-shadow: none;
}
#Revenue_Heading,
#Expense_Heading {
  padding: 5px;
  margin-bottom: 0;
}
#printButton,
#compareButton {
  background-color: transparent;
  border: 2px solid #3d85c6;
  border-radius: 10px;
  width: fit-content;
  color: #3d85c6;
  height: 35px;
  font-weight: 600;
  transition: ease-in 0.3s;
  float: right;
  margin-right: 5px;
}

.tab-content {
  overflow-x: auto;
  margin-top: 5px;
}

.tab-content th {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  background-color: white;
  z-index: 1;
  border-bottom: 2px solid grey;
}

@media screen and (max-width: 581px) {
  #mainContainer {
    margin-left: 0;
    margin-right: 0;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }

  #fromDateLabel {
    padding-right: 0.5em;
  }

  #toDateLabel {
    padding-right: 1.8em;
  }
}

@media screen and (min-width: 581px) and (max-width: 643px) {
  #mainContainer {
    margin-left: 8%;
    margin-right: 8%;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }
}

@media screen and (min-width: 643px) and (max-width: 679px) {
  #mainContainer {
    margin-left: 12%;
    margin-right: 12%;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }
}

@media (max-width: 767px) {
  .table-responsive .table td,
  .table-responsive .table th {
    white-space: normal !important; /* allow wrapping */
  }
}

@media screen and (min-width: 680px) and (max-width: 821px) {
  #mainContainer {
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (min-width: 821px) and (max-width: 993px) {
  #mainContainer {
    margin-left: 3%;
    margin-right: 3%;
  }
}

@media screen and (min-width: 993px) and (max-width: 1003px) {
  #mainContainer {
    margin-left: 12%;
    margin-right: 12%;
  }

  #FromDateInputDiv {
    text-align: start;
  }

  #ToDateInputDiv {
    text-align: start;
  }
}

@media screen and (min-width: 1003px) and (max-width: 1048px) {
  #mainContainer {
    margin-left: 0%;
    margin-right: 0%;
  }
}

@media screen and (min-width: 1048px) and (max-width: 1227px) {
  #mainContainer {
    margin-left: 3%;
    margin-right: 3%;
  }
}

@media screen and (min-width: 1227px) and (max-width: 1300px) {
  #mainContainer {
    margin-left: 12%;
    margin-right: 12%;
  }
}
/* Updated Css for filters */
.col-sm-4 {
  position: relative;
}
label {
  position: absolute;
  top: -17px;
  background: white;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  margin-left: 4px;
}
#changeDate_options_div label {
  top: -22px;
}
input[type="date"],
select {
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  height: 32px;
  margin-top: 5px;
}
/* Medium screens (481px to 768px) */
@media screen and (max-width: 768px) {
  .col-sm-4 {
    width: 100%;
    margin-bottom: 15px;
  }

  label {
    font-size: 13px;
    margin-left: 3px;
    top: -16px;
  }

  input[type="date"],
  select {
    font-size: 13px;
    height: 30px;
  }
}

/* Large screens (769px and up) */
@media screen and (min-width: 769px) {
  .col-sm-4 {
    flex: 1;
  }

  label {
    font-size: 14px;
    top: -17px;
  }

  input[type="date"],
  select {
    font-size: 14px;
    height: 32px;
  }
}
