﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-secondary) !important;
}

:root {
    --color-primary: var(--fp-brand-accent);
    --color-primary-hoover: #2c544e;
    --color-primary-disabled: #92c5ed;
    --color-button: #abd3cd;
    --primary-text-color: #333;
    --color-secondary: #fff;
    --color-alert-info: #cff4fc;
    --button-background-color-transition: background-color 0.3s ease-in-out;
    --color-background: red !important;
}

h3 {
    margin: 0 auto var(--fp-space-8);
    color: var(--fp-brand-accent);
    font-size: 1.2rem;
    font-weight: var(--fp-font-weight-semibold);
    letter-spacing: -0.025em;
    line-height: 1.02;
    text-align: left;
    text-transform: uppercase;
}

h4 {
    margin: 0 auto var(--fp-space-8);
    color: var(--fp-brand-accent);
    font-size: 1.2rem;
    font-weight: var(--fp-font-weight-semibold);
    letter-spacing: -0.025em;
    line-height: 1.02;
    text-align: center;
}

p {
    font-size: 16px;
    color: var(--primary-text-color);
}

p1 {
    font-size: 11px;
    color: var(--primary-text-color);
    padding: 0;
    margin: 0;
}


.spp-module-content {
    justify-content: center;
    margin: auto;
}

.spp-button {
    display: inline-block;
    border-radius: 5px;
    background-color: var(--color-primary);
    border: none;
    font-size: 16px;
    color: var(--color-secondary);
    text-align: center;
    width: 100%;
    cursor: pointer;
    padding: 10px 0;
    transition: background-color .3s ease-in-out;
}

    .spp-button:disabled, .spp-button[disabled] {
        color: #e0e0e0;
        cursor: not-allowed;
        opacity: .7;
    }

    .spp-button span {
        cursor: pointer;
        display: inline-block;
        position: relative;
        transition: .5s;
    }

        .spp-button span:after {
            content: '\00bb';
            position: absolute;
            opacity: 0;
            top: 0;
            right: -20px;
            transition: .5s;
        }

    .spp-button:hover span {
        padding-right: 25px;
    }

        .spp-button:hover span:after {
            opacity: 1;
            right: 0;
        }

    .spp-button:hover {
        background-color: var(--color-primary-hoover);
    }

    .spp-button:disabled:hover span, .spp-button[disabled]:hover span {
        padding-right: 0;
    }

        .spp-button:disabled:hover span:after, .spp-button[disabled]:hover span:after {
            opacity: 0;
            right: -20px;
        }

.spp-form-control {
    font-size: 18px !important;
    text-align: center;
    box-shadow: none !important;
}

    .spp-form-control:active, .spp-form-control:focus {
        border: 1px solid var(--color-primary) !important;
    }

.spp-form-label {
    font-size: 14px;
}

.spp-alert {
    color: var(--primary-text-color);
    margin-top: 30px;
    padding: 1rem;
}

.spp-alert--error {
    border-left: 5px solid red;
    background: rgba(255, 0, 0, 0.15);
    color: #860000;
}

.spp-alert--info {
    border-left: 5px solid #0eb3d8;
    background: rgba(14, 179, 216, 0.15);
    color: #005E73;
}

.spp-alert--details {
    border-bottom: 5px solid #0eb3d8;
    background: rgba(14, 179, 216, 0.15);
    color: #005E73;
}

.spp-info-line {
    display: flex;
    margin: -.7rem 0 1rem;
}

.spp-info-line-icon {
    flex: 0;
    margin: 0 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: left;
}

.spp-info-line-text {
    font-size: 12px;
    text-align: left;
    flex: 1;
}

.spp-form-control-textarea {
    font-size: 14px;
    text-align: left;
}

    .spp-form-control-textarea:focus {
        box-shadow: none;
    }

.spp-alert p {
    color: var(--primary-text-color);
}

#acceptRegulaminReklamacja {
    vertical-align: top;
    margin-right: 10px !important;
    display: inline-block;
}

