
#financings-table-wrapper {
  width: 100%;
  position: relative;
  padding-top: 0.5rem;
  overflow-x: scroll;
  max-height: calc(100vh - 270px);
}

.table-loader-wrapper {
  position: absolute;
  width: 100%;
  height: calc(100% - 56px);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  top: 56px;
  background-color: rgba(255, 255, 255, 0.5);
}

#financings-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #353a44;
  font-size: 12px;
  min-height: 100px;
  line-height: 12px;
}

.financings-details-table {
  border-collapse: collapse;
  color: #353a44;
  font-size: 12px;
  line-height: 12px;
  width: 100%;
  table-layout: fixed;
}

#financings-table sl-tag::part(base) {
  font-size: 12px;
}

#financings-pagination-wrapper {
  position: fixed;
  bottom: 0px;
  left: 21px;
  width: calc(100% - 42px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 30px;
  background-color: white;
  box-sizing: border-box;
  z-index: 2;
  border-top: 1px solid #d8dee4;
}

.financings-filter-dropdown-content {
  min-width: 300px;
  max-width: 300px;
}

.financings-filter-dropdown sl-option {
  font-size: 12px;
}

.financings-filter-dropdown-content sl-option::part(base) {
  font-size: 12px;
}

.financings-filter-button::part(base) {
  border-style: dotted;
  font-size: 11px;
}

#financings-table .fixed-column {
  position: sticky;
  left: 0;
  box-shadow: inset -1px 0px 1px #d8dee4;
  background-color: white;
  opacity: 1;
  z-index: 2;
}

#financings-table th {
  background-color: white;
  border-bottom: 1px solid #d8dee4;
  font-weight: 700;
  text-align: left;
  font-size: 13px;
  padding: 0.5rem 0.25rem;
  letter-spacing: -0.5px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  min-width: 120px;
  position: sticky;
  top: -8px;
  z-index: 10;
}

.financings-details-table th {
  border-bottom: 1px solid #d8dee4;
  font-weight: 700;
  text-align: left;
  font-size: 13px;
  padding: 0.5rem;
  letter-spacing: -0.5px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  min-width: 120px;
}

/* #financings-table tr:first-of-type td {
  padding-top: 0.5rem;
} */

#financings-table td {
  border: 1px solid #ebeef1;
  opacity: 0.8;
  padding: 0.1rem 0.25rem;
  vertical-align: middle;
  cursor: pointer;
}

.financings-details-table td {
  padding: 0.1rem 0.25rem;
  border: 1px solid #ebeef1;
}

#financings-table .fixed-column-right {
  position: sticky;
  right: 0;
  box-shadow: inset 1px 0px 1px #d8dee4;
  background-color: white;
  opacity: 1;
  z-index: 2;
  min-width: 37px;
  box-sizing: border-box;
}

#financings-table .fixed-column-left {
  position: sticky;
  left: 0;
  /* box-shadow: inset 1px 0px 1px #d8dee4; */
  background-color: white;
  opacity: 1;
  z-index: 2;
  min-width: 37px;
  box-sizing: border-box;
}

#financings-table th.fixed-column-left {
  z-index: 11;
}

#financings-table .fixed-column-left[data-prop="is_checked"] {
  left: 34px;
}
#financings-table .fixed-column-left[data-prop="company"] {
  left: 84px;
}

#financings-table-wrapper.scrolled #financings-table td.fixed-column-left {
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#financings-table th[data-prop="company"] {
  min-width: 150px;
}
#financings-table th[data-prop="project"] {
  min-width: 150px;
}
#financings-table th[data-prop="financing_type"] {
  min-width: 250px;
}
#financings-table th[data-prop="investors_or_fund"] {
  min-width: 400px;
}
#financings-table th[data-prop="strategic"] {
  min-width: 400px;
}
#financings-table th[data-prop="summary_of_fund_allocation"] {
  min-width: 400px;
}
#financings-table th[data-prop="summary_of_finders_fees"] {
  min-width: 400px;
}

