/*$box-shadow: (*/
/**/ /*"sm": 0 0 0.375rem 0 rgba(46, 38, 61, 0.18), //*/
/**/ /*"md": 0 0 0.625rem 0 rgba(46, 38, 61, 0.2), //*/
/**/ /*"lg": 0 0 1rem 0 rgba(46, 38, 61, 0.22) //
);*/
/*
1 colore bottone
2 bordo/hover
3 testo
*/
/*$box-shadow: (*/
/**/ /*"sm": 0 0 0.375rem 0 rgba(46, 38, 61, 0.18), //*/
/**/ /*"md": 0 0 0.625rem 0 rgba(46, 38, 61, 0.2), //*/
/**/ /*"lg": 0 0 1rem 0 rgba(46, 38, 61, 0.22) //
);*/
/*
1 colore bottone
2 bordo/hover
3 testo
*/
.headerContainer__info__left:has(+ .headerContainer__info__center > #TicketGroups) {
  padding: 0.5rem;
  aspect-ratio: unset;
}
.headerContainer__info__left:has(+ .headerContainer__info__center > #TicketGroups) button {
  padding: 0;
}

.headerContainer__info__center:has(#TicketGroups) {
  padding: 0;
  container-type: inline-size;
  container-name: ticket-container;
}

#TicketGroups {
  display: flex;
  width: 100%;
}
#TicketGroups .ticketGroup {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-inline: 1rem;
  align-items: center;
}
#TicketGroups .ticketGroup:hover {
  --fa-secondary-opacity: 1;
}
#TicketGroups .ticketGroup > * {
  height: 100%;
  align-content: center;
}
#TicketGroups .ticketGroup__title {
  color: var(--ticket-group-color, var(--fg-light));
  padding-right: 0.5rem;
  text-wrap: nowrap;
}
#TicketGroups .ticketGroup__title i {
  --fa-rotate-angle: 315deg;
}
#TicketGroups .ticketGroup__subtitle {
  text-transform: uppercase;
  color: var(--fg-light);
}
#TicketGroups .ticketGroup--ASSIGNED_TO_ME {
  --ticket-group-color: blue;
}
#TicketGroups .ticketGroup--ASSIGNED_TO_OTHERS {
  --ticket-group-color: blue;
}
#TicketGroups .ticketGroup--UNREAD_TICKETS {
  --ticket-group-color: red;
}
#TicketGroups .ticketGroup--READ_BUT_UNASSIGNED {
  --ticket-group-color: red;
}
#TicketGroups .ticketGroup--REPLIED_WAITING {
  --ticket-group-color: orange;
}
#TicketGroups .ticketGroup--NOT_ASSIGNED {
  --ticket-group-color: red;
}
#TicketGroups .ticketGroup--ASSIGNED {
  --ticket-group-color: blue;
}
#TicketGroups .ticketGroup--WAITING_CUSTOMER_REPLY {
  --ticket-group-color: orange;
}
#TicketGroups .ticketGroup--RESOLVED {
  --ticket-group-color: var(--success);
}
#TicketGroups .ticketGroup--CLOSED {
  --ticket-group-color: var(--success);
}
#TicketGroups .ticketGroup--ALL {
  --ticket-group-color: var(--fg);
}
#TicketGroups .ticketGroup--zero {
  pointer-events: none;
  opacity: 0.5;
}
#TicketGroups .ticketGroup--updated {
  animation: fade-bg 10s ease-out;
}
#TicketGroups .ticketGroup--updated span, #TicketGroups .ticketGroup--updated small {
  display: inline-block;
  animation: pop-number 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), fade-color 8s ease-out;
}
@container ticket-container (max-width: 868px) {
  #TicketGroups .ticketGroup {
    flex-direction: column;
    padding-inline: 0.5rem;
  }
  #TicketGroups .ticketGroup .ticketGroup__subtitle {
    display: none;
  }
}
@container ticket-container (max-width: 400px) {
  #TicketGroups {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 0.5rem;
  }
  #TicketGroups .ticketGroup__title {
    text-wrap: normal;
  }
  #TicketGroups .ticketGroup__subtitle {
    display: block;
  }
}

