.sheet-palette-button{--chosen-color:#111;position:relative;min-width:38px}.sheet-palette-button i{position:absolute;left:7px;right:7px;bottom:4px;height:3px;border-radius:2px;background:var(--chosen-color)}.sheet-color-popover{position:fixed;z-index:10000;width:230px;padding:12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 14px 35px #0b1d3b38;font:12px Arial}.sheet-color-popover header{display:flex;justify-content:space-between;align-items:center;font-weight:700;margin-bottom:10px}.sheet-color-popover header button{border:0;background:transparent;font-size:20px}.sheet-color-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.sheet-color-swatches button{width:30px;height:30px;border:1px solid #aeb8c5;border-radius:5px;background:var(--swatch)}.sheet-color-popover form{display:grid;grid-template-columns:1fr 60px;gap:7px;margin-top:10px}.sheet-color-popover form label{font-size:9px}.sheet-color-popover form input{display:block;width:100%;height:30px;padding:0 7px;border:1px solid #cbd5e1;border-radius:4px}.sheet-color-popover form button,.sheet-color-popover .no-fill{height:30px;margin-top:auto}.sheet-color-popover .no-fill{width:100%;margin-top:8px;background:#fff}.contracts-mode #actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.contracts-mode #actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:0}.contracts-mode .contract-filterbar>button{align-self:end;display:flex;align-items:center;justify-content:center}.contracts-mode .contract-table-wrap td:last-child{vertical-align:middle}.contracts-mode .contract-table-wrap td:last-child>button,.contracts-mode .contract-table-wrap td:last-child>a{float:none;display:inline-flex;align-items:center;justify-content:center;margin:3px 5px 3px 0}.contracts-mode .contract-table-wrap .dots{float:none!important;vertical-align:middle}.contracts-mode .contract-quick form>footer{grid-column:1/-1;grid-row:auto}.contracts-mode .quick-send{position:static!important;grid-column:1/-1;justify-self:end;min-width:170px;margin-top:0}.contracts-mode .contract-quick footer>span:last-child{border-right:0}.modal .dialog:has(.contract-template-editor){width:min(1400px,calc(100vw - 50px));max-width:none;max-height:94vh;overflow:auto;padding:0}.contract-template-editor>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #d9e0e8;background:#fff}.contract-template-editor>header h1{margin:0}.contract-template-editor>header p{margin:4px 0 0;color:#65748a}.contract-template-editor>header span{font-size:11px;color:#65748a}.contract-template-editor>form{padding:18px 24px}.contract-editor-shell{border:1px solid #cfd8e4;border-radius:7px;overflow:hidden;background:#f4f6f9}.contract-editor-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:8px;border-bottom:1px solid #cfd8e4;background:#fff}.contract-editor-toolbar button,.contract-editor-toolbar select{height:34px;min-width:34px;padding:0 9px;border:1px solid #cbd5e1;border-radius:4px;background:#fff}.contract-editor-toolbar button:hover{background:#eef4fc}.contract-editor-workspace{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px}.contract-editor-workspace>div>small{display:block;margin:0 0 6px 3px;font-weight:700;color:#65748a}.contract-rich-editor,.contract-editor-preview{box-sizing:border-box;min-height:540px;padding:55px 65px;border:1px solid #d3dae3;background:#fff;box-shadow:0 3px 12px #0b1d3b14;color:#111;font:16px/1.5 'Times New Roman',serif;outline:0;overflow:auto}.contract-rich-editor:focus{border-color:#467fc5;box-shadow:0 0 0 2px #2f6ebf25}.contract-rich-editor table,.contract-editor-preview table{width:100%;border-collapse:collapse}.contract-editor-shell>footer{padding:9px 14px;border-top:1px solid #d4dbe5;background:#fff;color:#65748a;font-size:10px}.contract-template-editor .form-actions{position:sticky;bottom:-18px;z-index:2;padding:12px 0;background:#fff;border-top:1px solid #d9e0e8}@media(max-width:1100px){.contract-editor-workspace{grid-template-columns:1fr}.contract-editor-preview{min-height:300px}.contracts-mode .contract-quick form{grid-template-columns:1fr 1fr}.contracts-mode .contract-quick form>footer{grid-column:1/-1}}@media(max-width:700px){.contract-rich-editor,.contract-editor-preview{padding:30px 24px}.contract-editor-workspace{padding:8px}}
