/* Pagrindiniai elementai */
#stasi-calc-app { width: 100%; margin: 20px auto; font-family: sans-serif; color: #000; font-weight: 600; }
.calc-card { background: #fff; border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.card-header { 
    padding: 15px 20px; 
    background: #fff; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: background 0.3s;
}
.card-header:hover { background: #fcfcfc; }

.card-header h3 {
    margin: 0;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #000;
}

.plus-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}
.card-header.active .plus-icon {
    transform: rotate(45deg);
}

.card-body { padding: 10px 20px; display: none; border-top: 1px solid #f5f5f5; }

/* Eilutės */
.calc-row { padding: 15px 0; border-bottom: 1px solid #f5f5f5; }
.calc-row:last-child { border-bottom: none; }
.row-info { display: flex; justify-content: space-between; margin-bottom: 10px; }

.row-title { 
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333;
}

.row-price { font-size: 13px; color: #666; }

/* SLIDERIO STILIUS */
.slider-container { display: flex; align-items: center; gap: 15px; }
input[type=range].sl {
    -webkit-appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 5px;
    background: #e5e5e5;
    background-image: linear-gradient(#000, #000);
    background-repeat: no-repeat;
    background-size: 0% 100%;
}
input[type=range].sl::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    border-radius: 50%; background: #000;
    cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Kiekio valdymo mygtukai - PADIDINTI MOBILIEMS */
.qt-wrap { 
    display: flex; 
    align-items: center; 
    background: #f0f0f0; 
    border-radius: 8px; 
    padding: 4px; 
    min-width: 110px; 
    justify-content: space-between; 
}
.qt-wrap button { 
    background: #fff; 
    border: 1px solid #ddd; 
    width: 36px; 
    height: 36px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 22px; 
    color: #000; 
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qt-wrap button:active { background: #e0e0e0; }
.val-display { font-weight: bold; min-width: 45px; text-align: center; font-size: 18px; margin: 0 8px; }

/* Sliderio patobulinimas mobiliems */
@media (max-width: 600px) {
    .slider-container { flex-direction: column; align-items: stretch; gap: 10px; }
    .qt-wrap { align-self: flex-end; }
    input[type=range].sl { height: 8px; } /* Storesnis slideris lengvesniam pataikymui */
}

/* Mygtukai */
.btn-black { 
    background: #000000 !important; 
    color: #ffffff !important; 
    border: none; 
    padding: 14px 25px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s; 
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-black:hover { opacity: 0.8 !important; }

.btn-outline { 
    background: transparent !important; 
    border: 2px solid #000000 !important; 
    color: #000000 !important; 
    padding: 12px 25px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s;
    width: 100%;
}

#total-area { margin-top: 30px; padding-top: 0; border-top: none; }
#total-display { color: #000; font-size: 24px; font-weight: 700; margin-bottom: 5px; }
#total-display-pvm { font-size: 18px; color: #666; margin-bottom: 5px; }
#total-display-final { font-size: 28px; font-weight: 800; color: #000; }

/* MODAL POP-UP */
#client-modal {
    display: none; position: fixed; z-index: 999999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); align-items: center; justify-content: center;
    overflow-y: auto; /* Leidžia slinkti visą modalą jei jis netelpa */
    padding: 20px 0;
}
.modal-content {
    background: #fff !important; padding: 30px !important; border-radius: 12px !important;
    width: 500px !important; /* Šiek tiek platesnis geresniam vaizdui planšetėse */
    max-width: 90% !important; box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: #000 !important;
    margin: auto;
    position: relative;
}

/* Prisitaikymas prie labai mažų ekranų */
@media (max-width: 400px) {
    .modal-content { padding: 20px !important; }
    .doc-type-selector { flex-direction: column; align-items: flex-start; }
}

/* Mobiliems įrenginiams pritaikytas modalo aukštis */
@media (max-height: 700px) {
    #client-modal { align-items: flex-start; }
    .modal-content { margin-top: 20px; margin-bottom: 20px; }
}
.modal-content h3 { margin-top: 0; margin-bottom: 20px; font-size: 22px; text-align: center; color: #000 !important; }

.modal-content input[type="text"], 
.modal-content input[type="email"], 
.modal-content input[type="date"] {
    display: block !important; width: 100% !important;
    margin-bottom: 12px !important; padding: 12px !important;
    border: 1px solid #ddd !important; border-radius: 6px !important;
    font-size: 14px !important; box-sizing: border-box !important;
    background: #fff !important; color: #000 !important;
}

.modal-content input::placeholder { color: #999 !important; opacity: 1; }

.modal-content label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: #333 !important; }
.required-star { color: red; margin-left: 3px; }

.doc-type-selector {
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.doc-type-selector label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    font-size: 14px;
    font-weight: 700;
    color: #000 !important;
}
.doc-type-selector input[type="radio"] { 
    margin: 0; 
    width: 20px !important; 
    height: 20px !important; 
}

#vilnius-warning {
    background: #fff3cd; color: #856404; padding: 10px; border-radius: 6px; 
    margin-bottom: 15px; font-size: 13px; border: 1px solid #ffeeba; display: none;
}
