/*Global Variables*/
:root {
  --site-background: #fdf6f4;
  --main-one: #6d4c41;
  --main-two: #777;
  --link-side-nav: #cccccc;
  --link-side-nav-active: #ffffff;
  --link-side-nav-hover-bg: #000000;
  --link-side-nav-hover-bg: rgba(0, 0, 0, 0.3);
  --lightest-grey: #d0cfcb;
  --link-highlight: #ca6f1e;
  --page-header: #3b0e3d;
}

* {
  font-family: calibri, sans-serif;
  font-style: normal;
  /*font-weight: 400;*/
}

a {
  color: var(--link-highlight);
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

hr {
  margin: 0.9em 0 1em 0;
  border-bottom: 1px solid #999;
}

/*Layout*/
/*------------------------------------------------*/
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  background-color: var(--lightest-grey);
}

body {
  background-color: var(--site-background);
  margin: 0 auto;
  /* max-width: 1920px; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 0px;
}

header {
  position: fixed;
  z-index: 99;
  width: 100%;
  top: 0;
  bottom: auto;
}

.header-body-spacer {
  height: 72px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 30px;
  background: #fff;
}

fieldset {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 3px;
}

legend {
  width: auto;
  padding: 0 5px;
  margin-bottom: 0;
  font-size: inherit;
  line-height: inherit;
  border-bottom: none;
  text-align: left;
  float: none !important;
}

.errorClass {
  border: 1px solid red;
  transition: all 0.9s;
}

/*Sidebar Nav ------------------*/
#pageContentWrapper {
  margin: 0 0 0 10rem;
  overflow: auto;
  margin-top: 4rem;
}

.navbar {
  height: 4rem;
}

#sideNavWrapper {
  position: fixed;
  top: 4rem;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  max-width: 10rem;
  color: var(--main-one);
  padding: 1.5rem 0;
  font-size: 1.02rem;
  background-color: var(--main-one);
}

.side-nav ul {
  width: 10rem;
}

.side-nav a {
  padding: 8px 116px;
  text-decoration: none;
  color: var(--link-side-nav);
}

.side-nav a:hover {
  background-color: var(--link-side-nav-hover-bg);
  color: var(--link-side-nav-active);
}

.side-nav a.active {
  background-color: var(--link-side-nav-hover-bg);
  color: var(--link-side-nav-active);
  /*border-left: 0.2rem solid #cccccc;*/
  /*border-left: 0.2rem solid rgba(255,255,255,0.2);*/
}

.side-nav .navbar-nav {
  display: flex;
  flex-flow: column nowrap;
}

.side-nav .title {
  font-size: 1.05rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--link-side-nav-active);
  border-bottom: 1px dotted #dddddd;
  padding-bottom: 10px;
}

/*Layout Plus*/
/*------------------------------------------------*/
a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
  font-size: 1.2rem;
  font-weight: bold;
}

a.navbar-brand img {
  width: 3rem;
}

a.navbar-brand .logo-img {
  padding: 0;
}

a.navbar-brand .logo-title {
  font-size: 1.4rem;
  color: #444444;
  vertical-align: middle;
  line-height: 1.2;
}

a.navbar-brand .logo-tag {
  font-size: 0.8em;
  color: #fff;
  background-color: var(--main-one);
  border-radius: 3px;
  padding: 0 4px;
  line-height: 1.3;
  display: inline-block;
  vertical-align: middle;
  width: 100%;
}

header nav #frmLogout {
  line-height: 18px;
}

header nav #frmLogout a {
  padding: 0 3px;
  color: rgb(220, 53, 69);
  /*border: 1px solid rgb(220, 53, 69);*/
  border-radius: 3px;
}

header nav #frmLogout a:hover {
  color: #ffffff;
  background-color: rgb(220, 53, 69);
}

.navbar-nav-link,
.navbar-nav-link a:link {
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.navbar .navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  color: #555 !important;
  font-weight: bold;
  padding: 8px 0;
  margin: 0 8px;
}

