.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media screen and (max-width: 767px) {
  html,
  body,
  #wrapper,
  #wrapper .main,
  #wrapper .main-content {
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  #wrapper .main,
  #wrapper .main-content {
    min-width: 0;
  }
}

@supports (-moz-appearance: none) {
  @media screen and (max-width: 767px) {
    html,
    body {
      -moz-text-size-adjust: 100%;
      text-size-adjust: 100%;
      width: 100%;
      min-width: 0;
    }

    #wrapper,
    #wrapper .main,
    #wrapper .main-content,
    .navbar,
    .navbar-fixed-top {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }
  }
}

/* Ajustes de links no menu lateral para páginas com Bootstrap 5 */
#sidebar-nav .nav > li > a,
#sidebar-nav .nav > li > a:link,
#sidebar-nav .nav > li > a:visited,
#sidebar-nav .nav > li > a:hover,
#sidebar-nav .nav > li > a:focus {
  text-decoration: none;
}

#sidebar-nav .submenu > li > a,
#sidebar-nav .submenu > li > a:link,
#sidebar-nav .submenu > li > a:visited,
#sidebar-nav .submenu > li > a:hover,
#sidebar-nav .submenu > li > a:focus {
  text-decoration: none;
}

.auth-box .logo img {
  height: 36px;
  width: auto;
  max-width: 100%;
}

/* Login: keep the authentication panel usable on phones. */
@media screen and (max-width: 1024px) {
  html.fullscreen-bg,
  html.fullscreen-bg body,
  html.fullscreen-bg #wrapper {
    min-height: 100%;
    height: auto;
  }

  html.fullscreen-bg #wrapper {
    padding: 24px 16px;
  }

  .auth-box {
    flex: 0 1 30rem;
    width: 100%;
    max-width: 30rem;
    height: auto;
    min-height: 0;
    margin: 0 auto;
  }

  .auth-box .left {
    width: 100%;
    min-width: 0;
    padding: 32px 28px;
  }

  .auth-box .left:before,
  .auth-box:before {
    display: none;
  }
}

@media screen and (max-width: 575px) {
  html.fullscreen-bg #wrapper {
    display: block !important;
    padding: 12px;
  }

  .auth-box {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 5px;
  }

  .auth-box .left {
    display: block;
    padding: 22px 16px;
  }

  .auth-box .header {
    margin-bottom: 18px;
  }

  .auth-box .logo img {
    height: 30px;
  }

  .auth-box .lead {
    margin-bottom: 0;
    font-size: 16px;
  }

  .auth-box .form-group {
    margin-bottom: 12px !important;
  }

  .auth-box .form-control {
    min-height: 44px;
    font-size: 16px;
  }

  .auth-box .form-auth-small .btn {
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 12px;
    white-space: normal;
    font-size: 14px;
    line-height: 1.25;
  }

  .auth-box .form-auth-small .bottom {
    margin-top: 16px;
  }
}

.table tbody tr.header-search-current-row {
  background-color: rgba(0, 170, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 170, 255, 0.32);
}

.table tbody tr.header-search-empty-row td {
  color: #7a8896;
  font-style: italic;
  text-align: center;
}

.navbar-nav > li > a .navbar-notification-badge-host {
  display: inline;
}

.navbar-nav > li > a .navbar-notification-badge-host .badge {
  min-width: 1rem;
  width: auto;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
}

/* Header branco na dashboard para perfis cliente (não admin) */
.navbar.navbar-client-dashboard {
  background: #ffffff !important;
  border-bottom: 1px solid #d9e2ec;
}

.navbar.navbar-client-dashboard .btn-toggle-fullwidth,
.navbar.navbar-client-dashboard .navbar-nav > li > a {
  color: #3f4d5a !important;
}

.navbar.navbar-client-dashboard .navbar-nav > li > a:hover,
.navbar.navbar-client-dashboard .navbar-nav > li > a:focus {
  color: #24313d !important;
  background-color: rgba(15, 23, 42, 0.06);
}

.navbar.navbar-client-dashboard .user-picture {
  border-color: #cfd8e3;
}

@media screen and (max-width: 767px) {
  #navbarNotificationsToggle.icon-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    padding: 0 !important;
  }

  #navbarNotificationsToggle.icon-menu > i {
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  .navbar-nav > li > a .navbar-notification-badge-host {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block !important;
    line-height: 1;
  }

  .navbar-nav > li > a .navbar-notification-badge-host .badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 1;
  }
}

/* Projetos: cores intuitivas por status + avatar do responsável */
.project-item {
  border-left: 4px solid var(--status-color, #6c757d);
  border-top: 3px solid var(--status-color, #6c757d);
}

.project-item .status-badge {
  background: var(--status-color, #6c757d);
  color: #fff;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.project-item .card-header {
  gap: 12px;
}

.project-card-heading {
  min-width: 0;
}

.project-card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
}

.project-card-detail-link:hover,
.project-card-detail-link:focus {
  color: #0b5ed7;
  text-decoration: none;
}

.project-item .progress-bar {
  background-color: var(--status-color, #6c757d);
}

.cpms-summary-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef4;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.05);
}

.cpms-summary-progress-fill {
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  transition: width .35s ease;
}

.cpms-summary-progress[aria-valuenow]:not([aria-valuenow="0"]) .cpms-summary-progress-fill {
  min-width: 10px;
}

.cpms-balance-value {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.cpms-balance-positive {
  color: #198754;
}

.cpms-balance-negative {
  color: #dc3545;
}

.cpms-balance-neutral {
  color: #6c757d;
}

.cpms-balance-note {
  margin-top: 4px;
  color: #dc3545;
}

.cpms-financial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
}

.cpms-financial-row:last-child {
  border-bottom: 0;
}

.cpms-financial-row-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #dfe7ef;
  border-bottom: 0;
}

.cpms-material-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #dce4ec;
  background: #f6f8fb;
}

.cpms-material-thumb-lg {
  width: 96px;
  height: 96px;
}

.project-item .info .value.owner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-item .info .leader-picture {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e3e8ee;
  background: #f6f8fb;
  margin-right: 0;
  margin-top: 0;
}

.project-item .right {
  text-align: center;
}

.project-item .project-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.project-item .project-metric + .project-metric {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e3eaf1;
}

