.headerStyle {
    width: 98%;
    min-height: 110px;
    margin: auto;
    margin-top: 10px;
    display: block;
    margin-bottom: 5px;
    padding: none;
}

.containerRP {
    width: 98%;
    min-height: 15px;
    margin: auto;
    display: block;
    margin-bottom: 5px;
    /*font-size: 11px;*/
}

.containerRP2 {
    width: 98%;
    min-height: 15px;
    margin: auto;
    display: block;
}

.containerRP3 {
    width: 98%;
    min-height: 15px;
    margin: auto;
    display: block;
}

.containerRP2 {
    width: 98%;
    min-height: 15px;
    margin: auto;
    display: block;
}

.login {
    width: 350px;
    min-height: 150px;
    margin: auto;
    display: block;
    margin-top: 50px;
    margin-bottom: 50px;
    border: 1px solid #bed6f8;
}

.headerBodyStyle {
    width: 98%;
    min-height: 100px;
    margin: auto;
    display: block;
    margin: 0;
    padding: none;
}

.headerBodyStyle span {
    line-height: 100px;
    vertical-align: middle;
    margin-left: 30px;
    font-family: calibri;
    /*font-size: 48px;*/
    color: gray;
}

.pic {
    margin-bottom: -4px;
    margin-right: 5px;
}

.menuItem {
    vertical-align: middle;
    height: 18px;
    padding-top: 2px;
    padding-right: 5px;
}

.itemPic {
    margin-bottom: 0px;
    margin-right: -4px;
}

.menuItemRight {
    vertical-align: middle;
    padding-top: 2px;
    padding-right: 5px;
}

.itemPicRight {
    margin-bottom: 2px;
    margin-right: -4px;
}

.col1 {
    width: 75px;
    text-align: left;
    padding: 3px;
    margin: 2px;
    padding-top: 15px;
}

.col2 {
    width: 140px;
    text-align: right;
    padding: 3px;
    margin: 2px;
    padding-top: 15px;
}

.col3 {
    text-align: left;
    vertical-align: top;
    padding: 3px;
    margin: 2px;
    padding-top: 15px;
    width: 220px;
}

.error {
    font-weight: bold;
    color: red;
}

.zeroSize {
    visibility: hidden;
    padding: 0px;
    margin: 0px;
    border: 0px;
    width: 0px;
    height: 0px;
}

.input1 {
    width: 100px;
}

.tcol1 {
    border: 1px solid gray;
    background-color: #cccccc;
}

.tcol2 {
    border: 1px solid gray;
    background-color: #dddddd;
}

.tcol3 {
    background-color: #eee;
    min-width: 150px;
    padding: 5px;
    text-align: center;
}

.tcol4 {
    background-color: #fff;
    min-width: 150px;
    padding: 5px;
    text-align: center;
}

.highlight input {
    border: 2px solid red;
}

.tooltip {
    width: 200px;
}

.tabPanel {
    width: 98%;
    margin: auto;
}

.tooltip2 {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: help;
    display: inline;
}

.customersTab {
    font-family: verdana;
    /*font-size: 10px;*/
    padding: 1px;
    margin: auto;
    width: 98%;
}

.tabFooter {
    background: none;
    padding: 2px;
}

.tcol5 {
    min-width: 20px;
    background: none;
    padding: 3px;
}

.tcol5a {
    min-width: 20px;
    background: none;
    padding: 3px;
    text-align: right;
}

.tcol6 {
    min-width: 50%;
    background: none;
    padding: 3px;
    text-align: right;
}

.tcol7 {
    min-width: 50%;
    background: none;
    padding: 3px;
    text-align: left;
}

.tcol8 {
    background-color: #eee;
    min-width: 70px;
    padding: 5px;
    text-align: center;
}

.tcol9 {
    background-color: #fff;
    min-width: 70px;
    padding: 5px;
    text-align: center;
}

.tcol10 {
    background-color: #eee;
    min-width: 20px;
    padding: 1px;
    text-align: center;
}

a.no-decor > img {
    border: none;
}

.formCol1 {
    padding: 3px;
    text-align: right;
}

.formCol1a {
    padding: 3px;
    text-align: left;
    vertical-align: top;
}

.formCol0 {
    padding: 3px;
    text-align: right;
    width: 170px;
}

.formCol2 {
    padding: 3px;
    text-align: left;
}

.formCol2a {
    padding: 3px;
    text-align: center;
    vertical-align: top;
}

.formCol3 {
    padding: 3px;
    text-align: right;
    width: 70px;
}

