.pms-access-page,
.pms-app-page {
    width: 100%;
    min-height: 100vh;
    background: #f3f6fb;
}

.pms-app-layout {
    min-height: 100vh;
    background: #f3f6fb;
}

.pms-app-layout-main {
    min-height: 100vh;
    padding-top: 0 !important;
    background: #f3f6fb;
}

.pms-access-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.pms-login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #f3f6fb;
}

.pms-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    width: min(1080px, 100%);
    min-height: 620px;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(23, 32, 51, .10);
}

.pms-login-brand {
    background: #172033;
    color: #ffffff;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
}

.pms-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.pms-login-logo:hover {
    color: #ffffff;
    text-decoration: none;
}

.pms-login-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.pms-login-logo-subtitle {
    color: #aeb8c9;
    font-size: 12px;
    font-weight: 700;
}

.pms-login-brand h1 {
    margin: 14px 0;
    max-width: 390px;
    font-size: 34px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: 0;
}

.pms-login-brand p {
    max-width: 440px;
    color: #c8d2e3;
    font-size: 15px;
    line-height: 1.7;
}

.pms-login-brand-note {
    max-width: 430px;
    padding: 16px 18px;
    border: 1px solid rgba(200, 210, 227, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #c8d2e3;
    font-size: 13px;
    line-height: 1.6;
}

.pms-login-panel {
    padding: 44px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pms-login-card {
    width: min(420px, 100%);
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 26px;
    background: #ffffff;
}

.pms-login-card-head h2 {
    margin: 8px 0;
    color: #172033;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
}

.pms-login-card-head p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.pms-login-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.pms-login-field {
    display: grid;
    gap: 6px;
}

.pms-login-field label {
    color: #32415a;
    font-size: 12px;
    font-weight: 800;
}

.pms-login-field .form-control {
    min-height: 42px;
    border-color: #cfd7e6;
    border-radius: 8px;
}

.pms-login-submit {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #2457d6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.pms-login-submit:disabled {
    opacity: .68;
}

.pms-login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
}

.pms-login-links a {
    color: #2457d6;
    font-size: 13px;
    font-weight: 700;
}

.pms-login-support {
    margin-top: 12px;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.pms-access-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    width: min(1080px, 100%);
    min-height: 620px;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(23, 32, 51, .10);
}

.pms-access-brand {
    background: #172033;
    color: #ffffff;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.pms-access-brand h1 {
    margin: 14px 0 14px;
    max-width: 420px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.pms-access-product {
    margin-top: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.pms-access-brand p {
    max-width: 430px;
    color: #c8d2e3;
    font-size: 15px;
    line-height: 1.7;
}

.pms-kicker {
    color: #91d6c4;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.pms-access-list {
    display: grid;
    gap: 12px;
}

.pms-access-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.pms-access-icon,
.pms-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.pms-access-icon {
    background: #2457d6;
}

.pms-access-item-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

.pms-access-item-copy {
    color: #aeb8c9;
    font-size: 13px;
}

.pms-access-panel {
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pms-access-card {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
}

.pms-access-detail {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fbfcff;
}

.pms-onboarding-checklist {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fbfcff;
}

.pms-onboarding-grid {
    display: grid;
    gap: 10px;
}

.pms-onboarding-grid .mud-button {
    min-height: 58px;
    width: 100%;
    text-align: left;
}

.pms-onboarding-button-text {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.35;
}

.pms-onboarding-item-title {
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    white-space: normal;
}

.pms-onboarding-item-copy {
    color: #667085;
    font-size: 12px;
    white-space: normal;
}

.pms-routing-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.pms-route-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
}

.pms-route-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.pms-app-page {
    padding: 22px;
}

.pms-app-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 0;
    width: min(1480px, 100%);
    min-height: calc(100vh - 44px);
    margin: 0 auto;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(23, 32, 51, .08);
}

.pms-sidebar {
    background: #172033;
    color: #ffffff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.pdm-mobile-admin-bar,
.pdm-mobile-sidebar-head,
.pdm-mobile-nav-backdrop {
    display: none;
}

.pms-brand {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 2px 4px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pms-brand-mark {
    background: #2457d6;
    color: #ffffff;
}

.pms-brand-title {
    font-size: 14px;
    font-weight: 800;
}

.pms-brand-subtitle {
    color: #aeb8c9;
    font-size: 12px;
}

.pms-sidebar-context {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.pms-context-label,
.pms-nav-label,
.pms-top-label,
.pms-stat-label {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.pms-sidebar .pms-context-label,
.pms-sidebar .pms-nav-label {
    color: #91a0b8;
}

.pms-sidebar .mud-input,
.pms-sidebar .mud-input-label,
.pms-sidebar .mud-select .mud-input-slot {
    color: #ffffff;
}

.pms-sidebar .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-outlined {
    background: rgba(255, 255, 255, .06);
}

.pms-sidebar .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, .22);
}

.pms-context-title {
    margin-top: 4px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}

.pms-context-meta {
    margin-top: 4px;
    color: #c8d2e3;
    font-size: 13px;
}

.pms-workspace-switcher {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.pms-workspace-switcher-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.pms-workspace-switcher-copy {
    margin-top: 3px;
    color: #aeb8c9;
    font-size: 12px;
    line-height: 1.45;
}

.pms-workspace-field-label {
    margin-top: 10px;
    color: #dbe3f0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.pms-workspace-select {
    margin-top: 4px;
}

.pms-nav-section {
    display: grid;
    gap: 6px;
}

.pms-nav-section-separated {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.pms-nav-menu .mud-nav-link {
    min-height: 38px;
    border-radius: 8px;
    color: #c8d2e3;
}

.pms-nav-menu .mud-nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.pms-sidebar .pms-nav-menu .mud-nav-link.active,
.pms-sidebar .pms-nav-menu .mud-nav-link.mud-nav-link-active,
.pms-sidebar .pms-nav-menu .mud-nav-link.pms-nav-link-active,
.pms-sidebar .pms-nav-menu .pms-nav-link-active .mud-nav-link {
    background: #23334f !important;
    background-color: #23334f !important;
    color: #ffffff;
    box-shadow: inset 3px 0 0 #2457d6;
}

.pms-main {
    min-width: 0;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
}

.pms-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 16px 28px;
    background: #ffffff;
    border-bottom: 1px solid #d8dee8;
}

.pms-top-title {
    margin: 0;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.pms-top-subtitle {
    margin-top: 5px;
    color: #667085;
    font-size: 14px;
}

.pms-top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pms-admin-top-actions {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

.pms-admin-top-actions .mud-button {
    min-width: max-content;
    white-space: nowrap;
}

.pms-global-actions {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pms-global-search {
    width: clamp(150px, 18vw, 240px);
}

.pms-global-partner-selector {
    width: clamp(180px, 20vw, 220px);
}

.pms-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    color: #32415a;
    font-size: 12px;
    font-weight: 800;
}

.pms-chip-blue {
    border-color: #b8c8ff;
    background: #e9efff;
    color: #2457d6;
}

.pms-chip-green {
    border-color: #b7dfd3;
    background: #e8f6f1;
    color: #15866f;
}

.pms-chip-amber {
    border-color: #ffd999;
    background: #fff4df;
    color: #a86500;
}

.pms-chip-red {
    border-color: #ffc9c2;
    background: #fff0ed;
    color: #b42318;
}

.pms-content {
    min-width: 0;
    padding: 24px 28px 32px;
}

.pms-admin-assisted-notice {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #ffd999;
    border-radius: 8px;
    background: #fff8e8;
}

.pms-admin-assisted-title {
    color: #8a5a00;
    font-size: 13px;
    font-weight: 800;
}

.pms-admin-assisted-copy {
    color: #5f4b24;
    font-size: 13px;
    line-height: 1.5;
}

.pms-state-panel,
.pms-empty-panel {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
    display: grid;
    gap: 10px;
    justify-items: start;
}

.pms-empty-panel {
    min-height: 220px;
    align-content: center;
    border-style: dashed;
    background: #fbfcff;
}

.pms-empty-illustration {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #e9efff;
}

.pms-empty-illustration::before,
.pms-empty-illustration::after {
    content: "";
    position: absolute;
    border-radius: 8px;
}

.pms-empty-illustration::before {
    inset: 10px 9px 12px;
    border: 2px solid #2457d6;
    opacity: .55;
}

.pms-empty-illustration::after {
    right: 8px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    background: #2a9d8f;
    opacity: .85;
}

.pms-state-error {
    border-color: #fecdca;
    background: #fff6f5;
}

.pms-state-error .pms-empty-illustration {
    background: #fee4e2;
}

.pms-state-error .pms-empty-illustration::before {
    border-color: #b42318;
}

.pms-state-error .pms-empty-illustration::after {
    background: #f04438;
}

.pms-state-warning {
    border-color: #fedf89;
    background: #fffbeb;
}

.pms-state-warning .pms-empty-illustration {
    background: #fff1c2;
}

.pms-state-warning .pms-empty-illustration::before {
    border-color: #a86500;
}

.pms-state-warning .pms-empty-illustration::after {
    background: #f59e0b;
}

.pms-state-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.pms-loading-panel {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.pms-stat-card {
    min-height: 120px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.pms-stat-value {
    margin-top: 10px;
    color: #172033;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
}

.pms-stat-meta {
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
}

.pms-panel {
    min-width: 0;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.pms-panel + .pms-panel {
    margin-top: 16px;
}

.pms-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pms-panel-head > * {
    min-width: 0;
}

.pms-panel-title {
    color: #172033;
    font-size: 17px;
    font-weight: 800;
}

.pms-panel-subtitle {
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
}

.pms-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.pms-split > * {
    min-width: 0;
}

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

.pms-upload-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px dashed #cfd7e6;
    border-radius: 8px;
    background: #fbfcff;
}

.pms-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.pms-filter-row > * {
    flex: 1 1 180px;
    min-width: 0;
}

.pms-filter-row > .mud-button-root {
    flex: 0 0 auto;
}

.pms-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.pms-data-table {
    width: max-content;
    min-width: 100%;
}

.pms-data-table table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.pms-data-table .mud-table-cell {
    max-width: none;
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
    overflow: visible;
    white-space: nowrap;
}

.pms-data-table .mud-table-row {
    height: 56px;
}

.pms-cell-stack {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pms-data-table .pms-cell-stack {
    min-width: max-content;
}

.pms-cell-main {
    max-width: 100%;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.pms-cell-meta {
    max-width: 100%;
    color: #667085;
    font-size: 12px;
    line-height: 1.3;
}

.pms-data-table .pms-cell-main,
.pms-data-table .pms-cell-meta {
    max-width: none;
}

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

.pms-data-table .pms-truncate {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.pms-table-action {
    white-space: nowrap;
}

.pms-table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}

.pms-resource-attachment-cell {
    color: #172033;
    font-weight: 700;
    white-space: nowrap;
}

.pms-resource-open-actions,
.pms-resource-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

.pms-setup-health {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
}

.pms-setup-health .pms-chip {
    min-height: 26px;
    padding: 3px 8px;
}

.pms-drawer-field,
.pms-detail-drawer .mud-input-control {
    min-width: 0;
    max-width: 100%;
}

.pms-drawer-field .mud-input-slot,
.pms-drawer-field input,
.pms-drawer-field textarea,
.pms-detail-drawer .mud-input-slot,
.pms-detail-drawer input,
.pms-detail-drawer textarea {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pms-detail-list {
    display: grid;
    gap: 10px;
}

.pms-detail-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}

.pms-detail-row:last-child {
    border-bottom: 0;
}

.pms-detail-label {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.pms-detail-value {
    color: #172033;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.pms-mini-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.pms-mini-tab {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #32415a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-transform: none !important;
    line-height: 1.2;
}

.pms-mini-tab.mud-button-root {
    min-width: 0;
}

.pms-mini-tab.active {
    border-color: #b8c8ff;
    background: #e9efff;
    color: #2457d6;
}

.pms-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.pms-resource-card {
    min-height: 150px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pms-resource-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e9efff;
}

.pms-resource-title {
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.pms-resource-meta {
    color: #667085;
    font-size: 12px;
}

.pms-message-list {
    display: grid;
    gap: 10px;
}

.pms-message {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fbfcff;
    padding: 12px;
}

.pms-message-meta {
    color: #667085;
    font-size: 12px;
    margin-bottom: 4px;
}

.pms-empty-action {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 22px;
    border: 1px dashed #cfd7e6;
    border-radius: 8px;
    background: #fbfcff;
}

.pms-empty-title {
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.pms-empty-copy {
    color: #667085;
    font-size: 13px;
}

.pms-command-center {
    background: #ffffff;
}

.pms-sidebar-primary {
    display: grid;
    gap: 16px;
}

.pms-insights-nav {
    margin-top: 0;
}

.pms-account-nav {
    margin-top: 0;
}

.pms-command-header {
    background: #ffffff;
    border-bottom: 1px solid #d8dee8;
}

.pms-topbar-main {
    min-width: 0;
}

.pms-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pms-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.pms-command-main,
.pms-command-sidebar {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.pms-work-queue {
    display: grid;
    gap: 10px;
}

.pms-work-queue-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fbfcff;
}

.pms-work-queue-item::before {
    content: "";
    width: 8px;
    height: 100%;
    min-height: 36px;
    border-radius: 999px;
    background: #2457d6;
}

.pms-record-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.pms-payment-record-grid > .pms-master-list {
    grid-column: 1;
    grid-row: 1;
}

.pms-payment-record-grid > .pms-detail-drawer {
    grid-column: 2;
    grid-row: 1;
}

.pms-master-list,
.pms-detail-drawer {
    min-width: 0;
}

.pms-detail-drawer {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

.pms-detail-drawer .pms-panel {
    box-shadow: 0 14px 34px rgba(23, 32, 51, .06);
}

.pms-finance-summary,
.pms-insight-board,
.pms-settings-grid,
.pms-support-layout,
.pms-activity-stream {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.pms-finance-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pms-settings-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
}

.pms-support-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.pms-activity-stream .pms-message,
.pms-insight-board .pms-panel {
    background: #ffffff;
}

@media (max-width: 960px) {
    .pms-access-shell,
    .pms-login-shell,
    .pms-app-shell {
        grid-template-columns: 1fr;
    }

    .pms-login-brand,
    .pms-access-brand {
        padding: 32px 24px;
    }

    .pms-login-panel,
    .pms-access-panel {
        padding: 28px 24px;
    }

    .pms-app-page {
        padding: 12px;
    }

    .pms-app-page-compact-mobile {
        padding: 0;
    }

    .pms-app-shell {
        min-height: auto;
    }

    .pms-sidebar {
        padding: 18px 14px;
    }

    .pms-shell-compact-mobile {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .pms-shell-compact-mobile .pdm-mobile-admin-bar {
        display: flex;
        min-height: 72px;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        background: #172033;
        color: #ffffff;
        font-size: 16px;
        line-height: 24px;
    }

    .pms-shell-compact-mobile .pdm-mobile-admin-menu-button {
        width: 48px;
        height: 48px;
        color: #ffffff;
    }

    .pms-shell-compact-mobile > .pms-sidebar {
        position: fixed;
        z-index: 1702;
        inset: 0 auto 0 0;
        display: none;
        width: min(320px, calc(100vw - 48px));
        border-radius: 0;
        padding: 16px;
        box-shadow: 12px 0 36px rgba(10, 23, 68, .28);
    }

    .pms-shell-compact-mobile.pdm-mobile-nav-open > .pms-sidebar {
        display: flex;
    }

    .pms-shell-compact-mobile .pdm-mobile-sidebar-head {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        padding-bottom: 8px;
    }

    .pms-shell-compact-mobile .pdm-mobile-sidebar-head .mud-icon-button {
        width: 48px;
        height: 48px;
        color: #ffffff;
    }

    .pms-shell-compact-mobile .pdm-mobile-nav-backdrop {
        position: fixed;
        z-index: 1701;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(10, 23, 68, .48);
    }

    .pms-shell-compact-mobile .pms-topbar {
        display: none;
    }

    .pms-shell-compact-mobile .pms-content {
        padding: 24px 20px 56px;
    }

    .pms-topbar {
        flex-direction: column;
        padding: 22px;
    }

    .pms-top-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pms-admin-top-actions {
        width: 100%;
    }

    .pms-global-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .pms-global-search {
        width: 100%;
    }

    .pms-global-partner-selector {
        width: 100%;
    }

    .pms-content {
        padding: 20px;
    }

    .pms-split {
        grid-template-columns: 1fr;
    }

    .pms-kpi-grid,
    .pms-command-grid,
    .pms-record-grid,
    .pms-finance-summary,
    .pms-settings-grid,
    .pms-support-layout {
        grid-template-columns: 1fr;
    }

    .pms-detail-drawer {
        position: static;
    }

    .pms-payment-record-grid > .pms-master-list,
    .pms-payment-record-grid > .pms-detail-drawer {
        grid-column: auto;
        grid-row: auto;
    }

    .pms-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .pms-filter-row > *,
    .pms-filter-row > .mud-button-root {
        flex-basis: 100%;
        width: 100%;
    }

    .pms-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
