.editpagecontenthost-style .editpagecontenttab-style {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    flex-direction: column;
    background: var(--pms-surface) !important;
}

.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav {
    display: flex;
    min-height: 40px;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid var(--pms-border) !important;
    border-bottom: 1px solid var(--pms-border) !important;
    background: var(--pms-surface) !important;
    padding: 0 10px !important;
    scrollbar-width: thin;
}

.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 !important;
}

.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li > a,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li > button {
    display: flex !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--pms-text-primary) !important;
    padding: 0 16px !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 14px !important;
    transition: background-color 120ms ease, color 120ms ease;
}

.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li > a:hover,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li > button:hover,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-state-hover > a,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-state-hover > button {
    background: var(--pms-surface-hover) !important;
    color: var(--pms-text-primary) !important;
}

.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-tabview-selected > a,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-tabview-selected > button,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-state-active > a,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-state-active > button {
    background: var(--pms-brand-soft) !important;
    color: var(--pms-brand) !important;
    font-weight: 650 !important;
}

.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-tabview-selected::after,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-nav > li.rz-state-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--pms-brand);
    content: "";
}

.editpagecontenthost-style .editpagecontenttab-style .rz-tabview-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editpagecontenthost-style .editpagecontenttab-style > .rz-tabview-panels,
.editpagecontenthost-style .editpagecontenttab-style > .rz-tabs-panels {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    border: 0 !important;
    background: var(--pms-surface) !important;
}

.editpagecontenthost-style .editpagecontenttab-style .rz-tabview-panel,
.editpagecontenthost-style .editpagecontenttab-style .rz-tabs-panel {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 0 !important;
}

.editpagecontenthost-style .editpagecontenttab-style .rz-tabview-panel:has(.html-editor-shell),
.editpagecontenthost-style .editpagecontenttab-style .rz-tabs-panel:has(.html-editor-shell) {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
}