.project-item .metric-label {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #7a8896;
  font-weight: 700;
}

.project-item .metric-summary {
  font-size: 13px;
  line-height: 1.35;
  color: #64707d;
  font-weight: 600;
  max-width: 160px;
}

.project-item .progress-chart {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 8px;
}

.project-item .progress-chart canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.project-item .progress-chart .percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  font-weight: 600;
  z-index: 2;
}

.project-item .timeline-chart {
  width: 96px;
  height: 96px;
  margin-top: 10px;
}

.project-item .timeline-dates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
  text-align: left;
}

.project-item .timeline-date-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e8edf3;
}

.project-item .timeline-date-item .title {
  display: block;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #7a8896;
}

.project-item .timeline-date-item .value {
  display: block;
  margin-top: 3px;
  font-weight: 600;
  color: #2f3c4a;
}

.project-item .task-progress {
  color: #64707d;
  font-size: 13px;
  max-width: 160px;
  line-height: 1.35;
}

.project-item .info .value.financial-positive {
  color: #198754;
}

.project-item .info .value.financial-negative {
  color: #dc3545;
}

.project-item .metric-divider {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 224, 232, 0), rgba(216, 224, 232, 1), rgba(216, 224, 232, 0));
}

.project-card-footer-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(216, 224, 232, 0), rgba(216, 224, 232, 1), rgba(216, 224, 232, 0));
}

.project-card-team-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card-team-block {
  min-width: 0;
}

.project-card-team-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 224, 232, 0), rgba(216, 224, 232, 1), rgba(216, 224, 232, 0));
}

.project-card-team-label {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #7a8896;
}

.project-card-team-members {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card-team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.project-card-team-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e3e8ee;
  background: #f6f8fb;
  flex-shrink: 0;
}

.project-card-team-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-card-team-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-team-role {
  font-size: 12px;
  color: #7a8896;
}

.project-card-team-empty {
  font-size: 13px;
  color: #7a8896;
}

/* Project Team */
.project-team-list {
  margin: 0;
  padding: 0;
}

.project-team-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
}

.project-team-item:last-child {
  border-bottom: 0;
}

.project-team-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-team-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e3e8ee;
  background: #f6f8fb;
  flex-shrink: 0;
}

.project-team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-team-name {
  font-weight: 600;
  font-size: 13px;
}

.project-team-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-remove-btn {
  border: 0;
  background: #f8d7da;
  color: #b02a37;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.member-remove-btn:hover {
  background: #f5c2c7;
}

.member-remove-btn i {
  font-size: 12px;
}

.project-team-role {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #5b6773;
  border: 1px solid #e1e7ee;
  text-transform: capitalize;
  white-space: nowrap;
}

.cpms-status-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 116px;
  padding: 4px 10px;
  border: 1px solid #e3e8ee;
  border-radius: 999px;
  background: #f8fafc;
}

.cpms-status-name {
  font-weight: 700;
}

.cpms-status-color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.cpms-status-color-code {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.2px;
}

.cpms-status-color-code-btn,
.cpms-status-color-preview-code {
  cursor: pointer;
}

.cpms-status-color-code-btn:hover,
.cpms-status-color-preview-code:hover {
  color: #0d6efd;
}

.cpms-status-color-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  background: #f8fafc;
}

.cpms-status-color-preview-swatch {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
  background: #6c757d;
  flex-shrink: 0;
}

.cpms-status-color-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpms-status-color-preview-code {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  color: #334155;
}

.cpms-status-color-preview-help {
  font-size: 12px;
  color: #7a8896;
}

.adms-icon-picker-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  background: #f8fafc;
}

.adms-icon-picker-preview-glyph {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  color: #334155;
  font-size: 22px;
  flex-shrink: 0;
}

.adms-icon-picker-preview-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.adms-icon-picker-preview-label {
  font-size: 12px;
  color: #7a8896;
}

