.filing-section-wrapper {
  margin: 0;
  width: calc(100vw - 100px);
}

#filings-table-wrapper {
  min-width: 1280px;
  margin-top: 10px;
}

#filings-table-header {
  display: flex;
  background-color: #EDEEF4;
  border-radius: 4px;
  border: 1px solid #F3F3F3;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

.filings-table-row {
  display: flex;
  align-items: center;
  margin-top: 1px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #F3F3F3;
  box-sizing: border-box;
  padding: 0 10px;
  transition: background-color 50ms ease-in;
  cursor: pointer;
}

.filings-table-row:hover {
  background-color: #f3f4f9;
}

.filings-table-row.selected {
  border-left: 6px solid #3669b3
}

.filings-table-single-header {
  padding: 10px 6px;
  box-sizing: border-box;
  font-weight: bold;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 12px;
  position: relative;
  padding-right: 24px;
  display: flex;
  align-items: center;
  line-height: 13px;
}

.filings-table-single-header.sortable {
  cursor: pointer;
}

.filings-table-single-header.sortable::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  opacity: 0.3;
  right: 1em;
  content: '↑';
  color: black;
  text-shadow: 0 0 black;
}

.filings-table-single-header.sortable::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  opacity: 0.3;
  right: 0.5em;
  content: '↓';
  color: black;
  text-shadow: 0 0 black;
}

.filings-table-single-header.sortable.disabled {
  cursor: auto;
}

.filings-table-single-header.sortable.disabled::after {
  display: none !important;
}

.filings-table-single-header.sortable.disabled::before {
  display: none !important;
}

.filings-table-single-header.sort-asc::before {
  opacity: 1;
}
.filings-table-single-header.sort-desc::after {
  opacity: 1;
}

.filings-table-single-cell {
  padding: 10px 6px;
  box-sizing: border-box;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 13px;
  border-right: 1px solid lightgray;
}

.filings-table-single-cell:last-of-type {
   border-right: 0;
}

.filings-table-single-cell a {
  text-decoration: none;
  border-bottom: 0;
  cursor: pointer;
  color: var(--main-color-192342);
  font-weight: bold;
  
}


.filings-table-single-cell a:hover {
  text-decoration: underline;
}

.filings-table-single-header:nth-child(1), .filings-table-single-cell:nth-child(1) {
  width: 30px;
}
.filings-table-single-header:nth-child(2), .filings-table-single-cell:nth-child(2) {
  width: 80px;
}

.filings-table-single-cell:nth-child(2) {
  text-align: center;
}

.filings-table-single-header:nth-child(3), .filings-table-single-cell:nth-child(3) {
  width: 100px;
}
.filings-table-single-header:nth-child(4), .filings-table-single-cell:nth-child(4) {
  width: 150px;
}
.filings-table-single-header:nth-child(5), .filings-table-single-cell:nth-child(5) {
  width: 200px;
}
.filings-table-single-header:nth-child(6), .filings-table-single-cell:nth-child(6) {
  width: 200px;
}
.filings-table-single-header:nth-child(7), .filings-table-single-cell:nth-child(7) {
  width: 60px;
  text-align: center;
  justify-content: center;
}
.filings-table-single-header:nth-child(8), .filings-table-single-cell:nth-child(8) {
  width: 60px;
  text-align: center;
  justify-content: center;
}
.filings-table-single-header:nth-child(9), .filings-table-single-cell:nth-child(9) {
  width: 80px;
  text-align: center;
  justify-content: center;
}
.filings-table-single-header:nth-child(10), .filings-table-single-cell:nth-child(10) {
  width: 150px;
}
.filings-table-single-header:nth-child(11), .filings-table-single-cell:nth-child(11) {
  width: calc(100% - 870px);
  word-break: break-word;
}

.filings-table-single-header:nth-child(8) {
  padding-right: 6px;
}
.filings-table-single-header:nth-child(7) {
  padding-right: 6px;
}

.filings-table-single-cell:nth-child(11) {
  
  padding-bottom: 0;
  margin-bottom: 8px;
  font-family: monospace;
  font-size: 11px;
  line-height: 12px;
  cursor: pointer;
}

.filings-table-single-cell:nth-child(11).lineclamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

input.readonly {
  pointer-events: none;
}

.filing-section-wrapper .section-header {
  font-weight: 700;
}

#table-page-controls {
  background-color: white;
  padding: 10px;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
  align-items: center;
}

#page-buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

#page-text-wrapper {
  font-size: 12px;
}

.paging-btn {
  padding: 4px 10px;
  background-color: white;
  border: 1px solid #edeef4;
  font-size: 15px;
  cursor: pointer;
  min-width: 30px;
  box-sizing: border-box;
  text-align: center;
  transition: all 150ms ease-in-out
}