.button-my {
    display: inline-block;
    border-radius: 5px;
    background-color: var(--color-primary);
    border: none;
    font-size: 16px;
    color: var(--color-secondary);
    text-align: center;
    width: 100%;
    cursor: pointer;
    padding: 10px 0;
    transition: background-color 0.3s ease-in-out;
    margin: 0;
}

    .button-my:disabled,
    .button-my:disabled span,
    .button-my[disabled] span {
        pointer-events: none;
    }

        .button-my:disabled:hover span,
        .button-my[disabled]:hover span {
            padding-right: 0;
        }

            .button-my:disabled:hover span:after,
            .button-my[disabled]:hover span:after {
                opacity: 0;
                right: -20px;
            }

    .button-my[disabled] {
        color: #e0e0e0;
        opacity: 0.7;
    }

    .button-my span {
        cursor: pointer;
        display: inline-block;
        position: relative;
        transition: 0.5s;
    }

        .button-my span:after {
            content: '\00bb';
            position: absolute;
            opacity: 0;
            top: 0;
            right: -20px;
            transition: 0.5s;
        }

    .button-my:hover span {
        padding-right: 25px;
    }

        .button-my:hover span:after {
            opacity: 1;
            right: 0;
        }

    .button-my:hover {
        background-color: var(--color-primary-hoover);
    }


.button-group-tab1 {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

    .button-group-tab1 .button-tab1 {
        width: auto;
        flex: 1 1 0;
        margin: 0;
        display: inline-block;
        border-radius: 5px;
        background-color: var(--color-primary);
        border: none;
        font-size: 16px;
        color: var(--color-secondary);
        text-align: center;
        cursor: pointer;
        padding: 10px 0;
        transition: background-color 0.3s ease-in-out;
    }

        .button-group-tab1 .button-tab1:disabled,
        .button-tab1:disabled span,
        .button-tab1[disabled] span {
            cursor: default !important;
        }

            .button-group-tab1 .button-tab1:disabled:hover span,
            .button-tab1[disabled]:hover span {
                padding-right: 0;
                pointer-events: none;
                cursor: default !important;
                background-color: var(--color-primary-disabled) !important;
            }

                .button-group-tab1 .button-tab1:disabled:hover span:after,
                .button-tab1[disabled]:hover span:after {
                    opacity: 0;
                    right: -20px;
                    cursor: default !important;
                }

        .button-group-tab1 .button-tab1[disabled] {
            background-color: var(--color-primary);
            color: #e0e0e0;
            cursor: default !important;
            opacity: 0.7;
        }

        .button-group-tab1 .button-tab1:hover {
            background-color: var(--color-primary-hoover);
        }

        .button-tab1:disabled:hover,
        .button-tab1[disabled]:hover,
        .button-group-tab1 .button-tab1:disabled:hover,
        .button-group-tab1 .button-tab1[disabled]:hover {
            background-color: var(--color-primary) !important;
            color: var(--color-secondary) !important;
            cursor: default !important;
            box-shadow: none !important;
        }

.form-mychanges {
    font-size: 18px !important;
    text-align: center;
    box-shadow: none !important;
}

    .form-control:active,
    .form-control:focus {
        border: 1px solid var(--color-primary) !important;
    }

.form-mychanges-uzasadnienie {
    font-size: 14px;
    text-align: left;
}

    .form-mychanges-uzasadnienie:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-primary);
    }

.floating-label-mychanges {
    font-size: 14px;
}

.alert-mychanges-blue {
    color: var(--primary-text-color);
    margin-top: 10px;
    border-left: 5px solid #0eb3d8;
    background: #e7f7fa;
}

.alert-mychanges-details {
    color: var(--primary-text-color);
    margin: 10px 0;
    border-bottom: 5px solid #0eb3d8;
    background: #e7f7fa;
}

.abonament-details {
    width: 100%;
    font-size: 14px;
    text-align: left;
}

