
/* FV final compaction: logical basic fields and split goods/services lines. */
html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact {
    grid-template-columns: 420px 118px 190px 280px !important;
    align-items: start !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-name-slot,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-name-slot {
    grid-column: 1 !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-name-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-name-field {
    grid-column: 1 !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-nip-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-nip-field {
    grid-column: 2 !important;
    max-width: 118px !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-phone-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-phone-field {
    grid-column: 3 !important;
    max-width: 180px !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-email-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-email-field {
    grid-column: 4 !important;
    max-width: 280px !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-street-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-street-field {
    grid-column: 1 !important;
    max-width: 420px !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-postal-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-postal-field {
    grid-column: 2 !important;
    max-width: 118px !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-city-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-city-field {
    grid-column: 3 !important;
    max-width: 190px !important;
}

html body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-country-field,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-contractor-grid-compact .vario-document-contractor-country-field {
    grid-column: 4 !important;
    max-width: 150px !important;
}

html body .vario-erp-document-details-modal .vario-document-ksef-grid-compact,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-ksef-grid-compact {
    grid-template-columns: 150px 260px 190px !important;
    align-items: end !important;
}

html body .vario-erp-document-details-modal .vario-document-basic-sections,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-basic-sections {
    gap: 6px !important;
}

html body .vario-erp-document-details-modal .vario-document-basic-section .vario-erp-section-header,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-basic-section .vario-erp-section-header {
    min-height: 34px !important;
    padding: 5px 10px !important;
}

html body .vario-erp-document-details-modal .vario-document-basic-section .vario-erp-section-body,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-basic-section .vario-erp-section-body {
    padding: 7px 10px !important;
}

html body .vario-erp-document-details-modal .vario-document-basic-section h2,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-basic-section h2 {
    font-size: 12px !important;
    line-height: 14px !important;
}

html body .vario-erp-document-details-modal .vario-document-basic-section p,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-basic-section p {
    font-size: 10px !important;
    line-height: 12px !important;
}

html body .vario-erp-document-details-modal .vario-document-basic-section textarea,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-basic-section textarea {
    min-height: 32px !important;
    height: 32px !important;
    max-height: 32px !important;
    resize: none !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-split-section>.vario-erp-section-header>.vario-document-inline-actions,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-split-section>.vario-erp-section-header>.vario-document-inline-actions,
html body .vario-erp-document-details-modal .vario-document-lines-split-section>.vario-erp-section-body>table.vario-document-lines-edit,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-split-section>.vario-erp-section-body>table.vario-document-lines-edit {
    display: none !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-split,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-split {
    display: grid !important;
    grid-template-rows: minmax(0, 2fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    height: min(520px, calc(100dvh - 292px)) !important;
    min-height: 360px !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-panel,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-panel {
    display: grid !important;
    grid-template-rows: 32px minmax(0, 1fr) 28px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 1px solid #c8d7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-panel>header,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-panel>header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 32px !important;
    padding: 3px 8px !important;
    border-bottom: 1px solid #d7e2f0 !important;
    background: linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%) !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-panel h3,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-panel h3 {
    margin: 0 !important;
    color: #08224f !important;
    font: 950 12px/14px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-panel header span,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-panel header span {
    color: #526985 !important;
    font: 800 10px/12px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-grid-wrap,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-grid-wrap {
    min-height: 0 !important;
    overflow: auto !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-panel>footer,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-panel>footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    min-height: 28px !important;
    padding: 3px 8px !important;
    border-top: 1px solid #d7e2f0 !important;
    background: #f7faff !important;
    color: #526985 !important;
    font: 850 10px/12px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-panel>footer strong,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-panel>footer strong {
    color: #08224f !important;
    font-weight: 950 !important;
}
