:root {
    --pm-sidebar: #e9f1f6;
    --pm-topbar: #e7eef3;
    --pm-panel: #ffffff;
    --pm-muted: #6d747b;
    --pm-line: #cfd6dc;
    --pm-soft: #f6f7f8;
    --pm-note: #e9f1f6;
    --pm-warn: #fff9df;
    --pm-danger: #d71920;
}

* {
    box-sizing: border-box;
}

body.pm-body {
    margin: 0;
    background: #f3f5f7;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.pm-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
}

.pm-sidebar {
    background: var(--pm-sidebar);
    border-right: 1px solid #d7e0e6;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #cbd5dc;
    font-weight: 700;
    font-size: 13px;
}

.pm-trident {
    width: 31px;
    height: 31px;
    border: 1px solid #111;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: #fff;
}

.pm-menu {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.pm-menu a {
    color: #1b1f23;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.pm-menu a.active {
    border-left: 2px solid #111;
    padding-left: 10px;
}

.pm-submenu {
    display: grid;
    gap: 10px;
    margin: -8px 0 0 12px;
    padding-left: 12px;
    border-left: 1px solid #b9c2ca;
}

.pm-submenu a {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

.pm-user {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #cbd5dc;
    font-weight: 600;
}

.pm-main {
    min-width: 0;
}

.pm-topbar {
    height: 45px;
    background: var(--pm-topbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    font-weight: 700;
}

.pm-support {
    font-size: 11px;
    font-weight: 600;
}

.pm-workspace {
    max-width: 1250px;
    min-height: calc(100vh - 45px);
    margin: 0 auto;
    background: var(--pm-panel);
    padding: 34px 42px 28px;
    border-radius: 0 0 10px 10px;
}

.pm-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #222;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 30px;
}

.pm-back.compact {
    margin-bottom: 10px;
    font-size: 15px;
}

.pm-note {
    background: var(--pm-note);
    padding: 18px 20px;
    max-width: 720px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pm-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.pm-form-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

h1.pm-title {
    margin: 0 0 10px;
    font-size: 29px;
    line-height: 1.15;
    font-weight: 700;
}

.pm-lead-danger {
    color: var(--pm-danger);
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 25px;
}

.pm-close-icon {
    width: 22px;
    height: 22px;
    border: 1px solid #777;
    border-radius: 4px;
    color: #555;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 700;
}

.pm-square-nav {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #111;
    border-radius: 4px;
    color: #111;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.pm-square-nav:hover,
.pm-close-icon:hover {
    background: #f2f4f6;
}

.pm-form-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 26px 28px;
}

.pm-form-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.pm-form-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.pm-field label,
.pm-label {
    display: block;
    color: var(--pm-muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.pm-required {
    color: var(--pm-danger);
}

.pm-field input,
.pm-field select,
.pm-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #333;
    border-radius: 0;
    padding: 5px 0 7px;
    background: transparent;
    font-size: 13px;
    color: #111;
    outline: none;
}

.pm-field textarea {
    min-height: 72px;
    resize: vertical;
    border: 1px solid var(--pm-line);
    padding: 10px;
    background: #fff;
}

.pm-section {
    margin-top: 26px;
}

.pm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.pm-section-head strong {
    font-size: 14px;
}

.pm-section-meta {
    color: var(--pm-muted);
    font-size: 11px;
}

.pm-box {
    border: 1px solid var(--pm-line);
    background: #fff;
    padding: 18px;
    border-radius: 4px;
}

.pm-box.soft {
    background: var(--pm-soft);
}

.pm-box.warn {
    background: #fffdf0;
}

.pm-search-shell {
    border: 1px solid #b9c2ca;
    border-radius: 6px;
    background: #f7f8f9;
    padding: 26px 28px 92px;
    position: relative;
}

.pm-search-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 12px 28px;
    align-items: end;
}

.pm-search-last-name { grid-column: 1; grid-row: 1; }
.pm-search-first-name { grid-column: 2; grid-row: 1; }
.pm-search-middle-name { grid-column: 3; grid-row: 1; }
.pm-search-sex { grid-column: 4; grid-row: 1; }
.pm-search-birth-date { grid-column: 5; grid-row: 1; }
.pm-search-previous-name { grid-column: 1; grid-row: 2; }
.pm-search-id-type { grid-column: 1 / span 2; grid-row: 3; }
.pm-search-identifier { grid-column: 3 / span 2; grid-row: 3; }
.pm-search-id-type-hint { grid-column: 1 / span 2; grid-row: 4; align-self: start; }
.pm-search-identifier-hint { grid-column: 3 / span 2; grid-row: 4; align-self: start; }
.pm-search-doc-type { grid-column: 1 / span 2; grid-row: 5; }
.pm-search-doc-number { grid-column: 3 / span 2; grid-row: 5; }
.pm-search-unzr { grid-column: 1 / span 2; grid-row: 6; }
.pm-search-oberig { grid-column: 3 / span 2; grid-row: 6; }
.pm-search-unzr-hint { grid-column: 1 / span 2; grid-row: 7; align-self: start; }
.pm-search-phone { grid-column: 1; grid-row: 8; }
.pm-search-email { grid-column: 2; grid-row: 8; }
.pm-search-profile-status { grid-column: 1; grid-row: 9; }

.pm-search-shell .pm-actions.end {
    position: absolute;
    right: 28px;
    bottom: 20px;
    margin: 0;
    gap: 18px;
}

.pm-inline-hint {
    align-self: start;
    background: #fff8d9;
    padding: 7px 9px;
}

.pm-search-grid .pm-inline-hint {
    margin-top: -10px;
}

.pm-field-hint {
    background: #fff8d9;
    color: #111;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 0;
    padding: 6px 8px;
}

.pm-conditional-field {
    margin-top: 16px;
}

.pm-conditional-field[hidden] {
    display: none !important;
}

.pm-tax-edit-grid {
    align-items: end;
}

.pm-search-hint-wide {
    max-width: 430px;
}

.pm-demo-panel-collapsed {
    margin-top: 18px;
}

details.pm-demo-panel-collapsed > summary {
    cursor: pointer;
}

.pm-profile-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 22px;
    align-items: start;
}

.pm-profile-side-notes {
    display: grid;
    gap: 30px;
    font-size: 11px;
    line-height: 1.35;
    padding-top: 44px;
}

.pm-red-note {
    color: var(--pm-danger);
}

.pm-intermediate-title-row {
    max-width: 900px;
    align-items: center;
    margin-bottom: 18px;
}

.pm-intermediate-title-row .pm-status {
    min-width: 260px;
    justify-content: flex-start;
}

.pm-intermediate-card {
    max-width: 900px;
    border: 1px solid #e2e6ea;
    background: #fff;
    padding: 18px 18px 26px;
}

.pm-new-profile-check-title {
    margin: 34px 0 28px;
    font-size: 22px;
    line-height: 1.35;
    max-width: 940px;
}

.pm-new-profile-check {
    margin-top: 22px;
    max-width: 980px;
}

.pm-new-profile-check .pm-box.soft {
    background: #f7f8f9;
}

.pm-intermediate-id-row {
    width: min(300px, 100%);
    margin-bottom: 22px;
}

.pm-intermediate-person-box {
    border: 1px solid #dde2e6;
    background: #f7f8f9;
    padding: 16px;
    margin-bottom: 28px;
}

.pm-intermediate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 22px 28px;
    align-items: end;
}

.pm-intermediate-doc-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, .9fr) minmax(220px, 1fr);
    gap: 30px 46px;
    align-items: end;
    padding: 0 8px;
}

