@font-face {
  font-family: "Pirulen";
  src: local("Pirulen"),
    url("/static/fonts/pirulen.170fe40412c3.otf") format("truetype");
}

@font-face {
  font-family: "Klamp 205";
  src: local("Klamp 205"),
    url("/static/fonts/klamp-205.b145969bf917.ttf") format("truetype");
}

@font-face {
  font-family: "URW DIN";
  src: local("URW DIN"),
    url("/static/fonts/URWDINCond.93465a6b304b.ttf") format("truetype");
}

@font-face {
  font-family: "Barlow";
  src: local("Barlow"),
    url("/static/fonts/Barlow.9373fb661b5c.ttf") format("truetype");
}

@font-face {
  font-family: "Toxigenesis";
  src: local("Toxigenesis"),
    url("/static/fonts/Toxigenesis.44cfdead3442.otf") format("truetype");
}

[data-bs-theme=dark] {
  color-scheme: dark;

  --bs-body-color: #D9D9D9;
  --bs-body-color-rgb: 217, 217, 217;
  --bs-body-bg: #222832;
  --bs-body-bg-rgb: 34, 40, 50;
  --bs-emphasis-color: #FFFFFF;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-secondary-color: rgb(176, 176, 176);
  --bs-secondary-color-rgb: 176, 176, 176;
  --bs-tertiary-color: rgba(176, 176, 176, 0.55);
  --bs-tertiary-color-rgb: 176, 176, 176;
  --bs-heading-color: inherit;
  --bs-secondary-bg: #343942;
  --bs-secondary-bg-rgb: 52, 57, 66;
  --bs-tertiary-bg: #32353c;
  --bs-tertiary-bg-rgb: 50, 53, 60;
  --bs-border-color: #495057;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.12);
  --bs-primary: #29bab2;
  --bs-primary-rgb: 41, 186, 178;
  --bs-info: #348ae5;
  --bs-info-rgb: 52, 138, 229;
  --bs-dark: #141920;
  --bs-dark-rgb: 20, 25, 32;
  --bs-link-color: #29BAB2;
  --bs-link-color-rgb: 41, 186, 178;
  --bs-link-hover-color: #4AD1C9;
  --bs-link-hover-color-rgb: 74, 209, 201;
  --bs-primary-text-emphasis: #7FE5DF;
  --bs-secondary-text-emphasis: #D0D0D0;
  --bs-info-text-emphasis: #8AA3FF;
  --bs-success: #2FBF71;
  --bs-success-text-emphasis: #7EE3A4;
  --bs-warning: #F19415;
  --bs-warning-text-emphasis: #FFD27A;
  --bs-danger: #E05D6F;
  --bs-danger-text-emphasis: #FF9AA3;
  --bs-light-text-emphasis: #F8F9FA;
  --bs-dark-text-emphasis: #D9D9D9;
  --bs-primary-bg-subtle: #0B3432;
  --bs-secondary-bg-subtle: #2A303D;
  --bs-success-bg-subtle: #0B2A1A;
  --bs-info-bg-subtle: #060C4A;
  --bs-warning-bg-subtle: #33260D;
  --bs-danger-bg-subtle: #3A1216;
  --bs-light-bg-subtle: #222836;
  --bs-dark-bg-subtle: #0B0F1A;
  --bs-primary-border-subtle: #1F8F89;
  --bs-secondary-border-subtle: #41464b;
  --bs-success-border-subtle: #2F8F57;
  --bs-info-border-subtle: #4C5FE3;
  --bs-warning-border-subtle: #8A6B1F;
  --bs-danger-border-subtle: #B23A45;
  --bs-light-border-subtle: #495057;
  --bs-dark-border-subtle: #222836;
  --bs-code-color: #FF7AD9;
  --bs-highlight-color: #D9D9D9;
  --bs-highlight-bg: #1B255E;
  --bs-form-control-bg: #22262b;
  --bs-form-select-bg: #222836;
  --bs-form-control-color: #D9D9D9;
  --bs-form-control-border-color: rgba(255, 255, 255, 0.16);
  --bs-form-control-placeholder-color: rgba(176, 176, 176, 0.55);
  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-color: rgba(41, 186, 178, 0.35);
  --bs-form-valid-color: #2FBF71;
  --bs-form-valid-border-color: #2FBF71;
  --bs-form-invalid-color: #E05D6F;
  --bs-form-invalid-border-color: #E05D6F;
  --bs-swap-rgb: 227, 115, 131;
}

.dropdown-item {
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-color: #FFFFFF;
  --bs-dropdown-link-active-bg: var(--bs-primary);
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-link-hover-color);
  --bs-btn-hover-border-color: var(--bs-link-hover-color);
  --bs-btn-active-bg: var(--bs-link-color);
  --bs-btn-active-border-color: var(--bs-link-color);
  --bs-btn-disabled-bg: var(--bs-primary-border-subtle);
  --bs-btn-disabled-border-color: var(--bs-primary-border-subtle);
}


