.pricing-section:nth-of-type(2) {
    padding-top: 15px !important; 
}

.pricing-section:nth-child(even) {
    background: #f9f9f9;
}

section:not(:first-of-type) {
    padding: 40px 0;
}

h2.pricing-category {
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border-left: 5px solid #e86f00;
    padding-left: 10px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
}

.pricing-card {
    position: relative;
    background: #FEF7F0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 2px 2px 10px rgb(76 76 76 / 25%);
    width: 100%;
}

.body-flex .pricing-card {
    transition: transform 0.3s;
}

@media (max-width: 1200px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card:hover {
    transform: translateY(-3px);
}

.pricing-card-title {
    color: #e86f00;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 500;
}

.pricing-card-description {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    font-size: 16px;
}

.pricing-card-price {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    font-weight: 600;
}
.notes {
    margin-top: 25px;
}
.notes.app {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.note-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.note {
    position: relative;
    padding: 0px 12px 0px 24px;
    color: #333;
    font-size: 16px;
    width: 100%;
    line-height: 1.3;
}
.note::before {
    content: "*"; 
    color: #e86f00; 
    font-size: 24px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-weight: 500;
}

/*Cenová kalkulace*/
.calculator-wrap {
    margin-top: 50px;
}
.pricing-category.calculator {
    font-size: 20px;
    margin: 25px 0px 15px 0px;
    padding: 5px 15px;
    border-left: 6px solid #e86f00;
    color: #1a1a1a;
}
#final-price {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.calc-item {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f7f7f7;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}
.calc-title {
    flex: 1;
    margin-right: 10px;
}
.calc-description {
    display: block;
    font-size: 14px;
    color: #666;
}
.calc-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}
.calc-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: rgb(13 52 13);
    color: white;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}