.pm-intermediate-check-box {
    max-width: 900px;
    border-radius: 10px;
    padding: 18px;
}

.pm-intermediate-warning {
    font-weight: 700;
    margin-bottom: 18px;
}

.pm-intermediate-access-grid {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(220px, 260px) minmax(280px, 1fr);
    gap: 22px 30px;
    align-items: end;
}

.pm-box + .pm-box {
    margin-top: 10px;
}

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

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

.pm-repeat-row {
    display: flex;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
}

.pm-repeat-row .pm-field {
    flex: 1;
}

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

.pm-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 14px;
}

.pm-table th {
    color: #6b6f75;
    font-weight: 600;
    text-align: left;
    padding: 10px 9px;
    border-bottom: 1px solid #111;
    vertical-align: bottom;
}

.pm-table td {
    padding: 13px 9px;
    border-bottom: 1px solid #d3d3d3;
    vertical-align: top;
}

.pm-table.compact {
    font-size: 12px;
}

.pm-table.compact td,
.pm-table.compact th {
    padding: 7px 8px;
}

.pm-search-results-table {
    min-width: 760px;
    table-layout: auto;
}

.pm-search-results-table th,
.pm-search-results-table td {
    white-space: nowrap;
}

.pm-search-results-table th:first-child,
.pm-search-results-table td:first-child {
    width: 28px;
    padding-left: 4px;
    padding-right: 4px;
}

