:root {
    --pms-font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --pms-app-bg: #f5f5f5;
    --pms-surface: #ffffff;
    --pms-surface-muted: #f7f7f7;
    --pms-surface-hover: #f0f0f0;
    --pms-border: #e1e1e1;
    --pms-border-strong: #c8c8c8;
    --pms-text-primary: #242424;
    --pms-text-secondary: #616161;
    --pms-text-subtle: #7a7a7a;
    --pms-brand: #5b5fc7;
    --pms-brand-hover: #4f52b2;
    --pms-brand-soft: #eef0ff;
    --pms-channel-pane-width: 300px;
    --pms-channel-pane-min: 220px;
    --pms-channel-pane-max: 560px;
    --pms-splitter-width: 1px;
    --pms-success: #107c41;
    --pms-danger: #b3261e;
    --pms-warning: #8a6100;
    --pms-grid-control-height: 30px;
    --pms-grid-control-gap: 4px;
    --pms-grid-button-border: #d8d8d8;
    --pms-grid-button-hover: #f3f2ff;
    --pms-grid-row-hover: #f7f7f7;
    --pms-grid-row-selected: #f2f1ff;
    --pms-grid-row-selected-hover: #ebeaff;
    --pms-control-text-line-height: 14px;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background: var(--pms-app-bg);
    color: var(--pms-text-primary);
    font-family: var(--pms-font-family);
    font-size: 13px;
}

