/* OVERRIDES */
@font-face {
  font-family: 'YD Yoonche';
  src: url('/fonts/yd-yoonche-m.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Poppins font family override */
:root {
  --phoenix-font-sans-serif: "Poppins", sans-serif;
  --phoenix-body-font-family: "Poppins", sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: "Poppins", sans-serif;
}

.primary-text {
  color: #0F766E;
}

.btn-primary {
  --phoenix-btn-bg: #0F766E;
  /* --phoenix-btn-border-color: #0066ff; */

  --phoenix-btn-hover-bg: #0C645D;
  /* --phoenix-btn-hover-border-color: #0052cc; */

  --phoenix-btn-active-bg: #0C645D;
  /* --phoenix-btn-active-border-color: #0047b3; */

  --phoenix-btn-disabled-bg: #B2DDDB;
}

.btn-outline-primary {
  --phoenix-btn-color: #0F766E;
  --phoenix-btn-border-color: #0F766E;

  --phoenix-btn-hover-color: #fff;
  --phoenix-btn-hover-bg: #0F766E;
  --phoenix-btn-hover-border-color: #0F766E;

  --phoenix-btn-active-color: #fff;
  --phoenix-btn-active-bg: #0C645D;
  --phoenix-btn-active-border-color: #0C645D;

  --phoenix-btn-disabled-color: #B2DDDB;
  --phoenix-btn-disabled-border-color: #B2DDDB;
}

.form-switch .column-visibility-switch:checked {
  background-color: #0F766E;
  border-color: #0F766E;
}

.form-switch .column-visibility-switch:focus {
  border-color: #0F766E;
  box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}

.status-checkbox:checked {
  background-color: #0F766E;
  border-color: #0F766E;
}

.status-checkbox:focus {
  border-color: #0F766E;
  box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}

.navbar-vertical {
  --phoenix-navbar-vertical-link-active-color: #0F766E;
}

.nav-underline .nav-link.active {
  color: #0F766E;
  border-bottom-color: #0F766E;
}

a {
  color: #0F766E;
}

a:hover {
  color: #0B5C56;
}

/* Content responsive override */
@media (min-width: 992px) {
  .main.dual-nav>.content {
    margin-inline-start: var(--phoenix-navbar-vertical-width) !important;
    transition: margin-inline-start 0.2s ease;
  }
}

.centra-logo-font {
  font-family: 'YD Yoonche', sans-serif;
  font-weight: 500;
  font-size: 25px;
}

/* -----End of overrides----- */

/* Hidden by default */
.hover-show {
  opacity: 0;
  transition: opacity .15s ease-in-out;
}

.hover-target:hover .hover-show,
.hover-show:focus-visible {
  opacity: 1;
}

/* Sidebar nav css */
.navbar-vertical .navbar-vertical-content {
  display: flex;
  flex-direction: column;
}

.sidebar-additional-content {
  flex: 0 0 auto;
}

/* Hide the extra content when Phoenix collapses the sidebar */
html.navbar-vertical-collapsed .sidebar-additional-content {
  display: none !important;
}

/* Companies logo */
.company-logo {
  height: 140px;
}

.company-logo img {
  width: 60% !important;
  height: 60% !important;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

/* TABLE CSS */
.col-resizable {
  overflow: hidden;
  flex-shrink: 0;
  /* stop Bootstrap's flex-basis from being squeezed to fit */
  min-width: 0;
}

/* Allow Choices fields to overflow their table cell */
.col-resizable:has(.choices.is-open),
.col-resizable:has(.single-select-field),
.col-resizable:has(.multi-select-field) {
  overflow: visible;
  z-index: 1000;
}

.col-resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 10;
}

.col-resize-handle:hover,
.col-resize-handle.resizing {
  background: rgba(0, 0, 0, .15);
}

.col-actions {
  flex: 0 0 150px;
  /* adjust to whatever fits your action buttons */
}

.name-col-sticky {
  position: sticky;
  left: 0;
  z-index: 1001;
  flex: 0 0 var(--name-w, 500px);
  width: var(--name-w, 500px);
  background-color: var(--bs-body-bg, #F5F7FA);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
  /* Slight shadow */
}

/* Give inline editors the entire cell hit area without affecting header resizing. */
.col-resizable:has(> .task-cell-editor) {
  padding: 0 !important;
  align-items: stretch !important;
}

.task-cell-editor {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.task-cell-editor>.assignee-trigger,
.task-cell-editor>.inline-date-button {
  flex: 1;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.task-cell-editor>.assignee-trigger:hover,
.task-cell-editor>.inline-date-button:hover {
  background: var(--phoenix-gray-200, #eef1f5);
}

.collaborator-cell-editor>.assignee-trigger {
  padding-left: 24px;
  padding-right: 16px;
}

.task-details-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 32px;
  color: inherit;
}

.task-details-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  opacity: 0;
}

.name-col-sticky:hover .task-details-arrow,
.name-col-sticky:focus-within .task-details-arrow {
  opacity: 1;
}

.task-details-link:hover .task-details-arrow {
  background: var(--phoenix-gray-200, #eef1f5);
}

@media (hover: none) {
  .task-details-arrow {
    opacity: 1;
  }
}

.name-col-sticky:has(.dropdown-menu.show) {
  /* For approval dropdown thats inside name col */
  z-index: 1005;
}

.custom-field-menu {
  /* Elevate custom field menu option/action */
  position: absolute;
  z-index: 1100 !important;
}

.dropdown:has(> .custom-field-menu.show) {
  position: relative;
  z-index: 1100;
}

.table-resizable-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hidden overflow creates a new scroll container and makes sticky name cells
   jump during Bootstrap's height animation. Clip without changing that context. */
.subtask-collapse.collapsing {
  overflow: clip;
  transition: height 180ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .subtask-collapse.collapsing {
    transition: none;
  }
}

/* The real table remains the scroll owner. This is only a fixed visual proxy. */
.table-scroll-proxy {
  position: fixed;
  right: auto;
  bottom: 0;
  height: 17px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bs-body-bg, #F5F7FA);
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1030;
}

.table-scroll-proxy__content {
  height: 1px;
}

.table-resizable-wrapper .row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
  width: max-content;
  /* grow to fit all columns */
  min-width: 100%;
  /* but never be narrower than the wrapper */
}

.table-resizable-wrapper>.section-wrapper {
  width: max-content;
  min-width: 100%;
}

.task-table-row>div {
  padding: 0.5rem;
}

.task-table-row>div:not(:last-child) {
  border-right: 1px solid var(--bs-border-color, #dee2e6);
}

.table-resizable-wrapper .choices.is-open .choices__list--dropdown {
  position: fixed;
  z-index: 2000;
}

.drag-row:hover {
  background-color: #EFF2F6;
}

.drag-row:hover .drag-handle {
  visibility: visible !important;
}

.subtask-name {
  /*For subtasks indentation*/
  padding-inline-start: 4rem;
}

/* For hidden columns CSS */
.table-resizable-wrapper[data-hidden-columns~="assignee"] [data-column="assignee"],
.table-resizable-wrapper[data-hidden-columns~="start_date"] [data-column="start_date"],
.table-resizable-wrapper[data-hidden-columns~="actual_start"] [data-column="actual_start"],
.table-resizable-wrapper[data-hidden-columns~="due_date"] [data-column="due_date"],
.table-resizable-wrapper[data-hidden-columns~="completed_at"] [data-column="completed_at"] {
  display: none !important;
}

.table-resizable-wrapper [data-column][hidden] {
  display: none !important;
}

/* SECTION COLLAPSE */
.section-indicator-icon {
  display: inline-flex;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}

[aria-expanded="true"] .section-indicator-icon {
  transform: rotate(0deg);
}

.task-item .section-indicator-icon {
  transform: rotate(0deg);
}

.task-item:has(> .collapse.show) .section-indicator-icon,
.task-item [data-bs-toggle="collapse"][aria-expanded="true"] .section-indicator-icon {
  transform: rotate(90deg);
}

.custom-caret-none::after {
  display: none;

}

.section-header {
  position: sticky;
  left: 0;
  width: max-content;
  min-width: 0;
  z-index: 5;
  background-color: var(--bs-body-bg, #F5F7FA);
}

.section-header:has(.dropdown-menu.show) {
  z-index: 1005;
}

/* CARD CSS */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  cursor: pointer;
  transform: translateY(-5px);
  box-shadow: var(--bs-box-shadow);
}

.description-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Row seamless input */
.seamless-input {
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
}

.seamless-input:focus {
  background: rgba(0, 0, 0, 0.03);
  /* subtle, optional */
  outline: none;
  box-shadow: none;
}

/* Dropzone */
#dropzone-multiple.dz-started .dz-message {
  display: block !important;
}

/* Choicesjs css */
.single-select-field,
.multi-select-field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.single-select-field .choices,
.multi-select-field .choices {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
}

.single-select-field .choices__inner,
.multi-select-field .choices__inner {
  box-sizing: border-box;
  height: 33px !important;
  min-height: 33px !important;
  padding: 0 2.25rem 0 0.75rem !important;
  line-height: 23px !important;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Single-select text */
.single-select-field .choices__list--single {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
}

.single-select-field .choices__list--single .choices__item {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 !important;
  line-height: 23px;
}

/* Multi-select tags */
.multi-select-field .choices__list--multiple {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  white-space: nowrap;
}

.multi-select-field .choices__list--multiple .choices__item {
  margin: 0 !important;
  padding: 0 5px !important;
  font-size: 0.75rem !important;
  line-height: 23px !important;
}