/* ZenithUI — ZenPdfViewer
 * All colors via --zen-* variables. The viewer has its own stylesheet because
 * the PDF iframe wrapping is a distinct concern from the rest of the suite.
 */
@layer zenith-components {
  .zen-pdf-viewer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: var(--zen-pdf-viewer-height, 600px);
    border: 1px solid var(--zen-card-border);
    border-radius: var(--zen-radius-card);
    box-shadow: var(--zen-elev-card);
    background: var(--zen-bg-surface);
    overflow: hidden;
    position: relative;
  }

  .zen-pdf-viewer__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--zen-space-3, 12px);
    padding: var(--zen-space-2, 8px) var(--zen-space-3, 12px);
    border-bottom: 1px solid var(--zen-border);
    background: var(--zen-bg-elevated, var(--zen-bg-surface));
    flex-shrink: 0;
  }

  .zen-pdf-viewer__filename {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--zen-font-size-sm, 0.875rem);
    color: var(--zen-text-secondary);
  }

  .zen-pdf-viewer__actions {
    display: flex;
    align-items: center;
    gap: var(--zen-space-2, 8px);
    flex-shrink: 0;
  }

  .zen-pdf-viewer__container {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
  }

  .zen-pdf-viewer__frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  .zen-pdf-viewer__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zen-bg-surface);
  }

  /* Icon inside the Print/Download toolbar actions — sized to sit next to the label. */
  .zen-pdf-viewer__action-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
  }
  .zen-pdf-viewer__action-icon svg {
    width: 15px;
    height: 15px;
  }
}
