/* Official PDF claim form viewer — canvas render (no browser PDF chrome) */

.claim-form-modal {
    background: #f0f4f8;
    padding: 1.25rem;
    border-radius: 8px;
    max-width: 920px;
    width: 98%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.claim-form-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.claim-form-meta {
    font-size: 0.75rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.claim-form-meta strong { color: #1e4d6b; }

.claim-form-pdf-wrap {
    background: #cbd5e0;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: center;
}

.claim-form-pages {
    width: 100%;
    max-width: 8.5in;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.claim-form-page-sheet {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    border-radius: 2px;
    overflow: visible;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.claim-form-page-inner {
    position: relative;
    line-height: 0;
}

.claim-form-page-sheet--editable .claim-form-page-canvas {
    pointer-events: none;
}

.claim-form-annotation-layer,
.claim-form-overlay-layer {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto;
    z-index: 2;
}

.claim-form-page-canvas {
    position: relative;
    z-index: 1;
}

.claim-form-overlay-input {
    position: absolute;
    box-sizing: border-box;
    border: 1px solid rgba(49, 130, 206, 0.35);
    background: rgba(255, 255, 255, 0.55);
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 2px;
    margin: 0;
    z-index: 3;
    cursor: text;
}

.claim-form-overlay-input--check {
    cursor: pointer;
    padding: 0;
    margin: 0;
    accent-color: #2b6cb0;
    background: rgba(255, 255, 255, 0.4);
}

.claim-form-overlay-input:hover,
.claim-form-overlay-input:focus {
    border-color: #3182ce;
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.25);
}

.annotationLayer section,
.annotationLayer .textWidgetAnnotation input,
.annotationLayer .textWidgetAnnotation textarea,
.annotationLayer .choiceWidgetAnnotation select,
.annotationLayer .buttonWidgetAnnotation input {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9px !important;
}

.annotationLayer .textWidgetAnnotation input,
.annotationLayer .textWidgetAnnotation textarea,
.annotationLayer .choiceWidgetAnnotation select {
    opacity: 1 !important;
    color: #1a1a1a !important;
}

.annotationLayer .textWidgetAnnotation input:focus,
.annotationLayer .textWidgetAnnotation textarea:focus {
    outline: 2px solid #3182ce !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.claim-form-page-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.claim-form-page-hint {
    margin: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.68rem;
    color: #718096;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.claim-form-page-hint--warn {
    color: #c53030;
}

.claim-form-render-status {
    margin: 2rem;
    text-align: center;
    color: #4a5568;
    font-size: 0.875rem;
}

.claim-form-error {
    text-align: center;
    padding: 2rem;
    color: #c53030;
    margin: 0;
}

.claim-form-template-note {
    margin: 0.65rem 0 0;
    font-size: 0.68rem;
    color: #718096;
    text-align: center;
}

@media print {
    .claim-form-modal,
    .claim-form-toolbar,
    .claim-form-meta,
    .claim-form-template-note,
    .claim-form-page-hint,
    .modal-overlay { display: none !important; }
}

@media (max-width: 900px) {
    .claim-form-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 0.75rem;
    }
    .claim-form-pdf-wrap {
        padding: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