* {
    box-sizing: border-box;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .72;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.safe-area-inset {
    min-height: 100%;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.pms-teams-shell {
    display: flex;
    height: 100vh;
    min-height: 0;
    background: var(--pms-app-bg);
}

.pms-teams-app-rail {
    display: flex;
    width: 72px;
    min-width: 72px;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--pms-border);
    background: #ebebeb;
    padding: 10px 0;
}

.pms-teams-app-logo {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.pms-teams-app-rail-items {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
}

.pms-teams-app-rail-bottom {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-bottom: 8px;
}

.pms-teams-app-button {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: var(--pms-text-secondary);
    cursor: pointer;
    padding: 6px 2px;
}

.pms-teams-app-button:hover {
    background: var(--pms-surface-hover);
}

.pms-teams-app-button:focus-visible {
    background: var(--pms-surface-hover);
    outline: 2px solid var(--pms-brand);
    outline-offset: -2px;
}

.pms-teams-app-button.is-active {
    color: var(--pms-brand);
}

.pms-rail-indicator {
    position: absolute;
    left: 0;
    width: 3px;
    height: 32px;
    border-radius: 0 4px 4px 0;
    background: transparent;
}

.pms-teams-app-button.is-active .pms-rail-indicator {
    background: var(--pms-brand);
}

.pms-rail-icon .rz-icon {
    font-size: 22px;
}

.pms-rail-label {
    max-width: 64px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pms-teams-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.pms-teams-topbar {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(215, 239, 114, .28);
    background:
        radial-gradient(circle at 70% 50%, rgba(215, 239, 114, .22), transparent 34%),
        linear-gradient(135deg, #17201b, #1d6f5b);
    box-shadow: 0 2px 10px rgba(23, 32, 27, .18);
    padding: 0 14px;
}

.pms-teams-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.pms-teams-brand-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 350;
}

.pms-teams-brand-mark {
    color: #d7ef72;
    font-size: 18px;
    font-weight: 750;
}

.topbar-spacer {
    flex: 1 1 auto;
}

.pms-teams-actions,
.topbar-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.pms-teams-content {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.pms-teams-channel-pane {
    display: flex;
    width: var(--pms-channel-pane-width);
    min-width: var(--pms-channel-pane-min);
    max-width: var(--pms-channel-pane-max);
    min-height: 0;
    flex: 0 0 var(--pms-channel-pane-width);
    flex-direction: column;
    overflow: hidden;
    border-right: 0;
    background: var(--pms-surface-muted);
}

.pms-teams-splitter {
    position: relative;
    z-index: 2;
    width: var(--pms-splitter-width);
    min-width: var(--pms-splitter-width);
    flex: 0 0 var(--pms-splitter-width);
    cursor: col-resize;
    touch-action: none;
    background: var(--pms-surface);
    outline: none;
}

.pms-teams-splitter::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4px;
    right: -4px;
    content: "";
}

.pms-teams-splitter::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    content: "";
    background: var(--pms-border);
    transition: background-color 120ms ease, width 120ms ease;
}

.pms-teams-splitter:hover::before,
.pms-teams-splitter:focus-visible::before,
.pms-teams-splitter.is-active::before {
    width: 2px;
    background: var(--pms-brand);
}

body.pms-shell-resizing,
body.pms-shell-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

.pms-teams-channel-header {
    border-bottom: 1px solid var(--pms-border);
    padding: 18px 18px 14px;
}

.pms-teams-eyebrow,
.section-kicker,
.nav-group-label {
    color: var(--pms-text-subtle);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pms-teams-channel-header h2 {
    margin: 4px 0 0;
    font-size: 18px;
}

.pms-teams-channel-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.pms-teams-channel-item {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--pms-text-primary);
    padding: 0 10px;
    text-align: left;
}

.pms-teams-channel-item:hover,
.pms-teams-channel-item.is-active {
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
}

.pms-channel-icon {
    font-size: 19px;
}

.pms-teams-channel-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pms-navigation-history-separator {
    height: 1px;
    margin: 10px 0;
    background: var(--pms-border);
}

.pms-teams-workspace {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    overflow: hidden;
    background: var(--pms-surface);
}

.workspace-page {
    min-height: 100%;
    padding: 22px;
}

.page-hero,
.dashboard-hero,
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.page-hero h1,
.dashboard-hero h1,
.page-header h1 {
    margin: 4px 0 6px;
    font-size: 24px;
}

.page-hero p,
.dashboard-hero p,
.page-header p {
    max-width: 680px;
    color: var(--pms-text-secondary);
    line-height: 1.45;
}

.dashboard-page {
    container-type: inline-size;
    background:
        linear-gradient(180deg, #fafafa 0, #ffffff 220px),
        var(--pms-surface);
}

.dashboard-command-center {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background:
        linear-gradient(120deg, rgba(91, 95, 199, .09), rgba(38, 158, 147, .06) 52%, rgba(255, 255, 255, .96)),
        #ffffff;
    padding: 18px 20px;
}

.dashboard-command-copy {
    min-width: 0;
}

.dashboard-command-copy h1 {
    margin: 3px 0 4px;
    color: var(--pms-text-primary);
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.15;
}

.dashboard-command-copy p {
    margin: 0;
    color: var(--pms-text-secondary);
}

.dashboard-command-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-command-actions .primary-action,
.dashboard-command-actions .ghost-action {
    min-height: 38px;
}

.dashboard-refresh-action {
    width: 38px;
    height: 38px;
}

.dashboard-kpi-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-kpi-card {
    width: 100%;
    min-width: 0;
    min-height: 132px;
    border-color: var(--pms-border);
    color: var(--pms-text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dashboard-kpi-card:focus-visible,
.dashboard-attention-item:focus-visible,
.dashboard-data-row:focus-visible,
.dashboard-notification-row:focus-visible,
.dashboard-job-row:focus-visible,
.dashboard-card-footer-action:focus-visible,
.text-action:focus-visible {
    outline: 2px solid var(--pms-brand);
    outline-offset: 2px;
}

.metric-change.is-positive {
    color: #107c41;
}

.metric-change.is-negative {
    color: #a4262c;
}

.dashboard-attention-panel {
    min-width: 0;
    margin-bottom: 12px;
    container-type: inline-size;
}

.dashboard-panel-heading {
    align-items: center;
}

.dashboard-panel-heading h2 {
    font-size: 18px;
}

.dashboard-all-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #e8f5ed;
    color: #107c41;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 750;
}

.dashboard-all-clear .rz-icon {
    font-size: 16px;
}

.dashboard-attention-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-attention-item {
    display: grid;
    min-width: 0;
    min-height: 86px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pms-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--pms-text-primary);
    padding: 11px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dashboard-attention-item:hover {
    border-color: #c8cee2;
    box-shadow: 0 5px 16px rgba(24, 28, 34, .07);
    transform: translateY(-1px);
}

.dashboard-attention-item.is-actionable {
    border-color: #c9d9ee;
    background: #f6f9fd;
}

.dashboard-attention-item.is-urgent {
    border-color: #efcf9f;
    background: #fff9ef;
}

.dashboard-attention-item.is-clear {
    background: #fafbfc;
}

.dashboard-attention-item.is-unavailable {
    color: var(--pms-text-subtle);
}

.dashboard-attention-icon,
.dashboard-list-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
}

.dashboard-attention-item.is-urgent .dashboard-attention-icon {
    background: #fff0d8;
    color: #8a4b08;
}

.dashboard-attention-item > span:nth-child(2),
.dashboard-list-main {
    min-width: 0;
}

.dashboard-attention-item strong,
.dashboard-attention-item small,
.dashboard-list-main strong,
.dashboard-list-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-attention-item strong {
    font-size: 13px;
}

.dashboard-attention-item small {
    margin-top: 3px;
    color: var(--pms-text-secondary);
    font-size: 11px;
}

.dashboard-attention-item b {
    color: var(--pms-text-primary);
    font-size: 20px;
}

.dashboard-workspace-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.dashboard-workspace-grid > * {
    min-width: 0;
}

.dashboard-span-8 {
    grid-column: span 8;
}

.dashboard-span-4 {
    grid-column: span 4;
}

.dashboard-recent-panel,
.dashboard-jobs-panel {
    container-type: inline-size;
}

.dashboard-notifications-panel,
.dashboard-profile-panel,
.dashboard-recent-panel,
.dashboard-jobs-panel,
.dashboard-chart-panel,
.dashboard-status-panel {
    min-height: 0;
}

.text-action,
.dashboard-card-footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: var(--pms-brand);
    padding: 5px 2px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.text-action .rz-icon {
    font-size: 16px;
}

.dashboard-panel-action {
    width: 32px;
    height: 32px;
}

.dashboard-data-list,
.dashboard-notification-list,
.dashboard-job-list {
    display: grid;
    min-width: 0;
}

.dashboard-data-row,
.dashboard-job-row {
    display: grid;
    min-width: 0;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--pms-border);
    background: transparent;
    color: var(--pms-text-primary);
    padding: 10px 4px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dashboard-data-row:last-child,
.dashboard-job-row:last-child,
.dashboard-notification-row:last-child {
    border-bottom: 0;
}

.dashboard-data-row:hover,
.dashboard-job-row:hover,
.dashboard-notification-row:hover {
    background: #f7f8fc;
}

.dashboard-list-main strong {
    font-size: 13px;
}

.dashboard-list-main small {
    margin-top: 2px;
    color: var(--pms-text-secondary);
    font-size: 11px;
}

.dashboard-data-row time {
    color: var(--pms-text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-data-row > .rz-icon:last-child,
.dashboard-job-row > .rz-icon:last-child {
    color: var(--pms-text-subtle);
    font-size: 18px;
}

.dashboard-data-row .status-pill {
    border: 0;
    font-size: 11px;
    white-space: nowrap;
}

.dashboard-status-received {
    background: #fff5d8;
    color: #76520b;
}

.dashboard-status-inprogress {
    background: #e3f3ea;
    color: #216e45;
}

.dashboard-status-hired {
    background: #dff3e7;
    color: #107c41;
}

.dashboard-status-rejected {
    background: #fbe7e6;
    color: #a4262c;
}

.dashboard-notification-row {
    position: relative;
    display: grid;
    min-width: 0;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--pms-border);
    background: transparent;
    color: var(--pms-text-primary);
    padding: 10px 4px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dashboard-notification-row.is-unread {
    background: #f6f6ff;
}

.dashboard-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pms-brand);
}

.dashboard-card-footer-action {
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid var(--pms-border);
    padding-top: 10px;
}

.dashboard-job-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.dashboard-job-volume {
    min-width: 76px;
    text-align: right;
}

.dashboard-job-volume strong,
.dashboard-job-volume small {
    display: block;
}

.dashboard-job-volume strong {
    font-size: 18px;
}

.dashboard-job-volume small {
    color: var(--pms-text-secondary);
    font-size: 10px;
}

.dashboard-job-volume.is-empty strong,
.dashboard-job-volume.is-empty small {
    color: #a4262c;
}

.dashboard-profile-summary,
.dashboard-supplement-unavailable {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    background: #fff8ed;
    color: #7a4a0b;
    padding: 12px;
}

.dashboard-profile-summary.is-ready {
    background: #eef8f2;
    color: #17653a;
}

.dashboard-profile-summary > .rz-icon,
.dashboard-supplement-unavailable > .rz-icon {
    margin-top: 1px;
    font-size: 21px;
}

.dashboard-profile-summary span {
    min-width: 0;
}

.dashboard-profile-summary strong,
.dashboard-profile-summary small {
    display: block;
}

.dashboard-profile-summary small {
    margin-top: 3px;
    color: var(--pms-text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

.dashboard-check-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-check-list > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pms-text-secondary);
    font-size: 12px;
}

.dashboard-check-list > div.is-complete {
    color: #17653a;
}

.dashboard-check-list .rz-icon {
    font-size: 18px;
}

.dashboard-supplement-unavailable {
    background: #f5f6f8;
    color: var(--pms-text-secondary);
    font-size: 12px;
}

.dashboard-card-empty {
    display: grid;
    min-height: 120px;
    place-items: center;
    border: 0;
    background: #fafbfc;
}

@container (max-width: 1050px) {
    .dashboard-attention-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (max-width: 650px) {
    .dashboard-attention-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-data-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dashboard-data-row .status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .dashboard-data-row time {
        grid-column: 2;
    }

    .dashboard-data-row > .rz-icon:last-child {
        grid-column: 3;
        grid-row: 1 / span 3;
    }
}

@container (max-width: 980px) {
    .dashboard-command-center {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .dashboard-command-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }
}

@media (max-width: 1180px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-span-8,
    .dashboard-span-4 {
        grid-column: span 1;
    }
}

@media (max-width: 760px) {
    .dashboard-command-center {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-command-actions {
        justify-content: flex-start;
    }

    .dashboard-kpi-grid,
    .dashboard-workspace-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .dashboard-command-actions .primary-action,
    .dashboard-command-actions .ghost-action {
        flex: 1 1 calc(50% - 8px);
    }

    .dashboard-refresh-action {
        flex: 0 0 38px;
    }

    .dashboard-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.portal-loading-state {
    display: grid;
    min-height: 100%;
    place-items: center;
    background: var(--pms-surface);
    padding: 24px;
}

.portal-loading-state .state-panel {
    display: flex;
    min-height: 0;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--pms-text-secondary);
    padding: 0;
}

.portal-loading-state .page-spinner {
    border-color: rgba(29, 111, 91, .20);
    border-top-color: #1d6f5b;
}

.portal-loading-state .state-panel h2,
.portal-loading-state .state-panel p {
    margin: 0;
}

.portal-loading-state .state-panel h2 {
    color: var(--pms-text-primary);
    font-size: 20px;
}

.portal-loading-state .state-panel p {
    max-width: 440px;
    text-align: center;
}

.dashboard-hero {
    align-items: stretch;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(91, 95, 199, .10), rgba(38, 158, 147, .08) 58%, rgba(255, 255, 255, .96)),
        #ffffff;
    padding: 20px;
}

.dashboard-hero h1 {
    max-width: 760px;
    font-size: 28px;
    line-height: 1.18;
}

.dashboard-hero p {
    margin-bottom: 0;
}

.dashboard-hero-actions {
    margin-top: 16px;
}

.workspace-last-updated {
    display: block;
    margin-top: 8px;
    color: var(--pms-text-secondary);
    font-size: 12px;
}

.partner-audit-history {
    max-width: 900px;
}

.partner-notification-open {
    position: relative;
}

.partner-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    border-radius: 999px;
    background: var(--pms-brand);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
}

.partner-notification-preferences {
    display: grid;
    gap: 10px;
}

.partner-notification-preferences label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--pms-grid-button-border);
    border-radius: 8px;
}

.partner-notification-preferences span {
    display: grid;
    gap: 3px;
}

.partner-notification-preferences small,
.partner-notification-save-status,
.partner-notifications-header p,
.partner-notification-item small {
    color: var(--pms-text-secondary);
}

.partner-notification-save-status {
    display: block;
    margin-top: 10px;
}

.partner-notifications-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

.partner-notifications-header,
.partner-notification-item,
.partner-notification-main {
    display: flex;
    align-items: center;
}

.partner-notifications-header {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.partner-notifications-header h1,
.partner-notifications-header p {
    margin: 4px 0;
}

.partner-notification-list {
    display: grid;
    gap: 8px;
}

.partner-notification-item {
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--pms-grid-button-border);
    border-radius: 8px;
    background: #fff;
}

.partner-notification-item.is-unread {
    border-color: var(--pms-brand);
    background: #f6f6ff;
}

.partner-notification-main {
    flex: 1;
    min-width: 0;
    gap: 12px;
    border: 0;
    background: transparent;
    padding: 4px;
    text-align: left;
}

.partner-notification-main > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.partner-notification-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #eef0ff;
    color: var(--pms-brand);
}