.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
  --bs-btn-secondary-color: #D9D9D9;
  --bs-btn-secondary-bg: var(--bs-secondary-bg);
  --bs-btn-secondary-border-color: rgba(255, 255, 255, 0.20);
  --bs-btn-secondary-hover-color: #FFFFFF;
  --bs-btn-secondary-hover-bg: #2A303D;
  --bs-btn-secondary-hover-border-color: #FFFFFF;
  --bs-btn-secondary-active-color: #FFFFFF;
  --bs-btn-secondary-active-bg: #343942;
  --bs-btn-secondary-active-border-color: #FFFFFF;
  --bs-btn-secondary-disabled-color: rgba(217, 217, 217, 0.65);
  --bs-btn-secondary-disabled-bg: var(--bs-secondary-bg);
  --bs-btn-secondary-disabled-border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .card .form-control,
[data-bs-theme="dark"] .card .form-select {
  background-color: var(--bs-form-control-bg);
}

.body {
  padding-top: 0;
}

body.login-bg {
  background: url("/static/login-bg.125b94b06b0d.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: fit-content;
  min-width: fit-content;
  padding: 0;
  color: #fff;
}

.login-center {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.input {
  width: 40%;
  height: 40px;
  border-radius: 3px;
  border: 1px solid #797979;
  background: var(--white, #fff);
  font-family: "URW DIN";
  font-size: 16;
  color: #797979;
}

.input-label {
  font-family: "URW DIN";
  font-size: 18;
  font-weight: 600;
}

label.required::after {
  content: " *";
  color: #dc3545;
}

.mobile-header {
  height: 42px;
}

.navbar-avatar {
  width: 28px;
  height: 28px;
}

.header {
  height: 310px;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(180deg, #000a65 9.38%, #01031a 83.85%);
  display: block;
}

.header-title {
  font-family: "Pirulen";
  font-size: 35px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  margin-left: 109px;
  margin-top: 161px;
}

.member {
  font-family: "Barlow";
  font-weight: 400;
  color: #FFF;
  font-size: 18px;
  text-transform: capitalize;
  vertical-align: middle;

}

.members-line {
  border-top: 1px solid #FFF;
  opacity: 1;
}

.page-item .page-link {
  background-color: #141920;
  color: #FFFFFF;
  border: 1px solid #B0B0B0;
  margin: 0 3px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  user-select: none;
  cursor: pointer;
}

.page-item .page-link:hover {
  background-color: #222832;
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.page-item.active .page-link {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.page-item.disabled .page-link {
  background-color: #141920;
  border-color: #222832;
  color: #777;
  cursor: not-allowed;
}

.desktop-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1031;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  z-index: 1030;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
  flex: 1;
  flex-wrap: nowrap;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  min-height: 0;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  gap: 6px;
  padding: 10px 8px;
  width: 100%;
  transition: color 0.15s;
  border-radius: 0;
}

.sidebar-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 46px;
  border-radius: 12px;
  transition: background-color 0.15s;
}

.sidebar-tab svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.sidebar-tab.active {
  color: #fff;
}

.sidebar-tab.active .sidebar-tab-icon {
  background-color: var(--bs-primary);
}

.sidebar-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-tab:hover:not(.active) .sidebar-tab-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-tab-label {
  font-size: 0.72rem;
  font-family: "Klamp 205";
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.sidebar-user {
  position: relative;
  flex-shrink: 0;
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Remove default <details> triangle marker */
.sidebar-user>summary {
  list-style: none;
}

.sidebar-user>summary::-webkit-details-marker {
  display: none;
}

.sidebar-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.sidebar-user-btn:hover,
.sidebar-user[open] .sidebar-user-btn {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-user-menu {
  position: absolute;
  bottom: 0;
  left: calc(100% + 8px);
  min-width: 220px;
  background-color: var(--bs-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sidebar-user-menu .dropdown-item,
.sidebar-user-menu summary.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: #d9d9d9;
  font-size: 0.875rem;
  text-decoration: none;
  background-color: transparent;
  border: 0;
  white-space: nowrap;
}

.sidebar-user-menu .dropdown-item:hover,
.sidebar-user-menu summary.dropdown-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-user-menu .dropdown-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 4px 0;
}

/* My Organization nested submenu */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-submenu>ul {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

.sidebar-submenu>summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.sidebar-submenu>summary::-webkit-details-marker {
  display: none;
}

.sidebar-submenu>summary .bi-chevron-down {
  transition: transform 0.15s;
}

.sidebar-submenu[open]>summary .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.core-font {
  font-family: "Klamp 205";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.toxigenesis {
  font-family: "Toxigenesis";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.core-subtitle {
  color: #FFF;
  font-family: "Klamp 205";
  font-size: clamp(14px, 2.5vw, 25px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.core-p {
  color: #FFF;
  font-family: "URW DIN";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* used to limit the description to a certain amount of lines while also adding ellipses if the text overflows. Bootstrap can do one or the other so we have ot use webkit extensions */
.truncate-description {
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.avatar-container {
  margin-left: 200px;
}

.company-avatar {
  transition: opacity 0.3s ease;
  /* Transition for opacity */
}

.company-avatar:hover {
  opacity: 0.7;
}

.avatar-container:hover .company-icon i {
  visibility: visible;
}

.company-icon {
  visibility: hidden;
  color: #fff;
}

.image-placeholder {
  border: 3px dashed #B0B0B0;
  background: rgba(217, 217, 217, 0.10);
}

.header-company {
  border-radius: 11px;
  border: 2px solid #A1A1A1;
  background: #222832;
}

.header-company-title {
  font-family: "Klamp 205";
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
}

.header-company-subtitle {
  font-family: "Toxigenesis";
  font-style: normal;
  font-weight: 700;
  font-size: clamp(0.9rem, 4vw, 2rem);
  line-height: normal;
  text-transform: uppercase;
}

.klamp {
  font-family: "Klamp 205";
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
}

.home-card-title {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.barlow {
  font-family: "Barlow";
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
}

.header-underline::after {
  content: " ";
  display: block;
  height: 5px;
  background-color: #222832;
}

.active::after {
  background-color: var(--bs-primary);
  border-radius: 10px;
}

.capability-title {
  color: #FFFFFF;
  text-align: center;
  text-transform: uppercase;
  font-family: "Klamp 205";
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.capability-card-img-wrap {
  flex-shrink: 0;
  border-right: 1px solid var(--bs-border-color);
  overflow: hidden;
  width: clamp(80px, 15vw, 150px);
  height: clamp(60px, 10vw, 100px);
}

.capability-card-logo {
  width: clamp(28px, 5vw, 50px);
  height: clamp(28px, 5vw, 50px);
  flex-shrink: 0;
}

.rhombus {
  margin: 0.5rem;
  border: 2px solid var(--bs-warning);
  height: 40px;
  min-width: 150px;
  transform: skewX(-30deg);
}

.rhombus-text-correction {
  transform: skewX(30deg);
}

.rhombus-btn {
  cursor: pointer;
  border-color: var(--bs-secondary-color) !important;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rhombus-btn:hover {
  border-color: var(--bs-emphasis-color) !important;
  color: var(--bs-emphasis-color);
}

.btn-check:checked+.rhombus-btn {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary) !important;
  color: var(--bs-emphasis-color);
}

.company-card-start {
  width: 100px;
  height: 100px;
}

.company-banner-img {
  width: 150px;
  height: 100px;
  transition: opacity 0.2s ease-in-out;
}

.company-banner-img:hover {
  opacity: 0.8;
}

.tree-sidebar {
  width: 60px;
}

.tree-elbow {
  position: absolute;
  top: 10%;
  bottom: 50%;
  left: 50%;
  width: 30%;
  border-left: 2px solid var(--bs-secondary);
  border-bottom: 2px solid var(--bs-secondary);
  border-bottom-left-radius: 15px;
}

.file-card {
  height: 100%;
  position: relative;
  transition: box-shadow 0.2s ease-in-out;
}

.file-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hover-btn {
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.file-card:hover .hover-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Due to differences in Firefox and Safari,
rendering requires modifying height of quill text editor */
.vLargeTextField .ql-container,
.vLargeTextField .ql-container .ql-editor {
  height: unset;
}

.vLargeTextField .ql-container .ql-editor {
  min-height: 150px;
  max-height: 540px;
  overflow: auto;

}

.unread-message {
  box-shadow: 0 0 8px #942a35;
}

.hidden-checkbox {
  position: absolute;
  transform: scale(2);
  cursor: pointer;
  opacity: 0;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.08);
}

.project-card-title {
  color: #ffffff;
  font-family: "Klamp 205";
  font-size: clamp(18px, 3vw, 38px);
  font-style: bold;
  font-weight: 700;
  line-height: normal;
}

.project-card-subtitle {
  color: #D9D9D9;
  font-family: "Klamp 205";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.project-card-due {
  color: var(--bs-warning);
  font-family: "Klamp 205";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.back-btn {
  text-decoration: none;
  text-transform: uppercase !important;
  font-size: 16px;
  color: #FFF;
  font-family: "Klamp 205";
  font-weight: 700;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  color: #B0B0B0;
  position: relative;
  cursor: pointer;
}

.tab-button.active {
  color: #29BAB2;
}

.nav-pills .nav-link {
  color: #adb5bd;
  transition: all 0.2s;
}

.nav-pills .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-pills .nav-link.active {
  background-color: #29bab2;
  color: #fff;
}

/* Thumbnail container for Dropzone */
.dz-image {
  width: 100px;
  height: 100px;
  overflow: hidden;
}

/* Thumbnail image for Dropzone */
.dz-image img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  transition: filter 0.2s ease-in-out;
  position: static !important;
}

#id_banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.upload-box.drag-active {
  border-color: #57b7a6 !important;
  background-color: rgba(87, 183, 166, 0.1);
}

.gradient-header {
  height: 40vh;
  border-bottom: 2px solid rgba(255, 255, 255, 1);
  background: linear-gradient(94.53deg, #1D5657 -10.88%, #01031A 42.17%);
  display: flex;
  align-items: end;
  justify-content: center;
}

.core-logo-login {
  width: 381px;
  height: 150px;
  max-width: 80%;
  opacity: 1;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.login-card-frame {
  border: 2px solid rgba(255, 255, 255, 1);
  width: 534px;
  max-width: 100%;
  height: fit-content;
  opacity: 1;
}

@media (max-width: 576px) {
  .gradient-header {
    height: 30vh;
  }

  .core-logo-login {
    height: auto;
  }
}

.input-login {
  font-family: "Barlow";
  font-weight: 400;
  font-size: 16px;
  scroll-margin-top: 16px;
}

/* company select cards */
.select-card {
  cursor: pointer;
}

.select-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.select-card .icon-dash {
  display: none;
}

/* When checked: swap + -> - */
.select-card input[type="checkbox"]:checked~.action-btn .icon-plus {
  display: none;
}

.select-card input[type="checkbox"]:checked~.action-btn .icon-dash {
  display: inline-block;
}

.select-card:hover .card {
  border-color: var(--bs-primary) !important;
}

.select-card .action-btn {
  background: var(--bs-primary);
  border: 2px solid var(--bs-primary);
}

.select-card input[type="checkbox"]:checked~.action-btn {
  background: transparent;
  border: 2px solid var(--bs-primary);
}

.custom-tooltip {
  --bs-tooltip-bg: var(--bs-primary-bg-subtle);
  --bs-tooltip-color: var(--bs-dark-text-emphasis);
}

#cropperModal {
  z-index: 1070 !important;
}

.cropper-circle .cropper-view-box,
.cropper-circle .cropper-face {
  border-radius: 50%;
}

.cropper-modal {
  opacity: 0.8;
}

#cropperModal {
  z-index: 1070 !important;
}

.cropper-circle .cropper-view-box,
.cropper-circle .cropper-face {
  border-radius: 50%;
}

.cropper-modal {
  opacity: 0.8;
}

.locked-milestone-card {
  min-height: 10rem;
  overflow: hidden;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

.locked-milestone-content {
  position: relative;
  z-index: 2;
  min-height: 10rem;
  color: rgba(255, 255, 255, 0.9);
}

.milestone-form label {
  font-family: "Klamp 205";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.coin-avatar {
  width: 100%;
  max-width: 174px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  z-index: 10;
  flex-shrink: 0;
  border: 6px solid #b9982a;
  outline: 13px solid #ffdd6f;
  box-shadow:
    0 0 0 1px #8a701e,
    3px 3px 10px rgba(0, 0, 0, 0.5);
  background-color: #333;
}

.project-complete-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(176, 176, 176, 1);
  border-radius: 8px;
  flex-grow: 1;
  color: white;
  padding: 25px 25px 25px 30px;
  height: 200px;
}

@media (max-width: 1200px) {
  .project-complete-card {
    height: auto;
    min-height: 160px;
    align-items: center;
    text-align: center;
  }

  .card-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-card-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 980px) {
  .project-card-wrapper {
    flex-direction: column;
    align-items: center;
    padding-left: 0 !important;
  }

  .coin-avatar {
    display: none;
  }

  .project-complete-card {
    margin-left: 0;
    width: 100%;
    height: auto;
    min-height: 140px;
  }

  .card-top-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .project-card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.status-pill {
  border: 2px solid var(--bs-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "Klamp 205";
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.project-complete-header {
  background-color: rgba(34, 40, 50, 1);
  padding: 30px 10px 30px 30px;
}

.project-description {
  font-family: "URW DIN";
  font-weight: 500;
  font-size: 18px;
  color: rgba(255, 255, 255, 1);
  width: 70%;
}

.accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
  margin-right: 20px;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: white;
}

.accordion-button:not(.collapsed) {
  background-color: #212529;
  color: white;
  box-shadow: none;
}

.accordion-button:hover {
  background-color: #2c3034;
}

.btn-reactivate {
  background-color: transparent;
  border: 2px solid var(--bs-primary);
  color: white;
  padding: 10px 24px;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-reactivate:hover {
  background-color: rgba(94, 234, 212, 0.1);
  box-shadow: 0 0 15px rgba(94, 234, 212, 0.4);
  color: #ffffff;
  border-color: var(--bs-primary);
}

.btn-reactivate:active {
  background-color: rgba(94, 234, 212, 0.2);
  transform: translateY(1px);
}

.btn-modal-filled {
  background-color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
  color: #1f2329;
  font-weight: bold;
  padding: 8px 30px;
  min-width: 100px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-modal-filled:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-1px);
}

.btn-modal-outline {
  background: transparent;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  color: white;
  font-weight: bold;
  padding: 8px 30px;
  min-width: 100px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-modal-outline:hover {
  background-color: rgba(94, 234, 212, 0.1);
  color: #fff;
  border-color: #fff;
}

.skew-btn {
  transform: skew(-30deg);
  border-radius: 2px;
  border-color: rgba(255, 255, 255, 1);
  color: rgba(255, 255, 255, 1);
  font-family: "Klamp 205";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

.skew-btn span {
  display: inline-block;
  transform: skew(30deg);
}

.active-view-btn {
  background-color: var(--bs-primary);
  color: white;
}

.active-view-btn:hover {
  background-color: var(--bs-primary);
  border-color: rgba(255, 255, 255, 1);
}

.inactive-view-btn {
  background-color: rgba(255, 255, 255, 0.15);
}

.inactive-view-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 1);
}

.deliverable-table-list .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
}

.text-primary {
  color: var(--bs-primary);
}

.deliverable-table-list thead th {
  font-family: "Klamp 205";
  font-size: 20px;
  font-style: bold;
  font-weight: 700;
}

.deliverable-table-list tbody tr {
  font-family: "Klamp 205";
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
}

.text-normal {
  font-family: "Klamp 205";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.bg-primary {
  background-color: var(--bs-primary);
}

.bold-icon {
  -webkit-text-stroke-width: 1px;
}

.icon-wrapper {
  width: 35px;
  height: 35px;
  background-color: #0b0f14;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.milestone-title {
  font-family: "Klamp 205";
  font-size: 27px;
  font-style: bold;
  font-weight: 700;
  line-height: 100%;
}

.milestone-detail {
  font-family: "Barlow";
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
}

.member-avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  object-fit: scale-down;
  background-color: #ffffff;
  filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.25));
  border: 1px solid #ffffff;
}

.member-link {
  transition: background-color 0.2s ease, transform 0.2s ease;
  color: inherit;
}

.member-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transform: translateX(5px);
}

.toggle-icon {
  transition: transform 0.2s ease;
  display: inline-block;
}

button[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.member-row-hover {
  transition: background-color 0.2s ease;
}

.member-row-hover:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.milestone-card {
  scroll-margin-top: 100px;
  transition: all 0.5s ease-in-out;
}

.milestone-card:target {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgb(125, 212, 208);
  background-color: rgba(146, 198, 202, 0.05);
  transform: scale(1.01);
}

.table-dark-preview {
  background: rgba(34, 40, 50, 1);
}

.action-btn {
  width: 40px;
  height: 40px;
}

.skip-button {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  border: none;
}

.sidebar-title {
  font-family: "Klamp 205";
  font-size: 18px;
  font-weight: 700;
  font-style: bold;
  text-transform: uppercase;
}

.conversation-sidebar-title {
  font-family: "Barlow";
  font-size: 18px;
  font-weight: 700;
  font-style: bold;
  text-transform: uppercase;
}

.chat-text {
  font-family: "Barlow";
  font-weight: 400;
}

.full-height-container {
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.chat-list-btn {
  transition: background-color 0.2s ease;
}

.chat-list-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
}

.active-chat {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-title {
  font-family: "Klamp 205";
  font-size: 25px;
  font-weight: 700;
  font-style: bold;
  text-transform: uppercase;
}

.chat-box-content {
  background-color: rgba(255, 255, 255, 0.05);
}

.chat-box-company {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 6px 6px;
}

#member-sidebar-content .card {
  border-color: white;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#member-sidebar-content .card::-webkit-scrollbar {
  width: 6px;
}

#member-sidebar-content .card::-webkit-scrollbar-track {
  background: transparent;
}

#member-sidebar-content .card::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

#member-sidebar-content .card::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

#memberSidebar.collapsing {
  transition: width 0.35s ease-in-out;
}

#memberSidebar .custom-scrollbar {
  min-width: 300px;
}

.bg-table-header {
  background-color: rgba(255, 255, 255, 0.25) !important;
}

.bg-table-header th button,
.bg-table-header th button * {
  font: inherit !important;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.table-header-cell {
  font-family: "Klamp 205";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-align: left !important;
  padding: 1rem !important;
}

.btn-table-header {
  padding: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: white;
}

.btn-invite-action {
  background-color: var(--bs-primary);
  border: 0;
  border-left: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 72px;
}

.asteriskField {
  color: var(--bs-danger);
}

.company-checkbox:not(:checked)+.card .btn-added-text,
.company-checkbox:not(:checked)+.card .btn-hover-remove-text {
  display: none;
}

.company-checkbox:checked+.card .btn-add-text,
.company-checkbox:checked+.card .btn-hover-remove-text {
  display: none;
}

.company-checkbox:checked+.card .btn-select-company:hover .btn-added-text {
  display: none;
}

.company-checkbox:checked+.card .btn-select-company:hover .btn-hover-remove-text {
  display: inline-block;
}

.company-checkbox:not(:checked)+.card .btn-select-company {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

.company-checkbox:checked+.card .btn-select-company {
  background-color: var(--bs-success);
  color: white;
  border-color: var(--bs-success);
}

.company-checkbox:checked+.card .btn-select-company:hover {
  background-color: var(--bs-danger);
  border-color: var(--bs-danger);
}

.btn-select-company {
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-align: center;
}

.chat-filter-btn {
  border-color: #ffffff;
}

.chat-filter-btn:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.active-tab {
  background-color: rgba(41, 186, 178, 1);
  color: #ffffff;
}

.active-tab:hover {
  background-color: rgba(41, 186, 178, 0.8);
  border-color: #ffffff;
  color: #ffffff;
}

.ql-editor.ql-view {
  height: auto;
  padding: 0;
}

#pillScroll {
  --node-size: 66px;
  --node-half: 33px;
  --bar-width: clamp(400px, 30vw, 500px);

  container-type: inline-size;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  height: 400px;
  padding-top: 50px;
}

#pillScroll::-webkit-scrollbar {
  display: none;
}

.scroll-arrow {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.scroll-arrow:hover {
  opacity: 1;
}

.milestone-node {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.9);
  filter: grayscale(1) brightness(0.7);
  z-index: 2;
}

.milestone-node.is-centered {
  transform: scale(1.3);
  filter: grayscale(0) brightness(1.1);
  z-index: 10;
}

.milestone-node .core-subtitle {
  transition: opacity 0.3s;
  opacity: 0.5;
}

.milestone-node.is-centered .core-subtitle {
  opacity: 1;
  font-weight: bold;
}

.dual-list {
  min-height: 150px;
  padding: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.dual-list option {
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 2px;
}

.dual-listbox-panel {
  flex: 1 1 0%;
  min-width: 250px;
  min-height: 250px;
  background-color: var(--bs-form-control-bg);
  border-color: var(--bs-border-color);
}

.dual-list option:checked {
  background: linear-gradient(0deg, var(--bs-primary) 0%, var(--bs-primary) 100%) !important;
}

.dual-list option:hover:not(:checked) {
  background-color: rgba(255, 255, 255, 0.05);
}

.errorlist {
  color: red;
  font-weight: bold;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  margin-top: 0.25rem;
}

.status-filter-count {
  width: 1.25rem;
  height: 1.25rem;
}

.accordion-button,
.accordion-button:not(.collapsed) {
  background: transparent !important;
  box-shadow: none !important;
}

[data-bs-toggle="collapse"] .bi-chevron-down {
  display: inline-block;
  transition: transform 0.2s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.status-completed {
  background: rgba(34, 197, 94, 1);
}

.status-review {
  background: rgba(245, 158, 11, 1);
}

.status-changes {
  background: rgba(239, 68, 68, 1);
}

.status-todo {
  background: rgba(168, 170, 173, 1);
}

.status-swap {
  background: rgba(227, 115, 131);
}

.task-status-pill {
  min-width: auto;
  width: fit-content;
  padding: 0 10px;
  border: 1px solid;
  border-radius: 50px;
  height: 27px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-status-pill--todo {
  background-color: rgba(var(--bs-secondary-color-rgb), 0.3);
  border-color: var(--bs-secondary-color);
  border-width: 1px;
}

.task-status-pill--todo i {
  color: var(--bs-secondary-color);
}

.task-status-pill--changes {
  background-color: rgba(var(--bs-danger-rgb), 0.3);
  border-color: rgba(239, 68, 68, 1);
  border-width: 1px;
}

.task-status-pill--changes i {
  color: rgba(239, 68, 68, 1);
}

.task-status-pill--review {
  background-color: rgba(var(--bs-warning-rgb), 0.3);
  border-color: rgba(245, 158, 11, 1);
  border-width: 1px;
}

.task-status-pill--review i {
  color: rgba(245, 158, 11, 1);
}

.task-status-pill--completed {
  background-color: rgba(var(--bs-success-rgb), 0.3);
  border-color: rgba(34, 197, 94, 1);
  border-width: 1px;
}

.task-status-pill--completed i {
  color: rgba(34, 197, 94, 1);
}

.task-status-pill--swap {
  background-color: rgba(var(--bs-swap-rgb), 0.3);
  border-color: rgba(227, 115, 131, 1);
  border-width: 1px;
}

.circle-slash {
  color: rgba(var(--bs-primary-rgb), 1);
}

.filter-btn {
  width: 33px;
  height: 33px;
  border-radius: 6px;
}

.filter-dropdown-menu {
  min-width: 140px;
  height: 173px;
  overflow-y: auto;
}

.hover-message {
  transition: box-shadow 0.3s ease;
}

.hover-message:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.hover-message .message-actions {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.hover-message:hover .message-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.message-wrapper .ql-container {
  height: auto !important;
  border: 0;
}

.message-wrapper .ql-editor:not(.ql-view) {
  height: auto !important;
  min-height: 36px !important;
  max-height: 120px;
  overflow-y: hidden;
}

.message-wrapper .ql-toolbar {
  border: 0;
}

.transition-transform {
  transition: transform 0.2s ease-in-out;
}

.rotate-90 {
  transform: rotate(90deg);
}

.django-quill-widget-container>.ql-toolbar:not(:first-child) {
  display: none !important;
}

.django-quill-widget-container>.django-quill-widget.ql-container:not(:last-of-type) {
  display: none !important;
}

.smart-header {
  position: sticky;
  top: var(--header-h);
  z-index: 1020;
  background-color: var(--bs-body-bg);
  transition: transform 0.3s ease-in-out;
}

.smart-header--hidden {
  transform: translateY(-100%);
}

#event-form label {
  font-family: "Klamp 205";
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.three-dots-menu {
  width: 34px;
  height: 34px;
  border-top: 1px solid var(--bs-secondary-color);
  --bs-btn-bg: var(--bs-body-bg);
  --bs-btn-hover-bg: var(--bs-body-bg);
  --bs-btn-active-bg: var(--bs-body-bg);
}

.picker-item {
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.picker-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.picker-item.selected {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--bs-border-color);
}

.bucket-chip {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 0.15s, border-color 0.15s;
}

.bucket-chip:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.bucket-chip.selected {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--bs-border-color);
}


.email-tag-container {
  min-height: 32px;
  cursor: text;
}

.email-tag-input {
  min-width: 140px;
  flex: 1;
  outline: none;
  font-size: 0.85rem;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
}

.email-chip .remove-email {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 0;
  font-size: 0.65rem;
  cursor: pointer;
  line-height: 1;
}

.email-chip .remove-email:hover {
  color: #fff;
}

.tab-button.header-underline {
  background-color: transparent !important;
  border: none !important;
  color: var(--bs-secondary-color) !important;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.tab-button.header-underline.active {
  color: var(--bs-primary) !important;
}

.tab-button.header-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--bs-primary);
  border-radius: 10px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-button.header-underline.active::after {
  transform: scaleX(1);
}

.nav-link:focus,
.nav-link:hover {
  color: var(--bs-primary);
}

.form-check-input:checked {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.form-check-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

.btn-content-picker {
  background-color: var(--bs-card-cap-bg, rgba(var(--bs-body-color-rgb), 0.03)) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
  height: 220px;
  transition: all 0.2s ease;
}

.btn-content-picker:hover {
  background-color: rgba(var(--bs-body-color-rgb), 0.08) !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-dot {
  width: 12px;
  height: 12px;
  background-color: var(--bs-secondary);
  transition: all 0.2s ease-in-out;
}

.custom-dot.active {
  background-color: white;
  border: 3px solid #5bc0be;
  transform: scale(1.3);
}

.timeline-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  z-index: 1;
}

.task-status-pill--sm {
  font-size: 0.72rem;
  text-transform: none;
}

.activity-name {
  font-family: "Barlow";
  font-size: 0.82rem;
  text-transform: none;
}

.activity-date {
  font-size: 0.75rem;
  text-transform: none;
}

.review-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.status-banner-review {
  background-color: rgba(var(--bs-warning-rgb), 0.2);
  border-color: rgba(245, 158, 11, 1);
  border-style: solid;
  border-width: 1px;
}

.status-banner-changes {
  background-color: rgba(var(--bs-danger-rgb), 0.2);
  border-color: rgba(239, 68, 68, 1);
  border-style: solid;
  border-width: 1px;
}

.showcase-new-block-btn {
  font-size: 15px;
  border: 1px dashed var(--bs-primary);
  border-radius: 0.375rem;
  cursor: pointer;
  background-color: rgba(41, 186, 178, 0.03);
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.showcase-new-block-btn:hover {
  background-color: rgba(41, 186, 178, 0.08);
  border-color: var(--bs-link-hover-color);
}

.showcase-cancel-btn:hover {
  font-size: 15px;
  background-color: #5c2d33 !important;
  border-color: #7a3d44 !important;
  color: #d9a0a6 !important;
}

/* Carousel Filmstrip Styles */
.fs-slot {
  flex: 1 1 0;
  min-width: 68px;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.fs-slot.fs-filled {
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  cursor: grab;
}

.fs-slot.fs-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
  border-color: rgba(255, 255, 255, .25);
  z-index: 1;
}

.fs-slot.fs-filled:active {
  cursor: grabbing;
}

.fs-slot.fs-filled.fs-dragging {
  opacity: .3;
  transform: scale(.92);
  box-shadow: none;
}

.fs-slot.fs-filled.fs-drop-before {
  box-shadow: -3px 0 0 0 var(--bs-primary);
}

.fs-slot.fs-filled.fs-drop-after {
  box-shadow: 3px 0 0 0 var(--bs-primary);
}

.fs-slot.fs-empty {
  border: 1.5px dashed rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.fs-slot.fs-upload {
  border-color: var(--bs-primary);
  background: rgba(13, 110, 253, .05);
  cursor: pointer;
}

.fs-slot.fs-upload:hover,
.fs-slot.fs-upload:focus-visible {
  background: rgba(13, 110, 253, .12);
  outline: none;
}

.fs-slot.fs-upload.fs-dragover {
  background: rgba(13, 110, 253, .2);
  border-style: solid;
}

.fs-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 4px;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 2;
}

.fs-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, .65);
  border: none;
  color: rgba(255, 255, 255, .85);
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s ease, background .1s ease;
  z-index: 3;
  padding: 0;
  line-height: 1;
}

.fs-slot.fs-filled:hover .fs-remove {
  opacity: 1;
}

.fs-remove:hover {
  background: rgba(220, 53, 69, .85);
}

.fs-drag-hint {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .4);
  font-size: .65rem;
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.fs-slot.fs-filled:hover .fs-drag-hint {
  opacity: 1;
}

.fs-slot-num {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .28;
  color: #fff;
  pointer-events: none;
}

/* Static sidebar */
:root {
  --sidebar-w: 100px;
  --header-h: 36px;
  --tab-bar-h: 60px;
}

.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--header-h);
}

/* Pending actions banners (PM and company home) */
.pending-action-row,
.company-pending-action-row {
  transition: background 0.15s ease;
}

.pending-action-row:hover,
.company-pending-action-row:hover {
  background: rgba(var(--bs-warning-rgb), 0.07) !important;
}

.pending-action-row:hover .pending-action-review,
.company-pending-action-row:hover .company-pending-action-review {
  background: rgba(var(--bs-warning-rgb), 0.2) !important;
}

[data-bs-target="#pending-actions-collapse"][aria-expanded="true"] .collapse-chevron,
[data-bs-target="#company-pending-actions-collapse"][aria-expanded="true"] .company-collapse-chevron {
  transform: rotate(0deg);
}

[data-bs-target="#pending-actions-collapse"][aria-expanded="false"] .collapse-chevron,
[data-bs-target="#company-pending-actions-collapse"][aria-expanded="false"] .company-collapse-chevron {
  transform: rotate(180deg);
}


#admin-company-list .list-group-item.active .selected-check {
  opacity: 1 !important;
}


.project-card-name {
  font-size: clamp(1.1rem, 3vw, 2rem);
}

.project-card-percent {
  font-size: clamp(0.8rem, 2.5vw, 1.5rem);
}

.badge.project-card-milestone {
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
}

.project-card-label {
  font-size: clamp(0.75rem, 2vw, 1rem);
}

.project-card-avatar {
  width: clamp(24px, 3vw, 35px);
  height: clamp(24px, 3vw, 35px);
  flex-shrink: 0;
}

.project-card-collab {
  min-width: 0;
}

.project-progress-bar {
  height: clamp(24px, 3vw, 35px);
  background-color: rgba(209, 213, 255, 0.20);
}

/* Project card image: rounded-top when stacked (< xl), rounded-start when side-by-side (xl+) */
.project-card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

@media (min-width: 1200px) {
  .project-card-img {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
  }
}

/* Event card heights (desktop) */
.event-card {
  min-height: 333px;
}

.event-card-image {
  height: 220px;
}

.event-card-body {
  min-height: 113px;
}

/* Mobile: hide sidebar, show bottom tab bar */
@media (max-width: 767.98px) {
  :root {
    --header-h: 42px;
  }

  .sidebar {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding-top: var(--header-h) !important;
    padding-bottom: calc(var(--tab-bar-h) + 4px + env(safe-area-inset-bottom));
  }

  .bottom-tab-bar {
    display: flex;
  }

  .mobile-header {
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
  }

  .body,
  body {
    padding-top: 0;
    overflow-x: hidden;
  }

  .btn-reactivate {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .invite-action-btn {
    font-size: 0.75rem;
    padding: 8px 16px;
    min-height: 36px;
  }

  .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .card-body {
    padding: 0.65rem;
  }

  .full-height-container {
    height: calc(100vh - var(--header-h) - (var(--tab-bar-h) + env(safe-area-inset-bottom)));
    overflow: hidden !important;
  }

  .plus-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .rhombus-btn {
    font-size: 0.8rem;
  }

  .tab-container .nav {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  #project-tabs .nav {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .event-card {
    height: auto;
    min-height: 280px;
  }

  .event-card-image {
    height: 180px;
  }

  .event-card-body {
    height: auto;
    min-height: 80px;
  }

  .conversation-sidebar-title {
    font-size: 14px;
  }
}

/* Horizontal scroll utility */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet: consistent container gutter */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Bottom tab bar */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--bs-dark);
  border-top: 1px solid var(--bs-border-color);
  align-items: stretch;
  z-index: 1030;
}

.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.6rem;
  font-family: "Klamp 205";
  text-transform: uppercase;
  gap: 3px;
  padding: 6px 2px 4px;
  transition: color 0.15s;
  min-width: 0;
}

.bottom-tab.active {
  color: var(--bs-primary);
}

.bottom-tab:hover {
  color: var(--bs-link-hover-color);
}

.nav-pending-badge {
  font-size: 9px;
  padding: 2px 5px;
  min-width: 16px;
  line-height: 1.2;
}

/* HTMX indicator: make elements visible while a request is in flight.
   Relies on the element having its own opacity transition for timing/delay. */
.htmx-request.htmx-indicator {
  opacity: 1;
}

.media-preview-trigger .preview-expand-icon {
  opacity: 0;
  transition: opacity 0.15s;
}

.media-preview-trigger:hover .preview-expand-icon {
  opacity: 1;
}

#media-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#media-preview-body img,
#media-preview-body video {
  max-width: 100%;
  max-height: 80vh;
}

.modal .card {
  transition: none;
  transform: none;
  box-shadow: none;
}

.event-section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.event-empty-icon {
  font-size: 50px;
}