#financings-table td[data-prop="financing_type"] sl-tag::part(base) {
  font-size: 10px;
}
#financings-table td[data-prop="primary_commodity"] sl-tag::part(base) {
  font-size: 10px;
}
#financings-table td[data-prop="investors_or_fund"] sl-tag::part(base) {
  font-size: 10px;
}
#financings-table td[data-prop="strategic"] sl-tag::part(base) {
  font-size: 10px;
}
#financings-table td[data-prop="status"] sl-tag::part(base) {
  font-size: 10px;
}

/* #financings-table tr:hover {
  background-color: var(--sl-color-primary-50);
} */

/* #financings-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15)
} */

#financings-pagination-total sl-spinner {
  font-size: 15px;
}

.split-cell-horizontally-in-half {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
}

.split-cell-horizontally-in-half tr {
  height: 50%;
}

.split-cell-horizontally-in-half tr td {
  border: 0 !important;
  vertical-align: middle;
  white-space: nowrap;
}

.split-cell-horizontally-in-half tr:first-of-type td {
  border-bottom: 1px dashed #ebeef1 !important;
}

.split-cell-horizontally-in-thirds {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
}

.split-cell-horizontally-in-thirds tr {
  height: 33.3%;
}

.split-cell-horizontally-in-thirds tr td {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px dashed #ebeef1;
}



.split-cell-horizontally-in-thirds tr:last-of-type td {
  border-bottom: 0 !important;
}

td.contains-sub-table {
  padding: 0 !important;
  height: 100%;
}

sl-menu-item[value*="delete"]::part(base) {
  color: #dc2626;
  font-weight: 500;
}

sl-popup[hascontent] .autocomplete-content-box {
  border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
}

#financings-table th.sortable {
  padding-right: 30px;
}

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

#financings-table th.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;
}

#financings-table th.sort-asc::before {
  opacity: 1;
}
#financings-table th.sort-desc::after {
  opacity: 1;
}

#financings-news-article-preview-sidebar::part(panel) {
  min-width: 600px;
  max-width: 1000px;
}

.financings-news-article-title {
  font-weight: 600;
  font-size: 1.5em;
  margin-bottom: 1em;
}

.view-article-cell span {
  text-decoration: underline;
  cursor: pointer;
}

.view-article-cell span:hover {
  text-decoration: none;
}

#financings-news-article-preview-sidebar::part(base) {
  z-index: 701;
}

#financings-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#financing-items-action-buttons {
  display: none;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

td[data-prop="is_checked"] sl-checkbox::part(label) {
  display: none;
}
td[data-prop="row_selector"] sl-checkbox::part(label) {
  display: none;
}
td[data-prop="is_checked"] sl-checkbox::part(control--checked) {
  background-color: var(--sl-color-success-600)
}

#delete-financings-button {
  display: none;
}

#merge-financings-button {
  display: none;
}


#mode-wrapper-financings .scroll-wrapper {
  max-height: 600px;
  overflow-y: auto;
}

.edit-lists-wrapper table {
  border-collapse: separate;
}

.edit-lists-wrapper table th {
  background-color: white;
  font-weight: 700;
  text-align: left;
  padding: 0.5rem;
  letter-spacing: -0.5px;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #f2f2f2;
}

.edit-lists-wrapper table td {
  padding: 0.5rem;
}

.edit-lists-wrapper table tr:nth-child(odd) {
  background-color: white;
}
.edit-lists-wrapper table tr:nth-child(even) {
  background-color: #f2f2f2;
}

#financings-edit-investor-or-funds-list::part(body) {
  padding-top: 0rem;
  padding-bottom: 0.5rem;
}

.rename-items-drawer::part(panel) {
  border-radius: 4px;
  border: 1px solid lightgray;
}
.rename-items-drawer::part(title) {
  padding: 0.5rem;
}
.rename-items-drawer::part(body) {
  padding: 0.5rem;
}
.rename-items-drawer::part(base) {
  z-index: 99;
}

#financings-edit-sidebar-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--sl-color-primary-50);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  z-index: 100;
  border-radius: 4px;
  box-sizing: border-box;
}

#financings-edit-sidebar-nav a {
  text-decoration: none;
  color: var(--sl-color-primary-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#financings-edit-sidebar-nav a:hover {
  text-decoration: underline;
}

#financings-edit-sidebar::part(title) {
  padding-bottom: 0.5rem;
}

#financings-edit-sidebar::part(body) {
  padding-top: 0;
}