.pm-intro {
  margin-bottom: 18px;
  padding: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 90% -20%, rgba(255,255,255,.22), transparent 18rem),
    linear-gradient(135deg, #08265d, #0b5cff);
  box-shadow: 0 18px 42px rgba(8,38,93,.18);
}

.pm-intro h2 {
  margin: 8px 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: -.04em;
}

.pm-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.65;
}

.pm-total {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: .76rem;
  font-weight: 850;
}

.pm-tabs {
  margin-bottom: 14px;
  padding: 5px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid #e3eaf6;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8,38,93,.06);
}

.pm-tab {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  color: #6d7b96;
  background: transparent;
  font-weight: 820;
  white-space: nowrap;
}

.pm-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #0b5cff, #5b94ff);
  box-shadow: 0 8px 20px rgba(11,92,255,.2);
}

.pm-filter {
  margin-bottom: 14px;
  padding: 17px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 13px;
  border: 1px solid #e3eaf6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8,38,93,.06);
}

.pm-filter label {
  display: grid;
  gap: 7px;
  color: #10213f;
  font-size: .72rem;
  font-weight: 800;
}

.pm-filter input,
.pm-filter select,
.pm-control select,
.pm-control textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce5f3;
  border-radius: 11px;
  outline: none;
  color: #10213f;
  background: #fbfdff;
}

.pm-control textarea {
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.pm-filter input:focus,
.pm-filter select:focus,
.pm-control select:focus,
.pm-control textarea:focus {
  border-color: #2573ff;
  box-shadow: 0 0 0 4px rgba(37,115,255,.1);
  background: #fff;
}

.pm-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.pm-apply,
.pm-reset,
.pm-action,
.pm-view,
.pm-page-button {
  border-radius: 10px;
  font-weight: 820;
}

.pm-apply,
.pm-action.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #0b5cff, #4a89ff);
}

.pm-apply,
.pm-reset {
  min-height: 42px;
  padding: 0 15px;
}

.pm-reset {
  border: 1px solid #dce5f3;
  color: #52617c;
  background: #fff;
}

.pm-panel {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #e3eaf6;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(8,38,93,.07);
}

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

.pm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.pm-table th,
.pm-table td {
  padding: 14px 15px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
}

.pm-table th {
  color: #7a879f;
  background: #f8faff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pm-table td {
  color: #253653;
  font-size: .78rem;
}

.pm-table tbody tr:hover {
  background: #f9fbff;
}

.pm-cell {
  display: grid;
  gap: 3px;
}

.pm-cell b {
  color: #10213f;
}

.pm-cell small {
  color: #7a879f;
}

.pm-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 9px;
  color: #52617c;
  background: #eef2f8;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pm-badge.active,
.pm-badge.approved,
.pm-badge.online,
.pm-badge.open {
  color: #087f50;
  background: #e7f8f0;
}

.pm-badge.pending,
.pm-badge.busy {
  color: #a76900;
  background: #fff4da;
}

.pm-badge.inactive,
.pm-badge.rejected,
.pm-badge.offline,
.pm-badge.closed {
  color: #b63543;
  background: #fff0f2;
}

.pm-view {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d8e4f7;
  color: #0b5cff;
  background: #f5f8ff;
}

.pm-pagination {
  min-height: 58px;
  padding: 12px 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.pm-page-button {
  width: 35px;
  height: 35px;
  border: 1px solid #dce5f3;
  color: #53617c;
  background: #fff;
}

.pm-page-button.active {
  border-color: #0b5cff;
  color: #fff;
  background: #0b5cff;
}

.pm-page-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.pm-loading,
.pm-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #7a879f;
  text-align: center;
}

.pm-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(5,19,49,.52);
  backdrop-filter: blur(3px);
}

.pm-drawer {
  position: fixed;
  z-index: 61;
  top: 0;
  right: 0;
  width: min(760px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #dfe8f5;
  background: #f5f8ff;
  box-shadow: -24px 0 70px rgba(5,24,64,.22);
}

.pm-drawer-head {
  min-height: 88px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e0e8f4;
  background: #fff;
}

.pm-drawer-head h2 {
  margin: 3px 0 0;
  color: #08265d;
  font-size: 1.35rem;
}

.pm-drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid #dce5f3;
  border-radius: 12px;
  color: #52617c;
  background: #fff;
  font-size: 1.45rem;
}

.pm-drawer-content {
  padding: 20px;
  overflow-y: auto;
}

.pm-detail-hero {
  margin-bottom: 14px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #08265d, #0b5cff);
}

.pm-detail-hero h3 {
  margin: 5px 0;
  font-size: 1.5rem;
}

.pm-detail-hero p,
.pm-detail-hero small {
  margin: 0;
  color: rgba(255,255,255,.72);
}

.pm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.pm-detail-card {
  padding: 17px;
  border: 1px solid #e1e9f5;
  border-radius: 16px;
  background: #fff;
}

.pm-detail-card.full {
  grid-column: 1 / -1;
}

.pm-detail-card h4 {
  margin: 0 0 13px;
  color: #10213f;
}

.pm-detail-row {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #edf1f7;
}

.pm-detail-row:first-of-type {
  border-top: 0;
}

.pm-detail-row span {
  color: #7a879f;
  font-size: .72rem;
}

.pm-detail-row b {
  max-width: 64%;
  color: #253653;
  font-size: .76rem;
  text-align: right;
  word-break: break-word;
}

.pm-control {
  display: grid;
  gap: 12px;
}

.pm-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-control label {
  display: grid;
  gap: 6px;
  color: #52617c;
  font-size: .7rem;
  font-weight: 820;
}

.pm-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-action {
  min-height: 40px;
  padding: 0 13px;
}

.pm-action.secondary {
  border: 1px solid #dce5f3;
  color: #0b5cff;
  background: #f5f8ff;
}

.pm-action.danger {
  border: 1px solid #ffd8dc;
  color: #bd3543;
  background: #fff3f4;
}

.pm-transaction-list,
.pm-hours {
  display: grid;
  gap: 8px;
}

.pm-transaction,
.pm-hour {
  padding: 10px 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 11px;
  background: #f6f9fd;
  font-size: .72rem;
}

@media (max-width: 1100px) {
  .pm-filter {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 680px) {
  .pm-intro {
    flex-direction: column;
  }

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

  .pm-filter-actions {
    align-items: stretch;
  }

  .pm-filter-actions button {
    flex: 1;
  }

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

  .pm-detail-card.full {
    grid-column: auto;
  }
}
