.error-illustration {
    height: auto;
}

.error-illustration--compact {
    max-width: 220px;
    width: 100%;
}

.navbar-brand-icon {
    width: auto;
    height: 75px;
    display: block;
}

.navbar-brand-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 3rem;
    padding: 0;
    list-style: none;
}

.wizard-progress::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.wizard-step-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #dee2e6;
    color: #6c757d;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-icon {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.wizard-step.completed .wizard-step-icon {
    background-color: #e7f1ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.wizard-step-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    position: absolute;
    width: 100%;
    top: 45px;
}

.wizard-step.active .wizard-step-label {
    color: #0d6efd;
    font-weight: 700;
}

.wizard-step-link {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.wizard-step.clickable .wizard-step-icon {
    cursor: pointer;
}

.wizard-step.clickable:hover .wizard-step-icon {
    transform: scale(1.1);
}

.wizard-progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background-color: #0d6efd;
    z-index: 1;
    transition: width 0.3s ease;
}

.avery-sheet-preview {
    display: grid;
    gap: 1rem;
    justify-items: center;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.avery-sheet-page {
    width: 210mm;
    height: 297mm;
    box-sizing: border-box;
    padding-top: 0.5mm;
    border-radius: 1rem;
    background: white;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.14),
        0 18px 40px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.avery-sheet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.avery-sheet {
    display: grid;
    grid-template-columns: repeat(3, 70mm);
    grid-template-rows: repeat(8, 37mm);
    width: 100%;
    height: 100%;
    justify-content: start;
    align-content: start;
    overflow: hidden;
}

.avery-label {
    box-sizing: border-box;
    padding: 3mm;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 9pt;
    line-height: 11pt;
    color: #000;
    text-align: left;
    overflow: hidden;
    display: block;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-height: 0;
}

.avery-label-line {
    display: block;
    text-align: left;
    white-space: pre-wrap;
}

.avery-label-line--primary {
    font-weight: 700;
    font-size: 10pt;
}

.avery-label--empty {
    background: repeating-linear-gradient(
        135deg,
        rgba(148, 163, 184, 0.04),
        rgba(148, 163, 184, 0.04) 8px,
        rgba(255, 255, 255, 0.02) 8px,
        rgba(255, 255, 255, 0.02) 16px
    );
}

.avery-sheet-empty {
    width: min(100%, 840px);
    padding: 2rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .avery-sheet-page {
        border-radius: 0.85rem;
    }

    .avery-sheet-meta {
        font-size: 0.72rem;
    }

    .avery-label {
        padding: 2.5mm;
        font-size: 8pt;
        line-height: 10pt;
    }

    .avery-label-line--primary {
        font-size: 9pt;
    }
}

@media print {
    .avery-sheet-preview {
        gap: 0;
        overflow: visible;
    }

    .avery-sheet-page {
        width: 210mm;
        height: 297mm;
        aspect-ratio: auto;
        break-after: page;
        box-shadow: none;
        border-radius: 0;
        border: 0;
        background: white;
        padding-top: 0.5mm;
    }

    .avery-sheet-meta {
        color: #000;
    }

    .avery-sheet {
        width: 100%;
        height: 100%;
    }

    .avery-label {
        font-size: 9pt;
        line-height: 11pt;
    }

    .avery-label-line--primary {
        font-size: 10pt;
    }
}