.partner-notification-main time {
    margin-left: auto;
    color: var(--pms-text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.partner-notification-read {
    font-size: 12px;
}

.partner-notification-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.partner-audit-history-header {
    margin-bottom: 16px;
}

.partner-audit-history-header h2 {
    margin: 4px 0;
    font-size: 20px;
}

.partner-audit-history-header p {
    margin: 0;
    color: var(--pms-text-secondary);
}

.partner-audit-timeline {
    display: grid;
    gap: 8px;
}

.partner-audit-record {
    overflow: hidden;
    border: 1px solid var(--pms-grid-button-border);
    border-radius: 8px;
    background: #fff;
}

.partner-audit-record-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    width: 100%;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 12px;
    text-align: left;
}

.partner-audit-record-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #eef0ff;
    color: var(--pms-brand);
}

.partner-audit-record-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.partner-audit-record-copy span,
.partner-audit-record-toggle time {
    color: var(--pms-text-secondary);
    font-size: 12px;
}

.partner-audit-record-toggle time {
    white-space: nowrap;
}

.partner-audit-record-details {
    border-top: 1px solid #edf0f4;
    padding: 12px 16px 14px 52px;
}

.partner-audit-detail-label {
    color: var(--pms-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.partner-audit-record-details ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.partner-audit-record-details li {
    margin: 3px 0;
}

.partner-audit-load-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

@media (max-width: 640px) {
    .partner-audit-record-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .partner-audit-record-toggle time {
        grid-column: 2;
    }

    .partner-audit-record-details {
        padding-left: 16px;
    }
}

.dashboard-hero-signal {
    display: grid;
    min-width: 172px;
    align-content: center;
    justify-items: end;
    border-left: 1px solid rgba(91, 95, 199, .18);
    padding-left: 20px;
}

.dashboard-hero-signal span {
    color: var(--pms-text-secondary);
    font-size: 12px;
    font-weight: 750;
}

.dashboard-hero-signal strong {
    color: var(--pms-brand);
    font-size: 42px;
    line-height: 1;
}

.sso-account-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    border: 1px solid #a9d7cb;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef9f5, #f9fffc);
    padding: 18px 20px;
}

.sso-account-callout-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #1d6f5b;
    color: #ffffff;
}

.sso-account-callout-copy h2 {
    margin: 2px 0 4px;
    color: var(--pms-text-primary);
    font-size: 18px;
    line-height: 1.3;
}

.sso-account-callout-copy p {
    margin: 0;
    color: var(--pms-text-secondary);
    line-height: 1.45;
}

