@tailwind base;
@tailwind components;
@tailwind utilities;

[x-cloak] {
    display: none !important;
}

/* Document preview overlay — fixed viewport bounds */
.document-preview-modal {
    width: min(92vw, 36rem);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.document-preview-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(85vh - 3.25rem);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    background-color: #f1f5f9;
}

.document-preview-modal__img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: min(88vw, 34rem);
    max-height: min(68vh, 32rem);
    object-fit: contain;
}

.document-preview-modal__pdf {
    display: block;
    width: 100%;
    height: min(68vh, 32rem);
    max-height: calc(85vh - 4rem);
    border: 0;
    background: #fff;
}
