﻿.center-content-horizontally {
    width: 100%;
    display: flex;
    justify-content: center;
}

.blurry-background {
    backdrop-filter: blur(10px);
}

html, body {
    height: 100%;
    overflow-y: auto;
}

.nc-print-scrollable {
    min-height: 100vh;
    overflow-y: auto;
    padding: 1.25rem;
}

.nc-print-box {
    width: 100%;
    margin: 1rem auto;
    padding: 1.25rem;
    background-color: transparent;
}

.nc-field {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.nc-field-key {
    font-weight: bold;
    white-space: normal;
}

.nc-field-value {
    flex: 1;
    white-space: normal;
    word-break: break-word;
}

.nc-label {
    width: 300px;
    font-weight: bold;
    flex-shrink: 0;
    padding-left: 0.5rem;
}

.nc-value {
    flex: 1;
    min-width: 0;
    padding-left: 150px;
    margin-right: 150px;
    word-break: break-word;
    white-space: normal;
}

.nc-field-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.nc-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}



/* Tables */
.nc-table-box {
    padding: 1rem;
    background-color: transparent;
    margin-bottom: 1.5rem;
}

.nc-bordered-table th,
.nc-bordered-table td {
    border: 1px solid #ccc;
    padding: 0.75rem 0.5rem !important;
    line-height: 1.4 !important;
    vertical-align: top;
    background-color: transparent !important;
}

.nc-bordered-table thead {
    background-color: transparent !important;
}

.nc-bordered-table tbody tr:nth-child(even) {
    background-color: transparent !important;
}

.nc-bordered-table tbody tr:hover {
    background-color: transparent !important;
}

.nc-bordered-table {
    border-collapse: collapse !important;
    border: 1px solid #ccc !important;
    width: 100%;
}

.word-style-table-container {
    overflow-x: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.word-style-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

    .word-style-table th,
    .word-style-table td {
        border: 1px solid #ccc;
        padding: 10px;
        vertical-align: top;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        min-height: 48px;
        height: 100%;
        line-height: 1.4;
    }

    .word-style-table th {
        background-color: #f5f5f5;
        font-weight: 600;
        text-align: left;
    }

    .word-style-table tr:nth-child(even) {
        background-color: #fafafa;
    }

.invisible-placeholder {
    visibility: hidden;
    display: inline-block;
    width: 100%;
}

/* Header */
.nc-print-header {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.nc-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: 1rem;
}

.nc-header-left {
    float: left;
    display: flex;
    align-items: center;
    height: 100%;
}

.nc-client-logo {
    width: 200px;
    height: auto;
    margin-right: 1rem;
}

.nc-system-logo {
    width: 150px;
    height: auto;
    margin-right: 1rem;
}

.nc-app-bar-brand-image {
    margin: 0.25rem;
    height: 40px;
}

.nc-print-header-print-icon {
    margin: 0;
}

.nc-two-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1rem;
}

.nc-column-left {
    flex: 0 0 auto;
    text-align: left;
    margin-top: 50px;
}

.nc-column-left,
.nc-column-right {
    flex: 0 0 48%;
    text-align: left;
    box-sizing: border-box;
}

.nc-column-center {
    flex: 0 0 auto;
    text-align: left;
    margin-left: 30rem;
    margin-right: 0;
}
/* Section Titles */

.nc-inline-section {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

    .nc-inline-section .nc-section-title {
        font-weight: bold;
        font-size: 18px;
        color: #1976d2;
        width: 300px;
        flex-shrink: 0;
        padding-left: 0.5rem;
        margin-bottom: 0.5rem;
    }

/* Footer */
.nc-print-footer {
    position: static;
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 0.85rem;
    color: #000;
    font-weight: bold;
    padding: 0.75rem 0;
}

.nc-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #000;
    font-weight: bold;
    border-top: 1px solid #ccc;
    padding: 0.75rem 0;
}

/* Block Section */
.nc-block-header {
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nc-block-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
}


/* Print Specific */
@media print {

    /* Page setup */
    @page {
        size: A4 landscape;
        margin: 0.5cm;
    }

    @page:first {
        margin-top: 0cm;
    }

    html, body {
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Print container */
    .nc-print-scrollable,
    .nc-print-box {
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        position: relative;
        min-height: 100vh;
        display: block;
        padding-bottom: 0.5cm !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .nc-print-scrollable {
        display: flex;
        flex-direction: column;
        min-height: 100vh; /* full page height */
    }

    .nc-print-box {
        flex: 1; /* content grows */
    }

    .nc-print-header {
        margin-top: 0 !important;
        padding-top: 0.5rem !important;
    }

    .nc-print-header-print-icon,
    .app-bar,
    .mud-appbar,
    .print-hide {
        display: none !important;
    }

    /* Section wrappers */
    .table-section {
        page-break-inside: auto !important;
        page-break-before: auto !important;
        margin: 0 0 0.5rem 0 !important;
        padding: 0 !important;
    }

        .table-section.capa-section {
            page-break-inside: avoid !important; /* keep title + table start together */
        }

    /* Section titles */
    .nc-section-title {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem
    }

    /* Table containers */
    .word-style-table-container {
        margin: 0 0 0.5rem 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-top: 1rem
    }

    /* Tables */
    .word-style-table,
    .mud-table {
        border-collapse: collapse !important;
        width: 100% !important;
        font-size: 11px !important; /* smaller font for print */
        line-height: 1.2 !important;
        margin-top: 1rem
    }

        .word-style-table th,
        .word-style-table td,
        .mud-table th,
        .mud-table td {
            border: 1px solid #ccc !important;
            padding: 3px 5px !important; /* reduced padding */
            page-break-inside: avoid !important;
            break-inside: avoid !important;
        }

        .word-style-table tr,
        .mud-table tr {
            page-break-inside: avoid !important;
            break-inside: avoid !important;
        }

    thead {
        display: table-header-group !important;
    }

    tfoot {
        display: table-footer-group !important;
    }

    /* Footer */
    .nc-footer-content {
    display: block;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid #ccc;
    margin-top: 0; /* reset */
    padding-top: 0.5rem;
    margin-top: calc(100vh - 10.5cm);
}

    /* Misc elements */
    .nc-table-box {
        margin: 0 !important;
        padding: 1rem;
        background-color: transparent;
    }

    .nc-field,
    .nc-field-row {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 0.75rem;
        gap: 1rem;
        align-items: flex-start;
    }

    .nc-label {
        width: 300px;
        font-weight: bold;
        flex-shrink: 0;
        padding-left: 0.5rem;
    }

    .nc-value {
        flex: 1;
        min-width: 0;
        padding-left: 150px;
        margin-right: 150px;
        word-break: break-word;
        white-space: normal;
    }

    .nc-client-logo {
        width: 100px;
        height: auto;
        margin-right: 1rem;
    }

    .nc-system-logo {
        width: 40px;
        height: auto;
        margin-right: 1rem;
    }

    .nc-app-bar-brand-image {
        margin: 1.25rem;
        height: 20px;
    }

}