@media (max-width: 700px) {
    .sso-account-callout {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sso-account-callout .primary-action {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

.dashboard-grid,
.form-grid,
.report-grid {
    display: grid;
    gap: 12px;
}

.metric-stack {
    width: 100%;
    margin-bottom: 24px;
}

.metric-stack-item {
    display: flex;
}

.metric-stack-item > .metric-card {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
}

.dashboard-grid,
.report-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.panel,
.table-shell,
.empty-state,
.state-panel {
    border: 1px solid var(--pms-border);
    border-radius: 8px;
    background: var(--pms-surface);
}

.metric-card {
    position: relative;
    display: grid;
    min-height: 116px;
    align-content: space-between;
    overflow: hidden;
    padding: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.metric-card:hover {
    border-color: #ced3e6;
    box-shadow: 0 8px 24px rgba(24, 28, 34, .08);
    transform: translateY(-1px);
}

.metric-card-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
}

.metric-card-icon .rz-icon {
    font-size: 18px;
}

.metric-card span {
    max-width: calc(100% - 38px);
    color: var(--pms-text-secondary);
    font-weight: 650;
    line-height: 1.25;
}

.metric-card strong {
    margin-top: 16px;
    font-size: 34px;
    line-height: 1;
}

.metric-card small {
    margin-top: 8px;
    overflow: hidden;
    color: var(--pms-text-subtle);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card.accent {
    border-color: #b9d8cc;
    background: #f2faf7;
}

.metric-card.accent .metric-card-icon {
    background: #dff3eb;
    color: #1d6f5b;
}

.panel {
    padding: 16px;
}

.dashboard-chart-panel,
.dashboard-status-panel {
    min-height: 360px;
}

.dashboard-status-panel {
    min-width: 0;
    container-type: inline-size;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-heading h2 {
    margin: 4px 0 0;
}

.panel-heading > strong {
    display: inline-flex;
    min-width: 44px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
    font-size: 18px;
}

.panel.wide {
    grid-column: 1 / -1;
}

.panel h2 {
    margin-bottom: 14px;
    font-size: 16px;
}

.trend-bars {
    display: grid;
    height: 120px;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 10px;
}

.trend-bars span {
    min-height: 18px;
    border-radius: 5px 5px 0 0;
    background: var(--pms-brand);
}

.status-list {
    display: grid;
    min-width: 0;
    width: 100%;
    gap: 8px;
}

.status-dashboard {
    display: grid;
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.status-dashboard > * {
    min-width: 0;
    max-width: 100%;
}

.status-list div,
.detail-list div {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--pms-border);
    padding-bottom: 8px;
}

.status-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-list strong {
    flex: 0 0 auto;
}

.status-list div:last-child,
.detail-list div:last-child {
    border-bottom: 0;
}

.partner-dashboard-chart,
.partner-status-chart {
    --rz-chart-axis-stroke: #d8dbe7;
    --rz-chart-grid-stroke: #eceef5;
}

@container (max-width: 400px) {
    .status-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    .partner-status-chart {
        width: min(100%, 260px) !important;
        margin-inline: auto;
    }
}

.partner-dashboard-chart text,
.partner-status-chart text {
    font-family: var(--pms-font-family) !important;
    font-size: 12px;
}

.partner-dashboard-chart .rz-series-data-label text,
.partner-dashboard-chart .rz-data-label text,
.partner-status-chart .rz-series-data-label text,
.partner-status-chart .rz-data-label text {
    fill: #202124;
    font-size: 12px;
    font-weight: 700;
}

.table-shell {
    overflow: auto;
}

.partner-applications-grid {
    overflow: hidden;
    border: 1px solid var(--pms-border);
    border-radius: 8px;
    background: var(--pms-surface);
}

.partner-applications-grid .rz-cell-data {
    white-space: normal;
}

.grid-person-cell {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.grid-person-cell strong {
    color: var(--pms-text);
    font-weight: 800;
}

.grid-person-cell span {
    overflow: hidden;
    color: var(--pms-text-soft);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--pms-border);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--pms-surface-muted);
    color: var(--pms-text-secondary);
    font-size: 12px;
    font-weight: 750;
}

td span {
    display: block;
    color: var(--pms-text-secondary);
    font-size: 12px;
}

.toolbar-controls,
.header-actions,
.row-actions,
.attachment-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-input,
.filter-select,
.field input,
.field select,
.field textarea {
    min-height: 34px;
    border: 1px solid var(--pms-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--pms-text-primary);
    padding: 7px 9px;
}

.search-input {
    min-width: 240px;
}

.row-status-select {
    min-width: 120px;
}

.custom-datagrid {
    overflow: hidden !important;
    border: 1px solid var(--pms-border) !important;
    border-radius: 8px !important;
    background: var(--pms-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04) !important;
}

.custom-datagrid.grid-fullheight {
    display: flex !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-self: stretch !important;
}

.custom-datagrid.grid-fullheight .rz-datatable-header,
.custom-datagrid.grid-fullheight .rz-data-grid-header,
.custom-datagrid.grid-fullheight .rz-grid-header,
.custom-datagrid.grid-fullheight .rz-pager,
.custom-datagrid.grid-fullheight .rz-paginator {
    flex: 0 0 auto !important;
}

.custom-datagrid.grid-fullheight .rz-data-grid-data,
.custom-datagrid.grid-fullheight .rz-grid-data,
.custom-datagrid.grid-fullheight .rz-datatable-data {
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: auto !important;
}

.custom-datagrid .rz-data-grid,
.custom-datagrid .rz-datatable,
.custom-datagrid .rz-grid-table {
    border: 0 !important;
    background: var(--pms-surface) !important;
}

.custom-datagrid .rz-data-grid-table,
.custom-datagrid .rz-grid-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
}

.custom-datagrid .rz-data-grid-thead th,
.custom-datagrid .rz-grid-table thead th,
.custom-datagrid .rz-column-title {
    background: #f7f8fb !important;
    color: var(--pms-text-secondary) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 14px !important;
}

.custom-datagrid .rz-data-grid-thead th,
.custom-datagrid .rz-grid-table thead th {
    box-sizing: border-box !important;
    height: 38px !important;
    border-bottom: 1px solid var(--pms-border) !important;
    padding: 4px 10px !important;
    vertical-align: middle !important;
}

.custom-datagrid .rz-grid-table thead th > div:not(.rz-cell-filter),
.custom-datagrid .rz-data-grid-thead th > div:not(.rz-cell-filter) {
    box-sizing: border-box !important;
    align-items: center !important;
    padding: 0 !important;
}

.custom-datagrid .rz-grid-table thead th .rz-column-title,
.custom-datagrid .rz-data-grid-thead th .rz-column-title {
    gap: 4px !important;
    margin: 0 !important;
    padding-inline: 0 !important;
}

.custom-datagrid .rz-grid-table thead th .rz-column-title-content,
.custom-datagrid .rz-data-grid-thead th .rz-column-title-content {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-datagrid .rz-data-grid-data td,
.custom-datagrid .rz-grid-table td {
    box-sizing: border-box !important;
    min-height: 38px !important;
    height: 38px !important;
    border-bottom: 1px solid #edf0f4 !important;
    color: #2f3440 !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 15px !important;
    vertical-align: middle !important;
}

.custom-datagrid .rz-data-grid-data td .rz-cell-data,
.custom-datagrid .rz-grid-table td .rz-cell-data,
.custom-datagrid .rz-data-grid-data td .rz-link,
.custom-datagrid .rz-grid-table td .rz-link,
.custom-datagrid .rz-data-grid-data td a,
.custom-datagrid .rz-grid-table td a,
.custom-datagrid .rz-data-grid-data td .rz-label,
.custom-datagrid .rz-grid-table td .rz-label {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 500 !important;
}

.custom-datagrid .rz-data-grid-data tr:hover > td,
.custom-datagrid .rz-grid-table tr:hover > td,
.custom-datagrid .rz-data-grid-data tr.rz-state-hover > td,
.custom-datagrid .rz-grid-table tr.rz-state-hover > td {
    background: var(--pms-grid-row-hover) !important;
    color: var(--pms-text-primary) !important;
}

.partner-applications-grid .rz-data-grid-data tr:not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-grid-table tbody tr:not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-datatable-data tr:not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-data-grid-data tr.rz-datatable-even:not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-data-grid-data tr.rz-datatable-odd:not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-grid-table tbody tr.rz-datatable-even:not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-grid-table tbody tr.rz-datatable-odd:not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-data-grid-data tr:nth-child(even):not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-data-grid-data tr:nth-child(odd):not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-grid-table tbody tr:nth-child(even):not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td,
.partner-applications-grid .rz-grid-table tbody tr:nth-child(odd):not(:hover):not(.rz-state-hover):not(.rz-state-highlight):not(.rz-state-selected):not([aria-selected="true"]) > td {
    background: var(--pms-surface) !important;
}

.custom-datagrid-header .rz-data-grid-data tr.rz-state-highlight > td,
.custom-datagrid-header .rz-grid-table tr.rz-state-highlight > td,
.custom-datagrid-header .rz-data-grid-data tr.rz-state-selected > td,
.custom-datagrid-header .rz-grid-table tr.rz-state-selected > td,
.custom-datagrid-header .rz-data-grid-data tr[aria-selected="true"] > td,
.custom-datagrid-header .rz-grid-table tr[aria-selected="true"] > td {
    background: var(--pms-grid-row-selected) !important;
    color: var(--pms-text-primary) !important;
}

.custom-datagrid-header .rz-data-grid-data tr.rz-state-highlight:hover > td,
.custom-datagrid-header .rz-grid-table tr.rz-state-highlight:hover > td,
.custom-datagrid-header .rz-data-grid-data tr.rz-state-highlight.rz-state-hover > td,
.custom-datagrid-header .rz-grid-table tr.rz-state-highlight.rz-state-hover > td,
.custom-datagrid-header .rz-data-grid-data tr.rz-state-selected:hover > td,
.custom-datagrid-header .rz-grid-table tr.rz-state-selected:hover > td,
.custom-datagrid-header .rz-data-grid-data tr.rz-state-selected.rz-state-hover > td,
.custom-datagrid-header .rz-grid-table tr.rz-state-selected.rz-state-hover > td,
.custom-datagrid-header .rz-data-grid-data tr[aria-selected="true"]:hover > td,
.custom-datagrid-header .rz-grid-table tr[aria-selected="true"]:hover > td,
.custom-datagrid-header .rz-data-grid-data tr[aria-selected="true"].rz-state-hover > td,
.custom-datagrid-header .rz-grid-table tr[aria-selected="true"].rz-state-hover > td {
    background: var(--pms-grid-row-selected-hover) !important;
    color: var(--pms-text-primary) !important;
}

.partner-applications-grid .rz-data-grid-data tr:hover > td,
.partner-applications-grid .rz-grid-table tr:hover > td,
.partner-applications-grid .rz-data-grid-data tr.rz-state-hover > td,
.partner-applications-grid .rz-grid-table tr.rz-state-hover > td {
    background: var(--pms-grid-row-hover) !important;
    color: var(--pms-text-primary) !important;
}

.partner-applications-grid .rz-data-grid-data tr.rz-state-highlight:hover > td,
.partner-applications-grid .rz-grid-table tr.rz-state-highlight:hover > td,
.partner-applications-grid .rz-data-grid-data tr.rz-state-highlight.rz-state-hover > td,
.partner-applications-grid .rz-grid-table tr.rz-state-highlight.rz-state-hover > td,
.partner-applications-grid .rz-data-grid-data tr.rz-state-selected:hover > td,
.partner-applications-grid .rz-grid-table tr.rz-state-selected:hover > td,
.partner-applications-grid .rz-data-grid-data tr.rz-state-selected.rz-state-hover > td,
.partner-applications-grid .rz-grid-table tr.rz-state-selected.rz-state-hover > td,
.partner-applications-grid .rz-data-grid-data tr[aria-selected="true"]:hover > td,
.partner-applications-grid .rz-grid-table tr[aria-selected="true"]:hover > td,
.partner-applications-grid .rz-data-grid-data tr[aria-selected="true"].rz-state-hover > td,
.partner-applications-grid .rz-grid-table tr[aria-selected="true"].rz-state-hover > td {
    background: var(--pms-grid-row-selected-hover) !important;
    color: var(--pms-text-primary) !important;
}

.custom-datagrid .rz-data-grid-data tr:last-child > td,
.custom-datagrid .rz-grid-table tbody tr:last-child > td {
    border-bottom-color: transparent !important;
}

.custom-datagrid .rz-data-grid-thead th:last-child,
.custom-datagrid .rz-grid-table thead th:last-child,
.custom-datagrid .rz-data-grid-data td:has(.pms-grid-row-actions-button),
.custom-datagrid .rz-grid-table td:has(.pms-grid-row-actions-button),
.partner-applications-grid .rz-data-grid-data td:last-child,
.partner-applications-grid .rz-grid-table td:last-child {
    padding-left: 6px !important;
    padding-right: 6px !important;
    text-align: center !important;
}

.custom-datagrid .rz-paginator,
.custom-datagrid .rz-pager {
    min-height: 40px !important;
    border-top: 1px solid var(--pms-border) !important;
    background: var(--pms-surface) !important;
    padding: 6px 10px 6px 16px !important;
}

.custom-datagrid .rz-paginator .rz-paginator-summary,
.custom-datagrid .rz-paginator .rz-paging-summary,
.custom-datagrid .rz-pager .rz-pager-summary {
    margin-left: 0 !important;
    padding-inline-start: 0 !important;
    color: #4b5563 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 14px !important;
}

.custom-datagrid .rz-paginator .rz-paginator-element,
.custom-datagrid .rz-pager .rz-pager-element,
.custom-datagrid .rz-pager .rz-pager-page {
    min-width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--pms-text-secondary) !important;
    font-weight: 650 !important;
}

.custom-datagrid .rz-paginator .rz-state-active,
.custom-datagrid .rz-paginator .rz-paginator-element.rz-state-active,
.custom-datagrid .rz-pager .rz-state-active,
.custom-datagrid .rz-pager .rz-pager-element.rz-state-active,
.custom-datagrid .rz-pager .rz-pager-page.rz-state-active {
    background: #f1f3f7 !important;
    color: var(--pms-text-primary) !important;
}

.custom-datagrid .pms-grid-row-actions-group {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.custom-datagrid .pms-grid-row-actions-button.rz-button {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    border: 1px solid var(--pms-grid-button-border) !important;
    border-radius: 6px !important;
    background: var(--pms-surface) !important;
    color: #8a93a3 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.custom-datagrid .pms-grid-row-actions-button.rz-button:hover,
.custom-datagrid .pms-grid-row-actions-button.rz-button:focus-visible {
    border-color: rgba(179, 38, 30, .28) !important;
    background: #fceeee !important;
    color: var(--pms-danger) !important;
}

.custom-datagrid .pms-grid-row-actions-button .rz-button-icon,
.custom-datagrid .pms-grid-row-actions-button .rz-button-icon-left {
    margin: 0 !important;
    color: currentColor !important;
    font-size: 18px !important;
    line-height: 18px !important;
}

.partner-applications-grid .rz-cell-data {
    white-space: normal;
}

.custom-datagrid-header .rz-datatable-header,
.custom-datagrid-header .rz-data-grid-header,
.custom-datagrid-header .rz-grid-header,
.custom-datagrid-header > .rz-data-grid-header,
.partner-applications-grid .rz-data-grid-header,
.partner-applications-grid .rz-grid-header,
.partner-applications-grid .rz-group-header,
.partner-jobs-grid .rz-data-grid-header,
.partner-jobs-grid .rz-grid-header,
.partner-jobs-grid .rz-group-header {
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: calc(var(--pms-grid-control-height) + 16px) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pms-border) !important;
    background: var(--pms-surface) !important;
    padding: 8px !important;
    overflow: visible !important;
}

.partner-applications-grid .rz-data-grid-header:has(.partner-grid-header),
.partner-applications-grid .rz-datatable-header:has(.partner-grid-header),
.partner-applications-grid .rz-grid-header:has(.partner-grid-header),
.partner-applications-grid .rz-group-header:has(.partner-grid-header),
.partner-jobs-grid .rz-data-grid-header:has(.partner-grid-header),
.partner-jobs-grid .rz-datatable-header:has(.partner-grid-header),
.partner-jobs-grid .rz-grid-header:has(.partner-grid-header),
.partner-jobs-grid .rz-group-header:has(.partner-grid-header) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

.partner-applications-grid .rz-data-grid-header:has(.partner-grid-header) > *,
.partner-applications-grid .rz-datatable-header:has(.partner-grid-header) > *,
.partner-applications-grid .rz-grid-header:has(.partner-grid-header) > *,
.partner-applications-grid .rz-group-header:has(.partner-grid-header) > *,
.partner-jobs-grid .rz-data-grid-header:has(.partner-grid-header) > *,
.partner-jobs-grid .rz-datatable-header:has(.partner-grid-header) > *,
.partner-jobs-grid .rz-grid-header:has(.partner-grid-header) > *,
.partner-jobs-grid .rz-group-header:has(.partner-grid-header) > * {
    width: 100% !important;
    max-width: none !important;
}

.partner-grid-header {
    display: grid;
    box-sizing: border-box;
    gap: 6px;
    width: 100% !important;
    min-width: 0;
    padding: 0;
    background: transparent;
    border-bottom: 0;
}

.partner-grid-header .page-header {
    display: flex !important;
    align-items: center;
    gap: 18px;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    margin-bottom: 0;
    padding: 0;
}

.partner-grid-title {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.partner-grid-eyebrow {
    display: inline-flex;
    width: fit-content;
    color: var(--pms-brand);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 12px;
    text-transform: uppercase;
}

.partner-grid-header .page-header h1 {
    margin: 0;
    color: var(--pms-text-primary);
    font-size: 18px;
    font-weight: 750;
    line-height: 22px;
}

.partner-grid-header .page-header p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--pms-text-secondary);
    font-size: 11px;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-grid-header .toolbar-controls {
    display: flex;
    width: min(620px, 48vw);
    min-width: 0;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: var(--pms-grid-control-gap);
}

.partner-grid-header .workspace-last-updated {
    margin-top: 0;
    white-space: nowrap;
}

.partner-grid-header .search-input {
    width: min(360px, 32vw);
    height: var(--pms-grid-control-height);
    min-height: var(--pms-grid-control-height);
    border-radius: 4px;
    font-size: 11px;
    line-height: 14px;
    padding: 0 10px;
}

.partner-grid-header .toolbar-controls .search-input {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}

.partner-grid-header .toolbar-controls > :is(.search-input, .filter-select, .ghost-action) {
    box-sizing: border-box;
    height: var(--pms-grid-control-height);
    min-height: var(--pms-grid-control-height);
    max-height: var(--pms-grid-control-height);
}

.partner-grid-header .page-header > .search-input {
    margin-left: auto;
    flex: 0 0 auto;
}

.partner-grid-header .filter-select {
    width: 126px;
    height: var(--pms-grid-control-height);
    min-height: var(--pms-grid-control-height);
    border-radius: 4px;
    font-size: 11px;
    line-height: 14px;
    padding: 0 8px;
}

.partner-grid-header .partner-grid-refresh-button {
    flex: 0 0 auto;
    min-height: var(--pms-grid-control-height);
    padding: 0 10px;
    white-space: nowrap;
}

.partner-grid-header .status-message {
    margin-bottom: 0;
}

.partner-applications-grid select.row-status-select {
    display: block !important;
    box-sizing: border-box !important;
    width: 150px !important;
    min-width: 0 !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 auto !important;
    border: 1px solid var(--pms-grid-button-border) !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    color: var(--pms-text-primary) !important;
    padding: 0 28px 0 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 28px !important;
    vertical-align: middle !important;
}

.partner-applications-grid select.row-status-select.progress-new {
    border-color: #8bb8e8 !important;
    background-color: #eef6ff !important;
    color: #0f5f9f !important;
}

.partner-applications-grid select.row-status-select.progress-received {
    border-color: #e5c46b !important;
    background-color: #fff8e6 !important;
    color: #7a5600 !important;
}

.partner-applications-grid select.row-status-select.progress-inprogress {
    border-color: #8ac6a3 !important;
    background-color: #edf8f1 !important;
    color: #107c41 !important;
}

.partner-applications-grid select.row-status-select.progress-hired {
    border-color: #107c41 !important;
    background-color: #107c41 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.partner-applications-grid select.row-status-select.progress-rejected {
    border-color: #b3261e !important;
    background-color: #b3261e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.partner-applications-grid select.row-status-select.progress-hired option,
.partner-applications-grid select.row-status-select.progress-rejected option {
    background-color: #ffffff;
    color: var(--pms-text-primary);
}

.partner-applications-grid select.row-status-select:focus,
.partner-applications-grid select.row-status-select:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(91, 95, 199, .18) !important;
}

.partner-applications-grid .rz-data-grid-data td:has(.row-status-select),
.partner-applications-grid .rz-grid-table td:has(.row-status-select) {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    vertical-align: middle !important;
}

.partner-applications-grid th:last-child .rz-column-title,
.partner-applications-grid th:last-child .rz-column-title-content {
    justify-content: center !important;
    text-align: center !important;
}

.partner-jobs-grid .partner-grid-actions {
    width: 100%;
    justify-content: center;
}

.partner-jobs-planning-page {
    display: grid;
    height: 100%;
    gap: 1rem;
    min-width: 0;
    min-height: 100%;
    box-sizing: border-box;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
}

.partner-jobs-planning-header {
    align-items: flex-start;
    margin-bottom: 0;
}

.partner-jobs-planning-header p {
    max-width: 760px;
    margin: .3rem 0 0;
    color: var(--pms-text-secondary, #616161);
}

.partner-jobs-planning-page > .job-availability-visualization {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
    align-content: stretch;
}

.partner-jobs-planning-page > .job-availability-visualization > .job-availability-visualization-header { grid-row: 1; }
.partner-jobs-planning-page > .job-availability-visualization > .job-availability-visualization-toolbar { grid-row: 2; }
.partner-jobs-planning-page > .job-availability-visualization > .job-availability-visualization-kpis { grid-row: 3; }
.partner-jobs-planning-page > .job-availability-visualization > :is(.job-availability-calendar, .job-availability-week-view, .job-availability-cumulative, .job-availability-visualization-empty) { grid-row: 4; }
.partner-jobs-planning-page > .job-availability-visualization > .job-availability-visualization-legend { grid-row: 6; }
.partner-jobs-planning-page > .job-availability-visualization > .job-availability-selection { grid-row: 7; }

@media (max-width: 760px) {
    .partner-jobs-planning-page {
        height: auto;
        grid-template-rows: auto auto;
    }

    .partner-jobs-planning-page > .job-availability-visualization {
        height: auto;
        grid-template-rows: none;
    }

    .partner-jobs-planning-page > .job-availability-visualization > :is(.job-availability-visualization-header, .job-availability-visualization-toolbar, .job-availability-visualization-kpis, .job-availability-calendar, .job-availability-week-view, .job-availability-cumulative, .job-availability-visualization-empty, .job-availability-visualization-legend, .job-availability-selection) {
        grid-row: auto;
    }
}

.dashboard-availability-panel {
    display: grid;
    gap: .8rem;
    min-width: 0;
}

.dashboard-availability-panel .job-availability-visualization {
    box-shadow: none;
}

.partner-applications-grid .partner-grid-actions {
    display: inline-flex !important;
    width: 100%;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

.partner-applications-grid .partner-grid-view-button,
.partner-applications-grid .partner-grid-delete-button {
    min-height: 30px !important;
    height: 30px !important;
    border: 1px solid var(--pms-grid-button-border) !important;
    border-radius: 6px !important;
    background: var(--pms-surface) !important;
    box-shadow: none !important;
    color: var(--pms-text-primary) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 14px !important;
}

.partner-applications-grid .partner-grid-view-button {
    padding: 0 10px !important;
}

.partner-applications-grid .partner-grid-delete-button {
    width: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    color: var(--pms-danger) !important;
}

.partner-applications-grid .partner-grid-view-button:hover,
.partner-applications-grid .partner-grid-view-button:focus-visible {
    border-color: var(--pms-brand) !important;
    background: var(--pms-grid-button-hover) !important;
    color: var(--pms-brand) !important;
}

.partner-applications-grid .partner-grid-delete-button:hover,
.partner-applications-grid .partner-grid-delete-button:focus-visible {
    border-color: rgba(179, 38, 30, .28) !important;
    background: #fceeee !important;
    color: var(--pms-danger) !important;
}

.partner-applications-grid .partner-grid-view-button .rz-icon,
.partner-applications-grid .partner-grid-delete-button .rz-icon {
    margin: 0 !important;
    color: currentColor !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
}

.partner-applications-grid .partner-grid-view-button span {
    display: inline;
    color: currentColor;
    font-size: inherit;
    line-height: inherit;
}

.primary-action,
.ghost-action,
.ghost-topbar-action,
.icon-text-action,
.icon-action,
.attachment-button,
.auth-link-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    padding: 0 12px;
    text-decoration: none;
}

.primary-action {
    border: 1px solid var(--pms-brand);
    background: var(--pms-brand);
    color: #fff;
    font-weight: 700;
}

.ghost-action,
.ghost-topbar-action,
.icon-text-action,
.attachment-button,
.auth-link-button {
    border: 1px solid var(--pms-border-strong);
    background: #fff;
    color: var(--pms-text-primary);
}

.icon-action {
    width: 34px;
    border: 1px solid var(--pms-border-strong);
    background: #fff;
    color: var(--pms-text-secondary);
    padding: 0;
}

.icon-action.danger {
    color: var(--pms-danger);
}

.topbar-icon-action {
    flex: 0 0 34px;
}

.pms-teams-topbar .language-switcher.language-switcher {
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
}

.pms-teams-topbar .language-switcher.language-switcher button.selected {
    background: rgba(215, 239, 114, .92);
    box-shadow: inset 0 0 0 1px rgba(23, 32, 27, .18);
}

.pms-teams-topbar .language-switcher.language-switcher button:hover {
    background: rgba(255, 255, 255, .18);
}

.pms-teams-topbar .language-switcher.language-switcher button.selected:hover {
    background: #d7ef72;
}

.pms-teams-topbar .language-switcher.language-switcher button:focus-visible,
.pms-teams-topbar .topbar-icon-action:focus-visible {
    outline: 2px solid #d7ef72;
    outline-offset: 2px;
}

.pms-teams-topbar .account-chip {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .10);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.pms-teams-topbar .account-chip > span {
    background: #d7ef72;
    color: #17201b;
}

.pms-teams-topbar .account-chip strong {
    color: #ffffff;
}

.pms-teams-topbar .account-chip small {
    color: #e2ede6;
}

.pms-teams-topbar .topbar-icon-action {
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
}

.pms-teams-topbar .topbar-icon-action:hover:not(:disabled) {
    border-color: rgba(215, 239, 114, .7);
    background: rgba(255, 255, 255, .20);
    color: #d7ef72;
}

.status-pill {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 750;
}

.status-pill.green {
    background: #e7f6ee;
    color: var(--pms-success);
}

.status-pill.muted {
    background: #f1f1f1;
    color: var(--pms-text-secondary);
}

.form-grid .field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.field.full {
    width: 100%;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.field-row.compact {
    grid-template-columns: 120px minmax(0, 1fr);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.detail-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.detail-list dt {
    color: var(--pms-text-secondary);
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
    text-align: right;
}

.report-message {
    white-space: pre-wrap;
}

.empty-state,
.state-panel {
    padding: 24px;
    color: var(--pms-text-secondary);
}

.empty-state.compact {
    padding: 18px;
}

.state-panel {
    display: grid;
    min-height: 240px;
    place-items: center;
    text-align: center;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 700;
}

.status-message.info {
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
}

.status-message.success {
    background: #e7f6ee;
    color: var(--pms-success);
}

.status-message.danger {
    background: #fceeee;
    color: var(--pms-danger);
}

.processing-spinner,
.page-spinner,
.topbar-spinner {
    display: inline-block;
    border-radius: 999px;
    border: 2px solid rgba(91, 95, 199, .22);
    border-top-color: var(--pms-brand);
    animation: finpleo-spin .8s linear infinite;
}

.processing-spinner {
    width: 18px;
    height: 18px;
}

.processing-spinner.small,
.topbar-spinner {
    width: 14px;
    height: 14px;
}

.processing-spinner.light {
    border-color: rgba(255, 255, 255, .42);
    border-top-color: #fff;
}

.page-spinner {
    width: 42px;
    height: 42px;
    border-width: 3px;
}

.account-chip {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--pms-border);
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
}

.account-chip > span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
    font-size: 11px;
    font-weight: 800;
}

.account-chip div {
    display: grid;
    min-width: 0;
}

.account-chip strong,
.account-chip small {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-chip small {
    color: var(--pms-text-secondary);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, .88fr) minmax(480px, 1.12fr);
    background: var(--pms-app-bg);
}

.auth-hero,
.auth-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 5vw, 64px);
}

.auth-hero {
    position: relative;
    justify-content: flex-start;
    gap: clamp(96px, 17vh, 180px);
    border-right: 1px solid #2b6354;
    background:
        radial-gradient(circle at 72% 22%, rgba(215, 239, 114, .36), transparent 28%),
        linear-gradient(135deg, #17201b, #1d6f5b);
    user-select: none;
}

.auth-hero-copy {
    max-width: 600px;
}

.auth-hero h1 {
    max-width: 560px;
    margin-bottom: 22px;
    color: #ffffff;
    font-size: clamp(40px, 4.4vw, 64px);
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: 0;
}

.auth-hero p {
    max-width: 460px;
    color: #e2ede6;
    font-size: 17px;
    line-height: 1.55;
}

.auth-panel {
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, #f8f8f8 0%, #f2f2f2 100%);
}

.auth-top {
    width: min(100%, 440px);
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.auth-card {
    box-sizing: border-box;
    width: min(100%, 440px);
    border: 1px solid var(--pms-border);
    border-radius: 8px;
    background: #fff;
    padding: 24px 34px;
    box-shadow: 0 18px 46px rgba(24, 28, 34, .10);
}

.auth-card h2 {
    margin-bottom: 14px;
    color: #202124;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.2;
}

.auth-form-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--pms-brand);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-hero .auth-form-kicker {
    color: #d7ef72;
}

.auth-copy {
    margin-bottom: 16px;
    color: var(--pms-text-secondary);
    line-height: 1.5;
}

.auth-card .field {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
}

.auth-card .field span,
.auth-card .check-row span {
    color: var(--pms-text-primary);
    font-size: 13px;
    font-weight: 650;
}

.auth-card .field input {
    width: 100%;
    min-height: 42px;
    border-color: #c9ccd6;
    border-radius: 7px;
    font-size: 15px;
}

.auth-card .field input:focus {
    border-color: var(--pms-brand);
    box-shadow: 0 0 0 3px rgba(91, 95, 199, .16);
    outline: none;
}

.auth-field-hint {
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.forgot-password-link {
    display: inline-flex;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    margin: -2px 0 10px;
    color: var(--pms-brand);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.forgot-password-link:hover,
.forgot-password-link:focus-visible {
    color: var(--pms-brand-strong);
    text-decoration: underline;
}

.forgot-password-link:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.auth-card .check-row {
    margin: 2px 0 14px;
}

.auth-card .primary-action {
    min-height: 42px;
    border-radius: 7px;
    font-size: 14px;
}

.auth-card .auth-link-button {
    min-height: 42px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.auth-registration-prompt {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    border-top: 1px solid var(--pms-border);
    padding-top: 14px;
    text-align: center;
}

.auth-registration-prompt > span {
    color: var(--pms-text-secondary);
    font-size: 13px;
}

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

    .auth-hero {
        min-height: auto;
        gap: 0;
        border-right: 0;
        border-bottom: 1px solid #2b6354;
        padding: 18px 20px;
    }

    .auth-hero-copy {
        display: none;
    }

    .auth-panel {
        min-height: calc(100vh - 87px);
        justify-content: flex-start;
        padding: 20px;
    }

    .auth-top {
        margin-bottom: 10px;
    }

    .auth-card {
        padding: 22px 20px;
    }
}

.full-width {
    width: 100%;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--pms-brand);
    color: #fff;
    font-weight: 850;
}

.brand-lockup div:last-child {
    display: grid;
    gap: 2px;
}

.brand-lockup strong {
    font-size: 16px;
}

.brand-lockup span {
    color: var(--pms-text-secondary);
    font-size: 14px;
}

.auth-hero .brand-lockup strong {
    color: #ffffff;
}

.auth-hero .brand-lockup span {
    color: #e2ede6;
}

#blazor-error-ui {
    display: none;
}

@keyframes finpleo-spin {
    to {
        transform: rotate(360deg);
    }
}

.pms-user-settings-page {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    background: var(--pms-surface);
    color: var(--pms-text-primary);
}

.pms-user-settings-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--pms-border);
    padding: 16px 24px;
}

.pms-user-settings-header h1 {
    margin: 0;
    color: var(--pms-text-primary);
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

.pms-user-settings-header small,
.pms-user-settings-kicker {
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

.pms-user-settings-kicker {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.pms-user-settings-shell {
    display: grid;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-columns: 220px minmax(0, 1fr);
}

.pms-user-settings-nav {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid var(--pms-border);
    background: var(--pms-surface-muted);
    padding: 12px 8px;
}

.pms-user-settings-nav-item {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--pms-text-primary);
    padding: 0 10px;
    text-align: left;
}

.pms-user-settings-nav-item:hover,
.pms-user-settings-nav-item:focus-visible {
    background: var(--pms-surface-hover);
    outline: none;
}

.pms-user-settings-nav-item.is-active {
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
    font-weight: 600;
}

.pms-user-settings-nav-item .rz-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.pms-user-settings-content {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 24px;
}

.pms-user-settings-section {
    display: flex;
    width: min(760px, 100%);
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.pms-user-settings-section > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--pms-border);
    padding-bottom: 12px;
}

.pms-user-settings-section > header span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.pms-user-settings-section > header strong {
    color: var(--pms-text-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

.pms-user-settings-section > header small {
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

.pms-user-settings-row {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--pms-border);
    padding-bottom: 16px;
}

.pms-user-settings-row strong,
.pms-user-settings-row small {
    display: block;
}

.pms-user-settings-row strong {
    color: var(--pms-text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.pms-user-settings-row small {
    margin-top: 2px;
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

.pms-user-settings-row output {
    min-width: 64px;
    color: var(--pms-brand);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: right;
}

.pms-user-settings-control {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 12px;
}

.pms-user-settings-control input[type="range"] {
    width: 100%;
    accent-color: var(--pms-brand);
}

.pms-user-settings-control input[type="number"] {
    width: 96px;
    min-height: 32px;
    border: 1px solid var(--pms-border-strong);
    border-radius: 4px;
    background: var(--pms-surface);
    color: var(--pms-text-primary);
    padding: 4px 8px;
}

.pms-user-settings-control input[type="number"]:focus {
    border-color: var(--pms-brand);
    outline: none;
}

.pms-user-settings-actions {
    display: flex;
    justify-content: flex-start;
}

.pms-user-settings-actions button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--pms-border-strong);
    border-radius: 4px;
    background: var(--pms-surface);
    color: var(--pms-text-primary);
    padding: 0 10px;
}

.pms-user-settings-actions button:hover,
.pms-user-settings-actions button:focus-visible {
    border-color: var(--pms-border-strong);
    background: var(--pms-surface-hover);
    outline: none;
}

.pms-partner-profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pms-partner-profile-form .field input,
.pms-partner-profile-form .field textarea,
.pms-partner-profile-email-row input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--pms-border-strong);
    border-radius: 4px;
    background: var(--pms-surface);
    color: var(--pms-text-primary);
    padding: 6px 9px;
}

.pms-partner-profile-form .field input:focus,
.pms-partner-profile-form .field textarea:focus,
.pms-partner-profile-email-row input:focus {
    border-color: var(--pms-brand);
    outline: none;
}

.pms-partner-profile-content-editor {
    display: flex;
    min-height: 360px;
    height: min(60vh, 560px);
    flex-direction: column;
}

.pms-partner-profile-content-editor .html-editor-shell,
.pms-partner-profile-content-editor .rz-html-editor {
    min-height: 0;
    height: 100%;
}

.pms-partner-profile-content-editor .rz-html-editor {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.pms-partner-profile-content-editor .rz-html-editor-content {
    min-height: 0;
    flex: 1 1 auto;
}

.partner-content-editor-shell {
    position: relative;
}

.partner-content-document-input {
    display: none;
}

.partner-content-editor-shell .rz-html-editor-toolbar {
    min-height: 46px;
    align-items: center;
    gap: 2px;
    padding: 5px 8px;
}

.partner-content-editor-shell .html-editor-ai-tool {
    margin-inline: 2px;
}

.partner-content-editor-shell .html-editor-ai-tool > .rz-button {
    min-height: 32px;
    border-color: transparent;
    background: var(--pms-brand);
    color: #fff;
}

.partner-content-editor-shell .html-editor-ai-tool > .rz-button:hover,
.partner-content-editor-shell .html-editor-ai-tool > .rz-button:focus-visible {
    background: var(--pms-brand-hover);
    color: #fff;
}

.pms-partner-profile-content-editor.is-invalid .rz-html-editor {
    outline: 1px solid #c4314b;
    outline-offset: -1px;
}

.pms-partner-profile-facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pms-partner-profile-fact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.pms-partner-profile-fact-row input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--pms-border-strong);
    border-radius: 4px;
    background: var(--pms-surface);
    color: var(--pms-text-primary);
    padding: 6px 9px;
}

.pms-partner-profile-fact-row input[readonly] {
    color: var(--pms-text-secondary);
    background: var(--pms-surface-muted);
}

.pms-partner-profile-fact-row input:focus {
    border-color: var(--pms-brand);
    outline: none;
}

.pms-partner-profile-form .field input.is-invalid,
.pms-partner-profile-form .field textarea.is-invalid,
.pms-partner-profile-email-row input.is-invalid,
.pms-partner-profile-form .rz-dropdown.is-invalid {
    border-color: #c4314b;
}

.pms-partner-profile-form .rz-dropdown.is-invalid .rz-dropdown-label,
.pms-partner-profile-form .rz-dropdown.is-invalid .rz-dropdown-trigger {
    color: #c4314b;
}

.pms-profile-validation-message {
    display: block;
    margin-top: 4px;
    color: #c4314b;
    font-size: 12px;
    line-height: 16px;
}

.pms-partner-profile-email-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.pms-partner-profile-email-list .pms-user-settings-row {
    padding-bottom: 12px;
}

.pms-partner-profile-email-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.pms-partner-profile-email-row > div {
    min-width: 0;
}

.pms-user-settings-actions .primary-action {
    min-height: 36px;
}

.icon-only {
    width: 36px;
    padding: 0;
}

.pms-user-settings-empty {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--pms-border);
    border-radius: 6px;
    background: var(--pms-surface-muted);
    color: var(--pms-text-secondary);
    padding: 16px;
}

.pms-access-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pms-access-toolbar > div,
.pms-access-row-copy,
.pms-access-editor > header > div {
    min-width: 0;
}

.pms-access-toolbar strong,
.pms-access-toolbar small,
.pms-access-row-copy strong,
.pms-access-row-copy small,
.pms-access-editor > header strong,
.pms-access-editor > header small {
    display: block;
}

.pms-access-toolbar small,
.pms-access-row-copy small,
.pms-access-editor > header small,
.pms-access-password-hint {
    margin-top: 2px;
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

.pms-personio-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--pms-border);
    border-radius: 6px;
    background: var(--pms-surface-muted);
    padding: 12px;
}

.pms-personio-status strong,
.pms-personio-status small {
    display: block;
}

.pms-personio-status small,
.pms-personio-editor .field > small {
    margin-top: 2px;
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 16px;
}

.pms-personio-editor .pms-access-delete {
    margin-left: auto;
}

.pms-access-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pms-border);
    border-radius: 6px;
    overflow: hidden;
}

