:root {
  --tc-column-padding: 10px;
  --tc-main-horizontal-margin: -25px;
}

/* Columns */
.three-columns-main {
  display: flex;
  flex-direction: row;
  margin-left: var(--tc-main-horizontal-margin);
  margin-right: var(--tc-main-horizontal-margin);
  padding-top: 12px;
  gap: 12px;
  height: calc(100vh - 72px);
  box-sizing: border-box;
}

.three-columns-main > div {
  min-width: 400px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: var(--tc-column-padding);
  overflow-y: auto;
  position: relative;
  padding-top: 0;
}

.three-columns-main > div.three-columns-left {
  max-width: 400px;
  min-width: 300px;
  width: 25%;
  margin-left: 12px;
  padding-top: 0px;
}

.three-columns-main > div.three-columns-center {
  flex: 1 1 0;
  overflow-x: hidden;
}

.three-columns-main.two-columns-main > div.three-columns-center {
  margin-right: 12px;
}

.three-columns-main > div.three-columns-right {
  max-width: 400px;
  min-width: 300px;
  width: 25%;
  margin-right: 12px;
  padding-top: 20px;
}

.three-columns-main .three-columns-left-top-bar {
  position: sticky;
  top: 0px;
  height: 35px;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.three-columns-main .three-columns-left-top-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  right: 0;
  height: 35px;
  width: 10px;
  background-color: var(--secondary-color);
}

.three-columns-main .three-columns-left-top-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  height: 35px;
  width: 10px;
  background-color: var(--secondary-color);
}

.three-columns-left .three-columns-left-top-bar a img {
  height: 8px;
  margin-right: 5px;
}

.three-columns-left .three-columns-left-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary-color);
  padding-bottom: 30px;
  margin-top: 15px;
}

.three-columns-left .img-header {
  border-radius: 50%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-weight: 600;
  cursor: default;
}

.three-columns-left.sticky-header .three-columns-left-header {
  transition: width 0.3s ease-in-out;
  position: sticky;
  top: 35px;
}