@keyframes pop-number {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fade-color {
  0%, 15% {
    color: var(--warning);
  }
  100% {
    color: inherit;
  }
}
.ticketDashboard {
  display: flex;
  position: relative;
}
.ticketDashboard__ticketsList {
  width: 100%;
}
.ticketDashboard__ticketsList .searchableList__header:has(.ticketDashboard__ticketsList__header) {
  position: sticky;
  top: 0px;
  z-index: 1;
  height: 71px !important;
}
.ticketDashboard__ticketsList__header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ticketDashboard__ticketsList__header__title {
  display: flex;
  flex-direction: column;
}
.ticketDashboard__ticketsList__header__title h2 {
  line-height: 1.3;
}
.ticketDashboard__ticketsList__header__title small {
  text-transform: uppercase;
  color: var(--fg-light);
}

.listRow.ticket--TIC_DRAFT {
  border-left-color: var(--fg-light) !important;
}
.listRow.ticket--TIC_NEW {
  border-left-color: var(--error) !important;
}
.listRow.ticket--TIC_PENDING_NEW {
  border-left-color: var(--error) !important;
}
.listRow.ticket--TIC_VIEWED {
  border-left-color: var(--warning) !important;
}
.listRow.ticket--TIC_WORKING {
  border-left-color: var(--info) !important;
}
.listRow.ticket--TIC_CLOSING {
  border-left-color: var(--success) !important;
}
.listRow.ticket--TIC_CLOSED {
  border-left-color: var(--primary) !important;
}
.listRow .listCell .ticket {
  display: flex;
  flex-direction: column;
}
.listRow .listCell .ticket .listCell {
  padding: 0;
}
.listRow .listCell .ticket__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.listRow .listCell .ticket__header__title {
  font-weight: 700;
}
.listRow .listCell .ticket__header__date {
  color: var(--fg-light);
  font-size: small;
  white-space: nowrap;
}
.listRow .listCell .ticket__company {
  font-size: small;
  padding: 0;
}
.listRow .listCell .ticket__center {
  font-size: small;
  color: var(--fg-light);
  padding: 0;
}
.listRow .listCell .ticket__requester {
  font-size: small;
  padding: 0;
}
.listRow .listCell .ticket__info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.listRow .listCell .ticket__info__number {
  color: var(--fg-light);
  font-size: small;
  align-content: center;
}
.listRow .listCell .ticket__info smart-avatar {
  flex-direction: row-reverse;
  color: var(--fg-light);
  font-size: small;
}
.listRow .listCell .ticket__info > div {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.detailContainer:has(.ticketDetail) {
  width: 100%;
  height: 100% !important;
}

.ticketDetail {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-areas: "Header Header" "Chat Info";
  grid-template-rows: 71px calc(100% - 71px);
  grid-template-columns: 9fr 4fr;
}
.ticketDetail__header {
  grid-area: Header;
  display: flex;
  background: var(--bg-light);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--bg-dark);
  border-right: 1px solid var(--bg-dark);
}
.ticketDetail__header > div:first-of-type {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.ticketDetail__header > div:last-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.75rem;
}
.ticketDetail__header > div:last-of-type .btn {
  padding: 0;
}
.ticketDetail__header__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: fit-content;
}
.ticketDetail__header__title {
  grid-area: Title;
  font-weight: bold;
  font-size: large;
}
.ticketDetail__header__company {
  grid-area: Company;
  display: flex;
  justify-content: flex-end;
  font-size: small;
  align-items: center;
}
.ticketDetail__header__subtitle {
  grid-area: Subtitle;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-light);
  font-size: small;
}
.ticketDetail__header__subtitle__info {
  display: flex;
  align-content: center;
  align-items: center;
  gap: 0.25rem;
}
.ticketDetail__header__subtitle__info .pill {
  padding: 0 0.5rem;
}
.ticketDetail__header__subtitle__info .pill.pill--TIC_DRAFT {
  color: var(--fg-light);
}
.ticketDetail__header__subtitle__info .pill.pill--TIC_NEW {
  color: var(--error);
}
.ticketDetail__header__subtitle__info .pill.pill--TIC_PENDING_NEW {
  color: var(--error);
}
.ticketDetail__header__subtitle__info .pill.pill--TIC_VIEWED {
  color: var(--warning);
}
.ticketDetail__header__subtitle__info .pill.pill--TIC_WORKING {
  color: var(--info);
}
.ticketDetail__header__subtitle__info .pill.pill--TIC_CLOSING {
  color: var(--success);
}
.ticketDetail__header__subtitle__info .pill.pill--TIC_CLOSED {
  color: var(--primary);
}
.ticketDetail__header__subtitle > i:first-of-type {
  font-size: medium;
}
.ticketDetail__header__avatars {
  grid-area: Avatars;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.ticketDetail__header__avatars > .avatarsGroup {
  outline: 1px solid var(--bg-dark);
  border-radius: calc(infinity * 1px);
}
.ticketDetail__header__avatars > .avatarsGroup > i {
  align-self: center;
  margin-inline: 0.5rem;
}
.ticketDetail__header__avatars [data-type=PopupTrigger] {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ticketDetail__chat {
  grid-area: Chat;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-right: 1px solid var(--bg-dark);
}
.ticketDetail__chat .chat {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: max-content 1fr;
  overflow-y: auto;
}
.ticketDetail__chat .chat__ticketRowOpener {
  height: fit-content;
  max-height: 100%;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: var(--bg-light);
  padding: 1.5rem 0 0.5rem;
  border-bottom: 1px solid var(--bg-dark);
}
.ticketDetail__chat .chat__ticketRowOpener--closed .ticketRow__content {
  padding-bottom: 0.5rem;
}
.ticketDetail__chat .chat__ticketRowOpener--closed .ticketRow__body {
  display: none;
}
.ticketDetail__chat .chat__ticketRowOpener--closed .ticketRow__footer {
  display: none;
}
.ticketDetail__chat .chat__ticketRowOpener--closed .btn i {
  transform: rotate(-180deg);
}
.ticketDetail__chat .chat__ticketRowOpener .ticketRow {
  transition: transform 0.3s ease;
}
.ticketDetail__chat .chat__ticketRowOpener > .btn {
  position: absolute;
  bottom: -20px;
  right: 0;
  border-color: var(--bg-dark);
  background: var(--bg-light);
  transition: transform 0.3s ease;
}
.ticketDetail__chat .chat__messages {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 0.75rem;
  gap: 1.75rem;
}
.ticketDetail__chat .chat__bottom {
  background: var(--bg-dark);
}
.ticketDetail__chat .chat__bottom__actions {
  display: flex;
  flex-wrap: wrap;
}
.ticketDetail__info {
  grid-area: Info;
}
.ticketDetail__info .formContainer {
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}
.ticketDetail__info .formContainer .formContainer__header {
  display: none;
}
.ticketDetail__info .formContainer .wrapper__header {
  font-size: smaller;
  color: var(--fg-light);
  text-transform: uppercase;
  font-weight: normal;
}
.ticketDetail__info .formContainer .wrapper__body {
  row-gap: 0.5rem;
}
.ticketDetail__info .formContainer .referenceTickets {
  container-type: inline-size;
  container-name: attachments-list;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border: 1px solid var(--bg-dark);
}
.ticketDetail__info .formContainer .referenceTickets__ticket {
  display: grid;
  grid-template-columns: min-content 1fr;
  align-items: center;
  transition: all 0.2s;
}
.ticketDetail__info .formContainer .referenceTickets__ticket__icon {
  display: flex;
  aspect-ratio: 1;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: x-large;
  border-right: 1px solid var(--bg-dark);
  color: inherit;
  text-decoration: none;
  transition: all 0.5s;
}
.ticketDetail__info .formContainer .referenceTickets__ticket__bio {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ticketDetail__info .formContainer .referenceTickets__ticket__bio__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.ticketDetail__info .formContainer .referenceTickets__ticket__bio__number {
  font-size: small;
  color: var(--fg-light);
}
.ticketDetail__info .formContainer .referenceTickets__ticket + .referenceTickets__ticket {
  border-top: 1px solid var(--bg-dark);
}

.ticketRow {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-inline: 50px;
}
.ticketRow--company .ticketRow__content {
  grid-template-areas: "Header Avatar" "Content Avatar" "Commands Avatar";
  grid-template-columns: 1fr max-content;
  --message-color: var(--bg-light);
  --message-border-color: var(--bg-dark);
}
.ticketRow--company::before {
  right: calc(100% - 15px);
}
.ticketRow--company::after {
  right: calc(100% - 17px);
}
.ticketRow--company .ticketRow__avatar {
  left: calc(100% - 15px);
}
.ticketRow--company .ticketRow__date {
  right: unset;
  left: 0;
}
.ticketRow--info {
  width: fit-content;
  align-self: center;
  opacity: 0.5;
  color: var(--fg-dark);
}
.ticketRow--info .ticketRow__content {
  --message-color: var(--bg-dark);
  padding: 0.125rem 1rem;
}
.ticketRow--info .ticketRow__date {
  left: 0;
  right: 0;
  text-align: center;
}
.ticketRow--info .ticketRow__body {
  padding: 0;
  font-size: smaller;
  font-weight: bold;
}
.ticketRow--fixable {
  position: sticky;
  top: 0;
  z-index: 2;
}
.ticketRow--new {
  margin-top: auto;
}
.ticketRow--new .ticketRow__content {
  padding: 0;
}
.ticketRow--new .ticketRow__content .ticketRow__header {
  display: none;
}
.ticketRow--new .ticketRow__body {
  padding: 0;
}
.ticketRow--new .ticketRow__body__section {
  display: none;
  padding: 1rem 1.5rem;
}
.ticketRow--new .ticketRow__body__section.current {
  display: grid;
}
.ticketRow--new .ticketRow__body__section.current .result {
  display: none !important;
}
.ticketRow--new .ticketRow__body__section:has(.result:not(:empty)) {
  display: block;
  opacity: 0.8;
  border-bottom: 2px solid var(--bg-dark);
  margin: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ticketRow--new .ticketRow__body__section:has(.result:not(:empty)):hover {
  opacity: 1;
}
.ticketRow--new .ticketRow__body__section:has(.result:not(:empty)) > *:not(.result, .wrapper__header) {
  display: none !important;
}
.ticketRow--new .ticketRow__body__section:has(.result:not(:empty)) .result {
  display: inline-block;
}
.ticketRow--new .ticketRow__body__section .wrapper__header {
  font-size: smaller;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.ticketRow--new .ticketRow__commands {
  padding: 0.5rem 1.5rem;
}
.ticketRow--TIC_ROW_REPLIED_CLOSING .ticketRow__content {
  box-shadow: 0px 0px 10px -3px var(--success-dark);
}
.ticketRow--TIC_ROW_INTERNAL_COMM .ticketRow__content {
  background: var(--bg);
}
.ticketRow > * {
  border: 2px solid var(--bg-dark);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
}
.ticketRow > *:not(:first-child) {
  margin-top: -40px;
  padding-top: calc(40px + 0.5rem);
}
.ticketRow__content {
  display: grid;
  grid-template-areas: "Avatar Header" "Avatar Content" "Avatar Files" "Avatar Commands";
  grid-template-columns: max-content 1fr;
  grid-template-rows: max-content 1fr max-content max-content;
  background: var(--bg-light);
  --message-color: var(--primary-light);
  background: var(--message-color);
  z-index: 1;
}
.ticketRow__avatar {
  grid-area: Avatar;
  margin: 0.5rem;
  position: absolute;
  top: 0;
  left: -45px;
  border: 1px solid var(--fg-light);
  border-radius: 50%;
}
.ticketRow__date {
  margin: 1rem;
  position: absolute;
  top: -35px;
  right: 0;
  font-size: small;
  color: var(--fg-light);
}
.ticketRow__header {
  grid-area: Header;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1fr max-content;
}
.ticketRow__header__right {
  font-size: small;
  font-weight: 600;
  color: var(--primary-dark);
}
.ticketRow__body {
  grid-area: Content;
  display: flex;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.25rem;
}
.ticketRow__body__message .rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.ticketRow__body__message .rating input {
  display: none;
}
.ticketRow__body__message .rating label {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--bg-dark);
  transition: color 0.2s ease, transform 0.1s ease;
  padding: 0 2px;
}
.ticketRow__body__message .rating label i {
  display: inline-block;
}
.ticketRow__body__message .rating label:hover {
  transform: scale(1.2);
}
.ticketRow__body__message .rating input:checked ~ label {
  color: var(--warning);
}
.ticketRow__body__message .rating:not(:checked) label:hover, .ticketRow__body__message .rating:not(:checked) label:hover ~ label {
  color: oklch(from var(--warning) calc(l + 0.1) c h);
}
.ticketRow__body__message .rating input:checked + label {
  animation: pulse 0.3s ease-in-out;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}
.ticketRow__commands {
  grid-area: Commands;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
}
.ticketRow__logs {
  position: absolute;
  bottom: -5px;
  left: -10px;
  width: unset;
  border: 1px solid currentColor !important;
}
.ticketRow__footer {
  background: var(--bg);
}
.ticketRow__footer:has(.attachmentsViewer__empty) {
  display: none;
}

/*# sourceMappingURL=Ticket.css.map */