.pms-access-row {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.pms-access-row + .pms-access-row {
    border-top: 1px solid var(--pms-border);
}

.pms-access-row-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--pms-brand-soft);
    color: var(--pms-brand);
}

.pms-access-row-copy strong {
    overflow: hidden;
    color: var(--pms-text-primary);
    font-size: 14px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pms-access-row-actions,
.pms-access-editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pms-access-row-actions {
    grid-column: 2 / -1;
}

.pms-access-delete {
    color: #c4314b;
}

.pms-access-delete-wrapper {
    display: inline-flex;
}

.pms-access-delete-wrapper:has(.pms-access-delete:disabled),
.pms-access-delete-wrapper .pms-access-delete:disabled {
    cursor: not-allowed;
}

.pms-access-editor {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid var(--pms-border);
    border-radius: 6px;
    background: var(--pms-surface-muted);
    padding: 16px;
}

.pms-access-editor > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pms-access-editor .field input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--pms-border-strong);
    border-radius: 4px;
    background: var(--pms-surface);
    color: var(--pms-text-primary);
    padding: 6px 9px;
}

.pms-access-editor .field input:focus {
    border-color: var(--pms-brand);
    outline: none;
}

.pms-access-editor .field input.is-invalid {
    border-color: #c4314b;
}