.abonament-table-top {
    width: 100%;
    margin-bottom: 15px;
}

    .abonament-table-top .col {
        width: 50%;
        font-weight: normal;
    }

.abonament-table-bottom {
    width: 100%;
}

    .abonament-table-bottom .col {
        width: 50%;
        font-weight: normal;
    }

.dod-details {
    width: 100%;
    font-size: 14px;
    text-align: left;
}

.dod-table-1 {
    width: 100%;
    margin-bottom: 15px;
}

    .dod-table-1 .col {
        width: calc(100% / 3);
        font-weight: normal;
    }

.dod-table-2 {
    width: 100%;
}

    .dod-table-2 .col {
        width: calc(100% / 3);
        font-weight: normal;
    }

.form-check-input:checked {
    background-color: var(--color-primary) !important;
}

.checkbox-zmiany {
    width: 14px;
    height: 14px;
}

.reklamacje-rodo {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    width: 100%;
    margin: 8px 0;
}

.reklamacje-rodo__checkbox {
    flex: none;
    margin: 0;
}

.reklamacje-rodo__tekst {
    min-width: 0;
    margin: 0 0 10px 0;
    text-align: left;
    padding: 0;
    line-height: 1;
}


/*  BOX - PRZEŚLIJ DOKUMENTY  */

.available-space {
    font-size: 13px;
    color: var(--primary-text-color);
    margin: 0 auto 10px;
    width: 100%;
    border: none;
    padding: 5px 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: var(--fp-neutral-0);
}

.zalaczniki-informacje {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.zalaczniki-informacje__miejsce {
    text-align: left;
    font-size: 12px;
}

.zalaczniki-informacje__formaty {
    text-align: right;
    font-size: 12px;
}

@media (max-width: 640px) {
    .zalaczniki-informacje {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .zalaczniki-informacje__miejsce,
    .zalaczniki-informacje__formaty {
        text-align: left;
    }
}


/* Główny układ: ładowanie po lewej, lista plików po prawej */
.attachments-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    width: 100%;
}

/* Lewa kolumna */
.attachments-upload {
    min-width: 0;
}

.attachments-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 219.5px;
    padding: 1.25rem;
    border: 1px dashed #9bb9b5;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.attachments-select {
    display: flex;
    justify-content: center;
    width: 100%;
}

.attachments-select-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 0.7rem 1.25rem;
    border-radius: 6px;
    background: #0d3947;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .attachments-select-label:hover {
        background: #185464;
    }

.attachments-drop-hint {
    color: var(--fp-neutral-500);
    font-size: 12px;
}

.attachments-notice,
.attachments-error {
    width: 100%;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.attachments-error {
    color: #c62828;
}

/* Postęp przesyłania */
.attachments-progress-item {
    width: 100%;
    text-align: left;
}

.attachments-progress-name {
    margin-bottom: 3px;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.attachments-progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edef;
}

.attachments-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: #0d3947;
    transition: width 0.2s ease;
}

/* Prawa kolumna */
.attachments-files {
    min-width: 0;
}

.attachments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 219.5px;
    padding: 20px;
    text-align: center;
    background: var(--fp-brand-surface-warm);
    border: 1px solid #d6eee4;
    border-radius: 12px;
    box-sizing: border-box;
}

.attachments-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 15px;
    color: #0d3947;
    background: #ffffff;
    border: 1px solid #d6eee4;
    border-radius: 50%;
    padding: 5px;
}

.attachments-empty__title {
    margin: 0 0 10px;
    color: #0d3947;
    font-size: 15px;
    font-weight: 600;
}

.attachments-empty__description {
    max-width: 360px;
    margin: 0;
    color: #587681;
    font-size: 12px;
    line-height: 1.25;
}


.attachments-files-heading {
    margin-bottom: 4px;
    color: #103b49;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
}

.attachments-files-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attachments-file {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4ece9;
    border-radius: 7px;
    background: #fff;
}

