html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

header {
  padding: 5px 0;
  position: relative;
  text-align: center;
}

#loginHeader {
  display: flex;
  padding: 5px 0;
  position: relative;
  align-items: center;
  justify-content: center;
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

nav a {
  color: #004052;
  text-decoration: none;
  padding: 10px;
  margin: 0 10px;
  font-size: 17px;
  font-weight: bold;
}

nav a:hover {
  color: #006f8e;
}

#tmdLogo {
  margin-top: 25px;
  width: 300px;
}

.left-aligned {
  margin: auto;
}

.right-aligned {
  margin-left: auto;
}

.homePageInfo {
  text-align: center;
  padding: 25px;
  margin-top: 50px;
  background:#004052;
  color: whitesmoke;
}

.homePageInfo-alt {
  text-align: center;
  padding: 25px;
  margin-top: 50px;
}

ul.a {
  list-style-type: disc;
  color: black;
}

/* FOOTER */
.mini-footer {
  display: flex; /* Use flexbox to layout the children (form groups) inline */
  flex-wrap: wrap; /* Allow items to wrap to the next line if there's not enough space */
  gap: 20px; /* Optional: Add some space between form groups */
  justify-content: center; /* Center items horizontally */
  padding: 5px;
  background-color: #000000;
  color: #ffffff;;
  margin-top: auto;
}

.mini-footer a {
  text-decoration: none;
  color: #ffffff;
}

.mini-footer a:hover {
  color: #006f8e;
}


.number {
  text-align: right !important;
}

.centered {
  text-align: center;
}

.centeredTable {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.overviewInfo {
  justify-content: left;
  align-items: left;
  padding: 10px;
  margin: 10px;
  border:1px solid #004052; 
  border-radius:4px;
  max-height: 75vh;
  overflow-y: auto;
}

.list {
  border-collapse: collapse;
  width: 100%;
  font-size: smaller;
}

.list td, .list th {
  padding: 5px;
}

.list tr:nth-child(even) {
  background-color: #f2f2f2; /* Light gray for even rows */
}

.list tr:nth-child(odd) {
  background-color: #ffffff; /* White for odd rows */
}

.multiDispInfo {
  justify-content: left;
  align-items: left;
  padding: 10px;
  margin: 10px;
  border:1px solid black; 
  border-radius:4px;
}

.overviewContainer {
  display:flex; 
  justify-content:center;
  width: 100%;
}

.amount {
  width: 12ch;
}

.bold {
  font-weight: bold;
}

.menuNav {
  font-weight: bold;
  color: #4CAF50;
}

.docTextIndent1 {
  margin-left: 20px;
  margin-right: 20px;
}

.docTextIndent2 {
  margin-left: 40px;
  margin-right: 20px;
}

#mainContent {
  margin-left: 245px;
  flex: 1;
}

#loginScreen {
  text-align: center; /* For text alignment */
  margin-top: 150px;
}

#userAccounts {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.text-green {
  color:#4CAF50;
}

.text-orange{
  color:#e26111
}

/* SIDE MENU */
.menu-btn {
  position: fixed;
  background: #004052;
  color: white;
  padding: 0px 5px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  z-index: 1000;
  border-radius: 4px;
  margin: 5px;
}
.side-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0px;
  width: 200px;
  top: 0;
  height: 100vh;
  background: #004052;
  color: white;
  padding: 10px;
  overflow-y: auto;
}
.side-menu a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
  font-size: smaller;
  margin-left: 10px;
}
.side-menu a:hover {
  background: #002d39;
}

.bottom-links {
  margin-top: auto;
  margin-bottom: 20px;
}

.top-links {
  margin-top: 50px;
}

.menu-line {
  height: 1px;
  border-top: 1px solid white;
  border-bottom: 0;
  border-right: 0;
  border-left: 0;
  margin-left: 10px;
}

  #docsHeader {
    margin-left: 20px;
  }

.standard-line {
  background-color: #004052;
  height: 1px;
  border: none;
}

/*   *** REQUIRED FIELDS (ASTERISK) ***   */
.asterisk {
  color: red;
  font-size: inherit;
}

/* CHECKBOXES AND OPTIONS */
.checkbox {
  transform: scale(2.5);
  margin: 10px;
}

.radioInput {
 border: none;
}

.not-checked {
  border: 2px solid red;
  padding: 10px;
  margin-bottom: 10px;
}

