/* PFM Page Specific Styles */

/* Chart containers */
.pfm-chart-height-30vh {
    height: 30vh;
}

.pfm-chart-relative-30vh {
    position: relative;
    height: 30vh;
}

/* Contract Transfer specific */
.pfm-contract-transfer-container {
    max-width: 100%;
    padding: 1rem;
}

.pfm-tree-view-container {
    height: 400px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 10px;
    overflow-y: auto;
}

.pfm-contracts-grid {
    height: 400px;
}

.pfm-chart-full-height {
    height: 100%;
}

/* Common utilities */
.pfm-list-no-style {
    list-style: none;
}

.pfm-margin-0-1rem {
    margin: 0 1rem;
}

.pfm-overflow-auto {
    overflow: auto;
}

.pfm-min-width-100 {
    min-width: 100px;
}

/* Report page specific */
.pfm-upload-popup {
    display: none;
}

.pfm-success-message {
    color: green;
    display: none;
}

.pfm-success-message.visible {
    display: block;
}

.pfm-min-width-120 {
    min-width: 120px;
}

.pfm-min-width-153 {
    min-width: 153px;
}

.pfm-flex-1 {
    flex: 1 1 0;
}

.pfm-display-none {
    display: none;
}

.pfm-color-green {
    color: green;
    display: none;
}

.pfm-height-400 {
    height: 400px;
}

.pfm-chart-container {
    height: 400px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Tree placeholder styles */
.pfm-tree-placeholder-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

.pfm-tree-placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.pfm-tree-placeholder-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Tree view item styles */
.pfm-tree-item-container {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.pfm-tree-item-clickable {
    cursor: pointer;
}

.pfm-tree-item-default {
    cursor: default;
}

.pfm-tree-item-text {
    font-weight: 600;
    color: #2c3e50;
}

.pfm-tree-item-disabled {
    font-weight: 400;
    color: #7f8c8d;
}

/* Validation styles */
.pfm-validation-list:empty {
    display: none;
}

.pfm-validation-list li:empty {
    display: none;
}


/* Designer */
.designer-panel-display {
    position: absolute;z-index: 999;
}

#number-amount, #select-type, #tag-state, #tag-delivery {
    min-width: 100px;
}

.pfm-visibility-hidden {
    visibility: hidden;
}

.pfm-vertical-align-bottom {
    vertical-align: bottom;
}

.pfm-height-full {
    height: 100%;
}

.pfm-max-width-300 {
    max-width: 300px;
}

.solid-divider {
    display: inline;
    border-left: 1px solid #CFCFCF;
    height: 40px;
    min-width: 1px;
    margin: 0 1rem;
}

.sub-content {
    position: relative;
}

/* Bulk takeover (Datenübernahme Mehrfachauswahl) */
.pfm-bulk-source-list {
    max-height: 220px;
    overflow-y: auto;
}

.pfm-bulk-source-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--bs-border-color, #e9ecef);
}

.pfm-bulk-source-item:last-child {
    border-bottom: 0;
}

.pfm-bulk-source-item:hover {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
}

.pfm-bulk-source-info {
    flex: 1 1 auto;
    min-width: 0;
}

.pfm-bulk-source-name {
    font-weight: 600;
    line-height: 1.25;
}

.pfm-bulk-source-meta {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color, #6c757d);
}

.pfm-bulk-source-remove {
    flex: 0 0 auto;
    margin-left: 0.5rem;
}

.pfm-bulk-result-list {
    max-height: 320px;
    overflow-y: auto;
}

/* PFM settings page: tabs with one card per section */
.pfm-settings-page {
    padding-bottom: 2rem;
}

.pfm-settings-tabs {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    flex-wrap: wrap;
}

.pfm-settings-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--bs-secondary-color, #6c757d);
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.65rem 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.pfm-settings-tabs .nav-link .material-symbols-rounded {
    font-size: 20px;
}

.pfm-settings-tabs .nav-link:hover {
    color: var(--bs-primary);
    border-bottom-color: rgba(var(--bs-primary-rgb), 0.35);
}

.pfm-settings-tabs .nav-link.active {
    color: var(--bs-primary);
    background-color: transparent;
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

.pfm-settings-tab-content {
    padding-top: 1.5rem;
}

.pfm-settings-card {
    border-radius: 12px;
}

.pfm-settings-card > .card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.pfm-settings-card > .card-header .btn {
    align-self: center;
}

.pfm-settings-card-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    color: var(--bs-primary);
    font-size: 22px;
}

.pfm-settings-card > .card-body {
    padding: 1.25rem;
}

.pfm-settings-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.75rem;
}

.pfm-settings-row + .pfm-settings-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.pfm-settings-switch {
    padding-left: 3rem;
    min-height: auto;
}

.pfm-settings-switch + .pfm-settings-switch {
    margin-top: 1rem;
}

.pfm-settings-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    margin-left: -3rem;
    margin-top: 0.15em;
}

.pfm-settings-page .dx-treelist-header-panel {
    display: none !important;
}

.pfm-settings-page .commandColumn {
    text-align: left !important;
}
