@layer cm.report;@layer cm.report{.cm-report-editor{display:flex;flex-direction:column;gap:var(--space-md,16px);color:var(--color-foreground,#111827)}.cm-report-editor__notice{flex:0 0 auto}.cm-report-editor__body{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-md,16px);align-items:start}@media (max-width:900px){.cm-report-editor__body{grid-template-columns:1fr}}.cm-report-editor--no-preview .cm-report-editor__body{grid-template-columns:1fr}.cm-report-editor__form{min-width:0}.cm-report-editor__preview{min-width:0;position:sticky;top:var(--space-md,16px)}.cm-report-editor__column-list{display:flex;flex-direction:column;gap:var(--space-sm,8px)}.cm-report-editor__column-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"visibility header actions" "details details details";align-items:center;gap:var(--space-sm,8px);padding:var(--space-sm,10px) var(--space-md,14px);border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius-md,8px);background:var(--color-card,#ffffff)}.cm-report-editor__column-visibility{grid-area:visibility}.cm-report-editor__column-visibility-placeholder{grid-area:visibility;display:inline-block;width:36px}.cm-report-editor__column-header-field{grid-area:header;min-width:0}.cm-report-editor__column-actions{grid-area:actions;display:flex;align-items:center;gap:var(--space-xs,4px)}.cm-report-editor__column-details{grid-area:details;display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:var(--space-sm,8px);padding-top:var(--space-sm,8px);border-top:1px dashed color-mix(in srgb,var(--color-border,#d1d5db) 70%,transparent)}.cm-report-editor__column-row--hidden .cm-report-editor__column-details,.cm-report-editor__column-row--hidden .cm-report-editor__column-header-field{opacity:.55}.cm-report-editor__column-field--width{min-width:0}.cm-report-editor__switch-list{display:flex;flex-direction:column;border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius-md,8px);overflow:hidden}.cm-report-editor__switch-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm,8px);padding:var(--space-sm,8px) var(--space-md,12px)}.cm-report-editor__switch-row+.cm-report-editor__switch-row{border-top:1px solid color-mix(in srgb,var(--color-border,#d1d5db) 60%,transparent)}.cm-report-editor__switch-row:hover{background:color-mix(in srgb,var(--color-muted,#f3f4f6) 60%,transparent)}.cm-report-editor__switch-row-label{font-size:.875rem;min-width:0}.cm-report-editor__header-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:var(--space-md,16px)}.cm-report-editor__header-grid>.cm-report-editor__switch-list{grid-column:1/-1}.cm-report-editor__summary-list{display:flex;flex-direction:column;gap:var(--space-sm,8px)}.cm-report-editor__summary-empty{margin:0;color:var(--color-muted-foreground,#6b7280);font-size:.875rem}.cm-report-editor__summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label remove" "details details";align-items:center;gap:var(--space-sm,8px);padding:var(--space-sm,10px) var(--space-md,14px);border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius-md,8px);background:var(--color-card,#ffffff)}.cm-report-editor__summary-label-field{grid-area:label;min-width:0}.cm-report-editor__summary-remove{grid-area:remove}.cm-report-editor__summary-details{grid-area:details;display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:var(--space-sm,8px);padding-top:var(--space-sm,8px);border-top:1px dashed color-mix(in srgb,var(--color-border,#d1d5db) 70%,transparent)}.cm-report-editor__summary-add{align-self:flex-start}.cm-report-editor__style-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:var(--space-md,16px);align-items:end}.cm-report-editor__style-grid>.cm-report-editor__switch-list{grid-column:1/-1;align-self:stretch}.cm-report-editor__color-field{display:flex;flex-direction:column;gap:var(--space-xs,4px)}.cm-report-editor__color-label{font-size:.875rem;color:var(--color-muted-foreground,#6b7280)}.cm-report-editor__color-control{display:flex;align-items:center;gap:var(--space-sm,8px)}.cm-report-editor__color-input{inline-size:48px;block-size:36px;padding:2px;border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius-sm,4px);background:var(--color-card,#ffffff);cursor:pointer}.cm-report-editor__color-input:disabled{cursor:not-allowed;opacity:.6}.cm-report-editor__color-value{font-family:var(--font-mono,ui-monospace,monospace);font-size:.8125rem;color:var(--color-muted-foreground,#6b7280);text-transform:uppercase}.cm-report-preview{position:relative;min-height:320px;border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius-md,8px);background:var(--color-muted,#f3f4f6);overflow:hidden}.cm-report-preview__frame{display:block;width:100%;min-height:480px;border:0}.cm-report-preview__loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--color-card,#ffffff) 85%,transparent);color:var(--color-muted-foreground,#6b7280)}.cm-report-preview__error,.cm-report-preview__loading{padding:var(--space-lg,24px);font-size:.875rem;text-align:center}.cm-report-preview__error{color:var(--color-destructive,#b91c1c)}.cm-report-designer{display:flex;flex-direction:column;gap:var(--space-md,16px);color:var(--color-foreground,#111827)}.cm-report-designer__notice{flex:0 0 auto}.cm-report-designer__header{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-md,16px)}@media (max-width:700px){.cm-report-designer__header{grid-template-columns:1fr}}.cm-report-designer__source-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:var(--space-xs,6px);padding:var(--space-sm,8px);border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius-md,8px);background:color-mix(in srgb,var(--color-muted,#f3f4f6) 60%,transparent)}.cm-report-designer__source-field{display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm,8px);padding:var(--space-xs,4px) var(--space-sm,8px);border-radius:var(--radius-sm,6px);background:var(--color-card,#ffffff);border:1px solid color-mix(in srgb,var(--color-border,#d1d5db) 70%,transparent)}.cm-report-designer__source-field-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:500}.cm-report-designer__source-field-added{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;color:var(--color-success,#15803d);font-size:.75rem}.cm-report-designer__source-empty{border:1px dashed var(--color-border,#d1d5db);border-radius:var(--radius-md,8px)}.cm-report-designer__body{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-md,16px);align-items:start}@media (max-width:900px){.cm-report-designer__body{grid-template-columns:1fr}}.cm-report-designer__form{min-width:0;display:flex;flex-direction:column;gap:var(--space-md,16px)}.cm-report-designer__preview{min-width:0;position:sticky;top:var(--space-md,16px)}.cm-report-designer__empty{border:1px dashed var(--color-border,#d1d5db);border-radius:var(--radius-md,8px)}.cm-report-designer__columns-empty{margin:0;color:var(--color-muted-foreground,#6b7280);font-size:.875rem}.cm-report-designer__group{display:flex;flex-direction:column;gap:var(--space-sm,8px);padding:var(--space-sm,10px) var(--space-md,14px);border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius-md,8px);background:var(--color-card,#ffffff)}.cm-report-designer__group-title{margin:0;font-size:.875rem;font-weight:600}.cm-report-designer__group-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:var(--space-md,16px);align-items:center}.cm-report-designer__footer{display:flex;justify-content:flex-end;gap:var(--space-sm,8px)}.cm-report-config{display:flex;flex-direction:column;gap:var(--space-md,16px);color:var(--color-foreground,#111827)}.cm-report-config__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:var(--space-md,16px);align-items:end}.cm-report-config__section-title{margin:0;display:flex;align-items:center;gap:var(--space-xs,6px);font-size:.8125rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--color-muted-foreground,#6b7280)}.cm-report-config__logo-row{display:flex;align-items:end;gap:var(--space-sm,8px)}.cm-report-config__logo-url{flex:1 1 auto;min-width:0}.cm-report-config__logo-preview{display:flex;align-items:center;gap:var(--space-sm,8px);padding:var(--space-xs,6px) var(--space-sm,10px);border:1px dashed var(--color-border,#d1d5db);border-radius:var(--radius-sm,6px);background:var(--color-muted,#f3f4f6)}.cm-report-config__logo-image{max-height:40px;max-width:160px;object-fit:contain}.cm-report-config__margins{display:grid;grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:var(--space-sm,8px)}.cm-report-config__file-input{display:none}}