button {
    padding: 0;
    border: none;
    font: inherit;
    color: inherit;
    background-color: transparent;
    cursor: pointer;
  }

  input {
    margin: 0;
    padding: 3px;
    border: 1px solid #000;
    border-radius: 4px;
    font: inherit;
    color: inherit;
    background-color: transparent;
  }

  input[type="submit"]{
    cursor: pointer;
  }

  select {
    margin: 0;
    padding: 3px;
    border: 1px solid #000;
    border-radius: 4px;
    font: inherit;
    color: inherit;
    background-color: transparent;
  }

  textarea {
    margin: 0;
    padding: 3px;
    border: 1px solid #000;
    border-radius: 4px;
    font: inherit;
    color: inherit;
    background-color: transparent;
  }

  input[type="radio"] {
    width: 20px;
    height: 20px;
  }

/* USER ACCOUNTS TABLE */
.sectionStatus {
  width: fit-content;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.sectionStatus td {
  padding: 10px;
  border: none;
  text-align: left;
}

.sectionStatus tr {
  border: none;
}

.sectionStatus th {
  padding: 10px;
  border: none;
  text-align: left;
  cursor: pointer;
  background-color: #f2f2f2;
}

/* EDIT RESULTS DIV */
#editResults {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(249, 249, 249);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 8px 16px 0px;
  z-index: 1000;
  padding: 5px;
  border: 2px solid #004052;
  width: fit-content;
  text-align: center;
  border-radius: 4px;
  max-height: 300px; /* Limit height */
  overflow-y: auto;  /* Enable vertical scrollbar when needed */
}

/* EDIT RESULTS MANUAL DIV */
#editResultsManual {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(249, 249, 249);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 8px 16px 0px;
  z-index: 1000;
  padding: 25px;
  border: 2px solid #004052;
  width: fit-content;
  border-radius: 4px;
  max-height: 75vh;
  overflow-y: auto;
}

.button-container {
  display: flex;
  justify-content: space-between; /* or space-evenly / space-around */
}

/* MESSAGES */
.info-message {
  margin-left: 250px;
  margin-right: 250px;
  background-color: #006b89;
	color: #ffffff;
	padding: 10px;
	font-size: 16px;
  text-align: center;
  border-radius: 4px;
}

.error-message {
	background-color: #f8d7da;
	color: #721c24;
	padding: 10px;
	font-size: 16px;
	font-weight: bold;
  text-align: center;
  border-radius: 4px;
}

.success-message {
	background-color: #bff1b5;
	color: #155e2b;
	padding: 10px;
	font-size: 16px;
	font-weight: bold;
  text-align: center;
  border-radius: 4px;
}

/* #updateStatus {
  margin-left: 250px;
  margin-right: 250px;
} */

.mini-info {
  display: flex; /* Use flexbox to layout the children (form groups) inline */
  flex-wrap: wrap; /* Allow items to wrap to the next line if there's not enough space */
  gap: 20px; /* Optional: Add some space between form groups */
  justify-content: center; /* Center items horizontally */
  padding: 5px;
  background-color: #e7e8ea;
}

.mini-info a {
  text-decoration: none;
  color: #000000;
}

.mini-info a:hover {
  color: #f16807;
}

/* SCHEDULE TABLE  */
table.range {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

table.range td {
  border: 1px solid #ddd;
  text-align: center;
  padding: 10px;
  height: 20px;
  vertical-align: middle;
}

table.range th {
  border: 1px solid #ddd;
  text-align: center;
  padding: 10px;
  background-color: #f2f2f2;
}

/* RECEIPTLINE TABLE  */
table.receiptline {
  border-collapse: collapse;
  table-layout: fixed;
}

table.receiptline td {
  border: none;
  text-align: left;
  vertical-align: middle;
  padding: 5px;
}

table.receiptline th {
  border: 1px solid #ddd;
  text-align: center;
  padding: 5px;
  background-color: #f2f2f2;
}
table.receiptline tr:nth-child(even) {
  background-color: #ffffff; /* Light gray */
}

table.receiptline tr:nth-child(odd) {
  background-color: #f2f2f2; /* White */
}

/* FIND LIST TABLE  */
table.findList {
  border-collapse: collapse;
  margin: 25px;
  table-layout: fixed;
}

table.findList td {
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
  padding: 5px;
}

table.findList th {
  border: 1px solid #ddd;
  text-align: center;
  padding: 5px;
  background-color: #f2f2f2;
}

.selectRow:hover {
    color: white;
    background-color: #8d918e;
    cursor: pointer;
}

.selectListInfo {
  display: flex;
  height: 100%; 
  width: 100%;
  font-size: small;
  align-items: center;
}

.listLink {
  color:inherit;
  text-decoration: none;
  cursor: pointer;
}

.empty {
  display: flex;
  height: 100%; 
  width: 100%;
  color:white;
  font-size: small;
  justify-content: center;
  align-items: center; 
}
.empty:hover {
  background-color: #8d918e;
}

input {
  margin: 0;
  padding: 3px;
  border: 1px solid #000;
  border-radius: 4px;
  font: inherit;
  color: inherit;
  background-color: transparent;
}

.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* Add some space between the containers */
  justify-content: center;
  align-items: center;
}