.editpagecontenthost-style .editpagecontenttab-style .html-editor-shell {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.editpagecontenthost-style .editpagecontenttab-style .html-editor-shell .rz-html-editor {
    display: flex !important;
    min-height: 0 !important;
    height: 100% !important;
    flex: 1 1 auto;
    flex-direction: column;
}

.editpagecontenthost-style .editpagecontenttab-style .html-editor-shell .rz-html-editor-content {
    min-height: 0 !important;
    flex: 1 1 auto;
}

.editpagecontenthost-style .editpagecontenttab-style .rz-tabview-panel:has(> .pms-crm-stretch-section-container),
.editpagecontenthost-style .editpagecontenttab-style .rz-tabs-panel:has(> .pms-crm-stretch-section-container) {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.part-container-style {
    background: var(--pms-surface);
    min-height: 100%;
    box-sizing: border-box;
    padding: 8px 10px 12px !important;
}

.editpagecontenthost-style {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    background: var(--pms-surface) !important;
    padding: 0 !important;
}

.editpagecontenthost-style > .rz-stack:first-child,
.editpagecontenthost-style > .rz-stack-item:first-child {
    padding: 12px 14px !important;
}

.pms-crm-form {
    display: grid;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    gap: 10px;
}

.pms-crm-stretch-section-container {
    display: flex !important;
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.pms-crm-stretch-section-container > .pms-crm-form {
    display: grid;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-rows: minmax(0, 1fr) !important;
}

.pms-crm-stretch-section-container > .pms-crm-form > .pms-crm-section {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.pms-crm-stretch-section-container > .pms-crm-form > .pms-crm-section > .pms-crm-section-content {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.pms-crm-section {
    position: relative;
    overflow: hidden;
    border: 1px solid #dde5f2;
    border-radius: 8px;
    background: var(--pms-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(91, 95, 199, 0.05);
}

.pms-crm-section::before,
.pms-crm-section::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pms-brand), #269e93 54%, #4f8cff);
    content: "";
}

.pms-crm-section::before {
    top: 0;
}

.pms-crm-section::after {
    bottom: 0;
}

.pms-crm-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e6ebf5;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    padding: 16px 16px 12px;
}

.pms-crm-section-title-block {
    min-width: 0;
}

.pms-crm-section-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 5px;
    background: #eef0ff;
    margin-bottom: 3px;
    color: var(--pms-brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    padding: 2px 7px;
    text-transform: uppercase;
}

.pms-crm-section-header h2 {
    margin: 0;
    color: var(--pms-text-primary);
    font-size: 16px;
    font-weight: 650;
    line-height: 22px;
}

.pms-crm-section-header p {
    max-width: 760px;
    margin: 4px 0 0;
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 18px;
}

.pms-crm-section-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.pms-crm-section-content {
    display: grid;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 14px 16px 16px;
}

.pms-partner-html-editor-content {
    display: flex;
    min-height: 0;
    align-content: stretch;
    overflow: hidden;
}

.pms-partner-html-editor-field {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
}

.pms-partner-html-editor-field .html-editor-shell {
    min-height: 0;
    overflow: hidden;
}

.html-editor-shell .rz-html-editor-content {
    overflow: auto !important;
}

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

.html-editor-shell .rz-html-editor-button {
    min-width: 32px;
    width: 32px;
    min-height: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
}

.html-editor-shell .rz-html-editor-button .rzi {
    font-size: 16px;
    line-height: 16px;
}

.html-editor-shell .rz-html-editor-toolbar > button.rz-dropdown.rz-input-sm {
    display: inline-flex !important;
    min-width: 142px !important;
    min-height: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 4px;
    padding: 0 8px !important;
    font-size: 13px !important;
    line-height: 16px !important;
}

.html-editor-shell .rz-html-editor-toolbar > button.rz-dropdown.rz-input-sm > .rz-dropdown-label {
    display: inline-flex !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 16px !important;
}

.html-editor-shell .rz-html-editor-toolbar > button.rz-dropdown.rz-input-sm > .rz-dropdown-trigger {
    display: inline-flex !important;
    min-height: 32px !important;
    height: 32px !important;
    align-items: center !important;
    margin-left: auto !important;
    line-height: 16px !important;
}

.html-editor-shell .rz-html-editor-toolbar > button.rz-dropdown.rz-input-sm > .rz-dropdown-trigger .rzi {
    display: inline-flex !important;
    height: 32px !important;
    align-items: center !important;
    font-size: 16px !important;
    line-height: 16px !important;
}

.html-editor-shell .rz-html-editor-separator {
    align-self: center;
    height: 24px;
}

.html-editor-style,
.html-editor-style .rz-html-editor,
.html-editor-style .rz-html-editor-content,
.html-editor-style .rz-html-editor-editor,
.html-editor-style [contenteditable="true"] {
    background: #fff;
}

.rz-editor-dropdown-panel .rz-dropdown-item {
    font-size: 13px !important;
    line-height: 20px !important;
}

.pms-crm-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pms-crm-field-span-2 {
    grid-column: 1 / -1;
}

.pms-crm-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.pms-crm-field-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: #424242;
    font-size: 12px;
    font-weight: 650;
    line-height: 16px;
}

.pms-crm-field-frame {
    position: relative;
    display: flex;
    min-height: 38px;
    min-width: 0;
    align-items: center;
    gap: 8px;
    border: 1px solid #cdd7e6;
    border-left: 3px solid #269e93;
    border-radius: 6px;
    background: #ffffff;
    color: var(--pms-text-primary);
    padding: 0 8px 0 7px;
    transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.pms-crm-field-frame:hover {
    border-color: #aab8d3;
    border-left-color: var(--pms-brand);
    background: #fbfdff;
}

.pms-crm-field-frame:focus-within {
    border-color: var(--pms-brand);
    background: var(--pms-surface);
    box-shadow: 0 0 0 2px rgba(91, 95, 199, 0.14);
}

.pms-crm-field-control {
    min-width: 0;
    flex: 1 1 auto;
}

.pms-crm-field-helper {
    color: var(--pms-text-secondary);
    font-size: 11px;
    line-height: 15px;
}

.pms-crm-field:has(.rz-dropdown) .pms-crm-field-frame,
.pms-crm-field:has(.rz-datepicker) .pms-crm-field-frame,
.pms-crm-field:has(select) .pms-crm-field-frame {
    border-left-color: #5261b5;
    background: #ffffff;
    cursor: pointer;
}

.pms-crm-field:has(.rz-dropdown) .pms-crm-field-label::after,
.pms-crm-field:has(.rz-datepicker) .pms-crm-field-label::after,
.pms-crm-field:has(select) .pms-crm-field-label::after {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    background: #eef0ff;
    color: var(--pms-brand);
    content: "Select";
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    padding: 1px 5px;
}

.pms-crm-field .rz-textbox,
.pms-crm-field .rz-inputtext:not(.rz-dropdown-label),
.pms-crm-field .rz-dropdown,
.pms-crm-field .rz-datepicker,
.pms-crm-field .rz-spinner,
.pms-crm-field .rz-multiselect,
.pms-crm-field textarea,
.pms-crm-field input:not([aria-haspopup="listbox"]),
.pms-crm-field select {
    width: 100% !important;
    min-height: 34px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--pms-text-primary) !important;
    font-size: 14px !important;
    line-height: 20px !important;
}

.pms-crm-field .rz-textbox,
.pms-crm-field .rz-inputtext:not(.rz-dropdown-label),
.pms-crm-field textarea,
.pms-crm-field input:not([aria-haspopup="listbox"]),
.pms-crm-field select {
    padding: 0 !important;
}

.pms-crm-field .rz-dropdown,
.pms-crm-field .rz-multiselect {
    display: inline-flex !important;
    flex-direction: column !important;
    position: relative !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 34px !important;
}

.pms-crm-field .rz-dropdown-label,
.pms-crm-field .rz-multiselect-label-container {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 34px 0 0 !important;
    line-height: 34px !important;
}

.pms-crm-field .rz-dropdown-label.rz-inputtext {
    display: block !important;
    min-height: 34px !important;
    height: 34px !important;
    max-height: 34px !important;
    box-sizing: border-box !important;
    padding: 0 34px 0 0 !important;
    line-height: 34px !important;
}

.pms-crm-field .rz-dropdown input[aria-haspopup="listbox"][readonly],
.pms-crm-field .rz-dropdown input[aria-haspopup="listbox"][aria-hidden="true"][readonly],
.pms-crm-field .rz-dropdown input[readonly][aria-hidden="true"] {
    align-self: center !important;
    min-height: 34px !important;
    height: 34px !important;
    max-height: 34px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 34px 0 0 !important;
    font-size: 14px !important;
    line-height: 34px !important;
    transform: translateY(0) !important;
}

.pms-crm-field .rz-dropdown-label span,
.pms-crm-field .rz-placeholder,
.pms-crm-field .rz-multiselect-label {
    display: block !important;
    min-height: 34px !important;
    overflow: hidden !important;
    line-height: 34px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.pms-crm-field .rz-dropdown-trigger,
.pms-crm-field .rz-multiselect-trigger {
    position: absolute !important;
    inset-block: 0 !important;
    inset-inline-end: 0 !important;
    display: flex !important;
    width: 34px !important;
    min-height: 34px !important;
    height: auto !important;
    align-items: center !important;
    justify-content: center !important;
}

.pms-crm-field .rz-dropdown-trigger .rzi,
.pms-crm-field .rz-multiselect-trigger .rzi {
    margin: 0 !important;
    line-height: 1 !important;
}

.pms-crm-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pms-crm-toggle {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    border: 1px solid #cdd7e6;
    border-radius: 6px;
    background: #ffffff;
    color: var(--pms-text-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 0 11px;
}

.pms-crm-toggle:hover {
    border-color: var(--pms-brand);
    background: #f5f7ff;
}

.pms-edit-commandbar {
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--pms-border);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 10px 14px 10px 18px;
}

.pms-edit-heading {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.pms-edit-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 5px;
    background: #eef0ff;
    color: var(--pms-brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    padding: 2px 7px;
    text-transform: uppercase;
}

.pms-edit-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.pms-edit-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe4f5;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    color: var(--pms-brand);
}

.pms-edit-icon .rz-icon {
    font-size: 20px;
}

.pms-edit-title-copy {
    min-width: 0;
}

.pms-edit-title-copy h1 {
    overflow: hidden;
    margin: 0;
    color: var(--pms-text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pms-edit-title-copy p {
    overflow: hidden;
    max-width: 720px;
    margin: 2px 0 0;
    color: var(--pms-text-secondary);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pms-edit-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.pms-edit-actions .rz-button {
    min-height: 34px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.partner-report-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.partner-report-value {
    min-height: 38px;
    border: 1px solid #cdd7e6;
    border-left: 3px solid #269e93;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px 10px;
    color: var(--pms-text-primary);
    font-size: 14px;
    line-height: 20px;
}

.partner-report-message {
    min-height: 180px;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .pms-edit-commandbar {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

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

    .pms-edit-title-copy p {
        white-space: normal;
    }

    .pms-crm-field-grid,
    .partner-report-value-grid {
        grid-template-columns: 1fr;
    }

    .pms-crm-field-span-2 {
        grid-column: auto;
    }
}