.attachments-file-name {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    color: #304b53;
    font-size: 12px;
    overflow-wrap: anywhere;
    text-align: left;
}

.attachments-file-remove {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    border: 0;
    background: transparent;
    color: #87979b;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .attachments-file-remove:hover {
        background: #fff0ef;
        color: #d64545;
    }

.attachments-file-remove-icon {
    display: block;
}

/* Węższe ekrany */
@media (max-width: 700px) {
    .attachments-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .attachments-drop-zone {
        min-height: 160px;
    }
}

.progress-bar {
    background-color: var(--color-primary) !important;
    height: 
}

.upl-files-button-label {
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
}

    .store-box-przeslij-dokumenty .komunikat-err {
        color: red;
        font-size: 12px;
        text-align: left;
        width: 60%;
        line-height: 1.1;
        margin: 5px auto 0;
        animation: pulse_err 1.2s 3;
    }

    .store-box-przeslij-dokumenty .upload-container {
        display: flex;
        justify-content: center;
        gap: var(--gap-box);
        flex-flow: row wrap;
        margin-top: 0px;
        margin-bottom: 5px;
    }

        .store-box-przeslij-dokumenty .upload-container .upload-liczba-plikow {
            color: var(--text-color-dark);
            font-size: 12px;
            width: 100%;
            text-align: center;
            line-height: 1.1;
            margin-bottom: 5px;
        }

        .store-box-przeslij-dokumenty .upload-container .upload-error-alert {
            color: red;
            font-size: 12px;
            width: 100%;
            text-align: center;
            line-height: 1.1;
            margin-bottom: 5px;
            animation: pulse_upload-error-alert 1.2s 3;
        }

@keyframes pulse_upload-error-alert {
    0% {
        color: red;
    }

    50% {
        color: var(--color-secondary);
    }

    100% {
        color: red;
    }
}

.progress {
    margin: 5px auto;
    height: 16px;
}

.prg-filename-lbl {
    color: var(--text-color-dark);
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 2px;
}

.prg-w95 {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.filelist-header {
    font-size: 13px;
    color: var(--text-color-dark);
    padding: 0;
}

.file-delete-section {
    width: 100%;
    margin: 0 auto 8px;
    height: auto;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

    .file-delete-section .filename {
        font-size: 12px;
        color: var(--text-color-dark);
        background-color: var(--color-secondary);
        width: calc(100% - 50px);
        padding: 8px;
        word-break: break-all;
        text-align: left;
        display: flex;
        align-items: center;
    }

    .file-delete-section .delete-file-button {
        width: 50px;
        border: none;
        display: flex;
        background-color: #fee8e7;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.4s cubic-bezier(0.4,0,0.2,1);
    }

        .file-delete-section .delete-file-button:hover {
            background: #f44336 !important;
        }

            .file-delete-section .delete-file-button:hover .trash-icon {
                fill: var(--color-secondary) !important;
                transition: fill 0.4s cubic-bezier(0.4,0,0.2,1);
                animation: shake 0.4s;
                animation-iteration-count: 1;
            }

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

.file-delete-section .delete-file-button:focus {
    outline: none;
}


@keyframes expandLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (max-width: 768px) {

    .expand-btn {
        visibility: hidden;
    }

    .header-container {
        width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .store-box-przeslij-dokumenty .upl-files-button {
        width: 80%;
    }

    .upl-files-button-label {
        font-size: 0.8rem;
    }

    .tab-container {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 15px;
        overflow: hidden;
        min-height: calc(100vh - 100px);
        margin-bottom: 20px;
    }

    .logo {
        width: 400px;
        margin-bottom: 10px;
    }

    .floating-label-mychanges {
        width: 100%;
        font-size: 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto
    }

    .confirm-modal-content {
        width: 92%;
        padding: 54px 18px 20px;
    }

    .confirm-icon {
        top: -40px;
        width: 72px;
        height: 72px;
    }

    .confirm-title {
        font-size: 18px;
    }

    .confirm-btn {
        min-width: 140px;
    }
}
