:root {
  /* Override Bootstrap's font settings */
  --bs-body-font-family: 'Poppins', sans-serif;
  --bs-font-sans-serif: 'Poppins', sans-serif;
  --bs-font-monospace: 'Poppins', monospace;

  --bs-border-color: #293454;
  
  /* Define your own custom properties for consistent usage */
  --primary-color: #000000;
  --secondary-color: #abb7ba;
  --light-gray: #e0e0e0;
  --white: #ffffff;
  --error-color: #ff1a1a;
  --info-color: #377ba8;
  --success-color: green;
  --warning-color: orange;
  --danger-color: red;
  
  /* Font sizes */
  --base-font-size: 1.2em;
  --small-font-size: 0.8em;
  --smaller-font-size: 0.6em;
  --large-font-size: 1.25rem;
  --h1-font-size: 2rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.5rem;
  --h4-font-size: 1.25rem;
  --h5-font-size: 1.1rem;
  --h6-font-size: 1rem;
  --input-font-size: 1em; /* Specific size for form inputs */
}
/* Override Bootstrap's input font size */
input, 
select, 
textarea, 
button,
.form-control,
.form-select,
.btn {
  font-size: var(--input-font-size) !important;
}
/* Set base font size on html element to ensure proper inheritance */
html {
  font-family: var(--bs-body-font-family);
  font-display: swap;
  font-size: 16px; /* Set a base pixel size for rem calculations */
  background: #eee;
  padding: 1rem;
}

/* Set the body font size using rem units for better scaling */
body {
  font-family: var(--bs-body-font-family);
  font-size: var(--base-font-size);
  max-width: 960px;
  margin: 0 auto;
  background: white;
  padding: 0 0rem 1rem;
}

h1, h2, h3, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem;
}

h4 {
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 1rem;
}

.text60pct{
  font-size: var(--smaller-font-size);
}
.text80pct{
  font-size: var(--small-font-size);
}

a {
  color: var(--primary-color);
}
a:hover {
  color: var(--secondary-color);
}



hr {
  border: none;
  border-top: 1px solid lightgray;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 5px solid var(--secondary-color);
  padding: 1rem 0.5rem 0 0.5rem;
}

nav > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.nav-title {
    display: block;
  }
@media (min-width: 530px) {
  .nav-title {
    display: flex;
    align-items: center;
  }
}