.pms-access-attachment-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #f8f9fb;
}

.pms-access-attachment-setting > div {
    display: grid;
    gap: 3px;
}

.pms-access-attachment-setting small {
    color: #626b78;
}

.pms-access-password-control {
    position: relative;
}

.pms-access-password-control input {
    padding-right: 42px !important;
}

.pms-access-password-control button {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--pms-text-secondary);
}

.pms-access-password-control button:hover,
.pms-access-password-control button:focus-visible {
    background: var(--pms-surface-hover);
    color: var(--pms-text-primary);
    outline: none;
}

@media (max-width: 960px) {
    .pms-access-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pms-access-row-actions {
        grid-column: 2 / -1;
    }
}

@media (max-width: 640px) {
    .pms-access-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pms-access-toolbar > button {
        align-self: flex-start;
    }

    .pms-access-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pms-access-row .status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .pms-access-row-actions {
        grid-column: 1 / -1;
    }
}
.pms-access-push {
    display: flex;
    grid-column: 2 / -1;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    flex-wrap: wrap;
}

.partner-report-attachment-list {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.partner-report-attachment {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 9px;
}

.partner-report-file-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 7px;
    background: #ecfdf3;
    color: #168a55;
}

.partner-report-file-copy {
    min-width: 0;
}

.partner-report-file-copy strong,
.partner-report-file-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-report-file-copy strong {
    color: var(--pms-text-primary);
    font-size: 13px;
    font-weight: 650;
    line-height: 18px;
}

