.document-color-settings { padding: 18px; border: 1px solid var(--factly-border, #D9E7EB); border-radius: 14px; background: var(--factly-surface, #F7FBFC); min-width: 0; }
.document-color-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.document-color-settings h3 { margin: 0 0 5px; }
.document-color-settings p { margin: 0; font-size: .85rem; }
.document-color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.document-color-field { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--factly-border, #D9E7EB); border-radius: 10px; background: #fff; cursor: pointer; min-width: 0; }
.document-color-field input[type="color"] { width: 44px; height: 44px; flex: 0 0 44px; padding: 3px; border: 1px solid #D9E7EB; border-radius: 8px; background: #fff; cursor: pointer; }
.document-color-field span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.document-color-field strong { font-size: .85rem; color: #13293D; }
.document-color-field small, .document-color-field output { font-size: .75rem; font-weight: 400; color: #546777; }
.document-color-field output { font-variant-numeric: tabular-nums; }
.document-color-settings .document-color-help { margin-top: 12px; line-height: 1.5; }
.factly-invoice-preview-doc.has-custom-text, .factly-invoice-preview-doc.has-custom-text * { color: var(--document-text) !important; }
.factly-invoice-preview-doc.has-custom-emphasis strong,
.factly-invoice-preview-doc.has-custom-emphasis h5,
.factly-invoice-preview-doc.has-custom-emphasis th,
.factly-invoice-preview-doc.has-custom-emphasis .factly-invoice-preview-ticket-meta td:first-child,
.factly-invoice-preview-doc.has-custom-emphasis .factly-invoice-preview-totals span:last-child { color: var(--document-emphasis) !important; }
.factly-invoice-preview-doc.has-custom-header .factly-invoice-preview-table thead th { background: var(--document-header) !important; color: var(--document-header-text) !important; }