nav h1 a {
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

nav ul  {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a, nav ul li span, header .action {
  display: block;
  padding: 0.5rem;
}

body > header {
  border-bottom: 1px solid lightgray;
  display: flex;
  align-items: flex-end;
}

body > header h1 {
  flex: auto;
  margin: 1rem 0 0.25rem 1rem;
}

body > content {
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem;
}

.info_flash {
  margin: 1em 0;
  padding: 1em;
  background: #cae6f6;
  border: 1px solid var(--info-color);
}

.error_flash {
  margin: 1em 0;
  padding: 1em;
  background: #ff8080;
  border: 1px solid var(--error-color);
}

.warning_flash {
  margin: 1em 0;
  padding: 1em;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.app-list-item {
	margin: 1rem;
  display: inline-flex;
  justify-content: space-between;
}

body:last-child {
  margin-bottom: 0;
}

body form {
  margin: 1em 0;
  display: flex;
  flex-direction: column;
}

body label {
  font-weight: bold;
  margin-bottom: 0.5em;
}

body input, body textarea {
  margin-bottom: 1em;
}

/*body textarea {
  min-height: 12em;
  resize: vertical;
}*/

input.alternate {
  background-color: #e0bb24 !important;
}
input[type=submit].alternate:hover {
  background-color: #cfb961 !important;
}

input.danger {
  background-color: #cc2f2e !important;
}
input[type=submit].danger:hover {
  background-color: #d6746d !important;
}
/*
input[type=submit] {
  align-self: start;
  margin: 1rem;
  min-width: 10em;
}
*/
.inline-search {
	display: inline-block;
	margin: 1rem;
}

.large-form {
  margin: 2rem;
}
.large-form label {
  margin: 10px 10px 10px 0px;
}

input, select {
  max-width: 20rem;
  /* min-height: 2em; */
  width: 9rem;
  border: 1px solid;
}

.small-input{
  width: 6em;
  padding: 0 !important;
  margin: .5em;
}

.inline-form{
  display: flex;
  margin:0 1rem;
  flex-flow: row nowrap;
  justify-content: space-around;

}

.inventory-list-item {
  display: inline-flex;
  width: 100%;
  justify-content: space-between;
}

.width1of1 {
  width: 100%;
}
.width1of2 {
  width: 50%;
}
.width1of3{
  width: 33.33%;
}
.width2of3 {
  width: 66.66%;
}
.width1of4{
  width: 25%;
}
.width1of6{
  width: 16.66%;
}
.width13pct{
  width: 13.33%;
}
.nopadding{
  padding: 0 !important;
}
.Rtable {
  display: block;
  /*flex-wrap: wrap;*/
  margin: 1rem;
  padding: 0;
  overflow-wrap: break-word;
}
.Rtable.innerTable {
  margin: 0;
  display: flex;
}

.subcell{
  font-size: var(--smaller-font-size);
  padding-right: 0;
  padding-left: 0;
  text-align: center;
}

.Rtable--3cols{
  display: flex;
  flex-wrap: wrap;
  margin: 1rem;
  padding: 0;
}
.Rtable-cell1col{
  padding: 0.5em 0.8em;
  list-style: none;
  border: solid 1px lightgray;
}
.Rtable-cell2col{
  padding: 0.5em 0.8em;
  list-style: none;
  border: solid 1px lightgray;
}
.Rtable-cell3col {
    box-sizing: border-box;
    flex-grow: 1;
    width: 33.33%; 
    padding: 0.5em 0.8em;
/*    overflow: hidden; */
    list-style: none;
    border: solid 1px lightgray;
}
.Rtable-cell4col {
    padding: 0.5em 0.8em;
    list-style: none;
    border: solid 1px lightgray;
}
.Rtable-cell5col {
    padding: 0.5em 0.8em;
    list-style: none;
    border: solid 1px lightgray;
}
.Rtable-cell6asym {
    padding: 0.5em 0.8em;
    list-style: none;
    border: solid 1px lightgray;
}
.Rtable-cell6asymqty {
    padding: 0.5em 0.8em;
    list-style: none;
    border: solid 1px lightgray;
}
.Rtable-cell7col {
    padding: 0.5em 0.8em;
    list-style: none;
    border: solid 1px lightgray;
}
@media (min-width: 530px) {
  .Rtable {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem;
    padding: 0;
    align-items: stretch;
  }
  .Rtable-cell1col {
    box-sizing: border-box;
    flex-grow: 1;
    width: 100%;
    padding: 0.5em 0.8em;
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell2col {
    box-sizing: border-box;
    flex-grow: 1;
    width: 50%;
    padding: 0.5em 0.8em;
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell4col {
    box-sizing: border-box;
    flex-grow: 1;
    width: 25%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell5col {
    box-sizing: border-box;
    flex-grow: 1;
    width: 20%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell6col {
    box-sizing: border-box;
    flex-grow: 1;
    width: 16.66%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell7col {
    box-sizing: border-box;
    flex-grow: 1;
    width: 14.286%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell6asym {
    box-sizing: border-box;
    flex-grow: 1;
    width: 17.6%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell6asymqty {
    box-sizing: border-box;
    flex-grow: 1;
    width: 12%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell60pct {
    box-sizing: border-box;
    flex-grow: 1;
    width: 60%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
  .Rtable-cell13pct {
    box-sizing: border-box;
    flex-grow: 1;
    width: 13.33%; 
    padding: 0.5em 0.8em;
    overflow: hidden; 
    list-style: none;
    border: solid 1px lightgray;
  }
}
input[type=submit] {
  display: inline-block;
  border-radius: 3em;
  box-sizing: border-box;
  text-decoration: none;
  font-weight: 300;
  color: var(--white);
  background-color: var(--info-color);
  text-align: center;
  transition: all 0.2s;
}

input[type=submit]:hover {
  background-color: #4095c6;
}

.inline-heading-content {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0.5rem ;
}
.inline-heading {
  margin: 0rem 1rem 0rem 0rem;
}
.inline-content {
  margin: 0;
}


/* collapsible tables */
.collapse-icon {
  margin-right: -8px;
  vertical-align: middle;
  /*transform: 180deg;*/
}
.collapsible-heading {
  font-size: var(--large-font-size);
  display: flex;
  justify-content: space-around;
  cursor: pointer;
}


.filters-form-cell {
  padding: 10px;
  font-size: var(--small-font-size);
  font-weight: normal;
}

.odd {
  background-color: #e0e0e0;
}

.header_image {
  max-width:10rem; 
  max-height: 2rem; 
  padding-right: 1rem;
}

.icon-size {
  width:1em;
  height:1em;
  vertical-align: middle;
}

.flex {
  display: flex;
}

.table-header {
  text-align: center;
  margin: 0;
}

#togglePassword {
  margin-left: -30px;
  cursor: pointer;
  max-height: .7em;
}

.centered {
  text-align: center;
}

.redbg {
  background-color: red;
}

.greenbg {
  background-color: green;
}
.orangebg {
  background-color: orange;
}
.height100px {
  height: 100px;
}
.red {
  color: var(--danger-color);
}
.orange {
  color: var(--warning-color);
}
.green {
  color: var(--success-color);
}
.white {
  color: var(--white);
}
.blue{
  color: blue;
}
.inline-checkbox {
  margin: auto; width: auto; vertical-align: bottom;
}

.borderless {
  border: none;
}
.bordered {
  border: solid 1px lightgrey;
}

.widget-table {
  max-width: 350px;
}
.scrollable-widget-table{
  height: 400px;
  width: 500px;
  overflow-y: auto;
}

.right-margin {
  margin-right: 15px;
}

.left-margin {
  margin-left: 15px;
}

.hidden {
  display: none;
}

.row-form{
  flex-flow:row wrap;
  justify-content: space-evenly;
}

.centered-flexbox{
  display: flex;
  align-items: center;
  align-content: space-around;
}

#picklists{
  width: auto;
}

/************************* CUSTOM SELECT START ***********************************/

/*body {
    font-family: sans-serif;
    background: #eeeeee;
  }
  .wrapper {
    margin: 1em auto;
    text-align: left;
  }*/
  .sample {
/*    border: 1px solid #eeeeee;*/
    background: #ffffff;
    max-width: 30em;
/*    padding: 1em;*/
/*    margin-bottom: 1em;*/
  }
  .custom-select {
    position: relative;
  }
  .select-css {
    display: block;
    font-size: 1em;
    font-family: sans-serif;
    font-weight: 700;
    color: #444;
    line-height: 1.3;
    padding: 0.6em 1.4em 0.5em 0.8em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.04);
    border-radius: 0.25em;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    position: relative;
    z-index: 10;
  }
  .select-css::-ms-expand {
    display: none;
  }
  .select-css:hover {
    border-color: #888;
  }
  .select-css:focus {
    border: 2px dashed blue;
    color: #222;
    outline: none;
  }
  .custom-select-icons {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    z-index: 20;
    border: 1px solid white;
    background: transparent;
  }
  .custom-select-options {
    border: 1px solid #aaa;
    border-radius: 0 0 0.25em 0.25em;
    line-height: 1.5;
    margin: 0;
    margin-top: -0.5em;
    padding: 0;
    list-style-type: none;
    font-weight: normal;
    cursor: pointer;
    z-index: 30;
    position: absolute;
    width: calc(100% - 1px);
    background-color: #ffffff;
  }
  .custom-select-options li {
    padding: 1em;
  }
  .custom-select-options li:hover {
    background: blue;
    color: #fff;
    border: 1px solid blue;
    border-width: 0 0 0 1px;
  }
  
  .custom-select-options li:focus {
    border: 1px solid blue;
  }
  .icon {
    fill: ButtonText;
    pointer-events: none;
  }
  @media screen and (-ms-high-contrast: active) {
    .icon {
      fill: ButtonText;
    }
  }
  .hidden-all {
    display: none;
  }
  .hidden-visually {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    border: 0;
  }
  

/************************* CUSTOM SELECT END ***********************************/

tr.settled {
    background-color: #f0f0f0;
    color: #666;
}

tr.outstanding {
    background-color: #fff;
}