.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:hover {
  color: #000000 !important;
}

.navbar .navbar-nav .nav-link.active:not(.dropdown-toggle)::after,
.navbar .navbar-nav .nav-item:hover .nav-link:not(.dropdown-toggle)::after {
  content: "";
  display: block;
  position: absolute;
  height: 3px;
  background-color: var(--main-one);
  bottom: 6px;
  width: 100%;
}

.navbar .navbar-nav .nav-link.active.dropdown-toggle::before,
.navbar .navbar-nav .nav-item:hover .nav-link.dropdown-toggle::before {
  content: "";
  position: absolute;
  display: block;
  width: calc(100% - 14px);
  height: 3px;
  background-color: var(--main-one);
  bottom: 6px;
}

.main-container {
  height: calc(100vh - 72px);
  padding-bottom: 26px;
  padding-right: 0px;
  padding-left: 0px;
}

.main-container main {
  height: 100%;
  overflow: auto;
}

/*Utilities*/
.fill-space {
  flex: 1 1 auto;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

btn-sm:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-control:not(.form-control-sm) {
  min-height: 38px;
}

.form-control.textarea {
  font-family: inherit;
  text-rendering: auto;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  text-align: start;
  -webkit-rtl-ordering: logical;
  resize: auto;
  cursor: text;
  overflow-wrap: break-word;
  column-count: initial !important;
  white-space: pre-wrap;
  resize: vertical;
  min-height: calc(1.5em + 0.75rem + 2px);
}

.form-check-input,
.form-check-label {
  cursor: pointer;
}

.read-only-select-container {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.read-only-select-container span {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.35em 0.65em;
  font-size: 1rem;
  color: #212529;
  cursor: auto;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.nowrap {
  white-space: nowrap;
}

.fullwrap {
    overflow-wrap: anywhere;
}

.nopadding {
  padding: 0 !important;
  margin: 0 !important;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.vertical-scroll {
  overflow-y: auto;
}

.relative {
  position: relative;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.items-center {
  align-items: center;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.shrink {
  flex-shrink: 1;
}

.grow {
  flex-grow: 1;
}

.w-half {
  width: 50%;
}

.w-third {
  width: 33.333333%;
}

.w-two-fifth {
  width: 40%;
}

.w-three-fifth {
  width: 60%;
}

.w-two-third {
  width: 66.666667%;
}

.h-full {
  height: 100%;
}

.h-full-minus-breadcrumbs {
  height: calc(100% - 40px);
}

.font-bold {
  font-weight: bold;
}

.underline {
  text-decoration: underline;
}

.cursor-pointer {
  cursor: pointer;
}

.overflow-hidden {
  overflow: hidden;
}

.table-wrapper {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  padding: 1rem;
}

.table-fixed {
    table-layout: fixed;
}

th.sortable {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

th.sortable:hover {
  opacity: 0.6;
}

th.sortable > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

th.sortable > span > .sort-arrows {
  position: relative;
  height: 24px;
  width: 10px;
}

th.sortable > span > .sort-arrows > i {
  color: #ccc;
  display: block;
  position: absolute;
}

th.sortable > span > .sort-arrows > i.fa-sort-up {
  top: 4px;
}

th.sortable > span > .sort-arrows > i.fa-sort-down {
  bottom: 4px;
}

th.sortable.asc > span > .sort-arrows > i.fa-sort-up {
  color: #0d6efd;
}

th.sortable.desc > span > .sort-arrows > i.fa-sort-down {
  color: #0d6efd;
}

/*Page Specific Styles*/
/*------------------------------------------------*/
.page-header,
h1.page-header {
  color: var(--page-header);
  font-size: 1.5em;
  margin: 0 0 0.9em 0;
  padding: 0 0 0.5em 0;
  border-bottom: 3px solid #dfdfdf;
  line-height: 1;
}

.page-header a {
  text-decoration: none;
  /*color: var(--link-highlight);*/
  /*background: linear-gradient(to right, var(--link-highlight), var(--second-brown));
        background: -webkit-linear-gradient(to right,#eee, #333);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;*/
}

.page-header a:hover {
  text-decoration: underline;
}

.page-title {
  border-bottom: 1px solid #dddddd;
  font-size: 1.05rem;
  font-weight: bold;
  padding-bottom: 10px;
  text-align: left;
  color: #777777;
  margin: 0 0 20px 0;
}

.app-card {
  margin: 20px auto;
  max-width: 340px;
  min-width: 285px;
}

/* .app-card .card-title {
        border-bottom: 1px solid #eee;
        font-size: 1.25rem;
        font-weight: bold;
        padding: 5px 5px 10px 10px;
        text-align: center;
    }*/

.app-card-lg {
  margin: 20px auto;
  max-width: 440px;
  min-width: 285px;
}

.app-card-md {
  margin: 20px auto;
  max-width: 340px;
  min-width: 285px;
}

.app-card-lg .card-title,
.app-card-md .card-title {
  border-bottom: 1px solid #eee;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 5px 5px 10px 10px;
  text-align: left;
}

.page-loader-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px;
}

.page-loader-container .page-loader-text {
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
}

.form-section-label {
  border-bottom: 2px solid #ccc;
  width: 100%;
  margin-bottom: 6px;
  font-weight: bold;
}

.sticky-toolbar {
  padding: 4px;
  position: sticky;
  top: 0;
  z-index: 9;
  background-color: var(--site-background);
}

#parent-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#parent-control i {
  color: #333;
}

#parent-control:hover {
  opacity: 0.6;
}

#attachment-name {
  padding: 5px;
  display: flex;
  justify-content: start;
  align-items: center;
  font-style: italic;
  flex: 1 1 auto;
}

/* Pdf Viewer*/
.pdf-viewer-container {
  height: calc(100% - 54px);
  background-color: #f3f3f1;
}

.pdf-viewer-container.for-modal {
  height: 650px;
}

.pdf-viewer-container.is-fullscreen {
  padding: 12px;
  background-color: #fff;
}

#pdf-viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  height: 50px;
  padding-bottom: 10px;
}

#pdf-viewer-toolbar.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

#pdf-viewer-toolbar button {
  background: none;
  border: none;
  transition: all 0.2s ease-in-out;
}

#pdf-viewer-toolbar button:hover {
  opacity: 0.8;
  cursor: pointer;
}

