body {
    background-color: #8A2BE2; 
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

body.invoice-background {
    background-color: #ffffff;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
}

.invoice-canvas {
    position: relative;
    width: min(90vw, 1200px);
    margin: 0 auto;
}

.invoice-template {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.invoice-template:hover {
    transform: none;
    box-shadow: none;
}

.invoice-field {
    position: absolute;
    color: #111;
    font-size: 14px;
    font-family: "Arial", sans-serif;
    line-height: 1.45;
    white-space: pre-line;
}

.invoice-block {
    position: absolute;
    color: #111;
    font-size: 14px;
    font-family: "Arial", sans-serif;
    line-height: 1.5;
    white-space: pre-line;
    background: rgba(255, 255, 255, 0.75);
    padding: 6px 8px;
    border-radius: 4px;
}

.invoice-block strong {
    font-weight: 600;
}

.invoice-items {
    position: absolute;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 4px;
    padding: 6px 8px; /* zmien tu padding aby przesunac tabele uslug */
    display: grid;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
}

.invoice-item-row {
    display: grid;
    grid-template-columns: 40px 260px 80px 80px 110px 120px 80px 120px; /* zmien szerokosc kolumn tutaj: LP, Nazwa, JM, Ilosc, Cena netto, Wartosc netto, VAT, Brutto */
    gap: 6px;
    font-size: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    padding: 4px 6px; /* zmien padding aby przesunac tekst w komorce */
}

.invoice-item-row.header {
    font-weight: 600;
    background: rgba(220, 220, 220, 0.85);
}

.invoice-item-row span {
    display: block;
}

.invoice-item-row .align-right {
    text-align: right;
}


h1 {
    color: white;
    text-align: center;
    margin: 20px 0;
}

.drabina {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
    margin-top: 20px;
}

p {
    color: white;
    text-align: center;
    font-size: 18px;
}

a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 200px;
    text-align: center;
}

a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: rgba(167, 32, 32, 0.2);
}
.kol{
    padding: 0%;
    margin: 0%;
    float: left;
    width: 100%;
    background-color: #8A2BE2;
    
    text-align: center;
}
.kol1{
    padding: 0%;
    margin: 0%;
    float: left;
    width: 100%;
    background-color: #8A2BE2;
    color:  white;
    text-align: center;
}
.kol3{
    padding: 0%;
    margin: 0%;
    float: left;
    width: 33%;
    background-color: #8A2BE2;
    color: rgb(212, 212, 212);
    text-align: center;
}
.kol4{
    padding: 0%;
    margin: 0%;
    float: left;
    width: 25%;
    background-color: #8A2BE2;
    color: rgb(172, 172, 172);
    text-align: center;
}


.calculator {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ff85f5;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.display {
    width: 100%;
    min-height: 60px;
    max-height: 120px; 
    margin-bottom: 20px;
    background-color: #ffc1ef;
    border-radius: 5px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 15px;
    box-sizing: border-box;
    font-size: 24px;
    font-family: monospace;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
    word-wrap: break-word;
    word-break: break-all;
    overflow-y: auto; 
}
.kol2{
    padding: 0%;
    margin: 0%;
    float: left;
    width: 50%;
    background-color: #8A2BE2;
    color: rgb(143, 143, 143);
    text-align: center;
}

img {
    border-radius: 10px;
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: #6B24B2; 
    border: 1px solid #5A1E96; 
    padding: 10px 15px;
    color: white;
    width: 15%;
    margin-bottom: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    background-color: #7B2BC9; 
    box-shadow: 0 0 0 2px #9747FF; 
    border-radius: 5px;
}


::placeholder {
    color: rgba(255, 255, 255, 0.6); 
}





img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.lewy {
    float: left;
    width: 50%;
    padding: 0%;
    box-sizing: border-box;
    text-align: right;
}
.srodek {
    float: left;
    width: 10%;
    padding: 0%;
    box-sizing: border-box;
    text-align: center;
}
.prawy {
    float: left;
    width: 50%;
    padding: 0%;
    box-sizing: border-box;
    text-align: left;
    
}
label {
    color: white;
    font-size: 18px;
}

        .buttons {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 20px;
        }

        button {
            padding: 15px;
            font-size: 18px;
            border: none;
            border-radius: 5px;
            background-color: #ed2bff;
            cursor: pointer;
            color: white;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #e0e0e0;
        }

        .operator {
            background-color: #ffa500;
            color: white;
        }

        .operator_equals {
    grid-column: 1 / -1;
    background-color: #ffa500;
    color: white;
}


        .operator:hover {
            background-color: #ff8c00;
        }

        .clear {
            background-color: #ff4444;
            color: white;
        }

        .clear:hover {
            background-color: #cc0000;
        }


.fakura {
    display: block;
    width: 100%;
    height: auto;
}        
