/* Generator Cenówek PRO v2 - Style arkusza i interfejsu */
:root {
    --primary-green: #1f7a1f;
    --accent-lime: #8cc63f;
}

body {
    background-color: #f4f6f8;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #212529;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.preview-wrapper {
    background: repeating-conic-gradient(#e9ecef 0% 25%, #f8f9fa 0% 50%) 50% / 20px 20px;
    border: 2px dashed #ced4da;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 440px;
}

#labelCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.fruit-gallery-scroll {
    max-height: 290px;
    overflow-y: auto;
    padding-right: 4px;
}

.fruit-thumb-btn {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 6px 4px;
    transition: all 0.16s ease;
    cursor: pointer;
    text-align: center;
    height: 100%;
    position: relative;
}

.fruit-thumb-btn:hover {
    border-color: var(--accent-lime);
    transform: translateY(-2px);
}

.fruit-thumb-btn.active {
    border-color: var(--primary-green);
    background-color: #eef8ee;
    box-shadow: 0 0 0 3px rgba(31, 122, 31, 0.18);
}

.fruit-thumb-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto 3px;
}

.fruit-thumb-btn .item-title {
    font-size: 0.72rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.fruit-thumb-btn .item-unit-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #1f7a1f;
    background: #e6f4ea;
    border-radius: 4px;
    padding: 1px 4px;
    display: inline-block;
    margin-top: 2px;
}

.variant-chip {
    cursor: pointer;
    border: 1.5px solid #1f7a1f;
    background: #fff;
    color: #1f7a1f;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.15s ease;
}

.variant-chip:hover, .variant-chip.active {
    background: #1f7a1f;
    color: #fff;
}

.a4-slot {
    border: 1px dashed #adb5bd;
    border-radius: 8px;
    background: #fff;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.a4-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media print {
    body * {
        visibility: hidden;
    }
    #printArea, #printArea * {
        visibility: visible;
    }
    #printArea {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
}
