.agentos-toast-area {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: min(360px, calc(100vw - 2rem));
}

.agentos-toast {
  display: flex;
  align-items: flex-start;
  gap: .25rem;
  min-height: 3rem;
  padding: .75rem .85rem;
  border-radius: 3px;
  animation: agentos-toast-in .18s ease-out;
}

.agentos-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.agentos-toast .fe {
  line-height: 1.35;
}

.agentos-toast-body {
  flex: 1 1 auto;
  min-width: 0;
}

.agentos-toast-body strong,
.agentos-toast-body small {
  display: block;
  line-height: 1.25;
}

.agentos-toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  opacity: .8;
  padding: 0 0 0 .35rem;
}

.agentos-notification-nav {
  align-items: center;
}

.agentos-notification-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.agentos-notification-icon .fe {
  font-size: 1.1rem;
}

.agentos-notification-icon .badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1rem;
  height: 1rem;
  padding: 0 .25rem;
  font-size: .65rem;
  line-height: 1rem;
}

.agentos-notification-menu {
  width: min(320px, calc(100vw - 2rem));
}

.theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 !important;
  margin: 0 .1rem;
}

.theme-toggle .fe {
  pointer-events: none;
}

.agentos-password-field {
  position: relative;
}

.agentos-password-field .form-control {
  padding-right: 2.75rem;
}

.agentos-password-toggle {
  position: absolute;
  top: 50%;
  right: .75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa0ac;
  cursor: pointer;
  transform: translateY(-50%);
}

.agentos-password-toggle:hover,
.agentos-password-toggle:focus {
  color: #467fcf;
}

.agentos-notification-item {
  min-width: 0;
  white-space: normal;
}

.agentos-notification-item small {
  display: block;
  margin-top: .15rem;
}

.agentos-swal {
  border-radius: 3px;
}

.agentos-swal-toast {
  border-radius: 3px;
  margin-top: 4.5rem !important;
}

.agentos-agent-goal-strip {
  border-top: 1px solid rgba(110, 118, 135, .14);
  border-bottom: 1px solid rgba(110, 118, 135, .14);
  background: #f8fbff;
}

.agentos-agent-goal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: 1rem;
  align-items: center;
  padding: .65rem 0;
}

.agentos-agent-goal-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.agentos-agent-goal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  margin-right: .65rem;
  border-radius: 4px;
  color: #fff;
  background: #2fb344;
}

.agentos-agent-goal-copy {
  min-width: 0;
}

.agentos-agent-goal-title {
  overflow: hidden;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agentos-agent-goal-meta {
  overflow: hidden;
  color: #6e7687;
  font-size: .82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agentos-agent-goal-progress {
  min-width: 0;
}

.agentos-agent-goal-percent {
  margin-bottom: .25rem;
  font-weight: 700;
  text-align: right;
}

.agentos-kpi-link {
  color: inherit;
  text-decoration: none;
}

.agentos-kpi-link:hover {
  color: inherit;
  text-decoration: none;
  border-color: #467fcf;
}

#agentos-call-modal .modal-dialog {
  width: calc(100vw - 3.5rem);
  max-width: 1120px;
}

.agentos-call-stars {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.agentos-call-star {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9aa0ac;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  padding: 0 .1rem;
}

.agentos-call-star.is-selected {
  color: #f1b44c;
}

.agentos-call-history-list {
  max-height: 268px;
  overflow-y: auto;
}

.agentos-call-history-list .list-group-item {
  border-bottom: 1px solid rgba(110, 118, 135, .18);
}

.agentos-agent-hero .card-body {
  padding: 1.25rem;
}

.agentos-agent-hero-stats {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agentos-agent-hero-stats div {
  border: 1px solid rgba(110, 118, 135, .18);
  border-radius: 4px;
  padding: .65rem .75rem;
}

.agentos-agent-hero-stats span {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.agentos-agent-hero-stats small {
  color: #6e7687;
  display: block;
  margin-top: .25rem;
}

.agentos-agent-callbacks {
  max-height: 360px;
  overflow-y: auto;
}

.agentos-agent-callback-card {
  border: 1px solid rgba(110, 118, 135, .18);
  border-left: 4px solid #f1b44c;
  border-radius: 4px;
  padding: .8rem .9rem;
}

.agentos-agent-callback-card + .agentos-agent-callback-card {
  margin-top: .75rem;
}

.agentos-agent-callback-card.is-overdue {
  border-left-color: #cd201f;
}

body.theme-dark .agentos-agent-hero-stats div,
body.theme-dark .agentos-agent-callback-card {
  border-color: rgba(219, 231, 245, .14);
}

body.theme-dark .agentos-agent-goal-strip {
  border-color: rgba(219, 231, 245, .14);
  background: #101b2c;
}

body.theme-dark .agentos-agent-hero-stats small {
  color: #9aa9bb;
}

body.theme-dark .agentos-agent-goal-meta {
  color: #9aa9bb;
}

@media (max-width: 767.98px) {
  .agentos-agent-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agentos-agent-goal-card {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .agentos-agent-goal-percent {
    text-align: left;
  }
}

body.theme-dark .swal2-popup.agentos-swal,
body.theme-dark .swal2-popup.agentos-swal-toast {
  color: #dbe7f5;
  background: #132033;
}

body.theme-dark .swal2-title,
body.theme-dark .swal2-html-container,
body.theme-dark .swal2-popup.agentos-swal-toast .swal2-title {
  color: #dbe7f5;
}

body.theme-dark .swal2-timer-progress-bar {
  background: rgba(70, 127, 207, .75);
}

body.theme-dark .agentos-password-toggle {
  color: #9fb7d4;
}

body.theme-dark .agentos-password-toggle:hover,
body.theme-dark .agentos-password-toggle:focus {
  color: #6ea8ff;
}

@keyframes agentos-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