.calc-count {
    width: 60px;
    font-size: 16px;
    padding: 5px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.calc-total {
    text-align: right;
    font-weight: bold;
    margin: 0px 10px;
    min-width: 120px;
    font-size: 18px;
}

.calculator-result {
    margin-top: 25px;
    padding: 15px;
    background: rgb(13 52 13);
    color: white;
    border-radius: 10px;
    font-size: 20px;
}
.calc-price {
    margin: 0px 15px;
    font-weight: 500;
    width: 100%;
    max-width: 100px;
}

.calc-title-flex {
    display: flex;
    align-items: center;
    flex: 2;
}
.calc-count-flex {
    display: flex;
    align-items: center;
    justify-content: end;
}
@media (max-width: 500px) {
    .calc-count-flex {
        flex-direction: column;
        align-items: end;
        gap: 5px;
    }
    .calc-total {
        min-width: 0px;
    }
}
@media (max-width: 600px) {
    .calc-title-flex {
        flex-direction: column;
        align-items: start;
        gap: 5px;
    }
    .calc-price {
        margin: 0;
    }
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: #e86f00;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s;
}

.download-btn:hover {
    background-color: #d25b00;
}

.pricelist-pdf {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.pricelist-download {
    background-color: #fff3e7;
    padding: 40px 0;
}

/*App*/
.pricing-section.app {
    padding: 20px 15px !important;
    background-color: #ffffffbd;
    position: relative;
    border-radius: 20px;
}
.pricing-section.app:not(:first-of-type) {
    margin-top: 30px;
}
.pricing-card.app {
    padding: 30px 20px 20px 25px;
}
.pricing-card.app a.delete-link {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e86f00;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.pricelist-bellow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}
.pricelist-bellow p {
    font-size: 14px;
    color: rgb(125, 125, 125);
    font-style: italic;
}
.pricelist-actions {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pricelist-actions a {
    background-color: rgb(210, 0, 0);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s all;
}

.pricelist-actions a:hover {
    transform: translateY(-2px);
}

.pricelist-actions a:first-of-type {
    background-color: #e86f00;
}
.pricing-section .inactive {
    filter: grayscale(100%);
    transition: filter 0.3s, opacity 0.3s;
}
.handle.item {
    position: absolute;
    top: 5px;
    left: 5px;
}
.handle.section {
    position: static;
    width: 35px;
    height: 35px;
}
.handle.single-note {
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    z-index: 1;
}
.handle svg {
    color: black;
}
.handle:hover {
    background-color: #21212175;
}

.pricing-item.add {
    transition: 0.3s all;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed #e86f00;
    border-radius: 15px;
    padding: 20px;
    color: #e86f00;
    cursor: pointer;
    transition: 0.3s all;
    min-height: 150px;
}

.rename-flex {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    align-items: stretch;
}
input[type="submit"].rename-submit {
    background-color: #e86f00 !important;
    padding: 5px 10px;
    border-radius: 5px;
}
input[type="submit"].rename-submit:hover {
    transform: none;
}
input.rename-name {
    width: 100%;
    border-radius: 5px;
    border: none;
    padding: 5px 10px;
    min-width: 50px;
    font-size: 20px;
    font-weight: 500;
    border: 1px solid #e86f00;
}
.pricing-card-title.app {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 500;
    color: #e86f00;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 0;
}
.pricing-card-description.app {
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 500;
    padding: 5px;
    margin-top: 5px;
}
.pricing-card-price.app {
    width: 100%;
    border: none;
    background: transparent;
    padding: 5px;
}
.pricing-card.app:hover {
    transform: none;
}
.note-input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    border-left: 3px solid #d0d0d0;
    border: 1px solid #e86f00;
    background-color: #FEF7F0;
    color: black;
}
input[type="submit"].note-submit {
    padding: 8px 15px;
    border-radius: 8px !important;
    background-color: #e86f00 !important;
    margin-top: 10px;
    font-size: 16px;
}
.note-item {
    position: relative;
}
.note-item a.delete-link {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    color: #e86f00;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.note.app {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 8px 30px 8px 40px;
    border-radius: 5px;
}

.note-items.app {
    gap: 5px;
}

.calculator-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0px;
}

.calculator-group label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.calculator-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.calculator-checkbox {
    position: relative;
    width: 60px;
    height: 25px;
    background-color: rgb(75 85 99);
    border-radius: 9999px;
    transition: 0.3s all;
}

.pricing-settings-flex {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}
.pricing-settings {
    display: flex;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.pricing-settings .year,
.pricing-settings .pdf-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.pdf-link:link,
.pdf-link:visited {
    color: black;
    text-decoration: underline;
}

.pricing-settings form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.pricing-settings input[type="submit"] {
    background-color: #e86f00 !important;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s all;
    font-size: 14px;
}

.pricing-settings input[type="submit"]:hover {
    background-color: #d25b00;
}

.pricing-settings .year select {
    appearance: none;       
    -webkit-appearance: none;  
    -moz-appearance: none;    
    padding: 6px 36px 6px 10px; 
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'); 
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    cursor: pointer;
    transition: .3s all;
}

.pricing-settings .year select:focus {
    border-color: #e86f00;
    box-shadow: 0 0 0 2px rgba(232, 111, 0, 0.2);
    outline: none;
}

.pdf-upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-btn {
    background-color: #e86f00;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s all;
    display: inline-block;
    position: relative;
    font-size: 14px;
    display: flex;
    gap: 5px;
    align-items: center;
    border: none;
    text-decoration: none;
    font-size: 14px;
}

.settings-btn.delete {
    background-color: rgb(210, 0, 0);
}

.settings-btn:hover {
    background-color: #d25b00;
}

.settings-btn.delete:hover {
    background-color: rgb(228, 0, 0);
}

.settings-btn input[type="file"] {
    position: absolute;
    width: 250px;
    height: 35px;
    opacity: 0;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: -1;
}

#filename {
    font-size: 14px;
    color: #333;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-upload-form input[type="submit"] {
    background-color: #e86f00;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s all;
}

.pdf-upload-form input[type="submit"]:hover {
    background-color: #d25b00;
}

.drag-chosen {
    border-radius: 10px;
}

.sortable-drag {
    opacity: 1 !important;
}

.handle:active {
    cursor: grabbing !important;
}

.sortable-ghost {
    opacity: 0 !important; 
}

.sortable-drag {
    opacity: 1 !important;
    z-index: 9999;
}