.panelc {
    width: 25%;
    text-align: center;
}

.valign {
    vertical-align: top;
}

.draggablePanel {
    width: 300px;
    text-align: center;
    cursor: move;
    border: 0;
    height: auto;
    margin-bottom: 2px;
    /*font-size: 10px;*/
    background: none;
    padding: 0 !important;
    /*font-size: 10px !important;*/
}

.dropSourcePanel {
    width: 250px;
    min-height: 320px;
}

.dropSourcePanel2 {
    width: 500px;
    min-height: 320px;
}

.dropTargetPanel {
    width: 570px;
    min-height: 320px;
}

.footerClass {
    text-align: center;
    padding-top: 5px;
}

.rf-ind-drag {
    font-family: Arial, Verdana, Tahoma;
    /*font-size: 11px;*/
    cursor: pointer;
    width: 100px;
    border: 2px solid #bed6f8;
    border-radius: 4px;
    padding: 2px;
    background: #bed6f8;
    text-align: center;
}

.rf-ind-drag2 {
    font-family: Arial, Verdana, Tahoma;
    /*font-size: 11px;*/
    cursor: pointer;
    width: 100px;
    border: 2px solid #bed6f8;
    border-radius: 4px;
    padding: 2px;
    padding-bottom: 4px;
    background: #bed6f8;
    display: block;
    text-align: center;
    margin-left: 10px;
    margin-top: 5px
}

.rf-ind-acpt {
    border: 2px solid green;
    background: #bed6f8;
}

.rf-ind-rejt {
    border: 2px solid red;
    background: #bed6f8;
}

.table1 {
    font-family: Arial, Verdana, Tahoma;
    /*font-size: 11px;*/
    color: black;
}

.buttonRight {
    float: right;
}

.buttonLeft {
    float: left;
}

.plflag {
    background: url("../../icons/pl.png") no-repeat scroll 0 3px !important;
    width: 16px;
    height: 16px;
    margin-right: 3px;
}

.enflag {
    background: url("../../icons/en.png") no-repeat scroll 0 3px !important;
    width: 16px;
    height: 16px;
    margin-right: 3px;
}

.ui-state-highlight2 {
    border: 3px dashed green;
    background: #eee;
}

.dataGrid td {
    vertical-align: top !important;
}

.radio {
    padding: 0 !important;
    margin: 0 !important;
    width: 500px !important;
}

.ui-panelgrid tr, .ui-panelgrid td {
    border: none !important;
    background: none !important;
}

.ui-panelgrid-even tr, .ui-panelgrid-even td {
    border: none !important;
    background: none !important;
}

.ui-growl {
    right: 2%;
    top: 2%;
    width: 30%;
    height: 30%;
    font-size: 14px;
}

.ui-growl-message {
    width: 90%;
}

.ui-growl-message p {
    /*font-size: 18px;*/

}

div.ui-datepicker {
    /*font-size: 10px !important;*/

}

.ui-wizard-step-title {
    /*font-size: 11px;*/

}

.ui-datalist-content {
    border: 0 !important;
    background: none !important;
}

.ui-dialog-buttonpane {
    text-align: center !important;
}

.warning-message {
    font-weight: bold;
    background: pink;
    border: 1px solid red;
    margin-top: 5px;
    margin-bottom: 5px;
}

.no_border_dataGrid {
    border: 0;
    border-style: none !important;
    padding: 2px;
    margin: 0;
}

.no_border_dataGrid td, .no_border_dataGrid tr {
    border: 0;
    border-style: none !important;
}

.fs1 {
    width: 18%;
    text-align: right;
    margin-right: 4px;
}

.fs2 {
    width: 10%;
}

.fs3 {
    width: 22%;
    text-align: right;
    margin-right: 4px;
}

.fs4 {
    width: 60%;
}

.ui-sticky-panel {
    width: 100%;
    margin: auto;
    margin-bottom: 3px;
    box-shadow: none !important;
    text-align: center;
    border: 0;
    padding: 0;
    vertical-align: middle;
}

.fixed-size {
    table-layout: fixed;
    word-wrap: break-word;
}

.rowodd {
    background: #eeeeee;
}

.roweven {
    background: #dddddd;
}

.ui-growl {
    top: 0;
    right: 0;
    height: 50px;
}

.ui-panelgrid-special {
    width: 700px;
}

.label {
    border: 1px solid #aaaaaa !important;
    width: 200px;
    word-wrap: break-word;
}