.form-divider {
  min-width: 200px; /* Prevent the containers from becoming too small */
  max-width: 48%; /* Restrict the maximum width */
  box-sizing: border-box; /* Include padding and border in width calculation */
}

/* BUTTONS */

input[type="submit"] {
  cursor: pointer;
}

button {
  cursor: pointer;
}

.standard-button-small {
  display: inline-block;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: 2px solid #004052;
  color: white;
  background-color: #004052;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.standard-button-small:hover {
  background-color: #006f8e; /* Green background on hover */
  border: 2px solid #006f8e;
  color: white; /* White text on hover */
  cursor: pointer;
}

.edit-trn-button {
  display: inline-block;
  padding: 0px 5px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border: 2px solid #004052;
  color: white;
  background-color: #004052;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.edit-trn-button:hover {
  background-color: #002d39; /* Green background on hover */
  color: white; /* White text on hover */
}

.red-button-small {
  display: inline-block;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: 2px solid #aa3535;
  color: white;
  background-color: #aa3535;
  border-radius: 4px;
  cursor: pointer;
}

.page-button-small {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: 2px solid #7d7c7c;
  color: white;
  background-color: #7d7c7c;
  border-radius: 4px;
  cursor: pointer;
}

.spinner {
  display: flex;
  margin: 10px 0;
  align-items: center;
  gap: 10px;
}

/* New Transactions Table */
.newTrn {
  border-collapse: collapse;
  margin-bottom: 20px;
  width: 100%;
}

.newTrn td {
  padding: 5px;
  border: none;
  text-align: left;
}

.newTrn tr {
  border: none;
}

.newTrn th {
  padding: 5px;
  border: none;
  background: #c5c5c5;
  text-align: left;
  position: sticky; /* Makes headers sticky */
  top: 0; /* Makes headers sticky */
}

.newTrn input[type="number"] {
  width: 12ch; 
}

/* Transactions table */
.transactions {
  border-collapse: collapse;
  margin-bottom: 20px;
  width: 100%;
  font-size: smaller;
}

.transactions td {
  padding: 5px;
  border: none;
  text-align: left;
}

.transactions tr {
  border: none;
}

.transactions th {
  padding: 5px;
  border: none;
  background: #c5c5c5;
  text-align: left;
  font-size: medium;
  position: sticky; /* Makes headers sticky */
  top: 0; /* Makes headers sticky */
}

.transactions tr:nth-child(even) {
  background-color: #f2f2f2; /* Light gray for even rows */
}

.transactions tr:nth-child(odd) {
  background-color: #ffffff; /* White for odd rows */
}

.trnHeading {
  display: none;
}

/* Search table */
.searchTable {
  border-collapse: collapse;
  margin-bottom: 0px;
}

.searchTable td {
  padding: 5px;
  border: none;
  text-align: left;
}

.searchTable tr {
  border: none;
}

.searchTable th {
  padding: 5px;
  border: none;
  text-align: left;
}

#buttons td {
  padding-top: 15px;
}

.centeredTrnTable {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  padding-right: 25px;
}

.delete {
  text-align: center !important;
}

.trnEdit {
  text-align: center !important;
}

.setupCenterTd {
  text-align: center !important;
}

.standard-link {
  color: #048db3;
  font-weight: bold;
  text-decoration: none;
}

.standard-link:hover {
  color: #006f8e;
}

.category-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.category-link:hover {
  color: #004052;
}

#top-total {
  display: none;
}

#bottom-total {
  background-color: #004052; 
  color:white; 
  font-weight:bold;
}

@media screen and (max-width: 1400px) {
  /* New Transactions Table */
  .newTrn {
    width: 100%;
    border-collapse: collapse;
  }

  .newTrn tbody, .newTrn tr, .newTrn td {
    display: block;
  }  

  .newTrn td {
    padding: 10px;
    border: none;
    text-align: left;
  }

  .newTrn tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
  }

  .newTrn th {
    display: none;
  }

  #addEntry, #headings, #buttons {
    border: none;
  }

  .centeredTrnTable {
    display: block;
    justify-content: center;
    align-items: center;
    max-width: 100%;
  }
}

