:root {
  --p365-border: #e9ecef;
  --p365-muted: #6c757d;
}

body {
  letter-spacing: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.card-header {
  align-items: center;
}

.d-inline-grid {
  display: inline-grid !important;
}

.place-items-center {
  place-items: center;
}

.p365-public-shell {
  min-height: 100vh;
  background: var(--bs-gray-100);
}

.p365-public-band {
  border-top: 1px solid var(--p365-border);
  border-bottom: 1px solid var(--p365-border);
  background: #fff;
}

.p365-app-card {
  border: 0;
}

.p365-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .75rem;
  padding: 0;
  list-style: none;
}

.p365-feature-list li {
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--bs-gray-100);
}

.p365-chart {
  min-height: 285px;
}

.p365-chart-lg {
  min-height: 315px;
}

.p365-badge {
  border: 1px solid transparent;
  border-radius: 50rem;
  padding: .25rem .55rem;
  font-size: .75rem;
  font-weight: 600;
}

.p365-badge.pending,
.p365-badge.trial,
.p365-badge.planned,
.p365-badge.expected,
.p365-badge.open {
  color: #997404;
  background: #fff3cd;
  border-color: #ffecb5;
}

.p365-badge.approved,
.p365-badge.active,
.p365-badge.closed,
.p365-badge.assigned,
.p365-badge.published {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

.p365-badge.rejected,
.p365-badge.passive {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

.p365-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.p365-module-link {
  min-height: 145px;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.p365-module-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(17, 38, 146, .08);
}

.p365-module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.p365-module-cloud span {
  padding: .45rem .65rem;
  border-radius: 50rem;
  background: var(--bs-gray-100);
  color: var(--bs-gray-700);
  font-size: .82rem;
}

.p365-feed {
  display: grid;
  gap: .75rem;
}

.p365-feed-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
}

.p365-feed-item small {
  display: block;
  color: var(--p365-muted);
}

.p365-feed-dot,
.p365-toast-dot {
  width: .65rem;
  height: .65rem;
  flex: 0 0 .65rem;
  border-radius: 50rem;
  background: var(--bs-primary);
}

.p365-feed-dot.info {
  background: var(--bs-info);
}

.p365-feed-dot.success {
  background: var(--bs-success);
}

.p365-scroll-x {
  overflow-x: auto;
}

.p365-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--p365-muted);
  border: 1px dashed var(--p365-border);
  border-radius: .5rem;
  background: var(--bs-gray-100);
}

.p365-empty.compact {
  min-height: 96px;
}

.p365-qr-box {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p365-border);
  border-radius: .5rem;
  background: #fff;
}

.p365-toast-stack {
  z-index: 1080;
}

.p365-toast {
  box-shadow: 0 18px 40px rgba(33, 37, 41, .16);
}

.p365-notification-dot {
  width: .75rem;
  height: .75rem;
  flex: 0 0 .75rem;
  margin-top: .35rem;
  border-radius: 50rem;
  background: var(--bs-primary);
}

.p365-notification-dot.read {
  background: var(--bs-gray-400);
}

.p365-chat-thread {
  max-height: 480px;
  overflow-y: auto;
  display: grid;
  gap: .75rem;
  padding-right: .25rem;
}

.p365-chat-row {
  display: flex;
}

.p365-chat-row.mine {
  justify-content: flex-end;
}

.p365-chat-bubble {
  width: min(100%, 560px);
  padding: .9rem 1rem;
  border-radius: .5rem;
  background: var(--bs-gray-100);
}

.p365-chat-row.mine .p365-chat-bubble {
  color: #fff;
  background: var(--bs-primary);
}

.p365-live-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 .25rem;
  font-size: .7rem;
}

.nav-link .p365-live-count {
  position: absolute;
  transform: translate(-.35rem, -.35rem);
}

.navbar-list .nav-link {
  position: relative;
}

.avatar-90 {
  width: 90px;
  height: 90px;
}

#notification-drop + .sub-drop,
#mail-drop + .sub-drop {
  width: min(380px, calc(100vw - 24px));
}

[data-notification-list] .iq-sub-card,
[data-message-list] .iq-sub-card {
  max-width: 100%;
  white-space: normal;
}

.p365-dropdown-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p365-dropdown-date {
  display: block;
  white-space: nowrap;
}

.p365-table {
  white-space: nowrap;
}

.p365-progress-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.p365-progress-icon svg {
  width: 24px;
  height: 24px;
}

.p365-menu-icon,
.p365-progress-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .p365-module-grid {
    grid-template-columns: 1fr;
  }

  .list-group-item.d-flex {
    align-items: flex-start;
    gap: .35rem;
    flex-direction: column;
  }
}
