.horizontal-wrapper-label::after {
  display: flex;
  content: '*';
  align-items: center;
  margin-left: 5px;
  color: transparent;
}

.horizontal-wrapper-label.required::after {
  color: var(--kolor-akcent);
}

.binder-label {
    box-sizing: border-box;
    display: flex;
    justify-content: end;
    cursor: pointer;
    user-select: none;
}

/* Horizontal wrapper */

.horizontal-wrapper {
    --label-width: 200px;
    --control-width: calc(100% - var(--label-width));
}

.horizontal-wrapper-label {
}

.horizontal-wrapper-sublabel {
}

.horizontal-wrapper-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.horizontal-wrapper-label-container {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    width: var(--label-width);
    text-align: right;
}


.horizontal-wrapper-label-container::before {
    max-height: calc(var(--input-wysokosc) / 2);
    display: block;
    content: '';
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 0;
}

.horizontal-wrapper-control-container {
    width: var(--control-width);
}

/* Vertical wrapper */

.vertical-wrapper {
}

.vertical-wrapper-label:not(:empty) {
    font-weight: 700;
    border-bottom: 3px solid var(--kolor-glowny);
    justify-content: start;
}

.vertical-wrapper-sublabel {
}

.grid-layout {
}

@media (max-width: 850px) {
    /* General grid responsiveness */
    .grid-responsive-850 {
        display: flex !important;
        flex-direction: column !important;
    }

    .grid-responsive-850 > * {
        width: 100% !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }

    /* Headers should be full width and have proper spacing */
    .grid-responsive-850 h3 {
        width: 100% !important;
        text-align: left !important;
        margin-top: 30px !important;
        margin-bottom: 15px !important;
        padding-bottom: 5px !important;
        border-bottom: 1px solid #eee !important;
        order: 1 !important; /* Force headers to appear in document order */
    }

    /* Reset any grid positioning that might be applied */
    .grid-responsive-850 [colspan="2"],
    .grid-responsive-850 [data-colspan="2"] {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    /* Ensure headers are properly spaced from previous content */
    .grid-responsive-850 h3:first-child {
        margin-top: 0 !important;
    }

    /* Align labels to the left on mobile */
    .grid-responsive-850 .binder-label,
    .grid-responsive-850 .generator-label,
    .grid-responsive-850 .horizontal-wrapper-label-container,
    .grid-responsive-850 .horizontal-wrapper-label {
        text-align: left !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding-left: 0 !important;
    }

    /* Ensure the label container is also properly aligned */
    .grid-responsive-850 .horizontal-wrapper-label-container {
        width: 100% !important;
        display: block !important;
    }

    /* Fix any table-based layouts that might be used for labels */
    .grid-responsive-850 td[align="right"] {
        text-align: left !important;
    }

    /* Fix for any elements with right alignment classes */
    .grid-responsive-850 [align="right"],
    .grid-responsive-850 [style*="text-align: right"] {
        text-align: left !important;
    }

    /* Override any specific width settings on label containers */
    .grid-responsive-850 .horizontal-wrapper {
        --label-width: 100% !important;
    }
}


.column-layout {
    display: flex;
    flex-direction: column;
}

.tab-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.tab-layout-buttons-container {
    display: flex;
    width: 100%;
}

.tab-layout-content-container {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
}

.tab-layout-button {

}

.number-field {
}

.text-field {
}

.text-area {
}

.v-success {
}

.v-info {
    --input-kolor-obramowanie: var(--kolor-info);
}

.v-warn {
    --input-kolor-obramowanie: var(--kolor-ostrzezenie);
}

.v-error {
    --input-kolor-obramowanie: var(--kolor-blad);
}