.partner-report-file-copy span {
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 17px;
}

.partner-report-file-actions {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.partner-report-file-actions .rz-button {
    display: inline-grid;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    place-items: center;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--pms-brand) !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.partner-report-file-actions .rz-button:hover,
.partner-report-file-actions .rz-button:focus-visible {
    border-color: rgba(91, 95, 199, .28) !important;
    background: var(--pms-brand-soft) !important;
    color: var(--pms-brand-hover) !important;
    outline: none;
}

.partner-report-file-actions .rz-button:disabled {
    color: var(--pms-text-muted) !important;
    cursor: default;
    opacity: .55;
}

.partner-report-file-actions .rz-button .rz-button-icon,
.partner-report-file-actions .rz-button .rz-button-icon-left {
    margin: 0 !important;
    color: currentColor !important;
    font-size: 18px !important;
    line-height: 18px !important;
}

.pms-access-push .status-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}

.pms-access-push-copy {
    display: flex;
    flex-basis: 100%;
    align-items: flex-start;
    gap: .35rem;
    color: #605e5c;
    line-height: 1.35;
}

.pms-access-push-copy .rz-icon {
    margin-top: .1rem;
    color: #5b5fc7;
    font-size: 1rem;
}

.pms-access-push-message {
    flex-basis: 100%;
    color: #107c10;
    text-align: left;
}