.value {
    border: 1px solid #aaaaaa !important;
    width: 500px;
    word-break: break-all;
}

.details-table {
    width: 90%;
    margin: 10px auto;

}

.label-even {
    border: 1px solid #aaaaaa !important;
    width: 20%;
    word-break: break-all;
    background: #eeeeee;
}

.value-even {
    border: 1px solid #aaaaaa !important;
    width: 80%;
    word-break: break-all;
    background: #aaaaaa;
}

.upperDiv {
    border: 0;
    margin: 0;
    border-bottom: 1px solid #cdc3b7;
    border-style: dashed;
    padding: 1px 3px;
    min-height: 15px;
}

.lowerDiv {
    border: 0;
    margin: 0;
    padding: 1px 3px;
    min-height: 15px;
}

ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td, .ui-datatable tfoot th {
    padding: 3px 8px;
}

.buttonActive {
    background: #337722;
}

.buttonInactive {
    background: none;
}

.ui-panelgrid-cell {
    vertical-align: top;
}


.mainContainer {
    width: 100vw !important;
    height: 100vh !important;

    background-image: url("../../grafika/Logo-stowarzyszenie.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: fixed !important;

    /* Zachowuje proporcje obrazu i ogranicza wysokość do 80% ekranu */
    background-size: auto 80vh !important;

    margin: 0 !important;
}

.mainContainerInnerDiv {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 95%;
    vertical-align: top;
    margin: 70px auto auto;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.17);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.4px);
    -webkit-backdrop-filter: blur(4.4px);
    border: 1px solid rgba(255, 255, 255, 0.34);
    padding: 10px;
}

.mainContainerResultsDiv {
    width: 91%;
    height: fit-content;
    vertical-align: top;
    margin: 20px auto auto;
    padding-top: 25px;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.17);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.4px);
    -webkit-backdrop-filter: blur(4.4px);
    border: 1px solid rgba(255, 255, 255, 0.34);
}


.mainContainerRegisterDiv {
    width: 310px;
    height: fit-content;
    vertical-align: top;
    margin: auto;
    margin-bottom: 10px;
    margin-top: 100px;
    padding: 20px;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.17);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.4px);
    -webkit-backdrop-filter: blur(4.4px);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.labelColumn {
    width: 45%;
    text-align: right;
    padding-right: 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.inputColumn {
    width: 55%;
    text-align: left;
}

.mainContainerRegisterWithClauseDiv {
    width: 510px;
    height: fit-content;
    vertical-align: top;
    margin: auto;
    margin-bottom: 10px;
    margin-top: 100px;
    padding: 20px;

    /* Glass effect */
    background: rgba(255, 255, 255, 0.17);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.4px);
    -webkit-backdrop-filter: blur(4.4px);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.ui-datatable-resizable thead th, .ui-datatable-resizable tbody td, .ui-datatable-resizable tfoot td {
    white-space: normal;
}

.headerDivStyle {
    position: fixed;
    width: 98%;
    height: 60px;
    margin: 5px 0 0 0;
    border: 0;
    padding: 10px 10px;
    z-index: 200;
    top: 0;
    display: flex;
    align-items: start;
    gap: 15px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8); /* półprzezroczyste tło dla efektu szkła */
    backdrop-filter: blur(10px); /* rozmycie tła za elementem */
    -webkit-backdrop-filter: blur(10px); /* wsparcie dla Safari */
    border-radius: 10px; /* lekko zaokrąglone rogi */
    border: 1px solid rgba(255, 255, 255, 0.3); /* subtelna ramka dla efektu szkła */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* delikatny cień pod nagłówkiem */
}


.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* wider gap between cards */
    width: 90%;
    margin-top: 15px;
}

.card-basic {
    border: 1px solid var(--surface-border, #dcdcdc);
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-top: 70px;
    width: 600px;
    background: rgba(255, 255, 255, 0.8); /* półprzezroczyste tło dla efektu szkła */
    backdrop-filter: blur(10px); /* rozmycie tła za elementem */
    -webkit-backdrop-filter: blur(10px); /* wsparcie dla Safari */

}

.card {
    border: 1px solid var(--surface-border, #dcdcdc);
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8); /* półprzezroczyste tło dla efektu szkła */
    backdrop-filter: blur(10px); /* rozmycie tła za elementem */
    -webkit-backdrop-filter: blur(10px); /* wsparcie dla Safari */


}

.section-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* vertical spacing between fields */
}

.inline-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.button-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}