@media screen and (max-width: 960px) {
  #mainContent {
    margin: 30px;
  }

  #updateStatus {
    margin: 0;
  }

  .info-message {
    margin: 0;
    text-align: left;
  }

  nav {
      margin: 5px;
  }

  #ssForm {
      margin: 25px;
  }  

  .sectionStatus {
    width: 100%;
  }

  .overviewContainer {
    flex-direction: column;
    align-items: center;
  }

  .overviewInfo {
      width: 90%; /* Make it take most of the screen width */
      margin-bottom: 20px; /* Add spacing between stacked items */
      overflow-x: auto; /* Enable horizontal scrolling */
  }

  .multiDispInfo {
    width: 90%;
    margin-bottom: 20px;
  }

  #receiptItems {
    justify-content: left;
    white-space: nowrap;
    overflow-x: auto;
  }

  #addEntry, #headings, #buttons {
    border: none;
  }

  .centeredTrnTable {
    padding: 0px;
  }

  /* Transactions Table */
  .transactions {
    width: 100%;
    border-collapse: collapse;
  }

  .transactions tbody, .transactions tr, .transactions td {
    display: block;
  }  

  .transactions td {
    padding: 10px;
    border: none;
    text-align: left;
  }

  .transactions tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
  }

  .transactions th {
    display: none;
  }

  .transactions tr:nth-child(even) {
    background-color: #ffffff; /* Light gray for even rows */
  }

  .transactions tr:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
  }

  .trnHeading {
    display: block;
    font-weight: bold;
  }

  /* Search Table */
  .searchTable {
    width: 100%;
    border-collapse: collapse;
  }

  .searchTable tbody, .searchTable tr, .searchTable td {
    display: block;
  }  

  .searchTable td {
    padding: 10px;
    border: none;
    text-align: left;
  }

  .searchTable tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
  }

  .searchTable th {
    display: none;
  }

  .number {
    text-align: left !important;
  }

  .setupCenterTd {
    text-align: left !important;
  }
}

@media screen and (max-width: 600px) {

  #ssForm, 
  #categoryTransfer, 
  #accountTransfer, 
  #splitExpense, 
  #budgetAllocation, 
  .list, .newTrn, 
  .transactions, 
  .mobileLargeText,
  .searchTable {
    font-size: 18px;
  }

  #loginScreen {
    text-align: center; /* For text alignment */
    margin-top: 20px;
    font-size: 18px;
  }

  .docTextIndent1 {
    margin: 0px;
    font-size: 18px;
  }

  .docTextIndent2 {
    margin: 0px;
    font-size: 18px;
  }

  #userAccounts {
    display: block;
  }
  
  .sectionStatus, 
  .sectionStatus thead, 
  .sectionStatus tbody, 
  .sectionStatus th, 
  .sectionStatus td, 
  .sectionStatus tr {
    display: block;
    margin-right: 0;
    width: auto;
  }

  nav {
      margin: 25px;
      flex-direction: column;
  } 

  .mini-footer {
    flex-direction: column; /* Stack the form groups vertically on smaller screens */
    align-items: center; /* Center items vertically */
  }

  .right-aligned {
    margin: auto;
  }

  .left-aligned {
    margin: auto;
  }

  .mini-info {
    flex-direction: column; /* Stack the form groups vertically on smaller screens */
    align-items: center; /* Center items vertically */
  }

  .sectionStatus tr {
    border: 1px solid #ddd;
  }

  .side-menu {
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 0px;
  }

  .side-menu a {
    font-size: medium;
    margin-left: 0;
  }

  .menu-line {
    margin-left: 0;
  }

  #docsHeader {
    margin-left: 0;
  }

  .centeredTable {
    display: block;
    justify-content: center;
    align-items: center;
    max-width: 100%;
  }

  #buttons td {
    text-align: center;
  }

  .menu-btn {
    margin: 10px;
  }

  .notesField {
    height: 100px;
    resize: vertical;
  }

  #editResultsManual {
    width: 85vw;
    max-height: 85vh;
    font-size: 18px;
  }

  .overviewInfo {
    max-height:max-content;
    overflow-y:visible;
  }

  #reports {
    font-size: 18px;
  }

  .form-container {
    display: block;
    font-size: 18px;
  }

  .form-container div {
    margin-bottom: 10px;
  }

  .form-wrapper {
    justify-content: left;
  }

  .transactions td {
    padding: 3px;
  }

  .transactions tr {
    padding: 5px;
  }

  #headings {
    display: none;
  }

  #top-total {
    display: block;
    background-color: #004052; 
    color:white; 
    font-weight:bold;
  }

  .mobile-hide {
    display: none !important;
  }

  .homePageInfo {
    text-align: left;
    margin-top: 0;
  }

  .homePageInfo-alt {
    text-align: left;
    margin-top: 0;
  }

  #tmdLogo {
  width: 200px;
}
}  