.pms-access-push-message.error {
    color: #a4262c;
}

.partner-contact-page {
    max-width: 1080px;
}

.partner-contact-hero {
    align-items: center;
    margin-bottom: 22px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(91, 95, 199, .10), rgba(38, 158, 147, .08) 58%, rgba(255, 255, 255, .96));
    padding: 20px;
}

.partner-contact-hero h1 {
    margin-bottom: 6px;
    font-size: 28px;
}

.partner-contact-hero p {
    margin-bottom: 0;
}

.partner-contact-hero-icon,
.partner-contact-account-icon {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 44, 60, .09);
    color: var(--pms-brand);
}

.partner-contact-hero-icon .rz-icon {
    font-size: 25px;
}

.partner-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.partner-contact-form,
.partner-contact-account {
    border: 1px solid var(--pms-border);
    border-radius: 8px;
    background: var(--pms-surface);
    box-shadow: 0 1px 2px rgba(37, 44, 60, .04);
}

.partner-contact-form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.partner-contact-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.partner-contact-field > label {
    color: var(--pms-text-primary);
    font-size: 13px;
    font-weight: 600;
}

.partner-contact-field > small {
    color: var(--pms-text-secondary);
    line-height: 1.4;
}

.partner-contact-select,
.partner-contact-message {
    width: 100%;
    border: 1px solid #b9bcc4;
    border-radius: 4px;
    background: #ffffff;
    color: var(--pms-text-primary);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.partner-contact-select {
    height: 34px;
    padding: 0 9px;
}

.partner-contact-message {
    min-height: 180px;
    resize: vertical;
    padding: 9px;
    line-height: 1.45;
}

.partner-contact-select:focus,
.partner-contact-message:focus {
    border-color: var(--pms-brand);
    box-shadow: 0 0 0 2px rgba(91, 95, 199, .16);
}

.partner-contact-select:disabled,
.partner-contact-message:disabled {
    background: var(--pms-surface-muted);
}

.partner-contact-field-meta {
    display: flex;
    min-height: 17px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--pms-text-subtle);
    font-size: 12px;
}

.partner-contact-validation {
    color: var(--pms-danger);
}

.partner-contact-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.partner-contact-account {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.partner-contact-account-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--pms-brand-soft);
    box-shadow: none;
}

.partner-contact-account > div {
    min-width: 0;
}

.partner-contact-account strong,
.partner-contact-account a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-contact-account strong {
    margin: 4px 0 2px;
    color: var(--pms-text-primary);
}

.partner-contact-account a {
    color: var(--pms-brand);
}

.partner-contact-account p {
    margin: 12px 0 0;
    color: var(--pms-text-secondary);
    line-height: 1.45;
}

@media (max-width: 760px) {
    .partner-contact-layout {
        grid-template-columns: 1fr;
    }

    .partner-contact-account {
        grid-row: 1;
    }

    .partner-contact-hero {
        align-items: flex-start;
    }
}