.form-flex {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* vertical spacing between rows */
    width: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-label {
    flex: 0 0 180px; /* label column width */
    font-weight: 500;
}

.form-input {
    flex: 1;
}

.form-row-full {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive: stack label + input */
@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-label {
        flex: none;
    }
}

.ui-datatable-header {
    background-color: rgb(33, 150, 243);
    color: white;
}


/* ============================================================
   TABELE WYNIKÓW WYSZUKIWANIA
   ============================================================ */

.search-results-table {
    width: 95% !important;
    margin: auto !important;
}


/*
 * Stały układ zapobiega rozpychaniu tabeli
 * przez bardzo długie nazwiska/miejscowości.
 */
.search-results-table table {
    table-layout: fixed !important;
    width: 100% !important;
}


/*
 * Kompaktowy padding.
 */
.search-results-table .ui-datatable-data > tr > td,
.search-results-table .ui-datatable-thead > tr > th {
    padding: 4px 6px !important;
    box-sizing: border-box;
}


/*
 * Standardowo nie pozwalamy tekstowi
 * rozszerzać kolumny.
 */
.search-results-table .compact-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/*
 * Element przełączający szczegóły.
 */
.search-results-table .col-toggler {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: center;
}


/*
 * Kolumna źródła.
 */
.search-results-table .col-source {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: center;
}


/*
 * Wąskie kolumny.
 */
.search-results-table .col-year {
    width: 65px !important;
    text-align: center;
}

.search-results-table .col-record {
    width: 55px !important;
    text-align: center;
}

.search-results-table .col-date {
    width: 105px !important;
    text-align: center;
}

.search-results-table .col-age {
    width: 55px !important;
    text-align: center;
}


/*
 * Kolumny standardowe.
 */
.search-results-table .col-parish {
    width: 125px !important;
}

.search-results-table .col-place {
    width: 185px !important;
}

.search-results-table .col-firstname {
    width: 165px !important;
}

.search-results-table .col-lastname {
    width: 170px !important;
}

.search-results-table .col-parent {
    width: 170px !important;
}


/*
 * Śluby - dwie osoby w jednej komórce.
 */
.search-results-table .col-wedding-place {
    width: 190px !important;
}

.search-results-table .col-wedding-firstname {
    width: 165px !important;
}

.search-results-table .col-wedding-lastname {
    width: 175px !important;
}

.search-results-table .col-maiden {
    width: 170px !important;
}


/*
 * Rodzice przy zgonach.
 */
.search-results-table .col-parents {
    width: 250px !important;
}


/*
 * Tekst wewnątrz górnego/dolnego wiersza
 * również nie rozpycha komórki.
 */
.search-results-table .upperDiv,
.search-results-table .lowerDiv {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/*
 * Szczegóły pozostają normalnie zawijane.
 */
.search-results-table .details-table td {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}


/*
 * Przy mniejszych ekranach pozwalamy PrimeFaces
 * użyć poziomego przewijania zamiast ściskania danych.
 */
@media (max-width: 1300px) {

    .search-results-table table {
        min-width: 1200px;
    }
}

.import-page {
    width: min(900px, 94vw);
    margin: 90px auto 30px auto;
}

.import-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);

    padding: 24px;
}

.import-section {
    margin-bottom: 28px;
}

.import-section:last-child {
    margin-bottom: 0;
}

.import-section-title {

    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.import-description {
    display: block;
    margin-top: 10px;
    color: #555;
    line-height: 1.4;
}

.import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.import-file-upload {
    width: 100%;
}

.import-file-upload .ui-fileupload {
    width: 100%;
}

.import-file-upload .ui-fileupload-buttonbar,
.import-file-upload .ui-fileupload-content {
    width: 100%;
    box-sizing: border-box;
}

.import-files-table {
    width: 100%;
}

.import-denied {
    width: min(700px, 90vw);
    margin: 120px auto 0 auto;
    padding: 25px;

    text-align: center;

    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid #ddd;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.import-progress-dialog .ui-dialog-content {
    text-align: center;
    padding: 20px;
}

.import-progress-dialog img {
    display: block;
    margin: 0 auto 15px auto;
}

.import-progress-dialog .ui-progressbar {
    width: 100% !important;
}

/* trochę lepsze zachowanie na mniejszych ekranach */
@media (max-width: 700px) {

    .import-page {
        width: 96vw;
        margin-top: 80px;
    }

    .import-card {
        padding: 14px;
    }

    .import-actions {
        flex-direction: column;
    }

    .import-actions .ui-button {
        width: 100%;
    }
}