.pm-search-results-table th:nth-child(2),
.pm-search-results-table td:nth-child(2) {
    min-width: 120px;
}

.pm-result-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 108px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.pm-result-status .pm-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
}

.pm-filters {
    display: grid;
    grid-template-columns: minmax(170px, 1.3fr) 160px 160px auto auto auto;
    gap: 18px;
    align-items: end;
    max-width: 970px;
    margin: 22px 0 34px;
}

.pm-search-line {
    max-width: 250px;
    margin-bottom: 12px;
}

.pm-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
}

.pm-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pm-actions.end {
    justify-content: flex-end;
}

.pm-block-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.pm-block-footer.no-verify {
    justify-content: flex-start;
}

.pm-verify-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 29px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pm-verify-check input {
    width: 16px;
    height: 16px;
    accent-color: #111;
}

.pm-verify-check span {
    border: 1px solid #111;
    border-radius: 999px;
    padding: 6px 16px;
    background: #fff;
}

.pm-verify-check input:checked + span {
    background: #000;
    color: #fff;
}

.pm-referral-review-form input[readonly],
.pm-referral-review-form textarea[readonly],
.pm-referral-review-form select:disabled,
.pm-referral-review-form input:disabled {
    color: #111;
    opacity: 1;
    cursor: default;
}

.pm-referral-review-form .pm-box.soft {
    background: #f7f8f9;
}

.pm-edit-screen {
    margin-top: 36px;
}

.pm-edit-screen .pm-box.soft {
    border: 1px solid #d2d7dc;
    background: #f7f8f9;
    padding: 26px 28px;
}

.pm-edit-reason {
    margin-top: 0;
}

.pm-edit-reason textarea {
    min-height: 110px;
    border-bottom: 2px solid #111;
}

.pm-dms-reverify-screen {
    border: 1px solid #333;
    padding: 54px 42px 34px;
    margin-top: 24px;
}

.pm-dms-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 34px;
}

.pm-back-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #333;
    border-radius: 4px;
    flex: 0 0 auto;
}

.pm-dms-card {
    border-radius: 8px;
    padding: 26px;
}

.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 24px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.pm-btn.primary {
    background: #000;
    color: #fff;
}

.pm-btn[disabled],
.pm-btn.disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: auto;
}

.pm-btn-disabled-soft {
    border-color: #cfd5dc;
    background: #f3f5f7;
    color: #8b949e;
    opacity: 1;
    pointer-events: none;
}

.pm-btn.small {
    min-height: 29px;
    padding: 5px 15px;
    font-size: 12px;
}

.pm-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.pm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d52b3a;
}

.pm-dot.ok {
    background: #1f8f4d;
}

.pm-alert {
    padding: 12px 14px;
    border-radius: 4px;
    margin: 14px 0;
    font-weight: 600;
}

.pm-alert.danger {
    color: #b00020;
    background: #fff1f1;
}

.pm-alert.info {
    background: #eef5ff;
}

.pm-alert.warn {
    background: var(--pm-warn);
}

.pm-demo-panel {
    border: 1px dashed #7d8790;
    background: #f7fafc;
    padding: 14px 16px;
    border-radius: 4px;
    margin: 14px 0 22px;
}

.pm-demo-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.pm-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pm-btn.demo {
    min-height: 28px;
    padding: 5px 13px;
    border-color: #7d8790;
    font-size: 12px;
    background: #fff;
}

.pm-btn.demo.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.pm-identity-lock-note {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
}

.pm-help {
    color: #111;
    font-size: 11px;
    line-height: 1.35;
}

.pm-dms-demo-box {
    margin: 18px 0 20px;
}

.pm-dms-demo-box .pm-checkgroup {
    margin: 12px 0 8px;
}

