@import url("./tokens.css");

.fu-editor { font: 14px/1.45 var(--fu-font-ui); color: var(--fu-ink); background: var(--fu-workspace); }
.fu-header, .fu-actions, .fu-recipient, .fu-button, .fu-tool { display: flex; align-items: center; }
.fu-header { min-height: 56px; gap: 16px; padding: 0 24px; background: #fcfbfa; border-bottom: 1px solid #ebe9e7; }
.fu-brand { font-weight: 750; font-size: 22px; letter-spacing: -.055em; color: var(--fu-action); }
.fu-actions { gap: 8px; margin-inline-start: auto; }
.fu-button, .fu-tool, .fu-recipient { font: inherit; cursor: pointer; color: inherit; }
.fu-button { min-height: 36px; justify-content: center; padding: 0 14px; background: transparent; border: 1px solid var(--fu-line); border-radius: 8px; }
.fu-primary { background: var(--fu-action); color: white; border-color: var(--fu-action); }
.fu-layout { display: grid; grid-template-columns: minmax(0,1fr) 264px; }
.fu-paper { width: min(100%, 760px); margin: 24px auto; padding: clamp(20px,5vw,68px); box-sizing: border-box; }
.fu-panel { background: white; padding: 24px 18px; border-inline-start: 1px solid #ebe9e7; }
.fu-panel h2 { font-size: 14px; margin: 24px 8px 8px; }
.fu-panel h2:first-child { margin-top: 0; }
.fu-recipient,.fu-tool { border: 0; background: transparent; width: 100%; min-height: 38px; text-align: start; padding: 5px 9px; gap: 10px; border-radius: 8px; }
.fu-recipient[aria-pressed="true"] { background: #f5f2f5; }
.fu-avatar { background: var(--fu-mist); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 11px; }
.fu-tool:hover,.fu-recipient:hover { background: #f6f5f4; }
.fu-role,.fu-note { color: var(--fu-muted); font-size: 13px; }
.fu-role { margin-inline-start: auto; }
.fu-field { display: grid; gap: 5px; margin: 12px 0; }
.fu-field input:not([type="checkbox"]),.fu-sign { font: inherit; color: inherit; padding: 6px 8px; border: 1px solid var(--fu-control-edge); border-radius: 5px; background: transparent; }
.fu-field input[type="checkbox"] { accent-color: var(--fu-action); }
.fu-sign { text-align: start; cursor: pointer; }
.fu-signature { border-bottom: 1px solid currentColor; padding-block: 6px; }
.fu-quote { width: 100%; border-collapse: collapse; font: inherit; color: inherit; }
.fu-quote th,.fu-quote td { padding: 8px 4px; }
.fu-quote th { border-bottom: 1px solid var(--fu-line); }
.fu-quote :is(th,td):first-child { text-align: start; }
.fu-quote :is(th,td):not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; }
.fu-quote input { font: inherit; color: inherit; background: transparent; border: 1px solid transparent; width: 5ch; text-align: end; }
.fu-quote input:hover { border-color: var(--fu-line); }
.fu-quote td:first-child input { width: 100%; text-align: start; box-sizing: border-box; }
.fu-quote tfoot { font-weight: 650; border-top: 1px solid var(--fu-line); }
@media(max-width:720px){.fu-layout{display:flex;flex-direction:column}.fu-panel{border:0}.fu-paper{margin:0}.fu-header{padding:6px 12px;flex-wrap:wrap}.fu-button,.fu-tool,.fu-recipient{min-height:44px}}
@media print{.fu-header,.fu-panel,.fu-author-tools{display:none}.fu-layout{display:block}.fu-paper{margin:0;width:auto;padding:0}.fu-editor{background:white}}