.three-columns-left.sticky-header .three-columns-left-header .img-header {
  width: 30px !important;
  height: 30px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.three-columns-left.sticky-header .three-columns-left-header .header-name,
.three-columns-left.sticky-header .three-columns-left-header .header-name * {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.three-columns-left.sticky-header .three-columns-left-header .header-info,
.three-columns-left.sticky-header .three-columns-left-header .header-actions {
  display: none;
}

.three-columns-left .header-name,
.three-columns-left .header-name * {
  font-size: 24px;
  font-weight: 600;
}

.three-columns-left .header-name,
.three-columns-left .header-name *,
.three-columns-left .header-info > div {
  margin-top: 4px;
}

.three-columns-left .header-action {
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: 50px;
  cursor: pointer;
}

.three-columns-left .header-action > div {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: var(--background-main-color);
  border: 1px solid var(--border-color-4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.three-columns-left .header-action > div > img {
  height: 14px;
  width: 14px;
}

.three-columns-left .header-action > span {
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

div > .section-hr:not(:first-of-type) {
  margin-top: 20px;
  margin-bottom: 20px;
}

.three-columns-left .section-hr:not(:first-of-type),
.three-columns-right .section-hr:not(:first-of-type) {
  border-top: 1px solid var(--border-color-4);
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-right: -10px;
}

.column-section.main-box {
  background-color: transparent;
  border: 0 !important;
  border-radius: 0;
  padding: 0;
}

.column-section .column-section-title {
  margin-bottom: 15px;
  font-size: 18px;
}

.three-columns-right {
  position: relative;
  transition: width 0.1s ease-in-out, min-width 0.1s ease-in-out;
}

body:has(#chatbotuser-initialButtonChat) .three-columns-right {
  padding-bottom: 65px;
}

.three-columns-collapse-right {
  /* position: absolute;
  top: 15px; */
  position: fixed;
  top: calc(100vh / 2 - 20px);

  right: 0px;
  background-color: var(--background-main-color);
  border: 1px solid var(--border-color-4);
  border-right: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  width: 18px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.three-columns-collapse-right > img {
  height: 12px;
  width: 12px;
}

.three-columns-main > .three-columns-right.three-columns-right-collapsed {
  width: 15px;
  min-width: 15px;
}

.three-columns-right-collapsed
  :not(.three-columns-collapse-right):not(.three-columns-collapse-right > *) {
  display: none;
}

/* Tabs */
ul.three-columns-tabs::-webkit-scrollbar,
ul.three-columns-sub-tabs::-webkit-scrollbar {
  display: none;
}

ul.three-columns-tabs,
ul.three-columns-sub-tabs {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 10px 10px 0px 10px;
  overflow-x: scroll;
  width: 100%;
  margin-left: -10px;
  border-bottom: 1px solid var(--border-color-4);
  position: sticky;
  top: 0;
  background-color: var(--secondary-color);
  z-index: 1;
}

.three-columns-sub-tabs-content > div {
  padding-top: 15px;
}

.three-columns-tabs-content > div:not(.tab-content-active),
.three-columns-sub-tabs-content > div:not(.sub-tab-content-active) {
  display: none;
}

.sub-tab-header {
  margin-bottom: 20px;
}

ul.three-columns-tabs > li,
ul.three-columns-sub-tabs > li {
  padding: 0px 20px;
  padding-bottom: 13px;
  margin-bottom: 3px;
  white-space: nowrap;
  color: var(--muted-text-color);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

ul.three-columns-sub-tabs > li {
  padding-bottom: 8px;
  font-size: 14px;
}

ul.three-columns-tabs > li.tab-active,
ul.three-columns-sub-tabs > li.sub-tab-active {
  border-bottom: 3px solid var(--old-pandora-green);
  margin-bottom: 0px;
  color: var(--text-color-1);
}

/* Inputs */
.section-row input,
.section-row textarea,
.section-row .select2-container .select2-selection--single,
.section-row .select2-container .select2-selection--multiple {
  border-width: 1px !important;
}

.section-row input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.section-row textarea {
  height: 80px;
}

.section-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color-1);
  line-height: 16px;
  margin-bottom: 10px;
}

.section-row:first-child {
  margin-top: 5px;
}

.section-row {
  margin-bottom: 20px;
}

.three-columns-main .section-row:not(.not-modify-input) input:not(:focus),
.three-columns-main .section-row:not(.not-modify-input) textarea:not(:focus),
.three-columns-main
  .section-row:not(.not-modify-input)
  .select2-container:not(.select2-container--open)
  .select2-selection {
  background-color: transparent !important;
  background-image: none;
  border: 0;
  padding: 0;
  margin-top: -5px;
  height: 20px;
}

.three-columns-main .section-row:not(.not-modify-input) textarea:not(:focus) {
  background-color: transparent;
  background-image: none;
  border: 0;
  padding: 0;
  margin-top: -5px;
  height: 80px;
}

.three-columns-main
  .section-row:not(.not-modify-input)
  .select2-container:not(.select2-container--open)
  .select2-selection {
  background-color: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.three-columns-main
  .section-row:not(.not-modify-input)
  .select2-container:not(.select2-container--open)
  .select2-selection__rendered {
  padding: 0;
}

.three-columns-main
  .section-row:not(.not-modify-input)
  .select2-container:not(.select2-container--open)
  .select2-selection__arrow,
.three-columns-main
  .section-row:not(.not-modify-input)
  .select2-container:not(.select2-container--open)
  .select2-selection__clear {
  display: none;
}

.three-columns-main
  .section-row:not(.not-modify-input):hover
  input:not(:focus):not(.select2-search__field):not(:disabled),
.three-columns-main
  .section-row:not(.not-modify-input):hover
  textarea:not(:focus):not(:disabled),
.three-columns-main
  .section-row:not(.not-modify-input):hover
  .select2-container:not(.select2-container--open)
  .select2-selection__rendered {
  background-image: url("../../../images/edit-grey.svg");
  background-repeat: no-repeat;
  background-position: right 5px center;
}

.three-columns-section.three-columns-section-details
  .section-row:not(:last-child) {
  margin-bottom: 8px;
}

.three-columns-section-details .no-data-to-show > img {
  width: 130px;
}

.three-columns-section-details .section-row {
  margin-bottom: 10px;
}

.section-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
  cursor: pointer;
}

.section-toggle-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

:not(.three-columns-center) .section-toggle-header-left .header-left-text {
  font-size: 18px;
}

.section-toggle-header-right {
  text-align: right;
}

.section-toggle-arrow {
  width: 16px;
  height: 16px;
}

.section-toggle-container.collapsed .section-toggle-content {
  padding: 0px;
}

.three-columns-center
  .section-toggle-container.collapsed
  .section-toggle-content {
  padding: 10px 0px 15px 0px;
}

.section-toggle-content {
  padding: 10px 0px 0px 0px;
  overflow: hidden;
}

.section-toggle-container.collapsed .section-toggle-content {
  max-height: 0px;
  overflow: hidden;
  position: relative;
}

.section-toggle-container.collapsed .section-toggle-content::after,
.meeting-contacts-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, var(--secondary-color));
}

.section-toggle-content img {
  max-width: 100%;
  filter: none !important;
}

.section-toggle-footer {
  margin-top: 15px;
}

.collapsed > .section-toggle-footer {
  display: none;
}

.section-toggle-container.no-toggle .section-toggle-arrow {
  display: none;
}

.section-toggle-container.no-toggle .section-toggle-header {
  cursor: default;
}

.card-section {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
}

.three-columns-center .column-section {
  border: 1px solid var(--border-color) !important;
  border-radius: 6px;
  padding: 0px 10px 5px 10px;
}

.three-columns-center .column-section.three-columns-section-timestamp {
  border: 0 !important;
  padding: 0;
  text-align: center;
}

.three-columns-center .column-section.three-columns-section-timestamp * {
  color: var(--muted-text-color);
  font-size: 15px;
}

.three-columns-center .section-row {
  margin: 0;
}

.three-columns-main > div.three-columns-center,
.three-columns-main > div.three-columns-left {
  overflow-x: hidden;
  overflow-y: hidden;
}

.three-columns-left-content {
  overflow-y: auto;
  position: absolute;
  width: calc(100% - 10px);
}

.three-columns-left-content > * {
  max-width: calc(100% - 10px);
}

.pagination-sentinel {
  width: 100%;
}

.scroll-down {
  color: var(--muted-text-color);
  margin-top: 30px;
  padding-bottom: 10px;
}

.sub-tab-content {
  overflow-y: auto;
  position: absolute;
  height: calc(100% - 100px);
  width: calc(100% - 10px);
}

.attachment-container {
  text-align: center;
}

.attachment-container .attachment-image {
  max-width: 90%;
  margin: auto;
}

.attachment-icon,
.meeting-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.schedule-content,
.meeting-content {
  padding: 0px 15px;
}

.schedule-content .schedule-row,
.meeting-content .meeting-row {
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  padding: 10px 0px;
}

.schedule-content .schedule-row:not(:last-child),
.meeting-content .meeting-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color-4);
}

.schedule-content .schedule-field,
.meeting-content .meeting-field {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 2.5px 10px;
}

.schedule-content .schedule-field label,
.meeting-content .meeting-field label {
  margin-bottom: 2.5px;
  font-weight: normal;
}

.schedule-content .schedule-icon-label,
.meeting-content .meeting-icon-label {
  display: flex;
  flex-direction: row;
}

.schedule-content .schedule-icon,
.meeting-content .meeting-icon {
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.schedule-status-ball,
.meeting-status-ball,
.metrics-status-ball {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.schedule-status-connected,
.meeting-status-connected,
.metrics-status-connected {
  background-color: #82b92e;
}

.schedule-status-disconnected,
.meeting-status-disconnected,
.metrics-status-disconnected {
  background-color: #e63c52;
}

.schedule-status-warning,
.meeting-status-warning {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.meeting-title {
  min-width: 15%;
}

.meeting-contacts {
  min-width: 80%;
}

.meeting-contacts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 60px;
  overflow: hidden;
  position: relative;
}

.meeting-contacts-list.no-fade::after {
  display: none;
}

.meeting-contacts-list.expanded {
  max-height: none;
}

.meeting-contacts-list.expanded::after {
  opacity: 0;
}

.meeting-contact-box {
  display: flex;
  flex-direction: column;
  padding: 3px 6px;
  border: 1px solid var(--border-color-4);
  border-radius: 6px;
  background-color: var(--background-main-color);
  max-width: calc(25% - 3px);
  min-width: fit-content;
  height: fit-content;
}

.meeting-contact-box:hover {
  background-color: var(--secondary-color);
}

.meeting-content .meeting-contact-box span.contact-name {
  font-size: 0.9em;
  color: var(--text-color-1);
  margin-bottom: 1px;
}

.meeting-content .meeting-contact-box span.contact-email {
  font-size: 0.7em;
  color: var(--muted-text-color);
}

.meeting-content .meeting-contact-box span.contact-name,
.meeting-content .meeting-contact-box span.contact-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
}

.meeting-contacts-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.meeting-contacts-toggle {
  margin-top: 5px;
  padding: 4px 10px;
  font-size: 0.9em;
  color: var(--text-color-1);
  background-color: transparent;
  border: 1px solid var(--border-color-4);
  border-radius: 6px;
  cursor: pointer;
}

.meeting-contacts-toggle:hover {
  background-color: var(--secondary-color);
}

/* Email metrics section */
.email-metrics {
  margin: 5px 0;
  padding: 10px 0px;
}

.email-metrics .metric-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.email-metrics .metric-toggle {
  cursor: pointer;
}

.metrics-status-ball {
  margin-right: 0px;
}

.email-metrics .metric-badge {
  display: inline-block;
  padding: 2px 0px;
  font-size: 13px;
}

.email-metrics [id^="metrics-detail-"] {
  margin-top: 10px;
  padding-top: 10px;
}

.email-metrics .muted-text {
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 8px;
  font-size: 0.9em;
}

.email-metrics .muted-text::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 2px solid var(--border-color-4);
  box-sizing: border-box;
}

.email-metrics .metrics-arrow {
  width: 10px;
  height: 10px;
  vertical-align: middle;
  transform: rotate(180deg);
}

.email-metrics .metrics-arrow.rotated {
  transform: rotate(0deg);
}

.email-metrics [id^="metrics-detail-"] {
  display: none;
  position: relative;
  padding-left: 24px;
}

.email-metrics [id^="metrics-detail-"].expanded {
  display: block;
}

.email-metrics [id^="metrics-detail-"]::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color-4);
}

.three-columns-main > div.three-columns-left.mw400 {
  min-width: calc(400px - 50px);
  max-width: calc(400px - 50px);
}

.three-columns-main > div.three-columns-left.mw30p {
  min-width: calc(30% - 50px);
  max-width: calc(30% - 50px);
}

.three-columns-main > div.three-columns-left.mw40p {
  min-width: calc(40% - 50px);
  max-width: calc(40% - 50px);
}

.three-columns-main > div.three-columns-left.mw50p {
  min-width: calc(50% - 50px);
  max-width: calc(50% - 50px);
}

.three-columns-main > div.three-columns-left.mw60p {
  min-width: calc(60% - 50px);
  max-width: calc(60% - 50px);
}