#pdf-viewer-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}

#pdf-viewer-toolbar button i {
  color: #333;
}

#pdf-viewer-navigation,
#pdf-viewer-sizing {
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.4);
  gap: 4px;
  padding: 4px;
}

#pdf-viewer-page-number {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.4);
  padding: 0 2px;
  text-align: center;
  width: 50px;
}

#pdf-viewer-zoom-percentage {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.4);
  padding: 0 2px;
}

#pdf-viewer-fullscreen {
  border-left: 1px solid rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
  margin: 0 4px;
}

#pdf-viewer-search {
  display: flex;
  justify-content: flex-end;
  position: relative;
  flex-grow: 1;
}

#pdf-viewer-search-input {
  padding-right: 28px;
  flex: 1;
}

#pdf-viewer-search-button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: none;
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  outline: none;
}

#pdf-viewer-search-button:hover {
  opacity: 0.8;
}

#pdf-viewer-search-result-count {
  margin: 0 10px;
  display: flex;
  align-items: center;
}

#pdf-viewer-search-previous,
#pdf-viewer-search-next {
  background: none;
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  outline: none;
}

#pdf-viewer-search-previous:hover,
#pdf-viewer-search-next:hover {
  opacity: 0.8;
}

#pdf-viewer {
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  height: calc(100% - 50px);
  padding: 10px;
  overflow: auto;
}

#pdf-viewer-canvas-wrapper {
  margin: 0 auto;
  display: table;
  position: relative;
}

#pdf-viewer-highlights {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