.paging-btn:hover, .paging-btn.selected {
  background-color: #192342;
  color: white;
  border: 1px solid lightgray;
}

#filing-filter-controls-wrapper {
  display: flex;
  align-items: center;
}

#filing-filter-controls-wrapper select {
  border: 1px solid transparent;
  background-color: #fff;
  box-shadow: 0px 0rem 4px 2px rgb(0 0 0 / 15%);
  padding: 9px;
  font-size: 14px;
  border-radius: 10px;
  box-sizing: border-box;
  outline: 0;
  max-width: 150px;
}

#filing-filter-controls-wrapper select:focus {
  outline: 2px solid;
}

.select-overlay {
  position: relative;
}


.select-overlay.empty:before {
  content: attr(overlay) !important;
  width: calc(100% - 40px);
  background-color: white;
  text-align: center;
  position: absolute;
  left: 12px;
  top: 10px;
  height: calc(100% - 20px);
  color: gray;
  pointer-events: none;
  font-size: 14px;
}


.select-overlay:before {
  content: '';
}

#filing-search-bar-wrappers {
  display: flex;
  margin-right: 10px;
}

.search-wrapper {
  position: relative;
  margin-right: 10px;
  width: 240px;
}

#filing-company-search, #filing-project-search {
  width: 100%;
  border: 1px solid transparent;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 10px;
  padding-left: 2.375rem;
  box-sizing: border-box;
}

#filing-company-search {
  margin-left: 0;
}

.fa-search {
  display: inline-block !important;
  position: absolute;
  z-index: 2;
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  line-height: 2.375rem !important;
  text-align: center;
  pointer-events: none;
  color: rgba(48, 165, 191, 0.5);
}

.fa-search:before {
  content: "\f002";
}

/* search bar autocomplete */
.autocomplete {
  position: relative;
}
.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}
.search-option:hover {
  background-color: rgb(245, 245, 245)
}

.edit-icon {
  margin-right: 4px;
  width: 16px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-icon img {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  cursor: pointer;
}

.edit-icon img:hover {
  opacity: 1;
}

#reset-filters-btn {
  display: none;
  font-size: 12px;
  background-color: #192342;
  color: white;
  padding: 2px 6px;
  border-radius: 1000px;
  cursor: pointer;
  transition: all 150ms ease-in;
}

#filings-modal {
  z-index: 10;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255,255,255,0.8);
  display: none;
  justify-content: center;
  align-items: center;
}

#filings-modal-content {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0px 3px 3px -2px rgb(0 0 0 / 20%), 0px 3px 4px 0px rgb(0 0 0 / 14%), 0px 1px 8px 0px rgb(0 0 0 / 12%);
  border: 1px solid #e8e8e8;
  min-width: 300px;
}

#filings-modal-header {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#filings-modal-close-btn {
  cursor: pointer;
}

#filings-modal label {
  width: 100%;
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 300;
  text-transform: uppercase;
}

#filings-modal input, #filings-modal select, #filings-modal textarea {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
}

#filings-modal .form-item {
  margin-top: 10px;
}

#filings-modal-footer-buttons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

#filings-modal-footer-buttons > div {
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: background-color 100ms ease-in;
  color: #fff;
  cursor: pointer;
  position: relative;
}

.button-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
}

#filings-modal-delete-btn {
  background-color: #dc3545;
  border-color: #dc3545; 
}

#filings-modal-delete-btn:hover {
  background-color: #c92233;
}

#filings-modal-save-btn {
  background-color: #007bff;
  border-color: #007bff;
}

#filings-modal-save-btn:hover {
  background-color: #3669b3;
}

#filings-modal-company {
  padding-right: 22px;
}

#filings-modal-company-clear-btn {
  position: absolute;
  right: 8px;
  top: 23px;
  opacity: 0.8;
  display: none;
  cursor: pointer;
}

#filings-modal-company-clear-btn:hover {
  opacity: 1;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 32px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 26px;
  height: 26px;
  margin: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#filings-table-floating-tools {
  position: fixed;
  bottom: -150px;
  left: 10px;
  border-radius: 4px;
  box-shadow: 0px 3px 3px -2px rgb(0 0 0 / 20%), 0px 3px 4px 0px rgb(0 0 0 / 14%), 0px 1px 8px 0px rgb(0 0 0 / 12%);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: bottom 150ms ease-in-out;
  background-color: white;
}

.floating-tool {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  cursor: pointer;
  transition: all 100ms ease-in;
  border-bottom: 1px solid lightgray;
}

.floating-tool:last-child {
  border-bottom: 0;
}

.floating-tool:hover { 
  color: white;
  background-color: #3669b3;
}

.floating-tool:hover img {
  filter: invert(1);
}

#delete-filing-records:hover {
  background-color: #c92233;
}


.floating-tool img {
  width: 16px;
  margin-right: 10px;
}