.pm-muted {
    color: var(--pm-muted);
}

.pm-blurred-row td {
    color: #8a9299;
    background: #fafafa;
}

.pm-blurred-row td:nth-child(3) {
    filter: blur(2.4px);
    user-select: none;
}

.pm-system-message {
    border: 1px solid var(--pm-line);
    background: #f8fafb;
    padding: 11px 13px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 12px;
}

.pm-system-message.warn {
    border-color: #e6d58f;
    background: #fff8d9;
}

.pm-protocol-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 0;
    border: 1px solid var(--pm-line);
    border-bottom: 0;
    background: #fff;
}

.pm-protocol-summary div {
    min-height: 58px;
    padding: 11px 14px;
    border-right: 1px solid var(--pm-line);
}

.pm-protocol-summary div:last-child {
    border-right: 0;
}

.pm-protocol-summary span {
    display: block;
    color: var(--pm-muted);
    font-size: 11px;
    margin-bottom: 7px;
}

.pm-protocol-summary strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.pm-table-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #333;
    background: transparent;
    padding: 5px 0;
    font: inherit;
}

.pm-documents-section {
    border-top: 1px solid #111;
    margin-top: 52px;
    padding-top: 26px;
}

.pm-documents-section h2 {
    text-align: center;
    font-size: 26px;
    margin: 0 0 28px;
}

.pm-documents-warning {
    font-size: 13px;
    margin-bottom: 18px;
}

.pm-documents-table {
    min-width: 720px;
}

.pm-documents-table th,
.pm-documents-table td {
    border-bottom: 1px solid #111;
    padding: 14px 12px;
}

.pm-centered-title {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    margin: 26px 0;
}

.pm-referral-doc-group {
    margin: 28px 0;
}

.pm-referral-doc-group table {
    margin-top: 8px;
}

.pm-upload-zone {
    border: 1px dashed #b9c2ca;
    padding: 22px;
    text-align: center;
    margin-top: 24px;
    background: #fff;
}

.pm-upload-zone label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.pm-upload-zone input {
    width: min(420px, 100%);
    border: 0;
    border-bottom: 1px solid #333;
    padding: 8px 0;
    background: transparent;
}

.pm-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

.pm-checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    min-height: 32px;
}

.pm-checkgroup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 16px;
}

.pm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #111;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 700;
}

.pm-badge.ok {
    color: #fff;
    background: #000;
}

.pm-scenario-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.pm-scenario-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--pm-line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.pm-scenario-chip.active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.pm-scenario-chip.warn {
    border-color: #e1c15b;
    background: #fff7d6;
}

.pm-service-list {
    display: grid;
    gap: 0;
}

.pm-service-row {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 8px 0 14px;
    border-bottom: 1px solid #111;
    color: #111;
    text-decoration: none;
    font-size: 21px;
    font-weight: 700;
}

.pm-service-row:hover .pm-service-arrow,
.pm-service-row:focus .pm-service-arrow {
    background: #f1f1f1;
}

.pm-service-arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #666;
    font-size: 22px;
}

.pm-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    align-items: start;
}

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

.pm-side-help {
    font-size: 13px;
    line-height: 1.35;
    padding-top: 22px;
}

.pm-side-help ul {
    margin: 8px 0 24px;
    padding-left: 18px;
}