.adms-icon-picker-preview-code {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.adms-icon-picker-search {
  margin-bottom: 12px;
}

.adms-icon-picker-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.adms-icon-picker-sources {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adms-icon-filter-btn {
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.adms-icon-filter-btn.is-active {
  border-color: #0d6efd;
  background: #eff6ff;
  color: #0b5ed7;
}

.adms-icon-picker-category {
  width: auto;
  min-width: 220px;
}

.adms-icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
}

.adms-icon-picker-item {
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  color: #475569;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.adms-icon-picker-item i {
  font-size: 18px;
}

.adms-icon-picker-item:hover,
.adms-icon-picker-item:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.adms-icon-picker-item.is-selected {
  border-color: #0d6efd;
  background: #eff6ff;
  color: #0b5ed7;
}

.adms-icon-picker-code {
  font-size: 12px;
  font-family: monospace;
  line-height: 1.35;
  word-break: break-word;
}

.adms-icon-picker-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Task assignees */
.task-assignees {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.task-assignee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e3e8ee;
  background: #f6f8fb;
  overflow: hidden;
  cursor: pointer;
}

.task-assignee-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CPMS My Tasks */
.cpms-kanban-board {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.cpms-kanban-board::-webkit-scrollbar {
  height: 10px;
}

.cpms-kanban-board::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.cpms-kanban-column {
  flex: 0 0 312px;
  width: 312px;
  max-width: calc(100vw - 56px);
  align-self: flex-start;
  background: linear-gradient(180deg, #f9fbfd 0%, #f4f7fb 100%);
  border: 1px solid #dde6f0;
  border-radius: 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.cpms-kanban-column.is-drop-target {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12), 0 18px 30px rgba(13, 110, 253, 0.12);
}

.cpms-kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e4eaf1;
}

.cpms-kanban-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 600;
  color: #334155;
}

.cpms-kanban-column-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cpms-kanban-column-count {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e6eef8;
  color: #32465c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.cpms-kanban-column-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 144px;
}

.cpms-kanban-empty {
  padding: 14px 10px;
  text-align: center;
  border: 1px dashed #d7e0ea;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.cpms-kanban-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--cpms-kanban-card-border, #e4eaf1);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: grab;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

.cpms-kanban-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cpms-kanban-card-accent, #405164);
}

.cpms-kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.cpms-kanban-card.is-dragging {
  opacity: 0.55;
  transform: rotate(1deg);
  cursor: grabbing;
}

.cpms-kanban-card-title {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 0;
}

.cpms-kanban-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
}

.cpms-kanban-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cpms-kanban-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cpms-kanban-card-soft, #f8fafc);
  color: var(--cpms-kanban-card-accent, #405164);
  border: 1px solid var(--cpms-kanban-card-border, #d9e2ec);
  font-size: 12px;
  font-weight: 600;
}

.cpms-kanban-project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cpms-kanban-card-dot, var(--cpms-kanban-card-accent, #405164));
  flex-shrink: 0;
}

.cpms-kanban-project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpms-kanban-priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cpms-kanban-card-client {
  color: #64748b;
  font-size: 13px;
}

.cpms-kanban-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.cpms-task-files,
.cpms-task-comments,
.cpms-task-notifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cpms-task-file-item,
.cpms-task-comment-item,
.cpms-task-notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5ebf2;
  border-radius: 12px;
  background: #fbfcfe;
}

.cpms-task-comment-item {
  display: block;
}

.cpms-task-action-btn {
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.cpms-task-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cpms-task-action-group-kanban {
  width: 100%;
  justify-content: flex-end;
}

.cpms-task-action-btn:hover,
.cpms-task-action-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.cpms-table-standard {
  border-collapse: separate;
  border-spacing: 0;
}

.cpms-table-standard thead th {
  vertical-align: middle;
  color: #405164;
  font-weight: 600;
}

.cpms-table-standard tbody td {
  vertical-align: middle;
}

.cpms-table-standard thead th + th,
.cpms-table-standard tbody td + td {
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.cpms-table-standard tbody tr {
  transition: background-color 0.18s ease;
}

.cpms-table-standard tbody tr:hover {
  background-color: #f8fafc;
}

.cpms-row-editable {
  cursor: pointer;
}

.cpms-row-editable:focus {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: -2px;
  background-color: #eef5ff;
}

.cpms-table-icon-heading {
  width: 1%;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.cpms-table-icon-heading i {
  color: #405164;
  font-size: 15px;
}

.cpms-product-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  overflow: hidden;
}

.cpms-product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpms-product-no-image {
  color: #94a3b8;
  font-size: 12px;
}

.cpms-product-image-preview-wrap {
  display: flex;
  align-items: center;
}

.cpms-product-image-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border-radius: 10px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  overflow: hidden;
}

.cpms-product-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpms-my-tasks-table thead th + th,
.cpms-my-tasks-table tbody td + td {
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.cpms-my-tasks-table thead th,
.cpms-my-tasks-table tbody td {
  vertical-align: middle;
}

.cpms-my-tasks-table tbody .cpms-my-task-project-row {
  background: var(--cpms-project-row-bg, #f8fafc);
}

.cpms-my-tasks-table tbody .cpms-my-task-project-row td {
  background: transparent;
  border-top-color: var(--cpms-project-row-border, rgba(148, 163, 184, 0.2));
}

.cpms-my-tasks-table tbody .cpms-my-task-project-row td:first-child {
  border-left: 4px solid var(--cpms-project-row-accent, #405164);
}

.cpms-inline-status-editor {
  min-width: 130px;
}

.cpms-inline-status-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cpms-inline-status-trigger:focus {
  outline: none;
}

.cpms-inline-status-trigger-icon {
  font-size: 10px;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cpms-inline-status-trigger:hover .cpms-inline-status-trigger-icon,
.cpms-inline-status-trigger.is-open .cpms-inline-status-trigger-icon {
  color: #0d6efd;
}

.cpms-inline-status-trigger.is-open .cpms-inline-status-trigger-icon {
  transform: rotate(180deg);
}

.cpms-inline-status-select {
  min-width: 130px;
  appearance: auto;
}

.cpms-inline-status-editor-kanban {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.cpms-inline-status-trigger-kanban .badge {
  font-size: 11px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.cpms-my-tasks-table tbody .cpms-my-task-project-row:hover {
  filter: brightness(0.992);
}

.cpms-project-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cpms-project-row-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex: 0 0 11px;
  background: var(--cpms-project-row-dot, #405164);
  box-shadow: 0 0 0 4px var(--cpms-project-row-border, rgba(148, 163, 184, 0.2));
}

.cpms-my-tasks-materials-table thead th,
.cpms-my-tasks-materials-table tbody td {
  vertical-align: middle;
}

.cpms-task-action-btn i {
  font-size: 14px;
}

.cpms-toolbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid #d5e3f0;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
  color: #45617c;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.cpms-toolbar-icon-btn:hover,
.cpms-toolbar-icon-btn:focus {
  text-decoration: none;
  color: #0d6efd;
  border-color: #bed5ee;
  box-shadow: 0 14px 24px rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
  outline: 0;
}

.cpms-task-steps-sequence {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpms-task-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.cpms-task-step-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 30px;
}

.cpms-task-step-content {
  min-width: 0;
}

.cpms-task-step-title {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.cpms-modal-avatars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cpms-notify-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cpms-notify-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #405164;
  font-size: 12px;
  line-height: 1.2;
}

.cpms-notify-chip-more {
  background: #dfe7f1;
  color: #223449;
  font-weight: 700;
}

.cpms-task-meta-pills {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

.cpms-task-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e1e7ee;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.2;
}

.cpms-task-meta-pill-label {
  color: #64748b;
  font-weight: 600;
}

.cpms-task-meta-pill-value {
  color: #0f172a;
  font-weight: 700;
  text-transform: capitalize;
}

.cpms-task-meta-pill.is-priority {
  background: #fff7ed;
  border-color: #fed7aa;
}

.cpms-task-meta-pill.is-due {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cpms-task-notification-item {
  display: block;
}

.cpms-task-notification-item.is-highlighted {
  border-color: #7acb8f;
  background: #eefaf1;
  box-shadow: inset 0 0 0 1px rgba(122, 203, 143, 0.28);
}

.notifications .notification-summary,
.notifications .notification-actions {
  font-weight: 600;
}

.notifications .notification-empty {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.notifications .notification-row.is-unread {
  background: #f7fbff;
}

.notifications .notification-row.is-unread .text {
  font-weight: 700;
}

.notifications .notification-row.is-read {
  background: #eefaf1;
}

.notifications .notification-row.is-read .text {
  color: #166534;
}

.notifications .notification-row.is-read .notification-description,
.notifications .notification-row.is-read .timestamp {
  color: #3f7d52;
}

.notifications .notification-description {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

@media screen and (max-width: 767px) {
  .navbar-nav .show .dropdown-menu.notifications {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .notifications .dropdown-item {
    white-space: normal;
  }

  .notifications .notification-summary,
  .notifications .notification-actions {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.25;
  }

  .notifications .notification-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .notifications .notification-actions .more {
    margin-right: 0 !important;
    font-size: 12px;
  }

  ul.notifications .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 12px;
  }

  ul.notifications .notification-item i {
    flex: 0 0 28px;
    float: none;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    font-size: 14px;
    line-height: 28px;
  }

  ul.notifications .notification-item p {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0;
    line-height: 1.2;
  }

  ul.notifications .notification-item .text,
  .notifications .notification-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  ul.notifications .notification-item .text {
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.2;
    -webkit-line-clamp: 1;
  }

  .notifications .notification-description {
    font-size: 11.5px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  ul.notifications .notification-item .timestamp {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
  }
}

.cpms-message-modal-dialog {
  max-width: 1120px;
}

.cpms-message-modal {
  --cpms-mobile-vh: 100dvh;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #edf2f7;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.cpms-message-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #dbe4ec;
  background: #ffffff;
}

.cpms-message-modal-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cpms-message-modal-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #0f4c81;
  font-size: 21px;
  font-weight: 700;
  flex: 0 0 48px;
}

.cpms-message-modal-header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cpms-message-modal-kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cpms-message-modal-header-copy .modal-title {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpms-message-modal-subtitle {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.cpms-message-modal-header-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.cpms-message-modal-header-team {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.cpms-message-modal-header-team .task-assignee {
  margin-left: -8px;
  box-shadow: 0 0 0 2px #fff;
}

.cpms-message-modal-header-team .task-assignee:first-child {
  margin-left: 0;
}

.cpms-message-modal-header-side-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cpms-message-modal-side-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cpms-message-modal-side-value {
  color: #334155;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.cpms-message-unread-counter {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.cpms-message-unread-counter.is-message {
  background: #dbeafe;
  color: #1d4ed8;
}

.cpms-message-unread-counter.is-file {
  background: #ede9fe;
  color: #6d28d9;
}

.cpms-message-unread-counter.is-activity {
  background: #fef3c7;
  color: #b45309;
}

.cpms-message-modal-live-status {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.cpms-message-modal-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.28);
}

.cpms-message-modal-live-status.is-active {
  color: #198754;
}

.cpms-message-modal-live-status.is-active .cpms-message-modal-live-dot {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.cpms-message-modal-live-status.is-paused {
  color: #b45309;
}

.cpms-message-modal-live-status.is-paused .cpms-message-modal-live-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
}

.cpms-message-modal-live-status.is-error {
  color: #dc3545;
}

.cpms-message-modal-live-status.is-error .cpms-message-modal-live-dot {
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
}

.cpms-message-sound-toggle {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0d6efd;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cpms-message-sound-toggle.is-muted {
  color: #64748b;
}

.cpms-message-modal-body {
  padding: 18px;
}

.cpms-message-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpms-message-context-toggle {
  display: none;
}

.cpms-message-context-accordion.is-collapsed {
  display: block;
}

.cpms-message-context-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(190px, auto);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe4ec;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.cpms-message-context-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.cpms-message-context-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cpms-message-context-value {
  min-height: 34px;
}

.cpms-message-context-sync {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.cpms-message-modal-alert .alert {
  margin-bottom: 0;
  border-radius: 14px;
}

.cpms-message-chat-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe4ec;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40px 40px, rgba(15, 23, 42, 0.03) 0 1px, transparent 1.5px),
    linear-gradient(135deg, rgba(220, 252, 231, 0.32), rgba(219, 234, 254, 0.28)),
    linear-gradient(180deg, #eff5fa 0%, #e6edf4 100%);
  background-size: 52px 52px, 72px 72px, auto, auto;
}

.cpms-message-scroll-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.96);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.cpms-message-scroll-btn.is-passive {
  background: rgba(13, 110, 253, 0.56);
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.10);
  opacity: 0.76;
}

.cpms-message-chat-scroll {
  min-height: 420px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 18px;
}

.cpms-message-chat-empty {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.cpms-message-chat-empty i {
  font-size: 22px;
  color: #94a3b8;
}

.cpms-message-chat-empty.is-loading i {
  color: #198754;
}

.cpms-message-chat-empty.is-error i,
.cpms-message-chat-empty.is-error {
  color: #dc3545;
}

.cpms-task-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpms-task-chat-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px 0 0;
}

.cpms-task-chat-separator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.cpms-message-refresh-state {
  color: #64748b;
  font-size: 12px;
  text-align: right;
}

.cpms-message-refresh-state.is-active {
  color: #198754;
}

.cpms-message-refresh-state.is-paused {
  color: #b45309;
}

.cpms-message-refresh-state.is-error {
  color: #dc3545;
}

.cpms-message-refresh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cpms-message-composer {
  margin: 0;
}

.cpms-message-composer-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cpms-message-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.cpms-message-composer-bar {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
  padding: 3px 8px 3px 6px;
  border: 1px solid #d9e2ea;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.cpms-message-composer-textarea {
  flex: 1 1 auto;
  min-height: 24px;
  max-height: 108px;
  resize: none;
  overflow-y: auto;
  border-radius: 18px;
  border: 0;
  background: transparent;
  padding: 6px 8px 6px 6px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: none;
}

.cpms-message-composer-textarea::placeholder {
  color: #7b8794;
  opacity: 1;
}

.cpms-message-composer-textarea:focus {
  background: transparent;
  box-shadow: none;
}

.cpms-message-preferred-name {
  padding: 12px 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.cpms-message-preferred-name-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.cpms-message-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.cpms-message-composer-tools {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: auto;
  width: auto;
  margin-right: 2px;
}

.cpms-message-attachment-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border-color: transparent;
  color: #475569;
  background: transparent;
}

.cpms-message-attachment-btn i {
  font-size: 15px;
}

.cpms-message-attachment-btn:hover,
.cpms-message-attachment-btn:focus {
  background: #edf2f7;
  color: #0f172a;
}

.cpms-message-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: auto;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-weight: 700;
  margin-left: 0;
  border: 0;
  background: #00a884;
  box-shadow: 0 8px 18px rgba(0, 168, 132, 0.24);
  transition: opacity 0.18s ease, transform 0.2s ease, width 0.2s ease, min-width 0.2s ease, margin 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cpms-message-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d9e2ea;
  background: #ffffff;
  color: #475569;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: opacity 0.18s ease, transform 0.2s ease, width 0.2s ease, min-width 0.2s ease, margin 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cpms-message-record-btn:hover,
.cpms-message-record-btn:focus {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.cpms-message-record-btn.is-hidden {
  width: 0;
  min-width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(8px) scale(0.82);
  pointer-events: none;
  overflow: hidden;
  border-width: 0;
  box-shadow: none;
}

.cpms-message-record-btn.is-recording {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
  animation: cpms-record-pulse 1.15s ease-in-out infinite;
}

.cpms-message-send-btn:hover,
.cpms-message-send-btn:focus {
  background: #008f72;
  box-shadow: 0 10px 22px rgba(0, 168, 132, 0.3);
}

.cpms-message-send-btn span {
  display: none;
}

.cpms-message-send-icon {
  position: relative;
  left: 1px;
  font-size: 16px;
  transform: rotate(8deg);
}

.cpms-message-record-icon {
  font-size: 16px;
}

.cpms-message-send-btn.is-idle {
  width: 0;
  min-width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-8px) scale(0.82);
  pointer-events: none;
  overflow: hidden;
  border-width: 0;
  box-shadow: none;
}

@keyframes cpms-record-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.36);
  }
}

.cpms-message-attachment-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cpms-message-image-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid #dbe3ec;
  border-radius: 18px;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}

.cpms-message-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpms-message-image-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3ec;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.cpms-message-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe3ec;
  color: #334155;
  font-size: 12px;
}

.cpms-message-audio-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(280px, 100%);
  padding: 12px 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #dbe3ec;
}

.cpms-message-audio-preview-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpms-message-audio-preview-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.cpms-message-audio-preview-name {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.cpms-message-audio-preview audio,
.cpms-message-audio-player {
  width: 100%;
  max-width: 320px;
  height: 34px;
}

.cpms-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.82);
}

.cpms-image-lightbox img {
  max-width: min(92vw, 980px);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.cpms-image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.cpms-task-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.cpms-task-chat-row.is-fresh,
.cpms-task-chat-activity.is-fresh {
  animation: cpmsChatItemEnter 0.42s ease;
}

.cpms-task-chat-row.is-own {
  justify-content: flex-end;
}

.cpms-task-chat-row.is-other {
  justify-content: flex-start;
}

.cpms-task-chat-bubble {
  max-width: min(76%, 560px);
  padding: 12px 14px 10px;
  border-radius: 20px;
  border: 1px solid #d7e1ea;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.cpms-task-chat-row.is-own .cpms-task-chat-bubble {
  background: #dff6e7;
  border-color: #b9e3c8;
  border-bottom-right-radius: 8px;
}

.cpms-task-chat-row.is-other .cpms-task-chat-bubble {
  border-bottom-left-radius: 8px;
}

.cpms-task-chat-bubble.is-highlighted {
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.18);
  border-color: #6dc48b;
}

.cpms-task-chat-bubble.is-unread {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.12);
}

.cpms-task-chat-file-bubble {
  min-width: 240px;
}

.cpms-task-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 34px;
  border: 1px solid #dbe3ec;
  background: #f8fafc;
}

.cpms-task-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpms-task-chat-file-avatar {
  color: #64748b;
  justify-content: center;
}

.cpms-task-chat-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cpms-task-chat-meta-centered {
  justify-content: center;
  width: 100%;
}

.cpms-task-chat-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.35);
  color: #475569;
}

.cpms-task-chat-actor {
  margin-bottom: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.cpms-task-chat-message {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.cpms-task-chat-time {
  margin-top: 7px;
  color: #64748b;
  font-size: 11px;
  text-align: right;
}

.cpms-task-chat-inline-image {
  display: block;
  width: min(280px, 100%);
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
}

.cpms-task-chat-inline-image img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.cpms-task-chat-inline-file {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
}

.cpms-task-chat-file-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.cpms-task-chat-file-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0d6efd;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cpms-task-chat-activity {
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(84%, 640px);
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px dashed #cbd5e1;
  text-align: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.cpms-task-chat-activity.is-highlighted {
  border-color: #7acb8f;
  background: #eefaf1;
}

.cpms-task-chat-activity.is-unread {
  border-color: #93c5fd;
  background: rgba(239, 246, 255, 0.96);
}

.cpms-task-chat-activity-title {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.cpms-task-chat-activity-text {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.cpms-task-chat-activity-time {
  color: #94a3b8;
  font-size: 11px;
}

@keyframes cpmsChatItemEnter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .modal {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    align-items: stretch;
  }

  .modal.fade .modal-dialog:not(.cpms-message-modal-dialog),
  .modal.in .modal-dialog:not(.cpms-message-modal-dialog) {
    transform: none;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .modal-content {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .modal-header {
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 10px;
    border-bottom-color: #e9eef5;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .modal-header .modal-title {
    font-size: 17px;
    line-height: 1.25;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .modal-header .close {
    margin-top: 0;
    padding: 0;
    width: 34px;
    height: 34px;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .modal-body {
    flex: 1 1 auto;
    padding: 14px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .modal-footer {
    padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
    border-top-color: #e9eef5;
    gap: 8px;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .modal-footer .btn {
    min-height: 40px;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .form-row {
    display: block;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .form-row > [class*="col-"] {
    max-width: 100%;
    margin-bottom: 12px;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) .table-responsive {
    margin: 0 -4px;
  }

  .modal-dialog:not(.cpms-message-modal-dialog) textarea.form-control {
    min-height: 96px;
  }

  .cpms-message-modal-dialog {
    width: 100%;
    max-width: 100%;
    height: var(--cpms-mobile-vh, 100dvh);
    margin: 0;
  }

  .cpms-message-modal {
    height: var(--cpms-mobile-vh, 100dvh);
    min-height: var(--cpms-mobile-vh, 100dvh);
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .cpms-kanban-board {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .cpms-kanban-column {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
  }

  .cpms-task-file-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cpms-message-modal-body {
    display: flex;
    flex-direction: column;
    height: var(--cpms-mobile-vh, 100dvh);
    min-height: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 0;
    overflow: hidden;
  }

  .cpms-message-modal-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    padding: calc(env(safe-area-inset-top, 0px) + 4px) 8px 0;
    justify-content: flex-end;
    border-bottom: 0;
    min-height: 0;
    background: transparent;
    pointer-events: none;
  }

  .cpms-message-modal-header-main,
  .cpms-message-modal-header-side {
    display: none;
  }

  .cpms-message-modal-header .close {
    margin: 0 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    font-size: 22px;
    line-height: 1;
    pointer-events: auto;
  }

  .cpms-message-context-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .cpms-message-context-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe4ec;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #405164;
    font-size: 11px;
    font-weight: 700;
  }

  .cpms-message-context-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .cpms-message-context-toggle-chevron {
    transition: transform 0.18s ease;
  }

  .cpms-message-context-mobile.is-expanded .cpms-message-context-toggle-chevron {
    transform: rotate(180deg);
  }

  .cpms-message-context-accordion {
    margin-top: 8px;
  }

  .cpms-message-context-accordion.is-collapsed {
    display: none;
  }

  .cpms-message-context-sync {
    align-items: flex-start;
  }

  .cpms-message-shell {
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
  }

  .cpms-message-composer {
    order: 2;
    flex: 0 0 auto;
    align-self: stretch;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
  }

  .cpms-message-chat-scroll {
    min-height: 0;
    max-height: none;
    height: 100%;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .cpms-message-scroll-btn {
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .cpms-message-composer-shell {
    padding: 0;
    border-radius: 0;
    gap: 8px;
    box-shadow: none;
  }

  .cpms-message-composer-row {
    gap: 5px;
  }

  .cpms-message-composer-bar {
    padding: 3px 6px 3px 5px;
    border-radius: 20px;
  }

  .cpms-message-composer-tools {
    gap: 0;
    flex: 0 0 auto;
    width: auto;
    margin-right: 1px;
  }

  .cpms-message-attachment-btn {
    width: 32px;
    height: 32px;
  }

  .cpms-message-composer-textarea {
    min-height: 24px;
    max-height: 90px;
    padding: 6px 6px 6px 5px;
    border-radius: 14px;
  }

  .cpms-message-record-btn,
  .cpms-message-send-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .cpms-message-send-btn span {
    display: none;
  }

  .cpms-message-chat-panel {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 18px;
  }

  .cpms-message-composer-label,
  .cpms-message-preferred-name-label,
  .cpms-message-refresh-state {
    font-size: 11px;
  }

  .cpms-message-composer-textarea {
    min-height: 52px;
    max-height: 110px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .cpms-message-attachment-preview {
    gap: 8px;
  }

  .cpms-message-image-thumb {
    width: 74px;
    height: 74px;
    border-radius: 14px;
  }

  .cpms-message-file-pill {
    max-width: 100%;
    padding: 8px 12px;
    font-size: 12px;
  }

  .cpms-message-audio-preview {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .cpms-message-audio-preview audio {
    max-width: 100%;
  }

  .cpms-message-file-pill span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cpms-task-chat-feed {
    gap: 10px;
  }

  .cpms-task-chat-row {
    gap: 8px;
  }

  .cpms-task-chat-bubble,
  .cpms-task-chat-activity {
    max-width: 100%;
  }

  .cpms-task-chat-bubble {
    max-width: calc(100% - 42px);
    padding: 10px 12px 9px;
    border-radius: 18px;
  }

  .cpms-task-chat-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .cpms-task-chat-message {
    font-size: 13px;
    line-height: 1.45;
  }

  .cpms-task-chat-inline-image {
    width: min(220px, 100%);
  }

  .cpms-task-chat-inline-image img {
    max-height: 180px;
  }

  .cpms-task-chat-file-bubble {
    min-width: 0;
  }

  .cpms-task-chat-file-actions {
    gap: 10px;
    flex-wrap: wrap;
  }

  .cpms-image-lightbox {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  #wrapper,
  .main,
  .main-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content {
    padding: 12px 10px calc(env(safe-area-inset-bottom, 0px) + 14px);
  }

  .main-content .container-fluid {
    padding-right: 0;
    padding-left: 0;
  }

  .content-heading,
  .content-heading.d-flex,
  .content-heading[class*="justify-content-"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 8px 10px;
    margin: 0 -10px 8px -10px;
    padding: 8px 12px 6px;
  }

  .heading-left,
  .heading-right,
  .content-heading .right,
  .card-header .right {
    width: auto;
    min-width: 0;
  }

  .heading-right,
  .content-heading .right,
  .card-header .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .heading-right .btn,
  .content-heading .right .btn,
  .card-header .right .btn,
  .content-heading .btn-group,
  .card-header .btn-group {
    flex: 0 0 auto;
  }

  .page-title {
    margin-bottom: 0;
    font-size: 21px;
    line-height: 1.15;
  }

  .page-subtitle {
    display: none;
  }

  .content-heading nav[aria-label="breadcrumb"] {
    width: auto;
    min-width: 0;
    justify-self: end;
  }

  .breadcrumb {
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .breadcrumb-item {
    white-space: nowrap;
  }

  .content-heading .breadcrumb-item.active {
    display: none;
  }

  .content-heading .breadcrumb-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    background: #fff;
    color: #35506b;
    line-height: 1;
  }

  .content-heading .breadcrumb-item > a:hover,
  .content-heading .breadcrumb-item > a:focus {
    background: #eef4fb;
    border-color: #b7cadf;
    color: #17324d;
  }

  .content-heading .breadcrumb-item > a i {
    margin-right: 6px;
  }

  .content-adm-alert {
    margin-bottom: 8px;
  }

  .main-content .row {
    margin-right: -8px;
    margin-left: -8px;
  }

  .main-content .row > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
    margin-bottom: 12px;
  }

  .main-content .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  .card {
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 10px;
  }

  .card-header,
  .card-header.d-flex,
  .card-header[class*="justify-content-"] {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px;
  }

  .card-header .btn,
  .card-header .btn-sm {
    min-height: 36px;
  }

  .btn,
  .btn-sm,
  .btn-group-sm > .btn {
    min-height: 34px;
    padding-top: 0.34rem;
    padding-bottom: 0.34rem;
  }

  .main-content .nav-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .main-content .nav-tabs .nav-item {
    flex: 0 0 auto;
  }

  .main-content .nav-tabs .nav-link {
    white-space: nowrap;
    min-height: 34px;
  }

  .card-body .form-inline {
    display: block;
  }

  .main-content .adms-smart-list-toolbar {
    gap: 8px !important;
  }

  .main-content .adms-smart-list-actions {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    min-width: auto !important;
    gap: 8px !important;
  }

  .main-content .adms-smart-list-actions > * {
    flex: 0 0 auto !important;
    min-width: 40px !important;
  }

  .main-content .form-row {
    margin-right: 0;
    margin-left: 0;
  }

  .main-content .form-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 12px;
  }

  .main-content .form-group.row {
    margin-right: 0;
    margin-left: 0;
  }

  .main-content .form-group.row > [class*="col-"],
  .main-content .form-group.row > label[class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
  }

  .main-content .form-group.row [class*="offset-"] {
    margin-left: 0;
  }

  .main-content .col-form-label {
    padding-top: 0;
    padding-bottom: 6px;
  }

  .main-content textarea.form-control,
  .main-content .cpms-code-editor {
    min-height: 110px;
  }

  .main-content dl.row {
    margin-right: 0;
    margin-left: 0;
  }

  .main-content dl.row dt,
  .main-content dl.row dd {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .main-content dl.row dt {
    margin-bottom: 4px;
  }

  .main-content dl.row dd {
    margin-bottom: 12px;
  }

  .main-content .table-responsive {
    width: calc(100% + 20px);
    margin-right: -10px;
    margin-left: -10px;
    padding: 0 10px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .main-content .table-responsive > .table {
    width: max-content;
    min-width: 100%;
  }

  .main-content .dropdown-menu {
    max-width: calc(100vw - 24px);
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  .pagination .page-link,
  .pagination a,
  .pagination span {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .project-item .card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .project-item .right {
    width: 100%;
  }

  .project-item .progress-chart {
    margin: 0 auto;
  }

  .project-item .project-bottom-bar {
    gap: 10px;
  }

  .project-item .info .value.owner,
  .project-item .team-list {
    word-break: break-word;
  }

  .cpms-status-color-chip {
    width: 100%;
    justify-content: space-between;
  }

  .adms-icon-picker-preview {
    padding: 14px;
  }

  .adms-icon-picker-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .adms-icon-picker-sources {
    width: 100%;
    justify-content: stretch;
  }

  .adms-icon-picker-sources .btn {
    flex: 1 1 0;
  }

  .adms-icon-picker-category {
    width: 100%;
  }

  .adms-icon-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .adms-icon-picker-item {
    min-height: 92px;
    padding: 12px 10px;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .fc .fc-toolbar-title {
    font-size: 18px;
    text-align: center;
  }

  .fc .fc-button {
    margin: 0 !important;
  }

  .fc .fc-col-header-cell-cushion,
  .fc .fc-daygrid-day-number,
  .fc .fc-timegrid-axis-cushion,
  .fc .fc-timegrid-slot-label-cushion {
    font-size: 12px;
  }
}

.right-sidebar .icon-app {
  position: relative;
}

.right-sidebar .right-sidebar-app-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #383838;
  background-color: #6c757d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.right-sidebar .right-sidebar-app-badge.custom-color-blue {
  background-color: #0e9be2;
}

.right-sidebar .right-sidebar-app-badge.custom-color-green {
  background-color: #7cac25;
}

.adms-item-menu-icon-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.adms-item-menu-icon-glyph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  color: #334155;
  font-size: 16px;
  flex-shrink: 0;
}

.adms-item-menu-icon-meta {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
}

.adms-item-menu-name {
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

.adms-item-menu-icon-code {
  font-family: monospace;
  font-size: 12px;
  color: #7a8896;
  line-height: 1.2;
}

.content-heading:not(.calendar-heading),
.adms-clean-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 -10px 10px -10px !important;
  padding: 12px 18px 10px !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.content-heading:not(.calendar-heading) .heading-left,
.adms-clean-heading .heading-left {
  min-width: 0;
}

.content-heading:not(.calendar-heading) .page-title,
.adms-clean-heading .page-title {
  margin: 0;
}

.content-heading:not(.calendar-heading) .page-subtitle,
.adms-clean-heading .page-subtitle {
  display: none;
}

.content-heading:not(.calendar-heading) .heading-right,
.content-heading:not(.calendar-heading) .right,
.adms-clean-heading-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.content-heading:not(.calendar-heading) .heading-right > *,
.content-heading:not(.calendar-heading) .right > *,
.adms-clean-heading-right > * {
  flex: 0 0 auto;
}

.content-heading:not(.calendar-heading) .heading-right .btn,
.content-heading:not(.calendar-heading) .right .btn,
.adms-clean-heading-right .btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-right: 14px;
  padding-left: 14px;
  border-radius: 999px;
}

.content-heading:not(.calendar-heading) nav[aria-label="breadcrumb"],
.adms-clean-heading-right .adms-clean-breadcrumb {
  display: inline-flex;
  align-items: center;
}

.content-heading:not(.calendar-heading) .breadcrumb,
.adms-clean-breadcrumb .breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.content-heading:not(.calendar-heading) .breadcrumb-item.active,
.adms-clean-breadcrumb .breadcrumb-item.active {
  display: none;
}

.content-heading:not(.calendar-heading) .breadcrumb-item > a,
.adms-clean-breadcrumb .breadcrumb-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  background: #fff;
  color: #35506b;
  line-height: 1;
}

.content-heading:not(.calendar-heading) .breadcrumb-item > a:hover,
.content-heading:not(.calendar-heading) .breadcrumb-item > a:focus,
.adms-clean-breadcrumb .breadcrumb-item > a:hover,
.adms-clean-breadcrumb .breadcrumb-item > a:focus {
  color: #17324d;
  background: #eef4fb;
  border-color: #b7cadf;
  outline: 0;
}

.content-heading:not(.calendar-heading) .breadcrumb-item > a i,
.adms-clean-breadcrumb .breadcrumb-item > a i {
  margin-right: 6px;
}

.adms-clean-card {
  margin-top: 0;
}

.adms-clean-card .card-body {
  padding-top: 14px;
}

.adms-smart-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}

.adms-smart-list-col {
  flex: 1 1 240px;
  min-width: 0;
}

.adms-smart-list-col--wide {
  flex-basis: 340px;
}

.adms-smart-list-col--medium {
  flex-basis: 220px;
}

.adms-smart-list-col--narrow {
  flex: 0 1 180px;
}

.adms-smart-list-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5f7389;
  line-height: 1.35;
}

.adms-smart-list-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 0 1 180px;
  min-width: 160px;
}

.adms-smart-list-actions > * {
  flex: 1 1 0;
  min-width: 0;
}

.adms-smart-list-toolbar .form-control,
.adms-smart-list-toolbar .custom-select,
.adms-smart-list-toolbar select {
  min-height: 40px;
  border-radius: 10px;
}

.adms-smart-list-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  border-radius: 10px;
  font-weight: 600;
}

.adms-smart-list-field {
  position: relative;
  display: block;
  width: 100%;
}

.adms-smart-list-control {
  width: 100%;
  padding-right: 42px;
}

.adms-smart-list-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eef4fb;
  color: #58708a;
  transform: translateY(-50%);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .14s ease, color .14s ease, opacity .15s ease;
}

.adms-smart-list-clear i {
  font-size: 12px;
}

.adms-smart-list-clear:hover,
.adms-smart-list-clear:focus {
  background: #d9e8f7;
  color: #21384f;
  outline: 0;
}

.adms-smart-list-clear[hidden] {
  display: none !important;
}

.adms-smart-list-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 6px;
  border: 1px solid #dfe8f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(21, 41, 66, .14);
  max-height: 320px;
  overflow: auto;
}

.adms-smart-list-panel[hidden] {
  display: none !important;
}

.adms-smart-list-option {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .14s ease, transform .14s ease;
}

.adms-smart-list-option + .adms-smart-list-option {
  margin-top: 2px;
}

.adms-smart-list-option:hover,
.adms-smart-list-option:focus,
.adms-smart-list-option.is-active {
  background: #edf5fd;
  outline: 0;
}

.adms-smart-list-option-content {
  display: block;
  min-width: 0;
}

.adms-smart-list-option-title,
.adms-smart-list-option-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adms-smart-list-option-title {
  font-size: 14px;
  font-weight: 700;
  color: #21384f;
  line-height: 1.35;
}

.adms-smart-list-option-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7f96;
  line-height: 1.45;
}

.adms-smart-list-option-mark {
  padding: 0;
  background: transparent;
  color: #0d6efd;
  font-weight: 700;
}

.adms-smart-list-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: #6b7f96;
}

.adms-smart-list-row-hidden {
  display: none !important;
}

.adms-smart-list-empty-row td {
  text-align: center;
  font-size: 13px;
  color: #667a8f;
  padding: 18px 12px !important;
}

.sidebar .nav > li > a,
.sidebar .submenu > li > a {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.sidebar .nav > li > a[aria-expanded="true"],
.sidebar .nav > li > a.active {
  background: rgba(0, 170, 255, .08);
}

.sidebar .submenu {
  background: rgba(255, 255, 255, .02);
}

.sidebar .submenu > li > a.active {
  background: rgba(0, 170, 255, .08);
  color: #00AAFF;
  font-weight: 600;
}

.sidebar-mobile-bridge {
  margin: 14px 16px 18px;
  padding: 12px;
  border: 1px solid rgba(0, 170, 255, .24);
  border-radius: 8px;
  background: rgba(0, 170, 255, .06);
  text-align: center;
}

.sidebar-mobile-bridge-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #5f6f7d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.sidebar-mobile-bridge-header i {
  color: #00AAFF;
  font-size: 17px;
}

.sidebar-mobile-bridge-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 46, 67, .12);
}

.sidebar-mobile-bridge-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.sidebar-mobile-bridge-placeholder {
  color: #00AAFF;
  font-size: 54px;
  line-height: 1;
}

.sidebar-mobile-bridge-caption {
  display: block;
  margin-top: 8px;
  color: #7f8f9d;
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-minified .sidebar-mobile-bridge {
  display: none;
}

ul.logged-user-menu > li > .logged-user-menu-action {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  background: transparent;
  color: #5e6773;
  font-size: 14px;
  line-height: 1.42857143;
  text-align: left;
  cursor: pointer;
}

ul.logged-user-menu > li > .logged-user-menu-action:hover,
ul.logged-user-menu > li > .logged-user-menu-action:focus {
  background-color: #fafbfc;
  color: #5e6773;
  outline: none;
}

ul.logged-user-menu > li > .logged-user-menu-action i {
  color: #a0aeba;
  vertical-align: middle;
}

ul.logged-user-menu > li > .logged-user-menu-action span {
  vertical-align: middle;
}

@media screen and (max-width: 767px) {
  .adms-clean-heading {
    align-items: stretch;
    margin-bottom: 8px !important;
    padding: 10px 14px 8px !important;
  }

  .adms-clean-heading-right {
    width: 100%;
    justify-content: space-between;
  }

  .adms-smart-list-col,
  .adms-smart-list-col--wide,
  .adms-smart-list-col--medium,
  .adms-smart-list-col--narrow,
  .adms-smart-list-actions {
    flex: 1 1 100%;
    min-width: 0;
  }

  .adms-smart-list-actions {
    flex-direction: column;
    gap: 8px;
  }

  .adms-smart-list-panel {
    left: -2px;
    right: -2px;
    max-height: 42vh;
    border-radius: 14px;
    padding: 6px;
  }

  .adms-smart-list-clear {
    width: 32px;
    height: 32px;
    right: 8px;
  }

  .adms-smart-list-option {
    padding: 10px 12px;
  }
}
