#apres-vente-generer-view {
    height: calc(100vh - 56px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ap-gen-topbar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--ax-ink-100);
}
.ap-gen-breadcrumb {
    font-size: 13px;
    color: var(--ax-ink-500);
    margin-bottom: 4px;
}
.ap-gen-breadcrumb a {
    color: var(--ax-gold-700, #8B6D1E);
    text-decoration: none;
}
.ap-gen-breadcrumb a:hover { text-decoration: underline; }
.ap-gen-breadcrumb-sep { color: var(--ax-ink-300); margin: 0 4px; }
.ap-gen-breadcrumb-current { color: var(--ax-ink-700); font-weight: 500; }
.ap-gen-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ax-navy-800);
    margin: 0;
}
.ap-gen-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ax-ink-500);
}
.ap-gen-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 16px;
    flex: 1;
    min-height: 0;
    padding: 16px 24px;
}
.ap-gen-col-form {
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
}
.ap-gen-col-preview {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ap-gen-form-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ax-navy-800);
    margin: 0 0 16px 0;
}
.ap-gen-warning {
    background: var(--ax-gold-50, #FFF8E5);
    border-left: 3px solid var(--ax-gold-500, #C5A03A);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--ax-ink-700);
    border-radius: 4px;
}
.ap-gen-field { display: flex; flex-direction: column; margin-bottom: 14px; }
.ap-gen-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ax-ink-600);
    margin-bottom: 4px;
}
.ap-gen-input {
    padding: 8px 10px;
    border: 1px solid var(--ax-ink-200);
    border-radius: 4px;
    font-size: 13px;
    background: var(--ax-ink-50, #F4F1E8);
    color: var(--ax-ink-700);
    cursor: not-allowed;
    font-family: inherit;
}
.ap-gen-input[readonly],
.ap-gen-input[disabled] {
    background: var(--ax-ink-50, #F4F1E8);
    color: var(--ax-ink-600);
}
textarea.ap-gen-input { resize: none; min-height: 72px; }
.ap-gen-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ax-ink-100);
}
.ap-gen-btn-cancel {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--ax-ink-300);
    border-radius: 4px;
    color: var(--ax-ink-700);
    cursor: pointer;
    font-size: 13px;
}
.ap-gen-btn-generate {
    padding: 8px 14px;
    background: var(--ax-ink-200);
    border: 1px solid var(--ax-ink-300);
    border-radius: 4px;
    color: var(--ax-ink-500);
    font-size: 13px;
    cursor: not-allowed;
}
.ap-gen-btn-generate[disabled] { opacity: 0.7; }
.ap-gen-a4 {
    width: 100%;
    max-width: 595px;
    aspect-ratio: 210 / 297;
    background: #fff;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
    overflow: hidden;
    padding: 32px 32px;
    box-sizing: border-box;
}
.ap-gen-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 28px;
    font-weight: 700;
    color: rgba(180, 30, 30, 0.18);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 2px;
    z-index: 2;
}
.ap-gen-wireframe-header {
    height: 24px;
    background: var(--ax-ink-100);
    margin-bottom: 24px;
    width: 60%;
    border-radius: 2px;
}
.ap-gen-wireframe-line {
    height: 10px;
    background: var(--ax-ink-100);
    margin-bottom: 12px;
    border-radius: 2px;
}
.ap-gen-wireframe-line:nth-child(2n) { width: 92%; }
.ap-gen-wireframe-line:nth-child(3n) { width: 78%; }
.ap-gen-wireframe-line:nth-child(odd) { width: 100%; }
.ap-gen-preview-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--ax-ink-500);
    font-style: italic;
    text-align: center;
}
