/*
    GENERAL
*/

html {
  height: 100%;
}

body {
  background: #fafafa;
  color: #333333;
  margin-top: 7rem;
  height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: #444444;
}

hr {
  border: 1px solid #E89A4D;
}

/*
    NAV BAR
*/

p.version {
  float: right;
  font-size: 12px;
  margin-right: 2em;
  color: #cbd5db;
}

p.small-text {
  font-size: 12px;
}

p.signature {
  font-family: "Lucida Handwriting";
  display: inline;
}

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .header-logo {
  /*margin-left: -100px;*/
  position: relative;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
  margin-top: -5px;
}

.site-header .span4 .btn:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  border-bottom: 1px solid white;
  margin-top: -5px;
}

.bg-steel {
  background-color: #2F88C4;
}

.container {
  height: 100%;
  min-height: 100%;
}

.table-fixed {
  table-layout: fixed;
  width: 100%;
}

/* Class to handle truncation of long text */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*
    SIDEBAR
*/

.wrapper {
  display: flex;
  justify-content: space-between;
}

.sidebar .btn:hover {
  margin-left: 30px;
  transition-property: margin-left;
  transition-duration: 0.25s;
  transition-timing-function: linear;
  transition-delay: 0s;
}

.sidebar {
  width: 200px;
  height: 100%;
  position: fixed;
  background-color: #99B9DE;
  top: 0;
  bottom: 0;
  left: 0;
  margin-top: 70px;
  overflow-y: auto;
}

.sidebar h4 {
  color: #F5F5DC;
  /*margin-left: 30px;*/
  text-align: center;
}

.sidebar a {
  color: #F5F5DC;
  text-align: left;
  margin-right: 20px;
  margin-left: 20px;
  transition: 0.25s;
}

.sidebar-link-wrapper {
  padding-bottom: 10em;
}

.sidebar-active {
  border-left: 1px solid white;
}

.wrapper .sidebar .btn.sidebar-active {
  margin-left: 30px;
}

.sidebar-header {
  padding: 0.5em;
  margin-left: 1em;
  margin-right: 1em;
  background: #E89A4D;
  transition: all 0.2s ease;
  opacity: 1;
  overflow: hidden;
  border: 1px solid white;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  overflow-wrap: break-word;
}

/*
    GENERAL PAGE SPECIFICATIONS
*/

.main-header {
  position: relative;
  text-align: left;
  margin-left: 100px;
  padding-bottom: 120px;
}

.main-header a:hover {
  color: #cbd5db;
}

.main-header .header-btn {
  color: #444444;
  font-weight: bold;
  text-decoration: none;
}

.main-header .header-btn:hover {
  color: #cbd5db;
}

.main-header .dict-btn {
  color: #444444;
  text-decoration: none;
}

.main-header .dict-btn:hover {
  color: #cbd5db
}

/* FORMS */
.form-body {
  text-align: left;
  float: left;
  font-size: 18px;
  width: 100%;
}
.form-text-field {
  width: 50%;
}
.form-text-field-short {
  width: 25%;
}
.form-dropdown {
  font-size: 16px;
}
.form-datefield {
  font-size: 16px;
}
.form-signature-field {
  font-family: cursive;
  font-size: 1.8em;
}


.submit-btn {
  padding: 0.5em;
  margin-right: 1em;
  background: white;
  transition: all 0.2s ease;
  opacity: 1;
  margin-top: 1rem;
  margin-bottom: 1em;
  overflow: hidden;
  border: 1px solid #444444;
  border-radius: 3px;
  color: #333333;
  font-weight: bold;
}
.submit-btn:hover {
  text-decoration: none;
  color: gray;
}
a.submit-btn:hover {
  text-decoration: none;
  color: gray;
}

/*
    FOOTER
*/

.row {
  display: flex;
  justify-content: center;
}

.column {
  flex: 33.33%;
}

/*
    MISC.
*/

table {
  width: 100%;
  table-layout: fixed;
}

th {
  height: 30px;
}

td {
  height: 10px;
}

th, td {
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid #ddd;
  border-spacing: 50px;
}

tr.r0 td {
  background-color: #f7cc6f;
  padding-left: 5em;
}

.content-section {
  background: #ffffff;
  padding: 10px 20px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

.account-img {
  height: 125px;
  width: 125px;
  margin-right: 20px;
  margin-bottom: 16px;
}

.account-heading {
  font-size: 2.5rem;
}

.btn-group {
  float: left;
}

.input-currency {
  position: absolute; 
  margin-left: 1px; 
  margin-top: 1px; 
}

.submit-btn {
  padding: 0.5em;
  margin-right: 1em;
  background: white;
  transition: all 0.2s ease;
  opacity: 1;
  margin-top: 1rem;
  margin-bottom: 1em;
  overflow: hidden;
  border: 1px solid #444444;
  border-radius: 3px;
  color: #333333;
  font-weight: bold;
}
.submit-btn:hover {
  text-decoration: none;
  color: gray;
}
a.submit-btn:hover {
  text-decoration: none;
  color: gray;
}

.pdf-viewer {
    width: 100%;
    height: 80vh;
    border: none;
}

.signature-pad-container {
    position: relative;
    width: 100%;
    height: 200px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.signature-pad-container canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* DIV TOGGLING */
.toggle-el {
  padding: 2rem;
  margin-bottom: 2rem;
  background: white;
  transition: all 0.2s ease;
  opacity: 1;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #444444;
  border-radius: 3px;
}

input[type=checkbox].hide-input:not(:checked) + .toggle-el {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

input[type=radio].hide-input:not(:checked) + .toggle-el {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.toggle-el-fixed {
  position: fixed;
  left: 18em;
  top: 18em;
  padding: 2rem;
  margin-bottom: 2rem;
  background: white;
  transition: all 0.2s ease;
  opacity: 1;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #444444;
  border-radius: 3px;
}

input[type=checkbox].hide-input:not(:checked) + .toggle-el-fixed {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

input[type=radio].hide-input:not(:checked) + .toggle-el-fixed {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

input.hide-input {
  position: absolute;
  left: -999em;
}

label.toggle {
  text-align: center;
  display: inline-block;
  cursor: pointer;
  padding: 0.5em 1em;
  font-size: 1rem;
  color: #444444;
  background: white;
  border-radius: 3px;
  border: 1px solid #444444;
  user-select: none;
}

label.toggle:hover {
  background: #E89A4D;
}

#toggle:hover {
  background: #E89A4D;
}



/*
    SMALLER SCREEN SIZE ADJUSTMENTS
*/

@media screen and (max-width: 1350px) {
  .main-header { margin-left: 200px; }
}

@media screen and (max-width: 770px) {
  .form-text-field { width: 100%; }
  .form-text-field-short { width: 75%; }
}

@media screen and (max-width: 570px) {
  .wrapper .sidebar {
    margin-top: 4em;
  }
  h1 { margin-top: 30%; }
}

@media screen and (max-width: 450px) {
  .main-header { width: 200%; }
  .logo { margin-left: 40%; margin-bottom: 50px; }
}