.pm-kebab {
    color: #111;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}

.pm-kebab-menu {
    position: relative;
    display: inline-block;
}

.pm-kebab-menu summary {
    width: 28px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}

.pm-kebab-menu summary::-webkit-details-marker {
    display: none;
}

.pm-kebab-list {
    position: absolute;
    top: 30px;
    right: 0;
    z-index: 20;
    width: 300px;
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid #d8dee4;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.pm-kebab-list a,
.pm-kebab-list button {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eceff2;
    background: #fff;
    color: #111;
    padding: 13px 14px;
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.pm-kebab-list form {
    margin: 0;
}

.pm-kebab-list a:hover,
.pm-kebab-list button:hover {
    background: #f3f4f5;
}

.pm-confirm-panel,
.pm-duplicate-card {
    border: 1px solid #aeb7bf;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
}

.pm-confirm-panel h2,
.pm-duplicate-card h2 {
    font-size: 18px;
    margin: 0 0 14px;
}

.pm-duplicate-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.pm-duplicate-details {
    display: block;
}

.pm-duplicate-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
}

.pm-duplicate-summary::-webkit-details-marker {
    display: none;
}

.pm-duplicate-summary h2 {
    margin-bottom: 0;
}

.pm-duplicate-summary-main {
    display: grid;
    gap: 18px;
    flex: 1;
}

.pm-duplicate-summary-side {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 210px;
}

.pm-duplicate-summary .pm-checkline {
    margin: 0;
    white-space: nowrap;
}

.pm-main-profile-choice {
    color: #111;
    font-size: 16px;
    font-weight: 800;
}

.pm-collapse-label {
    border: 1px solid #d4d9df;
    border-radius: 3px;
    width: 34px;
    height: 26px;
    display: grid;
    place-items: center;
    background: #fff;
}

.pm-duplicate-details[open] .pm-collapse-closed,
.pm-duplicate-details:not([open]) .pm-collapse-open {
    display: none;
}

.pm-collapse-open,
.pm-collapse-closed {
    width: 9px;
    height: 9px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
}

.pm-collapse-open {
    transform: rotate(225deg);
    margin-top: 4px;
}

.pm-collapse-closed {
    transform: rotate(45deg);
    margin-bottom: 4px;
}

.pm-duplicate-body {
    margin-top: 12px;
}

.pm-duplicate-meta {
    display: grid;
    gap: 8px;
    max-width: 560px;
}

.pm-more-info-toggle {
    margin: 0 8px 0 4px;
}

.pm-more-info-label {
    display: inline-flex;
    margin-top: 4px;
}

.pm-more-info-content {
    display: none;
    margin-top: 18px;
}

.pm-more-info-toggle:checked + .pm-more-info-label + .pm-more-info-content {
    display: block;
}

.pm-duplicate-more-info {
    border-top: 1px solid #d9dee3;
    margin-top: 14px;
    padding-top: 4px;
}

.pm-duplicate-more-info .pm-section {
    margin: 18px 0;
}

.pm-duplicate-verify-status {
    margin: 0;
    color: #566371;
    font-size: 15px;
    font-style: italic;
    font-weight: 800;
}

.pm-file-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(160px, 1fr) 100px;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #111;
    border-bottom: 1px solid #ddd;
    margin: 14px 0;
    padding: 10px 8px;
    font-size: 12px;
}

.pm-decision-actions {
    display: grid;
    justify-content: end;
    gap: 8px;
}

.pm-decision-actions.hidden {
    display: none;
}

.pm-decision-actions label {
    border: 1px solid #111;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.pm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .72);
    display: grid;
    place-items: center;
    z-index: 10;
}

.pm-modal {
    width: min(460px, calc(100vw - 32px));
    border: 1px solid #888;
    border-radius: 6px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.pm-modal.wide {
    width: min(680px, calc(100vw - 32px));
}

.pm-modal h2 {
    color: var(--pm-danger);
    font-size: 18px;
    margin: 0 0 18px;
}

.pm-expert-system-notes {
    display: grid;
    gap: 6px;
    margin: 12px 0 18px;
    font-size: 13px;
    font-weight: 700;
}

.pm-expert-system-notes div {
    background: #fff6cf;
    padding: 3px 6px;
}

.pm-expert-search {
    display: grid;
    gap: 8px;
    max-width: 280px;
    margin: 18px 0 8px;
}

.pm-expert-search .pm-field input {
    padding-left: 28px;
}

.pm-expert-search .pm-field::before {
    content: "⌕";
    position: absolute;
    left: 8px;
    bottom: 8px;
    color: #6b7280;
    font-size: 16px;
}

.pm-expert-journal-section {
    border: 0;
    padding: 0;
    margin-top: 8px;
}

.pm-expert-cases-table {
    min-width: 920px;
}

.pm-expert-cases-table th,
.pm-expert-cases-table td {
    vertical-align: top;
}

.pm-expert-cases-table th:nth-child(1),
.pm-expert-cases-table td:nth-child(1) {
    width: 118px;
}

.pm-expert-cases-table th:nth-child(2),
.pm-expert-cases-table td:nth-child(2) {
    width: 145px;
}

.pm-expert-cases-table th:nth-child(3),
.pm-expert-cases-table td:nth-child(3) {
    width: 230px;
}

.pm-expert-cases-table th:nth-child(4),
.pm-expert-cases-table td:nth-child(4) {
    width: 150px;
}

.pm-expert-cases-table th:nth-child(5),
.pm-expert-cases-table td:nth-child(5) {
    width: 170px;
}

.pm-expert-cases-table th:last-child,
.pm-expert-cases-table td:last-child {
    width: 42px;
    text-align: right;
}

.pm-table-scrollbar {
    height: 16px;
    border-radius: 999px;
    background: #e5e7eb;
    margin: 8px 0 14px;
    overflow: hidden;
}

.pm-table-scrollbar span {
    display: block;
    width: 86%;
    height: 8px;
    margin: 4px 0 0 8px;
    border-radius: 999px;
    background: #8b8f94;
}

.pm-pagination-row {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #30353b;
    font-size: 12px;
    margin: 10px 0 44px;
}

.pm-pagination-icons {
    margin-left: auto;
    color: #a6abb1;
    letter-spacing: 8px;
}

.pm-protocol-filters {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto auto;
    align-items: end;
    gap: 22px;
    max-width: 780px;
    margin: 18px 0 26px;
}

.pm-protocols-table {
    min-width: 980px;
}

.pm-protocols-table th,
.pm-protocols-table td {
    vertical-align: top;
}

.pm-protocols-table th:nth-child(1),
.pm-protocols-table td:nth-child(1) {
    width: 120px;
}

.pm-protocols-table th:nth-child(2),
.pm-protocols-table td:nth-child(2) {
    width: 115px;
}

.pm-protocols-table th:nth-child(3),
.pm-protocols-table td:nth-child(3) {
    width: 190px;
}

.pm-protocols-table th:nth-child(4),
.pm-protocols-table td:nth-child(4) {
    width: 190px;
}

.pm-protocols-table th:nth-child(5),
.pm-protocols-table td:nth-child(5) {
    width: 360px;
}

.pm-protocols-table th:last-child,
.pm-protocols-table td:last-child {
    width: 42px;
    text-align: right;
}

.pm-demo-compact {
    margin: 22px 0 18px;
    padding: 10px 14px;
}

.pm-demo-compact summary {
    cursor: pointer;
}

.pm-protocol-head-block {
    margin: 18px 0 28px;
}

.pm-protocol-prev-row {
    background: #dedede;
    border: 1px solid #d1d1d1;
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    margin-bottom: 28px;
}

.pm-protocol-patient-lines {
    display: grid;
    gap: 5px;
    max-width: 900px;
    font-size: 14px;
    line-height: 1.25;
}

.pm-protocol-patient-lines span {
    color: #111;
}

.pm-protocol-status-line {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #111;
    width: fit-content;
    min-width: 360px;
}

.pm-protocol-correction-section {
    border: 0;
    padding: 0;
    margin-top: 18px;
}

.pm-protocol-edit-box {
    border: 1px solid #cfd6dc;
    border-radius: 4px;
    padding: 16px;
    background: #f8fafb;
}

.pm-protocol-personal-edit {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #d7dde3;
}

@media (max-width: 900px) {
    .pm-shell {
        grid-template-columns: 1fr;
    }

    .pm-sidebar {
        display: none;
    }

    .pm-workspace {
        padding: 24px 18px;
    }

    .pm-form-grid,
    .pm-form-grid.cols-4,
    .pm-form-grid.cols-3,
    .pm-search-grid,
    .pm-intermediate-grid,
    .pm-intermediate-doc-grid,
    .pm-intermediate-access-grid,
    .pm-subgrid,
    .pm-filters,
    .pm-protocol-summary,
    .pm-profile-two-col,
    .pm-admin-grid,
    .pm-file-row {
        grid-template-columns: 1fr;
    }

    .pm-search-grid > * {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .pm-search-shell {
        padding: 18px;
    }

    .pm-search-shell .pm-actions.end {
        position: static;
        margin-top: 20px;
        justify-content: flex-start;
    }

    .pm-protocol-summary div {
        border-right: 0;
        border-bottom: 1px solid var(--pm-line);
    }

    .pm-actions {
        flex-wrap: wrap;
    }

    .pm-block-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

}
