.finance-panel .panel-heading p{font-size:var(--crm-text,12px);color:var(--muted,#7c837f);margin:6px 0 0}.finance-empty{padding:55px 24px;text-align:center}.finance-empty>svg{width:42px;height:42px;stroke:#839087;fill:none;stroke-width:1.4}.finance-empty h3{font-size:var(--crm-section,14px)}.finance-empty p{font-size:var(--crm-text,12px);color:var(--muted,#7a827c);margin-bottom:22px}#document-template-editor{padding:20px}.template-toolbar{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center}.template-toolbar h2{margin:0;font-size:var(--crm-section,14px)}.template-toolbar p{font-size:var(--crm-text,12px);color:var(--muted,#78817a);margin:5px 0}.template-toolbar>div:last-child{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#template-state{font-size:var(--crm-meta,11px);color:var(--muted,#7c857d)}.template-tabs{display:flex;margin:18px 0;padding:0;gap:7px;flex-wrap:wrap}.template-tabs button{padding:8px 14px;border:1px solid var(--line,#dce1de);border-radius:9px;background:var(--bg,#f5f6f5);font-size:var(--crm-text,12px);color:inherit}.template-tabs button.selected{border-color:#313d35;background:var(--surface,#fff)}.template-layout{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(380px,1.2fr);gap:24px;height:max(410px,calc(100dvh - 410px))}.template-fields{overflow:auto;scrollbar-width:thin;padding:0 14px 0 1px}.template-fields label{font-size:var(--crm-text,12px);margin-bottom:14px}.template-fields textarea{resize:vertical;min-height:60px}.template-fields input[type=color]{width:70px;height:36px;padding:4px}.template-fields details{font-size:var(--crm-meta,11px);line-height:1.6;color:var(--muted,#748079)}.template-preview{display:flex;flex-direction:column;min-width:0}.template-preview-label{font-size:var(--crm-meta,11px);padding:9px 12px;background:var(--bg,#f1f3f1);border:1px solid var(--line,#dbe2dc);border-radius:10px 10px 0 0}.template-preview iframe{border:1px solid var(--line,#dbe2dc);border-top:0;width:100%;flex:1;min-height:0;background:#ecefed;border-radius:0 0 10px 10px}.template-preview>p{font-size:var(--crm-meta,11px);color:var(--muted,#7b847c)}@media(max-width:850px){.template-layout{grid-template-columns:1fr;height:auto}.template-fields{max-height:440px}.template-preview iframe{min-height:680px}}
#document-template-editor .template-tabs{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;border-radius:0;background:transparent;min-height:0;width:auto;margin:16px 0;padding:0}#document-template-editor .template-tabs button{width:auto;height:auto;min-width:86px;flex:0 0 auto;border-radius:9px;padding:9px 14px;margin:0;font-size:var(--crm-text,12px);text-indent:0;overflow:visible}#document-template-editor .template-tabs button::after,#document-template-editor .template-tabs button::before{content:none}
.template-logo-editor{margin-bottom:18px}.template-logo-editor>label{margin-bottom:8px}.template-logo-sample{background:#fff;border:1px solid var(--line,#e0e4e1);border-radius:10px;padding:14px;min-height:75px;display:flex;align-items:center}.template-logo-sample img{display:block;max-width:100%;width:auto;max-height:70px;object-fit:contain}.template-logo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 7px}.template-logo-editor small{font-size:var(--crm-meta,11px);color:var(--muted,#79817b)}
