/* This file is reserved for overriding and extending the template styles. */

.pm-action-dropdown {
  display: inline-flex;
}

.pm-action-dropdown .btn-icon-only {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.pm-action-dropdown .pm-action-dots {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.pm-action-dropdown .dropdown-menu {
  z-index: 1080;
}

.pm-data-table td:has(.pm-action-dropdown.show),
.pm-data-table tr:has(.pm-action-dropdown.show) {
  position: relative;
  z-index: 20;
}

.pm-table-wrap-payment-requests-list {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.pm-table-wrap-payment-vendors-list {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.pm-table-wrap-projects-list {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.pm-approval-status {
  min-width: 11rem;
}

.pm-approval-status .text-small {
  line-height: 1.35;
  max-width: 18rem;
  white-space: normal;
}

.pm-approval-actions .btn-group {
  flex-wrap: wrap;
}

.pm-approval-actions .btn {
  white-space: nowrap;
}

.pm-calendar-card,
.pm-calendar-card .card-body,
.pm-calendar-card #calendar,
.pm-calendar-card .fc {
  width: 100%;
}

.pm-calendar-card .fc .fc-view-harness,
.pm-calendar-card .fc .fc-scrollgrid,
.pm-calendar-card .fc .fc-scrollgrid table,
.pm-calendar-card .fc .fc-daygrid-body,
.pm-calendar-card .fc .fc-daygrid-body table,
.pm-calendar-card .fc .fc-col-header,
.pm-calendar-card .fc .fc-col-header table {
  width: 100% !important;
}

.pm-calendar-card .fc .fc-daygrid-day-frame {
  min-height: 8.5rem;
}

.pm-calendar-card .fc .fc-daygrid-event {
  max-width: 100%;
  overflow: hidden;
}

.pm-calendar-hero {
  border: 1px solid rgba(var(--separator-rgb), 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.pm-calendar-hero .card-body {
  padding: 1.5rem 1.5rem 1.35rem;
}

.pm-calendar-kicker {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pm-calendar-hero h2 {
  color: #111827;
  font-weight: 700;
  line-height: 1.15;
}

.pm-calendar-hero .text-muted {
  color: #6b7280 !important;
}

.pm-calendar-hero .btn-outline-primary {
  border-color: rgba(var(--primary-rgb), 0.2);
}

.pm-calendar-hero .btn-outline-primary:hover,
.pm-calendar-hero .btn-outline-primary:focus {
  border-color: rgba(var(--primary-rgb), 0.35);
}

.pm-calendar-hero .btn-primary {
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.22);
}

.pm-calendar-card {
  border: 1px solid rgba(var(--separator-rgb), 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.pm-calendar-card .card-body {
  padding: 1.25rem;
}

.pm-calendar-card .fc .fc-toolbar {
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pm-calendar-card .fc .fc-toolbar-title {
  color: #111827;
  font-size: 1.2rem;
  font-weight: 700;
}

.pm-calendar-card .fc .fc-button {
  border-radius: 0.75rem;
  box-shadow: none;
}

.pm-calendar-card .fc .fc-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.pm-calendar-card .fc .fc-daygrid-day-number {
  color: #4b5563;
  font-weight: 600;
  padding: 0.5rem;
}

.pm-calendar-card .fc .fc-day-today {
  background: rgba(var(--primary-rgb), 0.05) !important;
}

.modal.modal-right.large.pm-calendar-event-modal .modal-dialog {
  max-width: 560px;
}

.pm-calendar-event-modal .modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: -30px 0 80px rgba(15, 23, 42, 0.18);
}

.pm-calendar-event-modal .modal-header {
  padding: 1.25rem 1.35rem 0.85rem;
}

.pm-calendar-event-modal .modal-body {
  padding: 0 1.35rem 1.1rem;
}

.pm-calendar-modal-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(var(--separator-rgb), 0.65);
  border-radius: 1rem;
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
}

.pm-calendar-modal-hero-icon {
  align-items: center;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.pm-calendar-modal-hero .fw-semibold {
  color: #111827;
  font-size: 0.95rem;
}

.pm-calendar-modal-hero .text-muted {
  color: #6b7280 !important;
  line-height: 1.45;
}

.pm-calendar-section {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: 1.1rem;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.pm-calendar-section-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pm-calendar-section-hint {
  color: #98a2b3;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 0.1rem;
}

.pm-calendar-section-title {
  color: #111827;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.pm-calendar-time-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(15, 23, 42, 0.03);
  height: 100%;
  padding: 0.95rem;
}

.pm-calendar-time-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.pm-calendar-time-card-title {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
}

.pm-calendar-time-card-badge {
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  text-transform: uppercase;
}

.pm-calendar-select-shell {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(15, 23, 42, 0.03);
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
}

.pm-calendar-select-icon {
  align-items: center;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 0.8rem;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.pm-calendar-select-native {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  min-height: 2.9rem;
  padding-left: 0;
  padding-right: 2.5rem;
}

.pm-calendar-select-native:focus {
  box-shadow: none;
}

.pm-calendar-select-shell:focus-within {
  border-color: rgba(var(--primary-rgb), 0.42);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.1), 0 8px 18px rgba(15, 23, 42, 0.04);
}

.pm-calendar-event-modal .form-label {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.pm-calendar-event-modal .form-control,
.pm-calendar-event-modal .form-select {
  background-color: #fff;
  border-color: rgba(var(--separator-rgb), 0.95);
  border-radius: 0.95rem;
  box-shadow: none;
  min-height: 3rem;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.pm-calendar-event-modal .form-control:focus,
.pm-calendar-event-modal .form-select:focus {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.12);
}

.pm-calendar-event-modal textarea.form-control {
  min-height: 9rem;
  resize: vertical;
}

.pm-calendar-event-modal .modal-footer {
  padding: 0 1.35rem 1.35rem;
}

.pm-calendar-event-modal .modal-footer .btn {
  min-height: 2.8rem;
}

@media (max-width: 575.98px) {
  .pm-calendar-hero .card-body {
    padding: 1.15rem 1.1rem;
  }

  .pm-calendar-card .card-body {
    padding: 1rem;
  }

  .pm-calendar-event-modal .modal-header,
  .pm-calendar-event-modal .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pm-calendar-event-modal .modal-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pm-calendar-modal-hero {
    align-items: flex-start;
  }

  .pm-calendar-time-card {
    padding: 0.9rem;
  }

  .pm-calendar-select-shell {
    padding-left: 0.7rem;
  }

  .pm-calendar-event-modal .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.75rem;
  }

  .pm-calendar-event-modal .modal-footer .w-100.w-sm-auto {
    width: 100% !important;
  }

  .pm-calendar-event-modal .modal-footer .btn {
    width: 100%;
  }
}

.pm-section-title {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pm-title-rule {
  width: 3.5rem;
  height: 0.18rem;
  background: var(--primary);
  border-radius: 999px;
}

.pm-team-manager {
  border: 0;
}

.pm-team-toolbar .pm-team-length {
  width: 5rem;
}

.pm-team-toolbar .pm-team-search {
  min-width: min(20rem, 100%);
}

.pm-team-table thead th {
  background: rgba(var(--primary-rgb), 0.16);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pm-team-table tbody td {
  height: 4.5rem;
  vertical-align: middle;
}

.pm-team-name {
  display: flex;
  flex-direction: column;
  min-width: 13rem;
}

.pm-team-name strong {
  color: #111827;
  font-weight: 500;
}

.pm-team-name span {
  color: var(--muted);
  font-size: 0.85rem;
}

.pm-avatar-stack {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
}

.pm-avatar {
  align-items: center;
  border: 2px solid var(--foreground);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  height: 2.15rem;
  justify-content: center;
  letter-spacing: 0;
  margin-left: -0.55rem;
  width: 2.15rem;
}

.pm-avatar:first-child {
  margin-left: 0;
}

.pm-avatar-0 {
  background: #008f95;
}

.pm-avatar-1 {
  background: #38435a;
}

.pm-avatar-2 {
  background: #b45f42;
}

.pm-avatar-3 {
  background: #5f6f52;
}

.pm-avatar-4 {
  background: #7b5aa6;
}

.pm-avatar-5 {
  background: #c28a2c;
}

.pm-avatar-more {
  background: #2f3640;
}

img.pm-avatar {
  object-fit: cover;
}

.pm-team-card,
.pm-team-user-card {
  border: 0;
  box-shadow: 0 2px 6px rgba(67, 89, 113, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pm-team-card:hover,
.pm-team-user-card:hover {
  box-shadow: 0 6px 18px rgba(67, 89, 113, 0.08);
  transform: translateY(-1px);
}

.pm-team-card .pm-avatar-stack {
  justify-content: flex-start;
}

.pm-team-leader-caption {
  margin-left: 2.25rem;
}

.pm-team-card .btn-icon-start {
  white-space: nowrap;
}

.pm-reports-card {
  border: 0;
}

.pm-reports-card > .card-body {
  padding-top: 2rem;
}

.pm-report-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pm-report-tab {
  background: transparent;
  color: var(--body) !important;
  font-weight: 700;
  min-height: 3rem;
  text-transform: uppercase;
}

.pm-report-tab:hover,
.pm-report-tab:focus {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary) !important;
}

.pm-report-tab i,
.pm-report-tab svg {
  height: 1.75rem;
  width: 1.75rem;
}

.pm-report-tab.active {
  background: var(--primary);
  box-shadow: 0 0.75rem 1.5rem rgba(var(--primary-rgb), 0.22);
  color: var(--light-text) !important;
}

.pm-report-tab.active:hover,
.pm-report-tab.active:focus {
  background: var(--primary);
  color: var(--light-text) !important;
}

.pm-report-header {
  min-height: 3rem;
}

.pm-report-summary {
  color: rgba(var(--body-rgb), 0.62) !important;
  font-weight: 500;
}

.pm-report-title {
  color: var(--body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.pm-report-title-line {
  background: var(--primary);
  height: 0.18rem;
  width: 3.25rem;
}

.pm-report-length {
  width: 5rem;
}

.pm-report-search {
  max-width: 18rem;
}

.pm-report-table-shell {
  margin-top: 0.25rem;
}

.pm-report-table-wrap {
  overflow-x: auto;
}

.pm-report-table {
  border-collapse: separate !important;
  min-width: 62rem;
}

.pm-report-table.dataTable thead th {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  height: 2rem;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.pm-report-table.dataTable tbody td {
  color: var(--body);
  height: 4.35rem;
  vertical-align: middle;
}

.pm-report-table.dataTable tbody tr[data-empty-row] td {
  color: rgba(var(--body-rgb), 0.52);
  font-weight: 600;
  height: 5.25rem;
  text-align: center;
}

.pm-report-sort {
  color: rgba(var(--primary-rgb), 0.28);
  float: right;
  font-size: 0.82rem;
  margin-left: 0.5rem;
}

.pm-report-avatar {
  border-radius: 999px;
  height: 2rem;
  object-fit: cover;
  width: 2rem;
}

.pm-report-version {
  background: var(--muted);
  border-radius: 0.35rem;
  color: var(--light-text);
  display: inline-flex;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

@media (max-width: 575.98px) {
  .pm-reports-card > .card-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pm-report-tabs {
    justify-content: flex-start;
  }

  .pm-report-search {
    max-width: none;
  }
}

.pm-logs-page .card {
  border: 0;
}

.pm-logs-toolbar {
  background: linear-gradient(180deg, rgba(var(--foreground-rgb), 0.98), rgba(var(--foreground-rgb), 0.95));
  border: 1px solid rgba(var(--separator-rgb), 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.04);
}

.pm-logs-toolbar .card-body {
  padding: 1.1rem 1.25rem;
}

.pm-log-date-form {
  min-width: min(100%, 22rem);
}

.pm-log-date-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm-log-day-pill {
  border-radius: 999px;
}

.pm-logs-metric {
  background: rgba(var(--separator-rgb), 0.12);
  border: 1px solid rgba(var(--separator-rgb), 0.7);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
}

.pm-logs-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-logs-metric strong {
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.25;
}

.pm-log-section .card {
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.035);
}

.pm-log-scroll {
  max-height: 31rem;
  overflow: auto;
}

.pm-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.pm-log-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.pm-log-entry {
  align-items: flex-start;
  background: rgba(var(--foreground-rgb), 0.72);
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: 1rem;
  display: flex;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
}

.pm-log-entry__time {
  color: var(--muted);
  flex: 0 0 3.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding-top: 0.3rem;
  text-align: center;
}

.pm-log-entry__icon {
  flex: 0 0 auto;
  padding-top: 0.05rem;
}

.pm-log-entry__body {
  flex: 1 1 auto;
  min-width: 0;
}

.pm-log-entry__title {
  color: var(--body);
  display: -webkit-box;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-log-entry__detail {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 0.3rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-log-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.pm-log-chip {
  align-items: center;
  background: rgba(var(--separator-rgb), 0.16);
  border: 1px solid rgba(var(--separator-rgb), 0.65);
  border-radius: 999px;
  color: var(--alternate);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}

.pm-log-chip--error {
  background: rgba(var(--danger-rgb), 0.08);
  border-color: rgba(var(--danger-rgb), 0.22);
  color: var(--danger);
}

.pm-log-chip--warning {
  background: rgba(var(--warning-rgb), 0.1);
  border-color: rgba(var(--warning-rgb), 0.24);
  color: var(--warning);
}

.pm-log-chip--success {
  background: rgba(var(--success-rgb), 0.08);
  border-color: rgba(var(--success-rgb), 0.2);
  color: var(--success);
}

.pm-log-chip--debug,
.pm-log-chip--info {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
}

.pm-log-chip--critical,
.pm-log-chip--fatal,
.pm-log-chip--alert,
.pm-log-chip--emergency {
  background: rgba(var(--danger-rgb), 0.08);
  border-color: rgba(var(--danger-rgb), 0.22);
  color: var(--danger);
}

.pm-log-chip--warn {
  background: rgba(var(--warning-rgb), 0.1);
  border-color: rgba(var(--warning-rgb), 0.24);
  color: var(--warning);
}

.pm-log-entry.pm-log-empty .pm-log-entry__title {
  -webkit-line-clamp: 1;
}

.pm-log-entry.pm-log-empty {
  align-items: center;
}

.pm-log-icon.text-danger {
  background: rgba(var(--danger-rgb), 0.08);
}

.pm-log-icon.text-warning {
  background: rgba(var(--warning-rgb), 0.08);
}

.pm-log-icon.text-success {
  background: rgba(var(--success-rgb), 0.08);
}

.pm-log-icon.text-primary {
  background: rgba(var(--primary-rgb), 0.08);
}

.pm-log-icon.text-secondary,
.pm-log-icon.text-tertiary {
  background: rgba(var(--separator-rgb), 0.1);
}

@media (max-width: 575.98px) {
  .pm-log-list {
    padding: 0.85rem;
  }

  .pm-log-date-form {
    min-width: 100%;
  }

  .pm-log-scroll {
    max-height: 28rem;
  }

  .pm-log-entry {
    gap: 0.7rem;
    padding: 0.8rem 0.85rem;
  }

  .pm-log-entry__time {
    flex-basis: 3rem;
  }
}

.pm-project-card {
  border: 1px solid rgba(var(--separator-rgb), 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
}

.pm-project-card .card-body {
  gap: 1.1rem;
  min-height: 16.25rem;
}

.pm-project-detail-page .pm-project-detail-hero {
  border: 1px solid rgba(var(--separator-rgb), 0.78);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
}

.pm-project-detail-metric,
.pm-project-detail-info-card {
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.85rem 0.95rem;
}

.pm-project-detail-metric span,
.pm-project-detail-info-card span {
  color: var(--alternate);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pm-project-detail-metric strong,
.pm-project-detail-info-card strong {
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pm-project-detail-copy {
  white-space: pre-wrap;
  word-break: break-word;
}

.pm-sla-stat-card {
  background: #fff;
  border: 1px solid rgba(var(--separator-rgb), 0.7);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pm-sla-stat-card .card-body {
  padding: 1rem 1.15rem;
}

.pm-sla-stat-row {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  min-height: 4.25rem;
}

.pm-sla-stat-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 3rem;
  justify-content: center;
  line-height: 1;
  color: inherit;
  width: 3rem;
}

.pm-sla-stat-copy {
  min-width: 0;
}

.pm-sla-stat-label {
  color: #8a8f98;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.pm-sla-stat-value {
  color: #2b2f33;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 1200px) {
  .pm-sla-stat-value {
    font-size: 1.7rem;
  }
}

.pm-project-card-top {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.pm-project-code {
  max-width: calc(100% - 3.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-project-title-block {
  min-width: 0;
}

.pm-project-title {
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pm-project-progress {
  background: rgba(var(--primary-rgb), 0.045);
  border-radius: var(--border-radius-md);
  padding: 0.85rem 0.9rem 0.75rem;
}

.pm-project-progress-value {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}

.pm-project-progress-bar .sw-13 {
  width: 100% !important;
}

.pm-project-progress-bar .progress-bar-line {
  width: 100%;
}

.pm-project-metrics {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-project-metrics > div {
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: var(--border-radius-md);
  min-width: 0;
  padding: 0.7rem 0.75rem;
}

.pm-project-metrics span,
.pm-project-metrics strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-project-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.pm-project-metrics strong {
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .pm-project-metrics {
    grid-template-columns: 1fr;
  }
}

.pm-task-person-panel,
.pm-task-selected-panel {
  border: 1px solid rgba(var(--separator-rgb), 0.75);
}

.pm-task-person-list {
  max-height: 18rem;
  min-height: 14rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.pm-task-person-row {
  border-radius: 0.375rem;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.pm-task-person-row.is-selected {
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.28);
}

.pm-task-person-thumb,
.pm-task-selected-initial {
  align-items: center;
  background: #008f95;
  border-radius: 0.625rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  height: 3rem;
  justify-content: center;
  letter-spacing: 0;
  width: 3rem;
}

img.pm-task-person-thumb,
img.pm-task-selected-initial {
  object-fit: cover;
}

.pm-task-selected-list {
  display: grid;
  gap: 0.5rem;
}

.pm-task-selected-person {
  align-items: center;
  border: 1px solid rgba(var(--separator-rgb), 0.7);
  border-radius: 0.375rem;
  display: grid;
  gap: 0.625rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 3.5rem;
  padding: 0.5rem;
}

.pm-task-selected-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-task-selected-name small {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-task-selected-person .btn i {
  font-size: 0.95rem;
  line-height: 1;
}

.pm-payment-actions .btn {
  white-space: nowrap;
}

.pm-task-payment-summary {
  display: grid;
  gap: 0.75rem;
}

.pm-task-payment-summary-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.pm-task-payment-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-task-payment-summary-grid > div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.75rem;
}

.pm-task-payment-summary-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pm-task-payment-summary-grid strong {
  overflow-wrap: anywhere;
}

.pm-planner-budget-badges {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-planner-budget-badge {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(var(--separator-rgb), 0.78);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.9rem 1rem;
}

.pm-planner-budget-badge span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pm-planner-budget-badge strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.pm-planner-task-report {
  border: 1px solid rgba(var(--separator-rgb), 0.75);
  border-radius: 0.5rem;
}

.pm-payment-detail {
  display: grid;
  gap: 1rem;
}

.pm-payment-detail-head {
  align-items: flex-start;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 0.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
}

.pm-payment-detail-head h5 {
  margin-bottom: 0.25rem;
}

.pm-payment-detail-amount {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
  text-align: right;
}

.pm-payment-detail-amount span,
.pm-payment-detail-metric span,
.pm-payment-section-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pm-payment-detail-amount strong {
  font-size: 1.35rem;
}

.pm-payment-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-payment-detail-metric {
  border: 1px solid rgba(var(--separator-rgb), 0.75);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem;
}

.pm-payment-detail-metric strong {
  overflow-wrap: anywhere;
}

.pm-payment-approval-panel {
  border: 1px solid rgba(var(--separator-rgb), 0.75);
  border-radius: 0.5rem;
  padding: 1rem;
}

.pm-payment-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pm-payment-section-title div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pm-payment-approval-list {
  display: grid;
  gap: 0.65rem;
}

.pm-payment-approval-item {
  align-items: flex-start;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.pm-payment-approval-icon {
  align-items: center;
  background: var(--light);
  border: 1px solid rgba(var(--separator-rgb), 0.8);
  border-radius: 50%;
  display: inline-flex;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.pm-payment-approval-approved .pm-payment-approval-icon {
  background: rgba(var(--success-rgb), 0.12);
  border-color: rgba(var(--success-rgb), 0.35);
  color: var(--success);
}

.pm-payment-approval-rejected .pm-payment-approval-icon {
  background: rgba(var(--danger-rgb), 0.12);
  border-color: rgba(var(--danger-rgb), 0.35);
  color: var(--danger);
}

.pm-payment-approval-pending .pm-payment-approval-icon {
  background: rgba(var(--warning-rgb), 0.12);
  border-color: rgba(var(--warning-rgb), 0.35);
  color: var(--warning);
}

.pm-payment-approval-body {
  min-width: 0;
}

.pm-payment-approval-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm-notification-count {
  align-items: center;
  background: var(--danger) !important;
  color: var(--light-text);
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 700;
  height: 1rem !important;
  justify-content: center;
  line-height: 1;
  min-width: 1rem;
  padding: 0 0.25rem;
  right: -0.45rem !important;
  top: -0.45rem !important;
  width: auto !important;
}

.pm-notification-dropdown-item > a {
  align-items: flex-start;
  color: inherit;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.75rem 1rem;
}

.pm-notification-dropdown-item > a:hover {
  background: rgba(var(--primary-rgb), 0.06);
}

.pm-notification-dropdown-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.pm-notification-dropdown-body strong,
.pm-notification-dropdown-body span {
  overflow-wrap: anywhere;
}

.pm-notification-dropdown-body span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.pm-notification-dropdown-body small {
  color: var(--muted);
  font-size: 0.72rem;
}

.pm-notification-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pm-notification-tools {
  align-items: center;
  display: flex;
  flex: 1 1 32rem;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.pm-notification-tools .input-group {
  max-width: 18rem;
}

.pm-notification-tools .form-select {
  max-width: 10rem;
}

.pm-notification-list {
  border: 1px solid rgba(var(--separator-rgb), 0.72);
  border-radius: 8px;
  overflow: hidden;
}

.pm-notification-item {
  align-items: flex-start;
  background: var(--foreground);
  border-bottom: 1px solid rgba(var(--separator-rgb), 0.72);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1rem;
}

.pm-notification-item:last-child {
  border-bottom: 0;
}

.pm-notification-item.is-unread {
  background: rgba(var(--primary-rgb), 0.045);
}

.pm-notification-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.pm-notification-icon.is-primary {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.pm-notification-icon.is-info {
  background: rgba(var(--info-rgb), 0.12);
  color: var(--info);
}

.pm-notification-icon.is-danger {
  background: rgba(var(--danger-rgb), 0.12);
  color: var(--danger);
}

.pm-notification-icon.is-secondary {
  background: rgba(var(--separator-rgb), 0.28);
  color: var(--body);
}

.pm-notification-content {
  min-width: 0;
}

.pm-notification-main {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.pm-notification-main h2 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.pm-notification-main p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
}

.pm-notification-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
}

.pm-notification-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pm-notification-empty {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 3rem 1rem;
  text-align: center;
}

.pm-referral-page {
  background: #0b5f86;
  color: var(--body);
  min-height: 100vh;
}

.pm-referral-page #root {
  min-height: 100vh;
  opacity: 1;
}

.pm-referral-page .fixed-background {
  display: block;
}

.pm-referral-overlay {
  background: linear-gradient(90deg, rgba(8, 34, 50, 0.58), rgba(8, 34, 50, 0.18));
  inset: 0;
  position: fixed;
  z-index: 0;
}

.pm-referral-container {
  padding: 1.25rem;
  z-index: 1;
}

.pm-referral-page .small-title {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.pm-referral-page .card {
  background: rgba(255, 255, 255, 0.96);
}

.pm-referral-page .filled .form-control {
  background: var(--background-light);
  border-color: transparent;
  min-height: 44px;
  padding-left: 45px;
}

.pm-referral-page .filled .form-control:focus {
  background: var(--foreground);
  border-color: rgba(var(--primary-rgb), 1);
}

.pm-referral-summary {
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.75rem;
  padding: 1rem;
}

.pm-referral-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.pm-referral-summary strong {
  color: #111827;
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pm-referral-login-link {
  margin-top: -1.75rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.pm-referral-login-link a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.pm-referral-login-link a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .pm-planner-budget-badges {
    grid-template-columns: 1fr;
  }

  .pm-planner-task-report .table {
    min-width: 0;
  }

  .pm-payment-detail-head,
  .pm-payment-detail-grid {
    grid-template-columns: 1fr;
  }

  .pm-payment-detail-amount {
    align-items: flex-start;
    text-align: left;
  }

  .pm-team-toolbar .pm-team-search,
  .pm-team-toolbar .pm-team-length {
    width: 100%;
  }

  .pm-notification-toolbar,
  .pm-notification-tools,
  .pm-notification-tools .input-group,
  .pm-notification-tools .form-select {
    max-width: none;
    width: 100%;
  }

  .pm-notification-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pm-notification-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .pm-notification-main {
    flex-direction: column;
  }

  .pm-referral-container {
    padding: 1.25rem;
  }

  .pm-referral-summary {
    grid-template-columns: 1fr;
  }
}
